@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | } elseif (count(HelperConfig::$secrets['admin_users'])) { |
| 81 | 81 | |
| 82 | 82 | if (isset($_SERVER['REDIRECT_HTTP_AUTHORIZATION'])) { // fix for php cgi mode |
| 83 | - list($_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW']) = explode(':' , base64_decode(substr($_SERVER['REDIRECT_HTTP_AUTHORIZATION'], 6))); |
|
| 83 | + list($_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW']) = explode(':', base64_decode(substr($_SERVER['REDIRECT_HTTP_AUTHORIZATION'], 6))); |
|
| 84 | 84 | } |
| 85 | 85 | |
| 86 | 86 | if (isset($_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW'])) { |
@@ -96,12 +96,12 @@ discard block |
||
| 96 | 96 | } |
| 97 | 97 | |
| 98 | 98 | if (!$validated) { |
| 99 | - header('WWW-Authenticate: Basic realm="' . HelperConfig::$secrets['admin_authrealm'] . '"'); |
|
| 99 | + header('WWW-Authenticate: Basic realm="'.HelperConfig::$secrets['admin_authrealm'].'"'); |
|
| 100 | 100 | header('HTTP/1.0 401 Unauthorized'); |
| 101 | 101 | die('Not authorized'); |
| 102 | 102 | } |
| 103 | 103 | } else { |
| 104 | - header('WWW-Authenticate: Basic realm="' . HelperConfig::$secrets['admin_authrealm'] . '"'); |
|
| 104 | + header('WWW-Authenticate: Basic realm="'.HelperConfig::$secrets['admin_authrealm'].'"'); |
|
| 105 | 105 | header('HTTP/1.0 401 Unauthorized'); |
| 106 | 106 | die('Not authorized'); |
| 107 | 107 | } |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | if ($iRows > 0) { |
| 135 | 135 | $aErr['itemnoalreadytaken'] = true; |
| 136 | 136 | } else { |
| 137 | - $aData = ['itm_no' => trim(\filter_input(INPUT_POST, 'itemno', FILTER_SANITIZE_SPECIAL_CHARS)),]; |
|
| 137 | + $aData = ['itm_no' => trim(\filter_input(INPUT_POST, 'itemno', FILTER_SANITIZE_SPECIAL_CHARS)), ]; |
|
| 138 | 138 | $sql = DBTools::buildInsertQuery($aData, 'item_base'); |
| 139 | 139 | $this->db->exec($sql); |
| 140 | 140 | $iInsertID = $this->db->lastInsertId(); |
@@ -242,10 +242,10 @@ discard block |
||
| 242 | 242 | private function admin_prepareItemlist($aItemlist) |
| 243 | 243 | { |
| 244 | 244 | $aList = [ |
| 245 | - ['title' => HardcodedText::get('itemadmin_list_active'), 'key' => 'itemindex', 'width' => 30, 'linked' => false, 'callback' => 'renderItemStatusIcon',], |
|
| 246 | - ['title' => HardcodedText::get('itemadmin_list_itemno'), 'key' => 'itemno', 'width' => 100, 'linked' => false,], |
|
| 247 | - ['title' => HardcodedText::get('itemadmin_list_name'), 'key' => 'name', 'width' => 350, 'linked' => false,], |
|
| 248 | - ['title' => HardcodedText::get('itemadmin_list_edit'), 'key' => 'itemno', 'width' => 30, 'linked' => true, 'ltarget' => '/_admin/itemadmin.html', 'lkeyname' => 'itemno', 'lgetvars' => ['action' => 'showitem'],], |
|
| 245 | + ['title' => HardcodedText::get('itemadmin_list_active'), 'key' => 'itemindex', 'width' => 30, 'linked' => false, 'callback' => 'renderItemStatusIcon', ], |
|
| 246 | + ['title' => HardcodedText::get('itemadmin_list_itemno'), 'key' => 'itemno', 'width' => 100, 'linked' => false, ], |
|
| 247 | + ['title' => HardcodedText::get('itemadmin_list_name'), 'key' => 'name', 'width' => 350, 'linked' => false, ], |
|
| 248 | + ['title' => HardcodedText::get('itemadmin_list_edit'), 'key' => 'itemno', 'width' => 30, 'linked' => true, 'ltarget' => '/_admin/itemadmin.html', 'lkeyname' => 'itemno', 'lgetvars' => ['action' => 'showitem'], ], |
|
| 249 | 249 | ]; |
| 250 | 250 | $aData = []; |
| 251 | 251 | foreach ($aItemlist['data'] as $aValue) { |
@@ -301,7 +301,7 @@ discard block |
||
| 301 | 301 | private function admin_prepareItem($aItemdata) |
| 302 | 302 | { |
| 303 | 303 | $aData = [ |
| 304 | - 'form' => ['action' => Tools::makeLinkHRefWithAddedGetVars('/_admin/itemadmin.html', ['action' => 'showitem', 'itemno' => $aItemdata['base']['itm_no']]),], |
|
| 304 | + 'form' => ['action' => Tools::makeLinkHRefWithAddedGetVars('/_admin/itemadmin.html', ['action' => 'showitem', 'itemno' => $aItemdata['base']['itm_no']]), ], |
|
| 305 | 305 | 'id' => $aItemdata['base']['itm_id'], |
| 306 | 306 | 'itemno' => $aItemdata['base']['itm_no'], |
| 307 | 307 | 'name' => $aItemdata['base']['itm_name'], |
@@ -332,7 +332,7 @@ discard block |
||
| 332 | 332 | $aGroups = $this->admin_getItemgroups(''); |
| 333 | 333 | $aData['groupoptions'][] = ''; |
| 334 | 334 | foreach ($aGroups as $aValue) { |
| 335 | - $aData['groupoptions'][] = $aValue['itmg_id'] . '|' . $aValue['itmg_no'] . ' - ' . $aValue['itmg_name']; |
|
| 335 | + $aData['groupoptions'][] = $aValue['itmg_id'].'|'.$aValue['itmg_no'].' - '.$aValue['itmg_name']; |
|
| 336 | 336 | } |
| 337 | 337 | unset($aGroups); |
| 338 | 338 | |
@@ -374,7 +374,7 @@ discard block |
||
| 374 | 374 | $sql = DBTools::buildPSUpdateQuery($aData, 'item_base', 'itm_id'); |
| 375 | 375 | $hResult = $this->db->prepare($sql); |
| 376 | 376 | foreach ($aData as $sKey => $sValue) { |
| 377 | - $hResult->bindValue(':' . $sKey, $sValue); |
|
| 377 | + $hResult->bindValue(':'.$sKey, $sValue); |
|
| 378 | 378 | } |
| 379 | 379 | $hResult->execute(); |
| 380 | 380 | if (isset($this->post['textid'])) { |
@@ -387,7 +387,7 @@ discard block |
||
| 387 | 387 | $sql = DBTools::buildPSUpdateQuery($aData, 'item_lang', 'itml_id'); |
| 388 | 388 | $hResult = $this->db->prepare($sql); |
| 389 | 389 | foreach ($aData as $sKey => $sValue) { |
| 390 | - $hResult->bindValue(':' . $sKey, $sValue); |
|
| 390 | + $hResult->bindValue(':'.$sKey, $sValue); |
|
| 391 | 391 | } |
| 392 | 392 | $hResult->execute(); |
| 393 | 393 | } |
@@ -94,12 +94,12 @@ discard block |
||
| 94 | 94 | $CSA = [ |
| 95 | 95 | 'list_orders' => [ |
| 96 | 96 | ['title' => '', 'key' => 'o_id', 'width' => 30, 'linked' => false, 'callback' => 'shopadminMakeCheckbox'], |
| 97 | - ['title' => HardcodedText::get('shopadmin_list_orderid'), 'key' => 'o_id', 'width' => 30, 'linked' => false,], |
|
| 98 | - ['title' => HardcodedText::get('shopadmin_list_customer'), 'key' => 'o_cust', 'width' => 280, 'linked' => false,], |
|
| 99 | - ['title' => HardcodedText::get('shopadmin_list_sumnettoall'), 'key' => 'o_sumnettoall', 'width' => 75, 'linked' => false,], |
|
| 100 | - ['title' => HardcodedText::get('shopadmin_list_orderstatus'), 'key' => 'o_order_status', 'width' => 80, 'linked' => false,], |
|
| 101 | - ['title' => HardcodedText::get('shopadmin_list_ordertimenumber'), 'key' => 'o_ordertime_number', 'width' => 100, 'linked' => false,], |
|
| 102 | - ['title' => HardcodedText::get('shopadmin_list_hostpayment'), 'key' => 'o_order_host_payment', 'width' => 140, 'linked' => false,], |
|
| 97 | + ['title' => HardcodedText::get('shopadmin_list_orderid'), 'key' => 'o_id', 'width' => 30, 'linked' => false, ], |
|
| 98 | + ['title' => HardcodedText::get('shopadmin_list_customer'), 'key' => 'o_cust', 'width' => 280, 'linked' => false, ], |
|
| 99 | + ['title' => HardcodedText::get('shopadmin_list_sumnettoall'), 'key' => 'o_sumnettoall', 'width' => 75, 'linked' => false, ], |
|
| 100 | + ['title' => HardcodedText::get('shopadmin_list_orderstatus'), 'key' => 'o_order_status', 'width' => 80, 'linked' => false, ], |
|
| 101 | + ['title' => HardcodedText::get('shopadmin_list_ordertimenumber'), 'key' => 'o_ordertime_number', 'width' => 100, 'linked' => false, ], |
|
| 102 | + ['title' => HardcodedText::get('shopadmin_list_hostpayment'), 'key' => 'o_order_host_payment', 'width' => 140, 'linked' => false, ], |
|
| 103 | 103 | [ |
| 104 | 104 | 'title' => HardcodedText::get('shopadmin_list_edit'), |
| 105 | 105 | 'key' => 'o_id', |
@@ -113,11 +113,11 @@ discard block |
||
| 113 | 113 | ], |
| 114 | 114 | ], |
| 115 | 115 | 'list_orderitems' => [ |
| 116 | - ['title' => HardcodedText::get('shopadmin_list_itemno'), 'key' => 'oi_itemno', 'width' => 95, 'linked' => false,], |
|
| 117 | - ['title' => HardcodedText::get('shopadmin_list_itemname'), 'key' => 'oi_itemname', 'width' => 350, 'linked' => false,], |
|
| 118 | - ['title' => HardcodedText::get('shopadmin_list_itemamount'), 'key' => 'oi_amount', 'width' => 50, 'linked' => false, 'style-data' => 'text-align: center;',], |
|
| 119 | - ['title' => HardcodedText::get('shopadmin_list_itemnetto'), 'key' => 'oi_price_netto', 'width' => 70, 'linked' => false,], |
|
| 120 | - ['title' => HardcodedText::get('shopadmin_list_itemsumnetto'), 'key' => 'ges_netto', 'width' => 75, 'linked' => false,], |
|
| 116 | + ['title' => HardcodedText::get('shopadmin_list_itemno'), 'key' => 'oi_itemno', 'width' => 95, 'linked' => false, ], |
|
| 117 | + ['title' => HardcodedText::get('shopadmin_list_itemname'), 'key' => 'oi_itemname', 'width' => 350, 'linked' => false, ], |
|
| 118 | + ['title' => HardcodedText::get('shopadmin_list_itemamount'), 'key' => 'oi_amount', 'width' => 50, 'linked' => false, 'style-data' => 'text-align: center;', ], |
|
| 119 | + ['title' => HardcodedText::get('shopadmin_list_itemnetto'), 'key' => 'oi_price_netto', 'width' => 70, 'linked' => false, ], |
|
| 120 | + ['title' => HardcodedText::get('shopadmin_list_itemsumnetto'), 'key' => 'ges_netto', 'width' => 75, 'linked' => false, ], |
|
| 121 | 121 | ], |
| 122 | 122 | ]; |
| 123 | 123 | |
@@ -220,8 +220,8 @@ discard block |
||
| 220 | 220 | } else { |
| 221 | 221 | $sZahlungsmethode = '<span style="color: red;">'; |
| 222 | 222 | } |
| 223 | - $mZahlungsmethode = $this->serviceManager->get('textcats')->T('order_paymentmethod_' .$aRow['o_paymentmethod'], true); |
|
| 224 | - if ($mZahlungsmethode ) { |
|
| 223 | + $mZahlungsmethode = $this->serviceManager->get('textcats')->T('order_paymentmethod_'.$aRow['o_paymentmethod'], true); |
|
| 224 | + if ($mZahlungsmethode) { |
|
| 225 | 225 | $sZahlungsmethode .= $mZahlungsmethode; |
| 226 | 226 | } else { |
| 227 | 227 | $sZahlungsmethode .= ucwords($aRow['o_paymentmethod']); |
@@ -265,7 +265,7 @@ discard block |
||
| 265 | 265 | ]; |
| 266 | 266 | if (!($bIgnoreStorno && $aRow['o_ordercompleted'] === 's')) { |
| 267 | 267 | $fGesamtnetto += $aRow['o_sumnettoall']; |
| 268 | - $j ++; |
|
| 268 | + $j++; |
|
| 269 | 269 | } else { |
| 270 | 270 | $k++; |
| 271 | 271 | } |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | $html .= implode("\n", |
| 44 | 44 | array_map( |
| 45 | 45 | function($i) { |
| 46 | - return '.phpinfodisplay ' . preg_replace( '/,/', ',.phpinfodisplay ', $i ); |
|
| 46 | + return '.phpinfodisplay '.preg_replace('/,/', ',.phpinfodisplay ', $i); |
|
| 47 | 47 | }, |
| 48 | 48 | preg_split('/\n/', $matches[1]) |
| 49 | 49 | ) |
@@ -163,12 +163,12 @@ discard block |
||
| 163 | 163 | if (!$bEnableItemGroups || \trim($aRow['itm_group']) == 0) { |
| 164 | 164 | $aAssembly['item'][$aRow['itm_no']] = $aRow; |
| 165 | 165 | } else { |
| 166 | - if (isset($aAssembly['groups']['ITEMGROUP-' .$aRow['itm_group']])) { |
|
| 167 | - $aAssembly['groups']['ITEMGROUP-' .$aRow['itm_group']][$aRow['itm_no']] = $aRow; |
|
| 166 | + if (isset($aAssembly['groups']['ITEMGROUP-'.$aRow['itm_group']])) { |
|
| 167 | + $aAssembly['groups']['ITEMGROUP-'.$aRow['itm_group']][$aRow['itm_no']] = $aRow; |
|
| 168 | 168 | } else { |
| 169 | - $aAssembly['item']['ITEMGROUP-' .$aRow['itm_group']]['group'] = 'ITEMGROUP-' .$aRow['itm_group']; |
|
| 170 | - $aAssembly['groups']['ITEMGROUP-' .$aRow['itm_group']]['ITEMGROUP-DATA'] = $this->getGroupdata($aRow['itm_group']); |
|
| 171 | - $aAssembly['groups']['ITEMGROUP-' .$aRow['itm_group']][$aRow['itm_no']] = $aRow; |
|
| 169 | + $aAssembly['item']['ITEMGROUP-'.$aRow['itm_group']]['group'] = 'ITEMGROUP-'.$aRow['itm_group']; |
|
| 170 | + $aAssembly['groups']['ITEMGROUP-'.$aRow['itm_group']]['ITEMGROUP-DATA'] = $this->getGroupdata($aRow['itm_group']); |
|
| 171 | + $aAssembly['groups']['ITEMGROUP-'.$aRow['itm_group']][$aRow['itm_no']] = $aRow; |
|
| 172 | 172 | } |
| 173 | 173 | } |
| 174 | 174 | } |
@@ -209,7 +209,7 @@ discard block |
||
| 209 | 209 | $aData['itm_vatid'] = 'full'; |
| 210 | 210 | } |
| 211 | 211 | |
| 212 | - if(is_numeric($aData['itm_price']) && (float) $aData['itm_price'] > 0) { |
|
| 212 | + if (is_numeric($aData['itm_price']) && (float) $aData['itm_price'] > 0) { |
|
| 213 | 213 | $aPrice['netto_list'] = $aData['itm_price']; |
| 214 | 214 | $aPrice['brutto_list'] = $this->addVat($aPrice['netto_list'], HelperConfig::$shop['vat'][$aData['itm_vatid']]); |
| 215 | 215 | if ( |
@@ -231,7 +231,7 @@ discard block |
||
| 231 | 231 | bcdiv( |
| 232 | 232 | bcsub( |
| 233 | 233 | '100', |
| 234 | - (string)HelperConfig::$shop['rebate_groups'][$aData['itm_rg']][CHelper::getUserData('cust_group')] |
|
| 234 | + (string) HelperConfig::$shop['rebate_groups'][$aData['itm_rg']][CHelper::getUserData('cust_group')] |
|
| 235 | 235 | ), |
| 236 | 236 | '100' |
| 237 | 237 | ) |
@@ -263,7 +263,7 @@ discard block |
||
| 263 | 263 | bcdiv( |
| 264 | 264 | bcmul( |
| 265 | 265 | $price, |
| 266 | - (string)$vat |
|
| 266 | + (string) $vat |
|
| 267 | 267 | ), |
| 268 | 268 | '100' |
| 269 | 269 | ), |
@@ -102,11 +102,11 @@ discard block |
||
| 102 | 102 | } |
| 103 | 103 | |
| 104 | 104 | if ($aOrder['iMindergebuehr_id'] > 0) { |
| 105 | - $aOrder['fVoll'] += HelperConfig::$shop['reducedorderamountfee' . $aOrder['iMindergebuehr_id']]; |
|
| 106 | - $aOrder['fGesamtnetto'] += HelperConfig::$shop['reducedorderamountfee' . $aOrder['iMindergebuehr_id']]; |
|
| 105 | + $aOrder['fVoll'] += HelperConfig::$shop['reducedorderamountfee'.$aOrder['iMindergebuehr_id']]; |
|
| 106 | + $aOrder['fGesamtnetto'] += HelperConfig::$shop['reducedorderamountfee'.$aOrder['iMindergebuehr_id']]; |
|
| 107 | 107 | $aOrder['fSteuervoll'] = $aOrder['fVoll'] * $iVATfull / 100; |
| 108 | 108 | $aOrder['fGesamtbrutto'] = $aOrder['fGesamtnetto'] + $aOrder['fSteuervoll'] + $aOrder['fSteuererm']; |
| 109 | - $aOrder['fMindergebuehr'] = HelperConfig::$shop['reducedorderamountfee' . $aOrder['iMindergebuehr_id']]; |
|
| 109 | + $aOrder['fMindergebuehr'] = HelperConfig::$shop['reducedorderamountfee'.$aOrder['iMindergebuehr_id']]; |
|
| 110 | 110 | } |
| 111 | 111 | |
| 112 | 112 | $aOrder['fVersandkosten'] = 0; |
@@ -423,12 +423,12 @@ discard block |
||
| 423 | 423 | } |
| 424 | 424 | // because array_rand will change numerical (string) values to integer, we have to do this awkward dance |
| 425 | 425 | foreach ($keysAddSuggsTMP as $key => $item) { |
| 426 | - $keysAddSuggs[] = (string)$item; |
|
| 426 | + $keysAddSuggs[] = (string) $item; |
|
| 427 | 427 | } |
| 428 | 428 | |
| 429 | 429 | // iterate suggestions and remove those that which will not be kept |
| 430 | 430 | foreach ($suggestions['additional'] as $addSuggsKey => $addSuggsVal) { |
| 431 | - if (!in_array((string)$addSuggsKey, $keysAddSuggs, true)) { |
|
| 431 | + if (!in_array((string) $addSuggsKey, $keysAddSuggs, true)) { |
|
| 432 | 432 | unset($suggestions['additional'][$addSuggsKey]); |
| 433 | 433 | } |
| 434 | 434 | } |
@@ -213,7 +213,7 @@ |
||
| 213 | 213 | } |
| 214 | 214 | |
| 215 | 215 | /** |
| 216 | - * @return mixed |
|
| 216 | + * @return ServiceManager |
|
| 217 | 217 | */ |
| 218 | 218 | public function getServiceManager() |
| 219 | 219 | { |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | |
| 42 | 42 | $this->setupHardcodedTextcats(); |
| 43 | 43 | |
| 44 | - $this->serviceManager->setFactory('db', function () { |
|
| 44 | + $this->serviceManager->setFactory('db', function() { |
|
| 45 | 45 | return null; |
| 46 | 46 | }); |
| 47 | 47 | |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | $this->setupTwig(); |
| 55 | 55 | |
| 56 | 56 | if (HelperConfig::$core['enable_module_shop']) { |
| 57 | - $this->serviceManager->setFactory('oItem', function (ServiceManager $serviceManager) { |
|
| 57 | + $this->serviceManager->setFactory('oItem', function(ServiceManager $serviceManager) { |
|
| 58 | 58 | return new \HaaseIT\HCSF\Shop\Items($serviceManager); |
| 59 | 59 | }); |
| 60 | 60 | } |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | { |
| 68 | 68 | // PSR-7 Stuff |
| 69 | 69 | // Init request object |
| 70 | - $this->serviceManager->setFactory('request', function () { |
|
| 70 | + $this->serviceManager->setFactory('request', function() { |
|
| 71 | 71 | $request = \Zend\Diactoros\ServerRequestFactory::fromGlobals(); |
| 72 | 72 | |
| 73 | 73 | // cleanup request |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | // session.use_trans_sid wenn nötig aktivieren |
| 88 | 88 | ini_set('session.use_only_cookies', 0); |
| 89 | 89 | session_name('sid'); |
| 90 | - if(ini_get('session.use_trans_sid') == 1) { |
|
| 90 | + if (ini_get('session.use_trans_sid') == 1) { |
|
| 91 | 91 | ini_set('session.use_trans_sid', 0); |
| 92 | 92 | } |
| 93 | 93 | // Session wenn nötig starten |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | |
| 132 | 132 | protected function setupDB() |
| 133 | 133 | { |
| 134 | - $this->serviceManager->setFactory('dbal', function () { |
|
| 134 | + $this->serviceManager->setFactory('dbal', function() { |
|
| 135 | 135 | $config = new \Doctrine\DBAL\Configuration(); |
| 136 | 136 | |
| 137 | 137 | $connectionParams = [ |
@@ -152,14 +152,14 @@ discard block |
||
| 152 | 152 | return \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config); |
| 153 | 153 | }); |
| 154 | 154 | |
| 155 | - $this->serviceManager->setFactory('db', function (ServiceManager $serviceManager) { |
|
| 155 | + $this->serviceManager->setFactory('db', function(ServiceManager $serviceManager) { |
|
| 156 | 156 | return $serviceManager->get('dbal')->getWrappedConnection(); |
| 157 | 157 | }); |
| 158 | 158 | } |
| 159 | 159 | |
| 160 | 160 | protected function setupTextcats() |
| 161 | 161 | { |
| 162 | - $this->serviceManager->setFactory('textcats', function (ServiceManager $serviceManager) { |
|
| 162 | + $this->serviceManager->setFactory('textcats', function(ServiceManager $serviceManager) { |
|
| 163 | 163 | $langavailable = HelperConfig::$core['lang_available']; |
| 164 | 164 | $textcats = new \HaaseIT\Toolbox\Textcat( |
| 165 | 165 | HelperConfig::$lang, |
@@ -176,7 +176,7 @@ discard block |
||
| 176 | 176 | |
| 177 | 177 | protected function setupTwig() |
| 178 | 178 | { |
| 179 | - $this->serviceManager->setFactory('twig', function (ServiceManager $serviceManager) { |
|
| 179 | + $this->serviceManager->setFactory('twig', function(ServiceManager $serviceManager) { |
|
| 180 | 180 | $loader = new \Twig_Loader_Filesystem([PATH_BASEDIR.'customviews', HCSF_BASEDIR.'src/views/']); |
| 181 | 181 | |
| 182 | 182 | $twig_options = [ |
@@ -301,7 +301,7 @@ discard block |
||
| 301 | 301 | } |
| 302 | 302 | |
| 303 | 303 | $aP['countrylist'][] = ' | '; |
| 304 | - foreach (HelperConfig::$countries['countries_' .HelperConfig::$lang] as $sKey => $sValue) { |
|
| 304 | + foreach (HelperConfig::$countries['countries_'.HelperConfig::$lang] as $sKey => $sValue) { |
|
| 305 | 305 | $aP['countrylist'][] = $sKey.'|'.$sValue; |
| 306 | 306 | } |
| 307 | 307 | |
@@ -57,11 +57,11 @@ discard block |
||
| 57 | 57 | $this->P->cb_subnav = 'admin'; |
| 58 | 58 | |
| 59 | 59 | $CUA = [ |
| 60 | - ['title' => HardcodedText::get('customeradmin_list_no'), 'key' => 'cust_no', 'width' => '16%', 'linked' => false,'stylehead' => 'text-align: left;',], |
|
| 61 | - ['title' => HardcodedText::get('customeradmin_list_company'), 'key' => 'cust_corp', 'width' => '16%', 'linked' => false,'stylehead' => 'text-align: left;',], |
|
| 62 | - ['title' => HardcodedText::get('customeradmin_list_name'), 'key' => 'cust_name', 'width' => '16%', 'linked' => false,'stylehead' => 'text-align: left;',], |
|
| 63 | - ['title' => HardcodedText::get('customeradmin_list_town'), 'key' => 'cust_town', 'width' => '16%', 'linked' => false,'stylehead' => 'text-align: left;',], |
|
| 64 | - ['title' => HardcodedText::get('customeradmin_list_active'), 'key' => 'cust_active', 'width' => '16%', 'linked' => false,'stylehead' => 'text-align: left;',], |
|
| 60 | + ['title' => HardcodedText::get('customeradmin_list_no'), 'key' => 'cust_no', 'width' => '16%', 'linked' => false, 'stylehead' => 'text-align: left;', ], |
|
| 61 | + ['title' => HardcodedText::get('customeradmin_list_company'), 'key' => 'cust_corp', 'width' => '16%', 'linked' => false, 'stylehead' => 'text-align: left;', ], |
|
| 62 | + ['title' => HardcodedText::get('customeradmin_list_name'), 'key' => 'cust_name', 'width' => '16%', 'linked' => false, 'stylehead' => 'text-align: left;', ], |
|
| 63 | + ['title' => HardcodedText::get('customeradmin_list_town'), 'key' => 'cust_town', 'width' => '16%', 'linked' => false, 'stylehead' => 'text-align: left;', ], |
|
| 64 | + ['title' => HardcodedText::get('customeradmin_list_active'), 'key' => 'cust_active', 'width' => '16%', 'linked' => false, 'stylehead' => 'text-align: left;', ], |
|
| 65 | 65 | [ |
| 66 | 66 | 'title' => HardcodedText::get('customeradmin_list_edit'), |
| 67 | 67 | 'key' => 'cust_id', |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | 'linked' => true, |
| 70 | 70 | 'ltarget' => '/_admin/customeradmin.html', |
| 71 | 71 | 'lkeyname' => 'id', |
| 72 | - 'lgetvars' => ['action' => 'edit',], |
|
| 72 | + 'lgetvars' => ['action' => 'edit', ], |
|
| 73 | 73 | ], |
| 74 | 74 | ]; |
| 75 | 75 | $aPData = $this->handleCustomerAdmin($CUA, $this->serviceManager->get('twig')); |