@@ -234,7 +234,7 @@ discard block |
||
| 234 | 234 | } |
| 235 | 235 | |
| 236 | 236 | if (isset($this->request->post['selected'])) { |
| 237 | - $data['selected'] = (array) $this->request->post['selected']; |
|
| 237 | + $data['selected'] = (array)$this->request->post['selected']; |
|
| 238 | 238 | } else { |
| 239 | 239 | $data['selected'] = array(); |
| 240 | 240 | } |
@@ -396,7 +396,7 @@ discard block |
||
| 396 | 396 | foreach ($modules as $module) { |
| 397 | 397 | $module_data[] = array( |
| 398 | 398 | 'name' => strip_tags($module['name']), |
| 399 | - 'code' => $code . '.' . $module['module_id'] |
|
| 399 | + 'code' => $code . '.' . $module['module_id'] |
|
| 400 | 400 | ); |
| 401 | 401 | } |
| 402 | 402 | |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | UPDATE `module` |
| 39 | 39 | SET `name` = '" . $this->db->escape($data['name']) . "', |
| 40 | 40 | `setting` = '" . $this->db->escape(json_encode($data)) . "' |
| 41 | - WHERE `module_id` = '" . (int) $module_id . "' |
|
| 41 | + WHERE `module_id` = '" . (int)$module_id . "' |
|
| 42 | 42 | "); |
| 43 | 43 | } |
| 44 | 44 | |
@@ -47,12 +47,12 @@ discard block |
||
| 47 | 47 | $this->db->query(" |
| 48 | 48 | DELETE |
| 49 | 49 | FROM `module` |
| 50 | - WHERE `module_id` = '" . (int) $module_id . "' |
|
| 50 | + WHERE `module_id` = '" . (int)$module_id . "' |
|
| 51 | 51 | "); |
| 52 | 52 | $this->db->query(" |
| 53 | 53 | DELETE |
| 54 | 54 | FROM `layout_module` |
| 55 | - WHERE `code` LIKE '%." . (int) $module_id . "' |
|
| 55 | + WHERE `code` LIKE '%." . (int)$module_id . "' |
|
| 56 | 56 | "); |
| 57 | 57 | } |
| 58 | 58 | |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | { |
| 61 | 61 | $query = $this->db->query(" |
| 62 | 62 | SELECT * FROM `module` |
| 63 | - WHERE `module_id` = '" . (int) $module_id . "' |
|
| 63 | + WHERE `module_id` = '" . (int)$module_id . "' |
|
| 64 | 64 | "); |
| 65 | 65 | |
| 66 | 66 | if ($query->row) { |
@@ -56,20 +56,20 @@ discard block |
||
| 56 | 56 | foreach ($data['product_tab'] as $tabdata) { |
| 57 | 57 | $this->db->query(" |
| 58 | 58 | INSERT INTO product_tab |
| 59 | - SET product_id = '".(int)$product_id."', |
|
| 60 | - status = '".(int)$tabdata['status']."', |
|
| 61 | - sort_order='".(int)$tabdata['sort_order']."' |
|
| 59 | + SET product_id = '".(int)$product_id . "', |
|
| 60 | + status = '".(int)$tabdata['status'] . "', |
|
| 61 | + sort_order='".(int)$tabdata['sort_order'] . "' |
|
| 62 | 62 | "); |
| 63 | 63 | |
| 64 | 64 | $product_tab_id = $this->db->getLastId(); |
| 65 | 65 | foreach ($tabdata['description'] as $language_id => $value) { |
| 66 | 66 | $this->db->query(" |
| 67 | 67 | INSERT INTO product_tab_desc |
| 68 | - SET product_tab_id = '".(int)$product_tab_id."', |
|
| 69 | - heading = '".$this->db->escape($value['heading'])."', |
|
| 70 | - description = '".$this->db->escape($value['description'])."', |
|
| 71 | - product_id = '".(int)$product_id."', |
|
| 72 | - language_id = '".(int)$language_id."' |
|
| 68 | + SET product_tab_id = '".(int)$product_tab_id . "', |
|
| 69 | + heading = '".$this->db->escape($value['heading']) . "', |
|
| 70 | + description = '".$this->db->escape($value['description']) . "', |
|
| 71 | + product_id = '".(int)$product_id . "', |
|
| 72 | + language_id = '".(int)$language_id . "' |
|
| 73 | 73 | "); |
| 74 | 74 | } |
| 75 | 75 | } |
@@ -410,9 +410,9 @@ discard block |
||
| 410 | 410 | foreach ($data['product_tab'] as $tabdata) { |
| 411 | 411 | $this->db->query(" |
| 412 | 412 | INSERT INTO product_tab |
| 413 | - SET product_id = '".(int)$product_id."', |
|
| 414 | - status = '". (int)$tabdata['status']."', |
|
| 415 | - sort_order='". (int)$tabdata['sort_order']."' |
|
| 413 | + SET product_id = '".(int)$product_id . "', |
|
| 414 | + status = '". (int)$tabdata['status'] . "', |
|
| 415 | + sort_order='". (int)$tabdata['sort_order'] . "' |
|
| 416 | 416 | "); |
| 417 | 417 | |
| 418 | 418 | $product_tab_id = $this->db->getLastId(); |
@@ -420,11 +420,11 @@ discard block |
||
| 420 | 420 | foreach ($tabdata['description'] as $language_id => $value) { |
| 421 | 421 | $this->db->query(" |
| 422 | 422 | INSERT INTO product_tab_desc |
| 423 | - SET product_tab_id = '".(int)$product_tab_id."', |
|
| 424 | - heading = '".$this->db->escape($value['heading'])."', |
|
| 425 | - description = '".$this->db->escape($value['description'])."', |
|
| 426 | - product_id = '".(int)$product_id."', |
|
| 427 | - language_id = '".(int)$language_id."' |
|
| 423 | + SET product_tab_id = '".(int)$product_tab_id . "', |
|
| 424 | + heading = '".$this->db->escape($value['heading']) . "', |
|
| 425 | + description = '".$this->db->escape($value['description']) . "', |
|
| 426 | + product_id = '".(int)$product_id . "', |
|
| 427 | + language_id = '".(int)$language_id . "' |
|
| 428 | 428 | "); |
| 429 | 429 | } |
| 430 | 430 | } |
@@ -1002,15 +1002,15 @@ discard block |
||
| 1002 | 1002 | $querys = $this->db->query(" |
| 1003 | 1003 | SELECT * |
| 1004 | 1004 | FROM product_tab_desc |
| 1005 | - WHERE product_tab_id = '" . (int)$result['product_tab_id']. "' |
|
| 1005 | + WHERE product_tab_id = '" . (int)$result['product_tab_id'] . "' |
|
| 1006 | 1006 | "); |
| 1007 | 1007 | foreach ($querys->rows as $row) { |
| 1008 | - $description[$row['language_id']]=array( |
|
| 1008 | + $description[$row['language_id']] = array( |
|
| 1009 | 1009 | 'heading' => $row['heading'], |
| 1010 | 1010 | 'description' => $row['description'], |
| 1011 | 1011 | ); |
| 1012 | 1012 | } |
| 1013 | - $product_tab_data[]=array( |
|
| 1013 | + $product_tab_data[] = array( |
|
| 1014 | 1014 | 'status' => $result['status'], |
| 1015 | 1015 | 'sort_order' => $result['sort_order'], |
| 1016 | 1016 | 'description' => $description, |
@@ -1488,7 +1488,7 @@ discard block |
||
| 1488 | 1488 | { |
| 1489 | 1489 | $benefits = array(); |
| 1490 | 1490 | |
| 1491 | - $query = $this->db->query(" |
|
| 1491 | + $query = $this->db->query(" |
|
| 1492 | 1492 | SELECT benefit_id |
| 1493 | 1493 | FROM `product_to_benefit` |
| 1494 | 1494 | WHERE product_id = |
@@ -187,7 +187,7 @@ |
||
| 187 | 187 | $query = $this->db->query(" |
| 188 | 188 | SELECT COUNT(*) AS total |
| 189 | 189 | FROM product_to_benefit |
| 190 | - WHERE benefit_id IN (". $selected .") |
|
| 190 | + WHERE benefit_id IN (". $selected . ") |
|
| 191 | 191 | "); |
| 192 | 192 | |
| 193 | 193 | return $query->row['total']; |
@@ -92,34 +92,34 @@ discard block |
||
| 92 | 92 | $link = (int)$data['id']; |
| 93 | 93 | |
| 94 | 94 | if ($data['type'] == 'information') { |
| 95 | - $fields = 'title AS name, '.$data['type'].'_id, language_id'; |
|
| 95 | + $fields = 'title AS name, ' . $data['type'] . '_id, language_id'; |
|
| 96 | 96 | } else { |
| 97 | - $fields = 'name, '.$data['type'].'_id, language_id'; |
|
| 97 | + $fields = 'name, ' . $data['type'] . '_id, language_id'; |
|
| 98 | 98 | } |
| 99 | 99 | |
| 100 | 100 | if ($data['type'] != 'manufacturer') { |
| 101 | 101 | $query = $this->db->query(" |
| 102 | 102 | SELECT " . $fields . " F |
| 103 | 103 | ROM " . $data['type'] . "_description |
| 104 | - WHERE ". $data['type'] ."_id = '" . (int)$data['id'] . "' |
|
| 104 | + WHERE ". $data['type'] . "_id = '" . (int)$data['id'] . "' |
|
| 105 | 105 | "); |
| 106 | 106 | |
| 107 | 107 | $data['custommenu_desc'] = $query->rows; |
| 108 | 108 | } else { |
| 109 | - $fields = 'name, '.$data['type'].'_id '; |
|
| 109 | + $fields = 'name, ' . $data['type'] . '_id '; |
|
| 110 | 110 | |
| 111 | 111 | $query = $this->db->query(" |
| 112 | 112 | SELECT " . $fields . " |
| 113 | 113 | FROM " . $data['type'] . " |
| 114 | - WHERE ". $data['type'] ."_id = '" . (int)$data['id'] . "' |
|
| 114 | + WHERE ". $data['type'] . "_id = '" . (int)$data['id'] . "' |
|
| 115 | 115 | "); |
| 116 | - $result = array(); |
|
| 116 | + $result = array(); |
|
| 117 | 117 | |
| 118 | 118 | foreach ($languages as $language) { |
| 119 | 119 | $result[] = array('name' => $query->row['name'], 'manufacturer_id' => $query->row['manufacturer_id'], 'language_id' => $language['language_id']); |
| 120 | 120 | }; |
| 121 | 121 | |
| 122 | - $data['custommenu_desc'] = $result; |
|
| 122 | + $data['custommenu_desc'] = $result; |
|
| 123 | 123 | } |
| 124 | 124 | } |
| 125 | 125 | |
@@ -416,7 +416,7 @@ discard block |
||
| 416 | 416 | |
| 417 | 417 | $this->db->query(" |
| 418 | 418 | INSERT INTO custommenu_child |
| 419 | - SET custommenu_id = '" . $data['custommenu-item-parent-id'][$key] ."', s |
|
| 419 | + SET custommenu_id = '" . $data['custommenu-item-parent-id'][$key] . "', s |
|
| 420 | 420 | ort_order = '" . (int)$insertData->row['sort_order'] . "', |
| 421 | 421 | custommenu_type = '" . $insertData->row['custommenu_type'] . "', |
| 422 | 422 | status = '1' |
@@ -166,7 +166,7 @@ |
||
| 166 | 166 | $query = $this->db->query(" |
| 167 | 167 | SELECT COUNT(*) AS total |
| 168 | 168 | FROM product_to_sticker |
| 169 | - WHERE sticker_id IN (". $selected .") |
|
| 169 | + WHERE sticker_id IN (". $selected . ") |
|
| 170 | 170 | "); |
| 171 | 171 | |
| 172 | 172 | return $query->row['total']; |
@@ -21,10 +21,10 @@ |
||
| 21 | 21 | along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
| 22 | 22 | |
| 23 | 23 | // Heading |
| 24 | -$_['heading_title'] = 'Error Log'; |
|
| 24 | +$_['heading_title'] = 'Error Log'; |
|
| 25 | 25 | |
| 26 | 26 | // Text |
| 27 | -$_['text_success'] = 'Success: You have successfully cleared your error log!'; |
|
| 27 | +$_['text_success'] = 'Success: You have successfully cleared your error log!'; |
|
| 28 | 28 | $_['text_list'] = 'Errors List'; |
| 29 | 29 | |
| 30 | 30 | // Error |
@@ -31,4 +31,4 @@ |
||
| 31 | 31 | |
| 32 | 32 | |
| 33 | 33 | // Error |
| 34 | -$_['error_permission'] = 'Warning: You do not have permission to modify updater!'; |
|
| 34 | +$_['error_permission'] = 'Warning: You do not have permission to modify updater!'; |
|
@@ -27,9 +27,9 @@ discard block |
||
| 27 | 27 | $_['text_success'] = 'Success: You have modified SEO Keyword!'; |
| 28 | 28 | $_['text_success_clear'] = 'SEO URL cache successfully reset!'; |
| 29 | 29 | $_['text_default'] = 'Default'; |
| 30 | -$_['text_module'] = 'Modules'; |
|
| 30 | +$_['text_module'] = 'Modules'; |
|
| 31 | 31 | $_['button_clear_cache'] = 'Reset cache'; |
| 32 | -$_['button_insert'] = 'Add New'; |
|
| 32 | +$_['button_insert'] = 'Add New'; |
|
| 33 | 33 | |
| 34 | 34 | // column |
| 35 | 35 | $_['column_query'] = 'URL'; |
@@ -41,15 +41,15 @@ discard block |
||
| 41 | 41 | $_['entry_meta_title'] = 'Meta Title'; |
| 42 | 42 | $_['entry_html_h1'] = 'Html Tag H1'; |
| 43 | 43 | $_['entry_meta_description'] = 'Meta Tag Description'; |
| 44 | -$_['entry_description'] = 'Description'; |
|
| 44 | +$_['entry_description'] = 'Description'; |
|
| 45 | 45 | |
| 46 | 46 | // tab |
| 47 | 47 | $_['tab_seourl'] = 'SEO URL'; |
| 48 | -$_['tab_meta'] = 'Meta'; |
|
| 48 | +$_['tab_meta'] = 'Meta'; |
|
| 49 | 49 | $_['tab_special'] = 'Special'; |
| 50 | 50 | $_['tab_bestseller'] = 'Bestseller'; |
| 51 | 51 | $_['tab_latest'] = 'Latest'; |
| 52 | 52 | $_['tab_mostviewed'] = 'Mostviewed'; |
| 53 | 53 | |
| 54 | 54 | // Error |
| 55 | -$_['error_permission'] = 'Warning: You do not have permission to modify module SEO Manager!'; |
|
| 55 | +$_['error_permission'] = 'Warning: You do not have permission to modify module SEO Manager!'; |
|