├── .gitignore ├── LICENSE ├── README.md ├── application ├── .htaccess ├── cache │ └── index.html ├── config │ ├── autoload.php │ ├── config.php │ ├── constants.php │ ├── database.php │ ├── doctypes.php │ ├── foreign_chars.php │ ├── hooks.php │ ├── index.html │ ├── memcached.php │ ├── migration.php │ ├── mimes.php │ ├── pagination.php │ ├── profiler.php │ ├── routes.php │ ├── smileys.php │ └── user_agents.php ├── controllers │ ├── Checkout.php │ ├── Home.php │ ├── Page.php │ ├── Product.php │ ├── ProductCategory.php │ ├── Welcome.php │ ├── admin │ │ ├── Account.php │ │ ├── Contactus.php │ │ ├── Customer.php │ │ ├── Dashboard.php │ │ ├── Imageupload.php │ │ ├── Order.php │ │ ├── Product.php │ │ ├── Productcat.php │ │ ├── Productgallery.php │ │ ├── Report.php │ │ └── index.html │ └── index.html ├── core │ └── index.html ├── helpers │ ├── index.html │ └── utility_helper.php ├── hooks │ └── index.html ├── index.html ├── language │ └── english │ │ └── index.html ├── libraries │ └── index.html ├── models │ ├── Contactus_model.php │ ├── ProductCat.php │ ├── admin │ │ ├── Account_model.php │ │ ├── AndroidSMS_model.php │ │ ├── Customer_model.php │ │ ├── Imageupload_model.php │ │ ├── OrderStatusSummary_model.php │ │ ├── OrderStatus_model.php │ │ ├── Order_model.php │ │ ├── Product_model.php │ │ ├── Productcat_model.php │ │ ├── Productgallery_model.php │ │ ├── Tcsexcel_model.php │ │ ├── Tcspayment_model.php │ │ └── index.html │ └── index.html ├── third_party │ ├── PHPExcel.php │ ├── PHPExcel │ │ ├── Autoloader.php │ │ ├── CachedObjectStorage │ │ │ ├── APC.php │ │ │ ├── CacheBase.php │ │ │ ├── DiscISAM.php │ │ │ ├── ICache.php │ │ │ ├── Igbinary.php │ │ │ ├── Memcache.php │ │ │ ├── Memory.php │ │ │ ├── MemoryGZip.php │ │ │ ├── MemorySerialized.php │ │ │ ├── PHPTemp.php │ │ │ ├── SQLite.php │ │ │ ├── SQLite3.php │ │ │ └── Wincache.php │ │ ├── CachedObjectStorageFactory.php │ │ ├── CalcEngine │ │ │ ├── CyclicReferenceStack.php │ │ │ └── Logger.php │ │ ├── Calculation.php │ │ ├── Calculation │ │ │ ├── Database.php │ │ │ ├── DateTime.php │ │ │ ├── Engineering.php │ │ │ ├── Exception.php │ │ │ ├── ExceptionHandler.php │ │ │ ├── Financial.php │ │ │ ├── FormulaParser.php │ │ │ ├── FormulaToken.php │ │ │ ├── Function.php │ │ │ ├── Functions.php │ │ │ ├── Logical.php │ │ │ ├── LookupRef.php │ │ │ ├── MathTrig.php │ │ │ ├── Statistical.php │ │ │ ├── TextData.php │ │ │ └── functionlist.txt │ │ ├── Cell.php │ │ ├── Chart.php │ │ ├── Comment.php │ │ ├── DocumentProperties.php │ │ ├── DocumentSecurity.php │ │ ├── Exception.php │ │ ├── HashTable.php │ │ ├── IComparable.php │ │ ├── IOFactory.php │ │ ├── NamedRange.php │ │ ├── ReferenceHelper.php │ │ ├── RichText.php │ │ ├── Settings.php │ │ ├── Style.php │ │ ├── Worksheet.php │ │ └── WorksheetIterator.php │ ├── index.html │ └── simple_html_dom.php └── views │ ├── admin │ ├── account │ │ └── login.php │ ├── contactus │ │ └── index.php │ ├── dashboard.php │ ├── errors │ │ ├── cli │ │ │ ├── error_404.php │ │ │ ├── error_db.php │ │ │ ├── error_exception.php │ │ │ ├── error_general.php │ │ │ ├── error_php.php │ │ │ └── index.html │ │ ├── html │ │ │ ├── error_404.php │ │ │ ├── error_db.php │ │ │ ├── error_exception.php │ │ │ ├── error_general.php │ │ │ ├── error_php.php │ │ │ └── index.html │ │ └── index.html │ ├── imageupload │ │ └── add.php │ ├── index.html │ ├── layouts │ │ └── main.php │ ├── order │ │ ├── add.php │ │ ├── edit.php │ │ └── index.php │ ├── product │ │ ├── add.php │ │ ├── edit.php │ │ ├── expired_deals.php │ │ └── index.php │ ├── productcat │ │ ├── add.php │ │ ├── edit.php │ │ └── index.php │ ├── productgallery │ │ ├── add.php │ │ ├── edit.php │ │ └── index.php │ └── report │ │ ├── karachiorderlist.php │ │ ├── karachiordersummary.php │ │ ├── orderdetail.php │ │ ├── orderstatuslist.php │ │ ├── productpurchase.php │ │ ├── savedorderssummary.php │ │ ├── tcsexcel.php │ │ ├── tcspayment.php │ │ └── tcspaymentdetail.php │ ├── checkout │ ├── checkout_view.php │ ├── emptycart_view.php │ └── thankyou_view.php │ ├── errors │ ├── cli │ │ ├── error_404.php │ │ ├── error_db.php │ │ ├── error_exception.php │ │ ├── error_general.php │ │ ├── error_php.php │ │ └── index.html │ ├── html │ │ ├── error_404.php │ │ ├── error_db.php │ │ ├── error_exception.php │ │ ├── error_general.php │ │ ├── error_php.php │ │ └── index.html │ └── index.html │ ├── home │ └── home_view.php │ ├── index.html │ ├── page │ ├── active_deal_view.php │ ├── contactus.php │ ├── expire_deal_view.php │ └── search_view.php │ ├── product │ └── detail_view.php │ ├── productcategory │ └── index.php │ ├── template │ ├── footer.php │ ├── header.php │ └── product.php │ └── welcome_message.php ├── assets ├── css │ └── custom.css ├── csv │ └── index.html ├── img │ └── index.html └── js │ ├── admin.custom.js │ ├── custom.js │ └── index.html ├── database.sql ├── index.php └── uploads └── index.html /.gitignore: -------------------------------------------------------------------------------- 1 | application/controllers/AndroidSMS.php 2 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 Muhammad Arslan 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Ecommerce CMS built using Codeigniter V.3 2 | 3 | ## Features 4 | - Lightweight and very fast. 5 | - Manage Products 6 | - Manage Orders 7 | - Reports 8 | 9 | ### Third Party Softwares Used 10 | - This CMS uses Porto Theme for Client Uses and Admint LTE for Admin Use 11 | - PHP Excel 12 | - Simple HTML DOM 13 | - Infinite Scroll 14 | 15 | -------------------------------------------------------------------------------- /application/.htaccess: -------------------------------------------------------------------------------- 1 | 2 | Require all denied 3 | 4 | 5 | Deny from all 6 | 7 | 8 | ## EXPIRES CACHING ## 9 | 10 | ExpiresActive On 11 | ExpiresByType image/jpg "access 1 year" 12 | ExpiresByType image/jpeg "access 1 year" 13 | ExpiresByType image/gif "access 1 year" 14 | ExpiresByType image/png "access 1 year" 15 | ExpiresByType text/css "access 1 month" 16 | ExpiresByType text/html "access 1 month" 17 | ExpiresByType application/pdf "access 1 month" 18 | ExpiresByType text/x-javascript "access 1 month" 19 | ExpiresByType application/x-shockwave-flash "access 1 month" 20 | ExpiresByType image/x-icon "access 1 year" 21 | ExpiresDefault "access 1 month" 22 | 23 | ## EXPIRES CACHING ## -------------------------------------------------------------------------------- /application/cache/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/config/autoload.php: -------------------------------------------------------------------------------- 1 | 'ua'); 60 | */ 61 | $autoload['libraries'] = array('database','pagination','form_validation','session'); 62 | 63 | /* 64 | | ------------------------------------------------------------------- 65 | | Auto-load Drivers 66 | | ------------------------------------------------------------------- 67 | | These classes are located in system/libraries/ or in your 68 | | application/libraries/ directory, but are also placed inside their 69 | | own subdirectory and they extend the CI_Driver_Library class. They 70 | | offer multiple interchangeable driver options. 71 | | 72 | | Prototype: 73 | | 74 | | $autoload['drivers'] = array('cache'); 75 | | 76 | | You can also supply an alternative property name to be assigned in 77 | | the controller: 78 | | 79 | | $autoload['drivers'] = array('cache' => 'cch'); 80 | | 81 | */ 82 | $autoload['drivers'] = array(); 83 | 84 | /* 85 | | ------------------------------------------------------------------- 86 | | Auto-load Helper Files 87 | | ------------------------------------------------------------------- 88 | | Prototype: 89 | | 90 | | $autoload['helper'] = array('url', 'file'); 91 | */ 92 | $autoload['helper'] = array('utility_helper','url','form'); 93 | 94 | /* 95 | | ------------------------------------------------------------------- 96 | | Auto-load Config files 97 | | ------------------------------------------------------------------- 98 | | Prototype: 99 | | 100 | | $autoload['config'] = array('config1', 'config2'); 101 | | 102 | | NOTE: This item is intended for use ONLY if you have created custom 103 | | config files. Otherwise, leave it blank. 104 | | 105 | */ 106 | $autoload['config'] = array(); 107 | 108 | /* 109 | | ------------------------------------------------------------------- 110 | | Auto-load Language files 111 | | ------------------------------------------------------------------- 112 | | Prototype: 113 | | 114 | | $autoload['language'] = array('lang1', 'lang2'); 115 | | 116 | | NOTE: Do not include the "_lang" part of your file. For example 117 | | "codeigniter_lang.php" would be referenced as array('codeigniter'); 118 | | 119 | */ 120 | $autoload['language'] = array(); 121 | 122 | /* 123 | | ------------------------------------------------------------------- 124 | | Auto-load Models 125 | | ------------------------------------------------------------------- 126 | | Prototype: 127 | | 128 | | $autoload['model'] = array('first_model', 'second_model'); 129 | | 130 | | You can also supply an alternative model name to be assigned 131 | | in the controller: 132 | | 133 | | $autoload['model'] = array('first_model' => 'first'); 134 | */ 135 | $autoload['model'] = array(); 136 | -------------------------------------------------------------------------------- /application/config/constants.php: -------------------------------------------------------------------------------- 1 | db->last_query() and profiling of DB queries. 62 | | When you run a query, with this setting set to TRUE (default), 63 | | CodeIgniter will store the SQL statement for debugging purposes. 64 | | However, this may cause high memory usage, especially if you run 65 | | a lot of SQL queries ... disable this to avoid that problem. 66 | | 67 | | The $active_group variable lets you choose which connection group to 68 | | make active. By default there is only one group (the 'default' group). 69 | | 70 | | The $query_builder variables lets you determine whether or not to load 71 | | the query builder class. 72 | */ 73 | $active_group = 'default'; 74 | $query_builder = TRUE; 75 | 76 | $db['default'] = array( 77 | 'dsn' => '', 78 | 'hostname' => 'localhost', 79 | 'username' => '', 80 | 'password' => '', 81 | 'database' => '', 82 | 'dbdriver' => 'mysqli', 83 | 'dbprefix' => '', 84 | 'pconnect' => FALSE, 85 | 'db_debug' => (ENVIRONMENT !== 'production'), 86 | 'cache_on' => FALSE, 87 | 'cachedir' => '', 88 | 'char_set' => 'utf8', 89 | 'dbcollat' => 'utf8_general_ci', 90 | 'swap_pre' => '', 91 | 'encrypt' => FALSE, 92 | 'compress' => FALSE, 93 | 'stricton' => FALSE, 94 | 'failover' => array(), 95 | 'save_queries' => TRUE 96 | ); 97 | -------------------------------------------------------------------------------- /application/config/doctypes.php: -------------------------------------------------------------------------------- 1 | '', 6 | 'xhtml1-strict' => '', 7 | 'xhtml1-trans' => '', 8 | 'xhtml1-frame' => '', 9 | 'xhtml-basic11' => '', 10 | 'html5' => '', 11 | 'html4-strict' => '', 12 | 'html4-trans' => '', 13 | 'html4-frame' => '', 14 | 'mathml1' => '', 15 | 'mathml2' => '', 16 | 'svg10' => '', 17 | 'svg11' => '', 18 | 'svg11-basic' => '', 19 | 'svg11-tiny' => '', 20 | 'xhtml-math-svg-xh' => '', 21 | 'xhtml-math-svg-sh' => '', 22 | 'xhtml-rdfa-1' => '', 23 | 'xhtml-rdfa-2' => '' 24 | ); 25 | -------------------------------------------------------------------------------- /application/config/foreign_chars.php: -------------------------------------------------------------------------------- 1 | 'ae', 14 | '/ö|œ/' => 'oe', 15 | '/ü/' => 'ue', 16 | '/Ä/' => 'Ae', 17 | '/Ü/' => 'Ue', 18 | '/Ö/' => 'Oe', 19 | '/À|Á|Â|Ã|Ä|Å|Ǻ|Ā|Ă|Ą|Ǎ|Α|Ά|Ả|Ạ|Ầ|Ẫ|Ẩ|Ậ|Ằ|Ắ|Ẵ|Ẳ|Ặ|А/' => 'A', 20 | '/à|á|â|ã|å|ǻ|ā|ă|ą|ǎ|ª|α|ά|ả|ạ|ầ|ấ|ẫ|ẩ|ậ|ằ|ắ|ẵ|ẳ|ặ|а/' => 'a', 21 | '/Б/' => 'B', 22 | '/б/' => 'b', 23 | '/Ç|Ć|Ĉ|Ċ|Č/' => 'C', 24 | '/ç|ć|ĉ|ċ|č/' => 'c', 25 | '/Д/' => 'D', 26 | '/д/' => 'd', 27 | '/Ð|Ď|Đ|Δ/' => 'Dj', 28 | '/ð|ď|đ|δ/' => 'dj', 29 | '/È|É|Ê|Ë|Ē|Ĕ|Ė|Ę|Ě|Ε|Έ|Ẽ|Ẻ|Ẹ|Ề|Ế|Ễ|Ể|Ệ|Е|Э/' => 'E', 30 | '/è|é|ê|ë|ē|ĕ|ė|ę|ě|έ|ε|ẽ|ẻ|ẹ|ề|ế|ễ|ể|ệ|е|э/' => 'e', 31 | '/Ф/' => 'F', 32 | '/ф/' => 'f', 33 | '/Ĝ|Ğ|Ġ|Ģ|Γ|Г|Ґ/' => 'G', 34 | '/ĝ|ğ|ġ|ģ|γ|г|ґ/' => 'g', 35 | '/Ĥ|Ħ/' => 'H', 36 | '/ĥ|ħ/' => 'h', 37 | '/Ì|Í|Î|Ï|Ĩ|Ī|Ĭ|Ǐ|Į|İ|Η|Ή|Ί|Ι|Ϊ|Ỉ|Ị|И|Ы/' => 'I', 38 | '/ì|í|î|ï|ĩ|ī|ĭ|ǐ|į|ı|η|ή|ί|ι|ϊ|ỉ|ị|и|ы|ї/' => 'i', 39 | '/Ĵ/' => 'J', 40 | '/ĵ/' => 'j', 41 | '/Ķ|Κ|К/' => 'K', 42 | '/ķ|κ|к/' => 'k', 43 | '/Ĺ|Ļ|Ľ|Ŀ|Ł|Λ|Л/' => 'L', 44 | '/ĺ|ļ|ľ|ŀ|ł|λ|л/' => 'l', 45 | '/М/' => 'M', 46 | '/м/' => 'm', 47 | '/Ñ|Ń|Ņ|Ň|Ν|Н/' => 'N', 48 | '/ñ|ń|ņ|ň|ʼn|ν|н/' => 'n', 49 | '/Ò|Ó|Ô|Õ|Ō|Ŏ|Ǒ|Ő|Ơ|Ø|Ǿ|Ο|Ό|Ω|Ώ|Ỏ|Ọ|Ồ|Ố|Ỗ|Ổ|Ộ|Ờ|Ớ|Ỡ|Ở|Ợ|О/' => 'O', 50 | '/ò|ó|ô|õ|ō|ŏ|ǒ|ő|ơ|ø|ǿ|º|ο|ό|ω|ώ|ỏ|ọ|ồ|ố|ỗ|ổ|ộ|ờ|ớ|ỡ|ở|ợ|о/' => 'o', 51 | '/П/' => 'P', 52 | '/п/' => 'p', 53 | '/Ŕ|Ŗ|Ř|Ρ|Р/' => 'R', 54 | '/ŕ|ŗ|ř|ρ|р/' => 'r', 55 | '/Ś|Ŝ|Ş|Ș|Š|Σ|С/' => 'S', 56 | '/ś|ŝ|ş|ș|š|ſ|σ|ς|с/' => 's', 57 | '/Ț|Ţ|Ť|Ŧ|τ|Т/' => 'T', 58 | '/ț|ţ|ť|ŧ|т/' => 't', 59 | '/Þ|þ/' => 'th', 60 | '/Ù|Ú|Û|Ũ|Ū|Ŭ|Ů|Ű|Ų|Ư|Ǔ|Ǖ|Ǘ|Ǚ|Ǜ|Ũ|Ủ|Ụ|Ừ|Ứ|Ữ|Ử|Ự|У/' => 'U', 61 | '/ù|ú|û|ũ|ū|ŭ|ů|ű|ų|ư|ǔ|ǖ|ǘ|ǚ|ǜ|υ|ύ|ϋ|ủ|ụ|ừ|ứ|ữ|ử|ự|у/' => 'u', 62 | '/Ƴ|Ɏ|Ỵ|Ẏ|Ӳ|Ӯ|Ў|Ý|Ÿ|Ŷ|Υ|Ύ|Ϋ|Ỳ|Ỹ|Ỷ|Ỵ|Й/' => 'Y', 63 | '/ẙ|ʏ|ƴ|ɏ|ỵ|ẏ|ӳ|ӯ|ў|ý|ÿ|ŷ|ỳ|ỹ|ỷ|ỵ|й/' => 'y', 64 | '/В/' => 'V', 65 | '/в/' => 'v', 66 | '/Ŵ/' => 'W', 67 | '/ŵ/' => 'w', 68 | '/Ź|Ż|Ž|Ζ|З/' => 'Z', 69 | '/ź|ż|ž|ζ|з/' => 'z', 70 | '/Æ|Ǽ/' => 'AE', 71 | '/ß/' => 'ss', 72 | '/IJ/' => 'IJ', 73 | '/ij/' => 'ij', 74 | '/Œ/' => 'OE', 75 | '/ƒ/' => 'f', 76 | '/ξ/' => 'ks', 77 | '/π/' => 'p', 78 | '/β/' => 'v', 79 | '/μ/' => 'm', 80 | '/ψ/' => 'ps', 81 | '/Ё/' => 'Yo', 82 | '/ё/' => 'yo', 83 | '/Є/' => 'Ye', 84 | '/є/' => 'ye', 85 | '/Ї/' => 'Yi', 86 | '/Ж/' => 'Zh', 87 | '/ж/' => 'zh', 88 | '/Х/' => 'Kh', 89 | '/х/' => 'kh', 90 | '/Ц/' => 'Ts', 91 | '/ц/' => 'ts', 92 | '/Ч/' => 'Ch', 93 | '/ч/' => 'ch', 94 | '/Ш/' => 'Sh', 95 | '/ш/' => 'sh', 96 | '/Щ/' => 'Shch', 97 | '/щ/' => 'shch', 98 | '/Ъ|ъ|Ь|ь/' => '', 99 | '/Ю/' => 'Yu', 100 | '/ю/' => 'yu', 101 | '/Я/' => 'Ya', 102 | '/я/' => 'ya' 103 | ); 104 | -------------------------------------------------------------------------------- /application/config/hooks.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

Directory access is forbidden.

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/config/memcached.php: -------------------------------------------------------------------------------- 1 | array( 15 | 'hostname' => '127.0.0.1', 16 | 'port' => '11211', 17 | 'weight' => '1', 18 | ), 19 | ); 20 | -------------------------------------------------------------------------------- /application/config/migration.php: -------------------------------------------------------------------------------- 1 | migration->current() this is the version that schema will 69 | | be upgraded / downgraded to. 70 | | 71 | */ 72 | $config['migration_version'] = 0; 73 | 74 | /* 75 | |-------------------------------------------------------------------------- 76 | | Migrations Path 77 | |-------------------------------------------------------------------------- 78 | | 79 | | Path to your migrations folder. 80 | | Typically, it will be within your application path. 81 | | Also, writing permission is required within the migrations path. 82 | | 83 | */ 84 | $config['migration_path'] = APPPATH.'migrations/'; 85 | -------------------------------------------------------------------------------- /application/config/pagination.php: -------------------------------------------------------------------------------- 1 | '; 10 | // $config['pagination']['next_tag_open'] = '
  • '; 11 | // $config['pagination']['next_tag_close'] = '
  • '; 12 | // $config['pagination']['prev_tag_open'] = '
  • '; 13 | // $config['pagination']['prev_tag_close'] = '
  • '; 14 | // $config['pagination']['num_tag_open'] = '
  • '; 15 | // $config['pagination']['num_tag_close'] = '
  • '; 16 | // $config['pagination']['cur_tag_open'] = '
  • '; 17 | // $config['pagination']['cur_tag_close'] = '
  • '; 18 | // $config['pagination']['full_tag_close'] = ''; 19 | // $config['pagination']['first_link'] = '‹‹'; 20 | // $config['pagination']['first_tag_open'] = '
  • '; 21 | // $config['pagination']['first_tag_close'] = '
  • '; 22 | // $config['pagination']['last_link'] = '››'; 23 | // $config['pagination']['last_tag_open'] = '
  • '; 24 | // $config['pagination']['last_tag_close'] = '
  • '; 25 | ?> -------------------------------------------------------------------------------- /application/config/profiler.php: -------------------------------------------------------------------------------- 1 | my_controller/index 50 | | my-controller/my-method -> my_controller/my_method 51 | */ 52 | $route['default_controller'] = 'home'; 53 | $route['404_override'] = ''; 54 | $route['translate_uri_dashes'] = FALSE; 55 | $route["Product/(:any)/(:num)"]="Product/Index/$1/$2"; 56 | //$route["AndroidSMS/SendSms.php"]="AndroidSMS/Index/Sendsms"; 57 | $route["ProductCategory/(:any)/(:num)"]="ProductCategory/Index/$1/$2"; 58 | $route["index.php/(:any)/(:num)"]="Product/Index/$1/$2"; -------------------------------------------------------------------------------- /application/config/smileys.php: -------------------------------------------------------------------------------- 1 | array('grin.gif', '19', '19', 'grin'), 21 | ':lol:' => array('lol.gif', '19', '19', 'LOL'), 22 | ':cheese:' => array('cheese.gif', '19', '19', 'cheese'), 23 | ':)' => array('smile.gif', '19', '19', 'smile'), 24 | ';-)' => array('wink.gif', '19', '19', 'wink'), 25 | ';)' => array('wink.gif', '19', '19', 'wink'), 26 | ':smirk:' => array('smirk.gif', '19', '19', 'smirk'), 27 | ':roll:' => array('rolleyes.gif', '19', '19', 'rolleyes'), 28 | ':-S' => array('confused.gif', '19', '19', 'confused'), 29 | ':wow:' => array('surprise.gif', '19', '19', 'surprised'), 30 | ':bug:' => array('bigsurprise.gif', '19', '19', 'big surprise'), 31 | ':-P' => array('tongue_laugh.gif', '19', '19', 'tongue laugh'), 32 | '%-P' => array('tongue_rolleye.gif', '19', '19', 'tongue rolleye'), 33 | ';-P' => array('tongue_wink.gif', '19', '19', 'tongue wink'), 34 | ':P' => array('raspberry.gif', '19', '19', 'raspberry'), 35 | ':blank:' => array('blank.gif', '19', '19', 'blank stare'), 36 | ':long:' => array('longface.gif', '19', '19', 'long face'), 37 | ':ohh:' => array('ohh.gif', '19', '19', 'ohh'), 38 | ':grrr:' => array('grrr.gif', '19', '19', 'grrr'), 39 | ':gulp:' => array('gulp.gif', '19', '19', 'gulp'), 40 | '8-/' => array('ohoh.gif', '19', '19', 'oh oh'), 41 | ':down:' => array('downer.gif', '19', '19', 'downer'), 42 | ':red:' => array('embarrassed.gif', '19', '19', 'red face'), 43 | ':sick:' => array('sick.gif', '19', '19', 'sick'), 44 | ':shut:' => array('shuteye.gif', '19', '19', 'shut eye'), 45 | ':-/' => array('hmm.gif', '19', '19', 'hmmm'), 46 | '>:(' => array('mad.gif', '19', '19', 'mad'), 47 | ':mad:' => array('mad.gif', '19', '19', 'mad'), 48 | '>:-(' => array('angry.gif', '19', '19', 'angry'), 49 | ':angry:' => array('angry.gif', '19', '19', 'angry'), 50 | ':zip:' => array('zip.gif', '19', '19', 'zipper'), 51 | ':kiss:' => array('kiss.gif', '19', '19', 'kiss'), 52 | ':ahhh:' => array('shock.gif', '19', '19', 'shock'), 53 | ':coolsmile:' => array('shade_smile.gif', '19', '19', 'cool smile'), 54 | ':coolsmirk:' => array('shade_smirk.gif', '19', '19', 'cool smirk'), 55 | ':coolgrin:' => array('shade_grin.gif', '19', '19', 'cool grin'), 56 | ':coolhmm:' => array('shade_hmm.gif', '19', '19', 'cool hmm'), 57 | ':coolmad:' => array('shade_mad.gif', '19', '19', 'cool mad'), 58 | ':coolcheese:' => array('shade_cheese.gif', '19', '19', 'cool cheese'), 59 | ':vampire:' => array('vampire.gif', '19', '19', 'vampire'), 60 | ':snake:' => array('snake.gif', '19', '19', 'snake'), 61 | ':exclaim:' => array('exclaim.gif', '19', '19', 'exclaim'), 62 | ':question:' => array('question.gif', '19', '19', 'question') 63 | 64 | ); 65 | -------------------------------------------------------------------------------- /application/controllers/Checkout.php: -------------------------------------------------------------------------------- 1 | load->model('admin/Order_model',"Order"); 10 | } 11 | 12 | public function index() 13 | { 14 | $data["pagetitle"]="Checkout"; 15 | 16 | 17 | if(isset($_POST) && count($_POST)>0) 18 | { 19 | 20 | $data["ProductName"]=$this->input->post("ProductName"); 21 | $data["ProductId"]=$this->input->post("ProductId"); 22 | $data["ProductSalePrice"]=$this->input->post("ProductSalePrice"); 23 | $data["DeliveryCharges"]=$this->input->post("DeliveryCharges"); 24 | $data["TotalCOD"]=$this->input->post("TotalCOD"); 25 | 26 | $data["productVariation"]=$this->input->post("productVariation"); 27 | 28 | $this->load->view('template/header',$data); 29 | $this->load->view('checkout/checkout_view',$data); 30 | $this->load->view('template/footer'); 31 | } 32 | else{ 33 | 34 | $this->load->view('template/header',$data); 35 | $this->load->view('checkout/emptycart_view',$data); 36 | $this->load->view('template/footer'); 37 | } 38 | 39 | 40 | } 41 | 42 | 43 | 44 | 45 | public function PlaceOrder() 46 | { 47 | if(isset($_POST) && count($_POST)>0) 48 | { 49 | if(isset($_SESSION["token"])) 50 | { 51 | if($_SESSION["token"]==$this->input->post("token")) 52 | { 53 | unset($_SESSION["token"]); 54 | 55 | date_default_timezone_set("Asia/Karachi"); 56 | $createdDate = date("Y-m-d H:i:s"); 57 | $this->load->model("admin/Customer_model","Customer"); 58 | $this->load->model("admin/OrderStatus_model"); 59 | 60 | $customerArray = array( 61 | "FirstName"=>$this->input->post("FirstName"), 62 | "LastName"=>$this->input->post("LastName"), 63 | "Cell1"=>$this->input->post("Cell1"), 64 | "Cell2"=>$this->input->post("Cell2"), 65 | "Email"=>$this->input->post("Email"), 66 | "ShippingAddress"=>$this->input->post("ShippingAddress"), 67 | "City"=>$this->input->post("City"), 68 | "NearMostFamousPlace"=>$this->input->post("NearMostFamousPlace"), 69 | "CreatedDate"=>$createdDate 70 | ); 71 | 72 | 73 | 74 | $customerId = $this->Customer->add_customer($customerArray); 75 | 76 | $orderArray = array( 77 | "ProductId"=>$this->input->post("ProductId"), 78 | "CODAmount"=>$this->input->post("CODAmount"), 79 | "ShippingCost"=>$this->input->post("ShippingCost"), 80 | "CustomerId"=>$customerId, 81 | "ProductVariation"=>json_encode($this->input->post("productVariation")), 82 | "OrderStatusId"=>$this->OrderStatus_model->get_order_status_processing()->OrderStatusId , 83 | "CreatedDate"=>$createdDate 84 | ); 85 | 86 | 87 | $orderId = $this->Order->add_order($orderArray); 88 | 89 | 90 | $redirectString = "Checkout/ThankYou/?orderId=".$orderId."&customerName=".$customerArray["FirstName"]." ".$customerArray["LastName"].""; 91 | $_SESSION["redirect_checkout"]=$redirectString; 92 | redirect($redirectString); 93 | 94 | } 95 | } 96 | else{ 97 | redirect($redirectString); 98 | } 99 | } 100 | else{ 101 | $error["heading"]="Something went wrong"; 102 | $error["message"]="Please try again or contact admin"; 103 | 104 | $this->load->view('errors/html/error_general',$error); 105 | 106 | } 107 | 108 | } 109 | 110 | 111 | public function ThankYou() 112 | { 113 | $orderId = $this->input->get("orderId"); 114 | $customerName = $this->input->get("customerName"); 115 | 116 | $data["CustomerName"]=$customerName; 117 | $data["OrderId"]=$orderId; 118 | $data["pagetitle"]="Thank You"; 119 | 120 | 121 | $this->load->model("admin/Product_model"); 122 | $isNewThankyouPage = $this->Product_model->IsNewThankyouPage($orderId); 123 | 124 | 125 | 126 | $data["fbPixel"]=""; 127 | 128 | if($isNewThankyouPage==true) 129 | { 130 | $data["fbPixel"]=""; 131 | } 132 | 133 | $this->load->view('template/header',$data); 134 | $this->load->view('checkout/thankyou_view',$data); 135 | $this->load->view('template/footer'); 136 | } 137 | 138 | 139 | } 140 | -------------------------------------------------------------------------------- /application/controllers/Home.php: -------------------------------------------------------------------------------- 1 | 19 | * @see https://codeigniter.com/user_guide/general/urls.html 20 | */ 21 | public function index() 22 | { 23 | $data["pagetitle"]="Home"; 24 | $this->load->model("ProductCat"); 25 | $this->load->model("admin/Product_model","Product"); 26 | 27 | $view["allProductCatList"]=$this->ProductCat->GetAlllProductCat(); 28 | 29 | $latestProducts = $this->Product->GetLatestProducts(12); 30 | $view["LatestProducts"] = array(); 31 | $view["LatestProducts2"] = array(); 32 | 33 | list($view["LatestProducts"], $view["LatestProducts2"]) = array_chunk($latestProducts, ceil(count($latestProducts) / 2)); 34 | 35 | 36 | $this->load->view('template/header',$data); 37 | $this->load->view('home/home_view',$view); 38 | $this->load->view('template/footer'); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /application/controllers/Product.php: -------------------------------------------------------------------------------- 1 | load->model('admin/Product_model',"Product"); 10 | } 11 | 12 | /** 13 | * Index Page for this controller. 14 | * 15 | * Maps to the following URL 16 | * http://example.com/index.php/welcome 17 | * - or - 18 | * http://example.com/index.php/welcome/index 19 | * - or - 20 | * Since this controller is set as the default controller in 21 | * config/routes.php, it's displayed at http://example.com/ 22 | * 23 | * So any other public methods not prefixed with an underscore will 24 | * map to /index.php/welcome/ 25 | * @see https://codeigniter.com/user_guide/general/urls.html 26 | */ 27 | 28 | public function index($slug,$productId) 29 | { 30 | $data["ProductDetail"] = $this->Product->GetProductDetail($slug,$productId); 31 | $data["RelatedProducts"]=""; 32 | $data["pagetitle"]=""; 33 | $data["SoldCount"]=0; 34 | $data["DeliveryCharges"]=200; 35 | 36 | $data["IsActive"]=0; 37 | 38 | if(strtotime($data["ProductDetail"]->SaleEndDate)>=strtotime(date("Y-m-d"))) 39 | { 40 | $data["IsActive"]=1; 41 | } 42 | 43 | if($data["ProductDetail"]) 44 | { 45 | $data["RelatedProducts"] = $this->Product->GetRelatedProducts($data["ProductDetail"]->ProductId,$data["ProductDetail"]->ProductCatId); 46 | $data["pagetitle"]=$data["ProductDetail"]->ProductName; 47 | } 48 | 49 | $this->load->view('template/header',$data); 50 | $this->load->view('product/detail_view',$data); 51 | $this->load->view('template/footer'); 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /application/controllers/ProductCategory.php: -------------------------------------------------------------------------------- 1 | load->model('admin/Product_model',"Product"); 10 | } 11 | 12 | public function index($slug,$productCatId) 13 | { 14 | $data["pagetitle"]="Product Category ".$slug; 15 | 16 | $params["productCatId"]=$productCatId; 17 | $params["productCatName"]=$slug; 18 | $params['limit'] = RECORDS_PER_PAGE; 19 | $params['offset'] = ($this->input->get('per_page')) ? $this->input->get('per_page') : 0; 20 | 21 | 22 | 23 | $view["activeProducts"]=$this->Product->GetProductCategory($params); 24 | 25 | $this->load->library('pagination'); 26 | 27 | 28 | $config['base_url'] = base_url()."/index.php/ProductCategory/?productCatId=".$params['productCatId']."&productCatName=".$params['productCatName'].""; 29 | $config['total_rows'] = sizeof($view["activeProducts"]); 30 | 31 | 32 | $config['per_page']=RECORDS_PER_PAGE; 33 | $config['page_query_string'] = true; 34 | $config['attributes'] = array('class' => 'pagination__next'); 35 | 36 | $this->pagination->initialize($config); 37 | 38 | 39 | 40 | $data["ProductCategory"]=$slug; 41 | 42 | 43 | $this->load->view('template/header',$data); 44 | $this->load->view('productcategory/index',$view); 45 | $this->load->view('template/footer'); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /application/controllers/Welcome.php: -------------------------------------------------------------------------------- 1 | 19 | * @see https://codeigniter.com/user_guide/general/urls.html 20 | */ 21 | public function index() 22 | { 23 | $this->load->view('welcome_message'); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /application/controllers/admin/Account.php: -------------------------------------------------------------------------------- 1 | load->model('admin/Account_model'); 12 | $this->load->library("form_validation"); 13 | } 14 | 15 | 16 | function login() 17 | { 18 | 19 | if(IsAdminLogin()==TRUE) 20 | { 21 | $this->load->view("admin/dashboard"); 22 | } 23 | 24 | 25 | 26 | 27 | $this->form_validation->set_rules('username1', 'Username', 'required'); 28 | $this->form_validation->set_rules('password1', 'Password', 'required'); 29 | 30 | 31 | 32 | //die(); 33 | if($this->form_validation->run() == TRUE) 34 | { 35 | 36 | $userName = $this->input->post("username1"); 37 | $password = md5($this->input->post("password1")); 38 | 39 | 40 | if($this->Account_model->Login($userName,$password)==TRUE) 41 | { 42 | $this->session->set_userdata("login",array("username"=>$userName,"isLogin"=>TRUE)); 43 | redirect("admin/dashboard"); 44 | } 45 | else{ 46 | $data["cserror"]="username or password is wrong"; 47 | $this->load->view("admin/account/login",$data); 48 | } 49 | } 50 | else{ 51 | $data["cserror"]=""; 52 | $this->load->view("admin/account/login",$data); 53 | } 54 | 55 | } 56 | 57 | function logout() 58 | { 59 | $this->session->unset_userdata("login"); 60 | redirect("admin/account/login"); 61 | 62 | } 63 | 64 | 65 | } 66 | -------------------------------------------------------------------------------- /application/controllers/admin/Contactus.php: -------------------------------------------------------------------------------- 1 | load->model('Contactus_model'); 13 | } 14 | 15 | function index() 16 | { 17 | $data["allData"]=$this->Contactus_model->get_all(); 18 | $data['_view'] = 'admin/contactus/index'; 19 | $this->load->view('admin/layouts/main',$data); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /application/controllers/admin/Customer.php: -------------------------------------------------------------------------------- 1 | load->model('Customer_model'); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /application/controllers/admin/Dashboard.php: -------------------------------------------------------------------------------- 1 | load->view('admin/layouts/main',$data); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /application/controllers/admin/Imageupload.php: -------------------------------------------------------------------------------- 1 | load->model('admin/Imageupload_model'); 13 | } 14 | 15 | function add() 16 | { 17 | 18 | if(isset($_POST) && count($_POST) > 0) 19 | { 20 | 21 | if (!empty($_FILES)) 22 | { 23 | $tempFile = $_FILES['file']['tmp_name']; 24 | $targetPath = $_SERVER['DOCUMENT_ROOT'] . '/uploads/'; 25 | $targetFile = $targetPath . $_FILES['file']['name']; 26 | move_uploaded_file($tempFile, $targetFile); 27 | // save data in database (if you like!) 28 | } 29 | 30 | } 31 | else 32 | { 33 | $data['_view'] = 'admin/imageupload/add'; 34 | $this->load->view('admin/layouts/main',$data); 35 | } 36 | } 37 | 38 | 39 | 40 | } 41 | -------------------------------------------------------------------------------- /application/controllers/admin/Productcat.php: -------------------------------------------------------------------------------- 1 | load->model('admin/Productcat_model'); 13 | } 14 | 15 | /* 16 | * Listing of productcat 17 | */ 18 | function index() 19 | { 20 | $params['limit'] = RECORDS_PER_PAGE; 21 | $params['offset'] = ($this->input->get('per_page')) ? $this->input->get('per_page') : 0; 22 | 23 | $config = $this->config->item('pagination'); 24 | $config['base_url'] = site_url('productcat/index?'); 25 | $config['total_rows'] = $this->Productcat_model->get_all_productcat_count(); 26 | $this->pagination->initialize($config); 27 | 28 | $data['productcat'] = $this->Productcat_model->get_all_productcat($params); 29 | 30 | $data['_view'] = 'admin/productcat/index'; 31 | $this->load->view('admin/layouts/main',$data); 32 | } 33 | 34 | /* 35 | * Adding a new productcat 36 | */ 37 | function add() 38 | { 39 | $this->load->library('form_validation'); 40 | 41 | $this->form_validation->set_rules('CatName','CatName','required'); 42 | 43 | if($this->form_validation->run()) 44 | { 45 | $params = array( 46 | 'CatName' => $this->input->post('CatName'), 47 | ); 48 | 49 | $productcat_id = $this->Productcat_model->add_productcat($params); 50 | redirect('admin/productcat/index'); 51 | } 52 | else 53 | { 54 | $data['_view'] = 'admin/productcat/add'; 55 | $this->load->view('admin/layouts/main',$data); 56 | } 57 | } 58 | 59 | /* 60 | * Editing a productcat 61 | */ 62 | function edit($ProductCatId) 63 | { 64 | // check if the productcat exists before trying to edit it 65 | $data['productcat'] = $this->Productcat_model->get_productcat($ProductCatId); 66 | 67 | if(isset($data['productcat']['ProductCatId'])) 68 | { 69 | $this->load->library('form_validation'); 70 | 71 | $this->form_validation->set_rules('CatName','CatName','required'); 72 | 73 | if($this->form_validation->run()) 74 | { 75 | $params = array( 76 | 'CatName' => $this->input->post('CatName'), 77 | ); 78 | 79 | $this->Productcat_model->update_productcat($ProductCatId,$params); 80 | redirect('admin/productcat/index'); 81 | } 82 | else 83 | { 84 | $data['_view'] = 'admin/productcat/edit'; 85 | $this->load->view('admin/layouts/main',$data); 86 | } 87 | } 88 | else 89 | show_error('The productcat you are trying to edit does not exist.'); 90 | } 91 | 92 | /* 93 | * Deleting productcat 94 | */ 95 | function remove($ProductCatId) 96 | { 97 | $productcat = $this->Productcat_model->get_productcat($ProductCatId); 98 | 99 | // check if the productcat exists before trying to delete it 100 | if(isset($productcat['ProductCatId'])) 101 | { 102 | $this->Productcat_model->delete_productcat($ProductCatId); 103 | redirect('productcat/index'); 104 | } 105 | else 106 | show_error('The productcat you are trying to delete does not exist.'); 107 | } 108 | 109 | } 110 | -------------------------------------------------------------------------------- /application/controllers/admin/Productgallery.php: -------------------------------------------------------------------------------- 1 | load->model('Productgallery_model'); 13 | } 14 | 15 | /* 16 | * Listing of productgallery 17 | */ 18 | function index() 19 | { 20 | $data['productgallery'] = $this->Productgallery_model->get_all_productgallery(); 21 | 22 | $data['_view'] = 'productgallery/index'; 23 | $this->load->view('layouts/main',$data); 24 | } 25 | 26 | /* 27 | * Adding a new productgallery 28 | */ 29 | function add() 30 | { 31 | if(isset($_POST) && count($_POST) > 0) 32 | { 33 | $params = array( 34 | 'IsFeatured' => $this->input->post('IsFeatured'), 35 | 'ProductId' => $this->input->post('ProductId'), 36 | 'ImagePath' => $this->input->post('ImagePath'), 37 | ); 38 | 39 | $productgallery_id = $this->Productgallery_model->add_productgallery($params); 40 | redirect('productgallery/index'); 41 | } 42 | else 43 | { 44 | $this->load->model('Product_model'); 45 | $data['all_product'] = $this->Product_model->get_all_product(); 46 | 47 | $data['_view'] = 'productgallery/add'; 48 | $this->load->view('layouts/main',$data); 49 | } 50 | } 51 | 52 | /* 53 | * Editing a productgallery 54 | */ 55 | function edit($ProductGalleryId) 56 | { 57 | // check if the productgallery exists before trying to edit it 58 | $data['productgallery'] = $this->Productgallery_model->get_productgallery($ProductGalleryId); 59 | 60 | if(isset($data['productgallery']['ProductGalleryId'])) 61 | { 62 | if(isset($_POST) && count($_POST) > 0) 63 | { 64 | $params = array( 65 | 'IsFeatured' => $this->input->post('IsFeatured'), 66 | 'ProductId' => $this->input->post('ProductId'), 67 | 'ImagePath' => $this->input->post('ImagePath'), 68 | ); 69 | 70 | $this->Productgallery_model->update_productgallery($ProductGalleryId,$params); 71 | redirect('productgallery/index'); 72 | } 73 | else 74 | { 75 | $this->load->model('Product_model'); 76 | $data['all_product'] = $this->Product_model->get_all_product(); 77 | 78 | $data['_view'] = 'productgallery/edit'; 79 | $this->load->view('layouts/main',$data); 80 | } 81 | } 82 | else 83 | show_error('The productgallery you are trying to edit does not exist.'); 84 | } 85 | 86 | /* 87 | * Deleting productgallery 88 | */ 89 | function remove($ProductGalleryId) 90 | { 91 | $productgallery = $this->Productgallery_model->get_productgallery($ProductGalleryId); 92 | 93 | // check if the productgallery exists before trying to delete it 94 | if(isset($productgallery['ProductGalleryId'])) 95 | { 96 | $this->Productgallery_model->delete_productgallery($ProductGalleryId); 97 | redirect('productgallery/index'); 98 | } 99 | else 100 | show_error('The productgallery you are trying to delete does not exist.'); 101 | } 102 | 103 | } 104 | -------------------------------------------------------------------------------- /application/controllers/admin/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

    Directory access is forbidden.

    9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/controllers/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

    Directory access is forbidden.

    9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/core/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

    Directory access is forbidden.

    9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/helpers/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

    Directory access is forbidden.

    9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/hooks/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

    Directory access is forbidden.

    9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

    Directory access is forbidden.

    9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/language/english/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

    Directory access is forbidden.

    9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/libraries/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

    Directory access is forbidden.

    9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/models/Contactus_model.php: -------------------------------------------------------------------------------- 1 | db->insert("contactus",$param); 7 | } 8 | 9 | public function get_all() 10 | { 11 | $this->db->order_by("createddate","desc"); 12 | return $this->db->get("contactus")->result_array(); 13 | } 14 | 15 | } -------------------------------------------------------------------------------- /application/models/ProductCat.php: -------------------------------------------------------------------------------- 1 | db->get("productcat"); 7 | 8 | return $query->result(); 9 | } 10 | 11 | } -------------------------------------------------------------------------------- /application/models/admin/Account_model.php: -------------------------------------------------------------------------------- 1 | db->where(array("username"=>$username,"password"=>$password)); 18 | $result = $this->db->get("user")->row(); 19 | 20 | if($result) 21 | { 22 | return TRUE; 23 | } 24 | 25 | return FALSE; 26 | } 27 | 28 | /* 29 | * Get order by OrderId 30 | */ 31 | function get_order($OrderId) 32 | { 33 | return $this->db->query("select o.OrderId,os.OrderStatus,o.OrderNotes,o.CreatedDate as OrderDate,p.ProductId,p.ProductName,c.FirstName,c.LastName, 34 | o.CODAmount,o.ShippingCost,c.CustomerId, 35 | c.Cell1,c.Cell2,c.ShippingAddress,c.City,c.NearMostFamousPlace,c.Email 36 | from Orders o 37 | join OrderStatus os on o.OrderStatusId = os.OrderStatusId 38 | join product p on o.ProductId=p.ProductId 39 | join customer c on o.customerid = c.CustomerId 40 | where o.OrderId=".$OrderId." 41 | order by o.OrderId desc 42 | ")->row_array(); 43 | } 44 | 45 | /* 46 | * Get all orders count 47 | */ 48 | function get_all_orders_count($orderStatusId) 49 | { 50 | $this->db->where('isdelete',0); 51 | $this->db->where('orderstatusid',$orderStatusId); 52 | $this->db->from('orders'); 53 | return $this->db->count_all_results(); 54 | } 55 | 56 | /* 57 | * Get all orders 58 | */ 59 | function get_all_orders($params = array()) 60 | { 61 | 62 | return $this->db->query("select o.OrderId,os.OrderStatus,o.OrderNotes,o.CreatedDate as OrderDate,p.ProductName,concat(c.FirstName,' ',c.LastName) as CustomerName, (o.CODAmount+o.ShippingCost) as TotalCOD, 63 | c.Cell1,c.Cell2,c.ShippingAddress,c.City 64 | from Orders o 65 | join OrderStatus os on o.OrderStatusId = os.OrderStatusId 66 | join product p on o.ProductId=p.ProductId 67 | join customer c on o.customerid = c.CustomerId 68 | where o.isdelete=0 69 | and os.OrderStatusId=".$params['orderstatusid']." 70 | order by o.OrderId desc 71 | limit ".$params['limit']." offset ".$params['offset']." 72 | 73 | ")->result_array(); 74 | 75 | 76 | } 77 | 78 | /* 79 | * function to add new order 80 | */ 81 | function add_order($params) 82 | { 83 | $this->db->insert('orders',$params); 84 | return $this->db->insert_id(); 85 | } 86 | 87 | /* 88 | * function to update order 89 | */ 90 | function update_order($OrderId,$params) 91 | { 92 | $this->db->where('OrderId',$OrderId); 93 | return $this->db->update('orders',$params); 94 | } 95 | 96 | function update_order_status($OrderId,$orderStatusId) 97 | { 98 | $this->db->where('OrderId',$OrderId); 99 | 100 | $params = array("OrderStatusId"=>$orderStatusId); 101 | 102 | return $this->db->update('orders',$params); 103 | } 104 | 105 | /* 106 | * function to delete order 107 | */ 108 | function delete_order($OrderId) 109 | { 110 | 111 | $this->db->where('OrderId',$OrderId); 112 | return $this->db->update('orders',array("isdelete"=>1)); 113 | 114 | } 115 | } 116 | -------------------------------------------------------------------------------- /application/models/admin/AndroidSMS_model.php: -------------------------------------------------------------------------------- 1 | db->get_where("wp_ars_SMSGatewaySendSms",array("issent"=>0))->result(); 17 | } 18 | function UpdateSentSMS($id) 19 | { 20 | $this->db->where("ID",$id); 21 | $this->db->update("wp_ars_SMSGatewaySendSms",array("issent"=>1)); 22 | } 23 | 24 | } -------------------------------------------------------------------------------- /application/models/admin/Customer_model.php: -------------------------------------------------------------------------------- 1 | db->get_where('customer',array('CustomerId'=>$CustomerId))->row_array(); 20 | } 21 | 22 | /* 23 | * Get all customer 24 | */ 25 | function get_all_customer() 26 | { 27 | $this->db->order_by('CustomerId', 'desc'); 28 | return $this->db->get('customer')->result_array(); 29 | } 30 | 31 | /* 32 | * function to add new customer 33 | */ 34 | function add_customer($params) 35 | { 36 | $this->db->insert('customer',$params); 37 | return $this->db->insert_id(); 38 | } 39 | 40 | /* 41 | * function to update customer 42 | */ 43 | function update_customer($CustomerId,$params) 44 | { 45 | $this->db->where('CustomerId',$CustomerId); 46 | return $this->db->update('customer',$params); 47 | } 48 | 49 | /* 50 | * function to delete customer 51 | */ 52 | function delete_customer($CustomerId) 53 | { 54 | return $this->db->delete('customer',array('CustomerId'=>$CustomerId)); 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /application/models/admin/Imageupload_model.php: -------------------------------------------------------------------------------- 1 | db->get_where('product',array('ProductId'=>$ProductId))->row_array(); 20 | } 21 | 22 | /* 23 | * Get all product count 24 | */ 25 | function get_all_product_count() 26 | { 27 | $this->db->from('product'); 28 | return $this->db->count_all_results(); 29 | } 30 | 31 | /* 32 | * Get all product 33 | */ 34 | function get_all_product($params = array()) 35 | { 36 | $this->db->order_by('ProductId', 'desc'); 37 | if(isset($params) && !empty($params)) 38 | { 39 | $this->db->limit($params['limit'], $params['offset']); 40 | } 41 | return $this->db->get('product')->result_array(); 42 | } 43 | 44 | /* 45 | * function to add new product 46 | */ 47 | function add_product($params) 48 | { 49 | $this->db->insert('product',$params); 50 | return $this->db->insert_id(); 51 | } 52 | 53 | /* 54 | * function to update product 55 | */ 56 | function update_product($ProductId,$params) 57 | { 58 | $this->db->where('ProductId',$ProductId); 59 | return $this->db->update('product',$params); 60 | } 61 | 62 | /* 63 | * function to delete product 64 | */ 65 | function delete_product($ProductId) 66 | { 67 | return $this->db->delete('product',array('ProductId'=>$ProductId)); 68 | } 69 | } 70 | -------------------------------------------------------------------------------- /application/models/admin/OrderStatusSummary_model.php: -------------------------------------------------------------------------------- 1 | serialize($data),"CreatedDate"=>$createdDate); 13 | $this->db->insert("OrderStatusSummary",$array); 14 | } 15 | 16 | function getSavedData() 17 | { 18 | $this->db->order_by('CreatedDate','desc'); 19 | return $this->db->get("OrderStatusSummary")->result(); 20 | } 21 | 22 | function getObject($id) 23 | { 24 | $this->db->where("OrderStatusSummaryId",$id); 25 | return $this->db->get("OrderStatusSummary")->row(); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /application/models/admin/OrderStatus_model.php: -------------------------------------------------------------------------------- 1 | db->where("orderstatus","Processing"); 20 | return $this->db->get("orderstatus")->row(); 21 | } 22 | 23 | function get_order_status_name($orderStatusId) 24 | { 25 | $this->db->where("orderstatusid",$orderStatusId); 26 | $result = $this->db->get("orderstatus")->row(); 27 | 28 | if($result) 29 | { 30 | return $result->OrderStatus; 31 | } 32 | 33 | return ""; 34 | } 35 | 36 | 37 | function get_all_order_status() 38 | { 39 | return $this->db->get("orderstatus")->result(); 40 | } 41 | 42 | function get_order_status_by_count() 43 | { 44 | return $this->db->query("select *,(select count(*) from orders o where o.IsDelete=0 and o.OrderStatusId=os.OrderStatusId)as OrderStatusCount from orderstatus os ")->result(); 45 | } 46 | 47 | /* 48 | * Get all orders count 49 | */ 50 | function get_all_orders_count() 51 | { 52 | $this->db->where('isdelete',0); 53 | $this->db->from('orders'); 54 | return $this->db->count_all_results(); 55 | } 56 | 57 | /* 58 | * Get all orders 59 | */ 60 | function get_all_orders($params = array()) 61 | { 62 | if(isset($params) && !empty($params)) 63 | { 64 | $this->db->limit($params['limit'], $params['offset']); 65 | } 66 | 67 | return $this->db->query("select o.OrderId,o.OrderStatus,o.CreatedDate as OrderDate,p.ProductName,concat(c.FirstName,' ',c.LastName) as CustomerName, (o.CODAmount+o.ShippingCost) as TotalCOD, 68 | c.Cell1,c.Cell2,c.ShippingAddress,c.City 69 | from Orders o 70 | join product p on o.ProductId=p.ProductId 71 | join customer c on o.customerid = c.CustomerId 72 | where o.isdelete=0 73 | order by o.OrderId desc 74 | ")->result_array(); 75 | 76 | 77 | } 78 | 79 | /* 80 | * function to add new order 81 | */ 82 | function add_order($params) 83 | { 84 | $this->db->insert('orders',$params); 85 | return $this->db->insert_id(); 86 | } 87 | 88 | 89 | 90 | /* 91 | * function to delete order 92 | */ 93 | function delete_order($OrderId) 94 | { 95 | 96 | $this->db->where('OrderId',$OrderId); 97 | return $this->db->update('orders',array("isdelete"=>1)); 98 | 99 | } 100 | 101 | function get_orderstatus_list($fromDate,$toDate,$orderStatusId,$city) 102 | { 103 | 104 | return $this->db->query("select o.OrderId,os.OrderStatus,o.OrderNotes,o.CreatedDate as OrderDate,p.ProductName,concat(c.FirstName,' ',c.LastName) as CustomerName, (o.CODAmount+o.ShippingCost) as TotalCOD, 105 | c.Cell1,c.Cell2,c.ShippingAddress,c.City 106 | from Orders o 107 | join OrderStatus os on o.OrderStatusId = os.OrderStatusId 108 | join product p on o.ProductId=p.ProductId 109 | join customer c on o.customerid = c.CustomerId 110 | where o.isdelete=0 111 | and c.City='".$city."' 112 | and os.OrderStatusId=".$orderStatusId." 113 | and cast(o.CreatedDate as date)>='".$fromDate."' 114 | and cast(o.CreatedDate as date)<='".$toDate."' 115 | order by o.OrderId desc")->result_array(); 116 | } 117 | } 118 | -------------------------------------------------------------------------------- /application/models/admin/Productcat_model.php: -------------------------------------------------------------------------------- 1 | db->get_where('productcat',array('ProductCatId'=>$ProductCatId))->row_array(); 22 | } 23 | 24 | /* 25 | * Get all productcat count 26 | */ 27 | function get_all_productcat_count() 28 | { 29 | $this->db->from('productcat'); 30 | return $this->db->count_all_results(); 31 | } 32 | 33 | /* 34 | * Get all productcat 35 | */ 36 | function get_all_productcat($params = array()) 37 | { 38 | $this->db->order_by('ProductCatId', 'desc'); 39 | if(isset($params) && !empty($params)) 40 | { 41 | $this->db->limit($params['limit'], $params['offset']); 42 | } 43 | return $this->db->get('productcat')->result_array(); 44 | } 45 | 46 | function get_all_productcat_dropdown() 47 | { 48 | $this->db->order_by('catname', 'asc'); 49 | 50 | $result = $this->db->get('productcat')->result_array(); 51 | 52 | $returnArray=array(); 53 | foreach($result as $val) 54 | { 55 | $returnArray[$val["ProductCatId"]]=$val["CatName"]; 56 | } 57 | 58 | return $returnArray; 59 | } 60 | 61 | /* 62 | * function to add new productcat 63 | */ 64 | function add_productcat($params) 65 | { 66 | $this->db->insert('productcat',$params); 67 | return $this->db->insert_id(); 68 | } 69 | 70 | /* 71 | * function to update productcat 72 | */ 73 | function update_productcat($ProductCatId,$params) 74 | { 75 | $this->db->where('ProductCatId',$ProductCatId); 76 | return $this->db->update('productcat',$params); 77 | } 78 | 79 | /* 80 | * function to delete productcat 81 | */ 82 | function delete_productcat($ProductCatId) 83 | { 84 | return $this->db->delete('productcat',array('ProductCatId'=>$ProductCatId)); 85 | } 86 | } 87 | -------------------------------------------------------------------------------- /application/models/admin/Productgallery_model.php: -------------------------------------------------------------------------------- 1 | db->get_where('productgallery',array('ProductGalleryId'=>$ProductGalleryId))->row_array(); 20 | } 21 | 22 | /* 23 | * Get all productgallery 24 | */ 25 | function get_all_productgallery() 26 | { 27 | $this->db->order_by('ProductGalleryId', 'desc'); 28 | return $this->db->get('productgallery')->result_array(); 29 | } 30 | 31 | function get_productimages($productId) 32 | { 33 | return $this->db->get_where('productgallery',array("productid"=>$productId,"isdelete"=>0,"isfeatured"=>0))->result_array(); 34 | } 35 | 36 | function get_product_featureimage($productId) 37 | { 38 | $this->db->limit(1); 39 | return $this->db->get_where('productgallery',array("productid"=>$productId,"isdelete"=>0,"isfeatured"=>1))->row(); 40 | } 41 | 42 | /* 43 | * function to add new productgallery 44 | */ 45 | function add_productgallery($params) 46 | { 47 | $this->db->insert('productgallery',$params); 48 | return $this->db->insert_id(); 49 | } 50 | 51 | /* 52 | * function to update productgallery 53 | */ 54 | function update_productgallery($ProductGalleryId,$params) 55 | { 56 | $this->db->where('ProductGalleryId',$ProductGalleryId); 57 | return $this->db->update('productgallery',$params); 58 | } 59 | 60 | 61 | function update_featuredImage($ProductId,$params) 62 | { 63 | $this->db->where(array("ProductId"=>$ProductId,"IsFeatured"=>1)); 64 | $this->db->update("productgallery",array("IsDelete"=>1)); 65 | 66 | $this->add_productgallery($params); 67 | } 68 | 69 | 70 | /* 71 | * function to delete productgallery 72 | */ 73 | function delete_productgallery($ProductGalleryId) 74 | { 75 | $this->db->where(array('productgalleryid'=>$ProductGalleryId)); 76 | return $this->db->update('productgallery',array("isdelete"=>1)); 77 | } 78 | } 79 | -------------------------------------------------------------------------------- /application/models/admin/Tcsexcel_model.php: -------------------------------------------------------------------------------- 1 | db->query("select concat(c.FirstName,' ',c.LastName,'(',c.cell2,')') as `Consignee Name`, 18 | concat(c.ShippingAddress,'(','Famous Place:',c.NearMostFamousPlace,')') as `Consignee Address`, 19 | c.cell1 as `Consignee Mobile Number`, c.email as `Consignee Email`, 20 | c.city as `Destination City`,'1' as `Pieces`,'0.5' as `Weight`,(o.CODAmount+o.ShippingCost) as `COD Amount`,concat('bkey-',o.OrderId) as `Customer Reference Number`, 21 | 'Yes' as `Special Handling`, 22 | 'O' as `Service Type`, 23 | concat(p.productname,' ',o.ProductVariation) as `Product Details`, 24 | 'Please Call Before Delivery' as `Remarks` 25 | from orders o 26 | join orderstatus os on o.OrderStatusId = os.OrderStatusId 27 | join product p on o.ProductId=p.ProductId 28 | join customer c on o.customerid = c.CustomerId 29 | where o.isdelete=0 30 | and os.OrderStatus='Tcs Confirm' 31 | "); 32 | 33 | 34 | 35 | } 36 | 37 | 38 | } 39 | -------------------------------------------------------------------------------- /application/models/admin/Tcspayment_model.php: -------------------------------------------------------------------------------- 1 | db->query("select * from tcspayment where CNNumber='".$param["CNNumber"]."' ")->row()) 18 | { 19 | $id=$this->db->insert("tcspayment",$param); 20 | if($id) 21 | { 22 | return TRUE; 23 | 24 | } 25 | } 26 | return FALSE; 27 | } 28 | 29 | function add_payment($param) 30 | { 31 | $this->db->where("CNNumber",$param["CNNumber"]); 32 | unset($param["CNNumber"]); 33 | 34 | 35 | $this->db->update("tcspayment",$param); 36 | if($this->db->affected_rows()==1) 37 | { 38 | return TRUE; 39 | } 40 | return FALSE; 41 | 42 | } 43 | 44 | 45 | function GetPaymentDetail($param) 46 | { 47 | if($param["filter"]=="unpaid") 48 | { 49 | $this->db->where("CODAmount",0); 50 | } 51 | if($param["filter"]=="complete") 52 | { 53 | $this->db->where("CODAmount>",0); 54 | $this->db->where("ShippingCharges>",0); 55 | } 56 | 57 | if($param["fromDate"] && $param["toDate"]) 58 | { 59 | $this->db->where("BookingDate>=",$param["fromDate"]); 60 | $this->db->where("BookingDate<=",$param["toDate"]); 61 | } 62 | 63 | if($param["deliveryStatus"]) 64 | { 65 | $this->db->where("DeliveryStatus",$param["deliveryStatus"]); 66 | } 67 | 68 | if($param["sort"]=="BookingDateAsc") 69 | { 70 | $this->db->order_by("BookingDate","asc"); 71 | } 72 | else if($param["sort"]=="BookingDateDesc") 73 | { 74 | $this->db->order_by("BookingDate","desc"); 75 | } 76 | 77 | return $this->db->get("tcspayment")->result(); 78 | } 79 | } 80 | -------------------------------------------------------------------------------- /application/models/admin/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

    Directory access is forbidden.

    9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/models/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

    Directory access is forbidden.

    9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/third_party/PHPExcel/Autoloader.php: -------------------------------------------------------------------------------- 1 | = 0) { 52 | return spl_autoload_register(array('PHPExcel_Autoloader', 'load'), true, true); 53 | } else { 54 | return spl_autoload_register(array('PHPExcel_Autoloader', 'load')); 55 | } 56 | } 57 | 58 | /** 59 | * Autoload a class identified by name 60 | * 61 | * @param string $pClassName Name of the object to load 62 | */ 63 | public static function load($pClassName) 64 | { 65 | if ((class_exists($pClassName, false)) || (strpos($pClassName, 'PHPExcel') !== 0)) { 66 | // Either already loaded, or not a PHPExcel class request 67 | return false; 68 | } 69 | 70 | $pClassFilePath = PHPEXCEL_ROOT . 71 | str_replace('_', DIRECTORY_SEPARATOR, $pClassName) . 72 | '.php'; 73 | 74 | if ((file_exists($pClassFilePath) === false) || (is_readable($pClassFilePath) === false)) { 75 | // Can't load 76 | return false; 77 | } 78 | 79 | require($pClassFilePath); 80 | } 81 | } 82 | -------------------------------------------------------------------------------- /application/third_party/PHPExcel/CachedObjectStorage/ICache.php: -------------------------------------------------------------------------------- 1 | cellCache[$pCoord] = $cell; 50 | 51 | // Set current entry to the new/updated entry 52 | $this->currentObjectID = $pCoord; 53 | 54 | return $cell; 55 | } 56 | 57 | 58 | /** 59 | * Get cell at a specific coordinate 60 | * 61 | * @param string $pCoord Coordinate of the cell 62 | * @throws PHPExcel_Exception 63 | * @return PHPExcel_Cell Cell that was found, or null if not found 64 | */ 65 | public function getCacheData($pCoord) 66 | { 67 | // Check if the entry that has been requested actually exists 68 | if (!isset($this->cellCache[$pCoord])) { 69 | $this->currentObjectID = null; 70 | // Return null if requested entry doesn't exist in cache 71 | return null; 72 | } 73 | 74 | // Set current entry to the requested entry 75 | $this->currentObjectID = $pCoord; 76 | 77 | // Return requested entry 78 | return $this->cellCache[$pCoord]; 79 | } 80 | 81 | 82 | /** 83 | * Clone the cell collection 84 | * 85 | * @param PHPExcel_Worksheet $parent The new worksheet 86 | */ 87 | public function copyCellCollection(PHPExcel_Worksheet $parent) 88 | { 89 | parent::copyCellCollection($parent); 90 | 91 | $newCollection = array(); 92 | foreach ($this->cellCache as $k => &$cell) { 93 | $newCollection[$k] = clone $cell; 94 | $newCollection[$k]->attach($this); 95 | } 96 | 97 | $this->cellCache = $newCollection; 98 | } 99 | 100 | /** 101 | * Clear the cell collection and disconnect from our parent 102 | * 103 | */ 104 | public function unsetWorksheetCells() 105 | { 106 | // Because cells are all stored as intact objects in memory, we need to detach each one from the parent 107 | foreach ($this->cellCache as $k => &$cell) { 108 | $cell->detach(); 109 | $this->cellCache[$k] = null; 110 | } 111 | unset($cell); 112 | 113 | $this->cellCache = array(); 114 | 115 | // detach ourself from the worksheet, so that it can then delete this object successfully 116 | $this->parent = null; 117 | } 118 | } 119 | -------------------------------------------------------------------------------- /application/third_party/PHPExcel/CachedObjectStorage/MemoryGZip.php: -------------------------------------------------------------------------------- 1 | currentCellIsDirty && !empty($this->currentObjectID)) { 40 | $this->currentObject->detach(); 41 | 42 | $this->cellCache[$this->currentObjectID] = gzdeflate(serialize($this->currentObject)); 43 | $this->currentCellIsDirty = false; 44 | } 45 | $this->currentObjectID = $this->currentObject = null; 46 | } 47 | 48 | 49 | /** 50 | * Add or Update a cell in cache identified by coordinate address 51 | * 52 | * @param string $pCoord Coordinate address of the cell to update 53 | * @param PHPExcel_Cell $cell Cell to update 54 | * @return PHPExcel_Cell 55 | * @throws PHPExcel_Exception 56 | */ 57 | public function addCacheData($pCoord, PHPExcel_Cell $cell) 58 | { 59 | if (($pCoord !== $this->currentObjectID) && ($this->currentObjectID !== null)) { 60 | $this->storeData(); 61 | } 62 | 63 | $this->currentObjectID = $pCoord; 64 | $this->currentObject = $cell; 65 | $this->currentCellIsDirty = true; 66 | 67 | return $cell; 68 | } 69 | 70 | 71 | /** 72 | * Get cell at a specific coordinate 73 | * 74 | * @param string $pCoord Coordinate of the cell 75 | * @throws PHPExcel_Exception 76 | * @return PHPExcel_Cell Cell that was found, or null if not found 77 | */ 78 | public function getCacheData($pCoord) 79 | { 80 | if ($pCoord === $this->currentObjectID) { 81 | return $this->currentObject; 82 | } 83 | $this->storeData(); 84 | 85 | // Check if the entry that has been requested actually exists 86 | if (!isset($this->cellCache[$pCoord])) { 87 | // Return null if requested entry doesn't exist in cache 88 | return null; 89 | } 90 | 91 | // Set current entry to the requested entry 92 | $this->currentObjectID = $pCoord; 93 | $this->currentObject = unserialize(gzinflate($this->cellCache[$pCoord])); 94 | // Re-attach this as the cell's parent 95 | $this->currentObject->attach($this); 96 | 97 | // Return requested entry 98 | return $this->currentObject; 99 | } 100 | 101 | 102 | /** 103 | * Get a list of all cell addresses currently held in cache 104 | * 105 | * @return string[] 106 | */ 107 | public function getCellList() 108 | { 109 | if ($this->currentObjectID !== null) { 110 | $this->storeData(); 111 | } 112 | 113 | return parent::getCellList(); 114 | } 115 | 116 | 117 | /** 118 | * Clear the cell collection and disconnect from our parent 119 | * 120 | * @return void 121 | */ 122 | public function unsetWorksheetCells() 123 | { 124 | if (!is_null($this->currentObject)) { 125 | $this->currentObject->detach(); 126 | $this->currentObject = $this->currentObjectID = null; 127 | } 128 | $this->cellCache = array(); 129 | 130 | // detach ourself from the worksheet, so that it can then delete this object successfully 131 | $this->parent = null; 132 | } 133 | } 134 | -------------------------------------------------------------------------------- /application/third_party/PHPExcel/CachedObjectStorage/MemorySerialized.php: -------------------------------------------------------------------------------- 1 | currentCellIsDirty && !empty($this->currentObjectID)) { 40 | $this->currentObject->detach(); 41 | 42 | $this->cellCache[$this->currentObjectID] = serialize($this->currentObject); 43 | $this->currentCellIsDirty = false; 44 | } 45 | $this->currentObjectID = $this->currentObject = null; 46 | } 47 | 48 | /** 49 | * Add or Update a cell in cache identified by coordinate address 50 | * 51 | * @param string $pCoord Coordinate address of the cell to update 52 | * @param PHPExcel_Cell $cell Cell to update 53 | * @return PHPExcel_Cell 54 | * @throws PHPExcel_Exception 55 | */ 56 | public function addCacheData($pCoord, PHPExcel_Cell $cell) 57 | { 58 | if (($pCoord !== $this->currentObjectID) && ($this->currentObjectID !== null)) { 59 | $this->storeData(); 60 | } 61 | 62 | $this->currentObjectID = $pCoord; 63 | $this->currentObject = $cell; 64 | $this->currentCellIsDirty = true; 65 | 66 | return $cell; 67 | } 68 | 69 | /** 70 | * Get cell at a specific coordinate 71 | * 72 | * @param string $pCoord Coordinate of the cell 73 | * @throws PHPExcel_Exception 74 | * @return PHPExcel_Cell Cell that was found, or null if not found 75 | */ 76 | public function getCacheData($pCoord) 77 | { 78 | if ($pCoord === $this->currentObjectID) { 79 | return $this->currentObject; 80 | } 81 | $this->storeData(); 82 | 83 | // Check if the entry that has been requested actually exists 84 | if (!isset($this->cellCache[$pCoord])) { 85 | // Return null if requested entry doesn't exist in cache 86 | return null; 87 | } 88 | 89 | // Set current entry to the requested entry 90 | $this->currentObjectID = $pCoord; 91 | $this->currentObject = unserialize($this->cellCache[$pCoord]); 92 | // Re-attach this as the cell's parent 93 | $this->currentObject->attach($this); 94 | 95 | // Return requested entry 96 | return $this->currentObject; 97 | } 98 | 99 | /** 100 | * Get a list of all cell addresses currently held in cache 101 | * 102 | * @return string[] 103 | */ 104 | public function getCellList() 105 | { 106 | if ($this->currentObjectID !== null) { 107 | $this->storeData(); 108 | } 109 | 110 | return parent::getCellList(); 111 | } 112 | 113 | /** 114 | * Clear the cell collection and disconnect from our parent 115 | * 116 | * @return void 117 | */ 118 | public function unsetWorksheetCells() 119 | { 120 | if (!is_null($this->currentObject)) { 121 | $this->currentObject->detach(); 122 | $this->currentObject = $this->currentObjectID = null; 123 | } 124 | $this->cellCache = array(); 125 | 126 | // detach ourself from the worksheet, so that it can then delete this object successfully 127 | $this->parent = null; 128 | } 129 | } 130 | -------------------------------------------------------------------------------- /application/third_party/PHPExcel/CalcEngine/CyclicReferenceStack.php: -------------------------------------------------------------------------------- 1 | stack); 45 | } 46 | 47 | /** 48 | * Push a new entry onto the stack 49 | * 50 | * @param mixed $value 51 | */ 52 | public function push($value) 53 | { 54 | $this->stack[$value] = $value; 55 | } 56 | 57 | /** 58 | * Pop the last entry from the stack 59 | * 60 | * @return mixed 61 | */ 62 | public function pop() 63 | { 64 | return array_pop($this->stack); 65 | } 66 | 67 | /** 68 | * Test to see if a specified entry exists on the stack 69 | * 70 | * @param mixed $value The value to test 71 | */ 72 | public function onStack($value) 73 | { 74 | return isset($this->stack[$value]); 75 | } 76 | 77 | /** 78 | * Clear the stack 79 | */ 80 | public function clear() 81 | { 82 | $this->stack = array(); 83 | } 84 | 85 | /** 86 | * Return an array of all entries on the stack 87 | * 88 | * @return mixed[] 89 | */ 90 | public function showStack() 91 | { 92 | return $this->stack; 93 | } 94 | } 95 | -------------------------------------------------------------------------------- /application/third_party/PHPExcel/CalcEngine/Logger.php: -------------------------------------------------------------------------------- 1 | cellStack = $stack; 71 | } 72 | 73 | /** 74 | * Enable/Disable Calculation engine logging 75 | * 76 | * @param boolean $pValue 77 | */ 78 | public function setWriteDebugLog($pValue = false) 79 | { 80 | $this->writeDebugLog = $pValue; 81 | } 82 | 83 | /** 84 | * Return whether calculation engine logging is enabled or disabled 85 | * 86 | * @return boolean 87 | */ 88 | public function getWriteDebugLog() 89 | { 90 | return $this->writeDebugLog; 91 | } 92 | 93 | /** 94 | * Enable/Disable echoing of debug log information 95 | * 96 | * @param boolean $pValue 97 | */ 98 | public function setEchoDebugLog($pValue = false) 99 | { 100 | $this->echoDebugLog = $pValue; 101 | } 102 | 103 | /** 104 | * Return whether echoing of debug log information is enabled or disabled 105 | * 106 | * @return boolean 107 | */ 108 | public function getEchoDebugLog() 109 | { 110 | return $this->echoDebugLog; 111 | } 112 | 113 | /** 114 | * Write an entry to the calculation engine debug log 115 | */ 116 | public function writeDebugLog() 117 | { 118 | // Only write the debug log if logging is enabled 119 | if ($this->writeDebugLog) { 120 | $message = implode(func_get_args()); 121 | $cellReference = implode(' -> ', $this->cellStack->showStack()); 122 | if ($this->echoDebugLog) { 123 | echo $cellReference, 124 | ($this->cellStack->count() > 0 ? ' => ' : ''), 125 | $message, 126 | PHP_EOL; 127 | } 128 | $this->debugLog[] = $cellReference . 129 | ($this->cellStack->count() > 0 ? ' => ' : '') . 130 | $message; 131 | } 132 | } 133 | 134 | /** 135 | * Clear the calculation engine debug log 136 | */ 137 | public function clearLog() 138 | { 139 | $this->debugLog = array(); 140 | } 141 | 142 | /** 143 | * Return the calculation engine debug log 144 | * 145 | * @return string[] 146 | */ 147 | public function getLog() 148 | { 149 | return $this->debugLog; 150 | } 151 | } 152 | -------------------------------------------------------------------------------- /application/third_party/PHPExcel/Calculation/Exception.php: -------------------------------------------------------------------------------- 1 | line = $line; 43 | $e->file = $file; 44 | throw $e; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /application/third_party/PHPExcel/Calculation/ExceptionHandler.php: -------------------------------------------------------------------------------- 1 | category = $pCategory; 77 | $this->excelName = $pExcelName; 78 | $this->phpExcelName = $pPHPExcelName; 79 | } else { 80 | throw new PHPExcel_Calculation_Exception("Invalid parameters passed."); 81 | } 82 | } 83 | 84 | /** 85 | * Get Category (represented by CATEGORY_*) 86 | * 87 | * @return string 88 | */ 89 | public function getCategory() 90 | { 91 | return $this->category; 92 | } 93 | 94 | /** 95 | * Set Category (represented by CATEGORY_*) 96 | * 97 | * @param string $value 98 | * @throws PHPExcel_Calculation_Exception 99 | */ 100 | public function setCategory($value = null) 101 | { 102 | if (!is_null($value)) { 103 | $this->category = $value; 104 | } else { 105 | throw new PHPExcel_Calculation_Exception("Invalid parameter passed."); 106 | } 107 | } 108 | 109 | /** 110 | * Get Excel name 111 | * 112 | * @return string 113 | */ 114 | public function getExcelName() 115 | { 116 | return $this->excelName; 117 | } 118 | 119 | /** 120 | * Set Excel name 121 | * 122 | * @param string $value 123 | */ 124 | public function setExcelName($value) 125 | { 126 | $this->excelName = $value; 127 | } 128 | 129 | /** 130 | * Get PHPExcel name 131 | * 132 | * @return string 133 | */ 134 | public function getPHPExcelName() 135 | { 136 | return $this->phpExcelName; 137 | } 138 | 139 | /** 140 | * Set PHPExcel name 141 | * 142 | * @param string $value 143 | */ 144 | public function setPHPExcelName($value) 145 | { 146 | $this->phpExcelName = $value; 147 | } 148 | } 149 | -------------------------------------------------------------------------------- /application/third_party/PHPExcel/Calculation/functionlist.txt: -------------------------------------------------------------------------------- 1 | ABS 2 | ACCRINT 3 | ACCRINTM 4 | ACOS 5 | ACOSH 6 | ADDRESS 7 | AMORDEGRC 8 | AMORLINC 9 | AND 10 | AREAS 11 | ASC 12 | ASIN 13 | ASINH 14 | ATAN 15 | ATAN2 16 | ATANH 17 | AVEDEV 18 | AVERAGE 19 | AVERAGEA 20 | AVERAGEIF 21 | AVERAGEIFS 22 | BAHTTEXT 23 | BESSELI 24 | BESSELJ 25 | BESSELK 26 | BESSELY 27 | BETADIST 28 | BETAINV 29 | BIN2DEC 30 | BIN2HEX 31 | BIN2OCT 32 | BINOMDIST 33 | CEILING 34 | CELL 35 | CHAR 36 | CHIDIST 37 | CHIINV 38 | CHITEST 39 | CHOOSE 40 | CLEAN 41 | CODE 42 | COLUMN 43 | COLUMNS 44 | COMBIN 45 | COMPLEX 46 | CONCATENATE 47 | CONFIDENCE 48 | CONVERT 49 | CORREL 50 | COS 51 | COSH 52 | COUNT 53 | COUNTA 54 | COUNTBLANK 55 | COUNTIF 56 | COUNTIFS 57 | COUPDAYBS 58 | COUPDAYBS 59 | COUPDAYSNC 60 | COUPNCD 61 | COUPNUM 62 | COUPPCD 63 | COVAR 64 | CRITBINOM 65 | CUBEKPIMEMBER 66 | CUBEMEMBER 67 | CUBEMEMBERPROPERTY 68 | CUBERANKEDMEMBER 69 | CUBESET 70 | CUBESETCOUNT 71 | CUBEVALUE 72 | CUMIPMT 73 | CUMPRINC 74 | DATE 75 | DATEDIF 76 | DATEVALUE 77 | DAVERAGE 78 | DAY 79 | DAYS360 80 | DB 81 | DCOUNT 82 | DCOUNTA 83 | DDB 84 | DEC2BIN 85 | DEC2HEX 86 | DEC2OCT 87 | DEGREES 88 | DELTA 89 | DEVSQ 90 | DGET 91 | DISC 92 | DMAX 93 | DMIN 94 | DOLLAR 95 | DOLLARDE 96 | DOLLARFR 97 | DPRODUCT 98 | DSTDEV 99 | DSTDEVP 100 | DSUM 101 | DURATION 102 | DVAR 103 | DVARP 104 | EDATE 105 | EFFECT 106 | EOMONTH 107 | ERF 108 | ERFC 109 | ERROR.TYPE 110 | EVEN 111 | EXACT 112 | EXP 113 | EXPONDIST 114 | FACT 115 | FACTDOUBLE 116 | FALSE 117 | FDIST 118 | FIND 119 | FINDB 120 | FINV 121 | FISHER 122 | FISHERINV 123 | FIXED 124 | FLOOR 125 | FORECAST 126 | FREQUENCY 127 | FTEST 128 | FV 129 | FVSCHEDULE 130 | GAMAMDIST 131 | GAMMAINV 132 | GAMMALN 133 | GCD 134 | GEOMEAN 135 | GESTEP 136 | GETPIVOTDATA 137 | GROWTH 138 | HARMEAN 139 | HEX2BIN 140 | HEX2OCT 141 | HLOOKUP 142 | HOUR 143 | HYPERLINK 144 | HYPGEOMDIST 145 | IF 146 | IFERROR 147 | IMABS 148 | IMAGINARY 149 | IMARGUMENT 150 | IMCONJUGATE 151 | IMCOS 152 | IMEXP 153 | IMLN 154 | IMLOG10 155 | IMLOG2 156 | IMPOWER 157 | IMPRODUCT 158 | IMREAL 159 | IMSIN 160 | IMSQRT 161 | IMSUB 162 | IMSUM 163 | INDEX 164 | INDIRECT 165 | INFO 166 | INT 167 | INTERCEPT 168 | INTRATE 169 | IPMT 170 | IRR 171 | ISBLANK 172 | ISERR 173 | ISERROR 174 | ISEVEN 175 | ISLOGICAL 176 | ISNA 177 | ISNONTEXT 178 | ISNUMBER 179 | ISODD 180 | ISPMT 181 | ISREF 182 | ISTEXT 183 | JIS 184 | KURT 185 | LARGE 186 | LCM 187 | LEFT 188 | LEFTB 189 | LEN 190 | LENB 191 | LINEST 192 | LN 193 | LOG 194 | LOG10 195 | LOGEST 196 | LOGINV 197 | LOGNORMDIST 198 | LOOKUP 199 | LOWER 200 | MATCH 201 | MAX 202 | MAXA 203 | MDETERM 204 | MDURATION 205 | MEDIAN 206 | MID 207 | MIDB 208 | MIN 209 | MINA 210 | MINUTE 211 | MINVERSE 212 | MIRR 213 | MMULT 214 | MOD 215 | MODE 216 | MONTH 217 | MROUND 218 | MULTINOMIAL 219 | N 220 | NA 221 | NEGBINOMDIST 222 | NETWORKDAYS 223 | NOMINAL 224 | NORMDIST 225 | NORMINV 226 | NORMSDIST 227 | NORMSINV 228 | NOT 229 | NOW 230 | NPER 231 | NPV 232 | OCT2BIN 233 | OCT2DEC 234 | OCT2HEX 235 | ODD 236 | ODDFPRICE 237 | ODDFYIELD 238 | ODDLPRICE 239 | ODDLYIELD 240 | OFFSET 241 | OR 242 | PEARSON 243 | PERCENTILE 244 | PERCENTRANK 245 | PERMUT 246 | PHONETIC 247 | PI 248 | PMT 249 | POISSON 250 | POWER 251 | PPMT 252 | PRICE 253 | PRICEDISC 254 | PRICEMAT 255 | PROB 256 | PRODUCT 257 | PROPER 258 | PV 259 | QUARTILE 260 | QUOTIENT 261 | RADIANS 262 | RAND 263 | RANDBETWEEN 264 | RANK 265 | RATE 266 | RECEIVED 267 | REPLACE 268 | REPLACEB 269 | REPT 270 | RIGHT 271 | RIGHTB 272 | ROMAN 273 | ROUND 274 | ROUNDDOWN 275 | ROUNDUP 276 | ROW 277 | ROWS 278 | RSQ 279 | RTD 280 | SEARCH 281 | SEARCHB 282 | SECOND 283 | SERIESSUM 284 | SIGN 285 | SIN 286 | SINH 287 | SKEW 288 | SLN 289 | SLOPE 290 | SMALL 291 | SQRT 292 | SQRTPI 293 | STANDARDIZE 294 | STDEV 295 | STDEVA 296 | STDEVP 297 | STDEVPA 298 | STEYX 299 | SUBSTITUTE 300 | SUBTOTAL 301 | SUM 302 | SUMIF 303 | SUMIFS 304 | SUMPRODUCT 305 | SUMSQ 306 | SUMX2MY2 307 | SUMX2PY2 308 | SUMXMY2 309 | SYD 310 | T 311 | TAN 312 | TANH 313 | TBILLEQ 314 | TBILLPRICE 315 | TBILLYIELD 316 | TDIST 317 | TEXT 318 | TIME 319 | TIMEVALUE 320 | TINV 321 | TODAY 322 | TRANSPOSE 323 | TREND 324 | TRIM 325 | TRIMMEAN 326 | TRUE 327 | TRUNC 328 | TTEST 329 | TYPE 330 | UPPER 331 | USDOLLAR 332 | VALUE 333 | VAR 334 | VARA 335 | VARP 336 | VARPA 337 | VDB 338 | VERSION 339 | VLOOKUP 340 | WEEKDAY 341 | WEEKNUM 342 | WEIBULL 343 | WORKDAY 344 | XIRR 345 | XNPV 346 | YEAR 347 | YEARFRAC 348 | YIELD 349 | YIELDDISC 350 | YIELDMAT 351 | ZTEST 352 | -------------------------------------------------------------------------------- /application/third_party/PHPExcel/Exception.php: -------------------------------------------------------------------------------- 1 | line = $line; 51 | $e->file = $file; 52 | throw $e; 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /application/third_party/PHPExcel/IComparable.php: -------------------------------------------------------------------------------- 1 | subject = $subject; 53 | } 54 | 55 | /** 56 | * Destructor 57 | */ 58 | public function __destruct() 59 | { 60 | unset($this->subject); 61 | } 62 | 63 | /** 64 | * Rewind iterator 65 | */ 66 | public function rewind() 67 | { 68 | $this->position = 0; 69 | } 70 | 71 | /** 72 | * Current PHPExcel_Worksheet 73 | * 74 | * @return PHPExcel_Worksheet 75 | */ 76 | public function current() 77 | { 78 | return $this->subject->getSheet($this->position); 79 | } 80 | 81 | /** 82 | * Current key 83 | * 84 | * @return int 85 | */ 86 | public function key() 87 | { 88 | return $this->position; 89 | } 90 | 91 | /** 92 | * Next value 93 | */ 94 | public function next() 95 | { 96 | ++$this->position; 97 | } 98 | 99 | /** 100 | * More PHPExcel_Worksheet instances available? 101 | * 102 | * @return boolean 103 | */ 104 | public function valid() 105 | { 106 | return $this->position < $this->subject->getSheetCount(); 107 | } 108 | } 109 | -------------------------------------------------------------------------------- /application/third_party/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

    Directory access is forbidden.

    9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/views/admin/contactus/index.php: -------------------------------------------------------------------------------- 1 | 2 |
    3 |
    4 |
    5 |
    6 |

    Contact Us Listing

    7 | 8 |
    9 |
    10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 |
    NameEmailSubjectMessageDate
    35 | 36 |
    37 |
    38 |
    39 |
    40 | -------------------------------------------------------------------------------- /application/views/admin/dashboard.php: -------------------------------------------------------------------------------- 1 |
    2 |
    3 |
    4 |
    5 |

    6 | DASHBAORD 7 |

    8 |
    9 |
    10 |
    11 |
    -------------------------------------------------------------------------------- /application/views/admin/errors/cli/error_404.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | An uncaught Exception was encountered 4 | 5 | Type: 6 | Message: 7 | Filename: getFile(), "\n"; ?> 8 | Line Number: getLine(); ?> 9 | 10 | 11 | 12 | Backtrace: 13 | getTrace() as $error): ?> 14 | 15 | File: 16 | Line: 17 | Function: 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /application/views/admin/errors/cli/error_general.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | A PHP Error was encountered 4 | 5 | Severity: 6 | Message: 7 | Filename: 8 | Line Number: 9 | 10 | 11 | 12 | Backtrace: 13 | 14 | 15 | File: 16 | Line: 17 | Function: 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /application/views/admin/errors/cli/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

    Directory access is forbidden.

    9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/views/admin/errors/html/error_404.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 404 Page Not Found 8 | 57 | 58 | 59 |
    60 |

    61 | 62 |
    63 | 64 | -------------------------------------------------------------------------------- /application/views/admin/errors/html/error_db.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | Database Error 8 | 57 | 58 | 59 |
    60 |

    61 | 62 |
    63 | 64 | -------------------------------------------------------------------------------- /application/views/admin/errors/html/error_exception.php: -------------------------------------------------------------------------------- 1 | 4 | 5 |
    6 | 7 |

    An uncaught Exception was encountered

    8 | 9 |

    Type:

    10 |

    Message:

    11 |

    Filename: getFile(); ?>

    12 |

    Line Number: getLine(); ?>

    13 | 14 | 15 | 16 |

    Backtrace:

    17 | getTrace() as $error): ?> 18 | 19 | 20 | 21 |

    22 | File:
    23 | Line:
    24 | Function: 25 |

    26 | 27 | 28 | 29 | 30 | 31 | 32 |
    -------------------------------------------------------------------------------- /application/views/admin/errors/html/error_general.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | Error 8 | 57 | 58 | 59 |
    60 |

    61 | 62 |
    63 | 64 | -------------------------------------------------------------------------------- /application/views/admin/errors/html/error_php.php: -------------------------------------------------------------------------------- 1 | 4 | 5 |
    6 | 7 |

    A PHP Error was encountered

    8 | 9 |

    Severity:

    10 |

    Message:

    11 |

    Filename:

    12 |

    Line Number:

    13 | 14 | 15 | 16 |

    Backtrace:

    17 | 18 | 19 | 20 | 21 |

    22 | File:
    23 | Line:
    24 | Function: 25 |

    26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 |
    -------------------------------------------------------------------------------- /application/views/admin/errors/html/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

    Directory access is forbidden.

    9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/views/admin/errors/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

    Directory access is forbidden.

    9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/views/admin/imageupload/add.php: -------------------------------------------------------------------------------- 1 |
    2 |
    3 |
    4 |
    5 |

    Upload Files

    6 |
    7 | 8 |
    9 | "featured"))?> 10 | 11 |
    12 | 13 | 14 |
    15 |
    16 |
    17 | 18 | -------------------------------------------------------------------------------- /application/views/admin/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 403 Forbidden 5 | 6 | 7 | 8 |

    Directory access is forbidden.

    9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/views/admin/order/add.php: -------------------------------------------------------------------------------- 1 |
    2 |
    3 |
    4 |
    5 |

    Order Add

    6 |
    7 | "adminOrderAddFormId")); ?> 8 |
    9 |
    10 |
    11 |
    12 | 13 | 24 |
    25 | 26 | 27 | 28 |
    29 | 30 | 31 |
    32 | 33 |
    34 | 35 | 36 |
    37 |
    38 | 39 |
    40 |
    41 | 42 | 43 |
    44 | 45 |
    46 | 47 | 48 |
    49 |
    50 | 51 |
    52 |
    53 | 54 | 55 |
    56 | 57 |
    58 | 59 | 60 |
    61 |
    62 | 63 |
    64 |
    65 | 66 | 67 |
    68 | 69 |
    70 | 71 | 74 |
    75 |
    76 | 77 | 78 |
    79 | 80 |
    81 | 93 |
    94 |
    95 | 96 |
    97 | 98 |
    99 | 100 | 101 |
    102 |
    103 |
    104 | 105 |
    106 | 107 | 108 |
    109 |
    110 |
    111 |
    112 | 117 | 118 |
    119 |
    120 |
    -------------------------------------------------------------------------------- /application/views/admin/product/expired_deals.php: -------------------------------------------------------------------------------- 1 |
    2 |
    3 |
    4 |
    5 |

    Expired Product

    6 | 10 |
    11 | 12 |
    13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 35 | > 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 48 | 49 | 50 | 51 |
    Sr #Product NameFeatured ImagePriceSale PriceSale StartSale EndProduct CategoryCreated DateActions
    /preview/" target="_blank" title="View Product"> 46 | 47 |
    52 |
    53 |
    54 |
    55 |
    56 | -------------------------------------------------------------------------------- /application/views/admin/product/index.php: -------------------------------------------------------------------------------- 1 |
    2 |
    3 |
    4 |
    5 |

    All Products 6 |

    7 |
    8 | 9 | )'; 15 | } 16 | ?> 17 |
    18 |
    19 | Add 20 | Expired Deals 21 |
    22 |
    23 |
    24 |
    25 | "form form-inline","method"=>"get")) ?> 26 |
    27 | 33 |
    34 |
    35 | 36 |
    37 | 38 |
    39 | 40 |
    41 | "form form-inline","method"=>"get")) ?> 42 |
    43 | " required class="form-control" placeholder="search products" /> 44 |
    45 |
    46 | 47 |
    48 | 49 |
    50 |
    51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 75 | > 76 | 77 | 96 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 110 | 111 | 112 | 113 |
    Sr #Product NameFeatured ImagePriceSale PriceSale StartSale EndProduct CategoryCreated DateActions
    78 | /preview/" target="_blank" title="View Product"> 79 |
    80 | hidden from site'; 84 | } 85 | if ($p["isnewthankpage"]==1) 86 | { 87 | echo 'new thankyou'; 88 | } 89 | if ($p["isnewthankpage"]==0) 90 | { 91 | echo 'default thankyou'; 92 | } 93 | ?> 94 | 95 |
    97 | 98 | 106 | Duplicate 107 | Edit 108 | Delete 109 |
    114 | 117 |
    118 |
    119 |
    120 |
    121 | -------------------------------------------------------------------------------- /application/views/admin/productcat/add.php: -------------------------------------------------------------------------------- 1 |
    2 |
    3 |
    4 |
    5 |

    Productcat Add

    6 |
    7 | 8 |
    9 |
    10 |
    11 | 12 |
    13 | 14 | 15 |
    16 |
    17 |
    18 |
    19 | 24 | 25 |
    26 |
    27 |
    -------------------------------------------------------------------------------- /application/views/admin/productcat/edit.php: -------------------------------------------------------------------------------- 1 |
    2 |
    3 |
    4 |
    5 |

    Productcat Edit

    6 |
    7 | 8 |
    9 |
    10 |
    11 | 12 |
    13 | 14 | 15 |
    16 |
    17 |
    18 |
    19 | 24 | 25 |
    26 |
    27 |
    -------------------------------------------------------------------------------- /application/views/admin/productcat/index.php: -------------------------------------------------------------------------------- 1 |
    2 |
    3 |
    4 |
    5 |

    Productcat Listing

    6 |
    7 | Add 8 |
    9 |
    10 |
    11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 25 | 26 | 27 |
    ProductCatIdCatNameActions
    22 | Edit 23 | 24 |
    28 |
    29 | pagination->create_links(); ?> 30 |
    31 |
    32 |
    33 |
    34 |
    35 | -------------------------------------------------------------------------------- /application/views/admin/productgallery/add.php: -------------------------------------------------------------------------------- 1 |
    2 |
    3 |
    4 |
    5 |

    Productgallery Add

    6 |
    7 | 8 |
    9 |
    10 |
    11 |
    12 | 13 | 14 |
    15 |
    16 |
    17 | 18 |
    19 | 30 |
    31 |
    32 |
    33 | 34 |
    35 | 36 |
    37 |
    38 |
    39 |
    40 | 45 | 46 |
    47 |
    48 |
    -------------------------------------------------------------------------------- /application/views/admin/productgallery/edit.php: -------------------------------------------------------------------------------- 1 |
    2 |
    3 |
    4 |
    5 |

    Productgallery Edit

    6 |
    7 | 8 |
    9 |
    10 |
    11 |
    12 | id='IsFeatured' /> 13 | 14 |
    15 |
    16 |
    17 | 18 |
    19 | 30 |
    31 |
    32 |
    33 | 34 |
    35 | 36 |
    37 |
    38 |
    39 |
    40 | 45 | 46 |
    47 |
    48 |
    -------------------------------------------------------------------------------- /application/views/admin/productgallery/index.php: -------------------------------------------------------------------------------- 1 |
    2 |
    3 |
    4 |
    5 |

    Productgallery Listing

    6 |
    7 | Add 8 |
    9 |
    10 |
    11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 29 | 30 | 31 |
    ProductGalleryIdIsFeaturedProductIdImagePathActions
    26 | Edit 27 | Delete 28 |
    32 | 33 |
    34 |
    35 |
    36 |
    37 | -------------------------------------------------------------------------------- /application/views/admin/report/karachiorderlist.php: -------------------------------------------------------------------------------- 1 | 4 | .heading{font-weight:bold} 5 | .new-page{page-break-before: always} 6 | h3{margin:0;padding:0;} 7 | 8 | 9 | 10 | 15 | 16 | 17 | 18 |