@@ -8,35 +8,35 @@ discard block |
||
8 | 8 | $enc = $this->encoder(); |
9 | 9 | |
10 | 10 | |
11 | -$target = $this->config( 'admin/jqadm/url/search/target' ); |
|
12 | -$controller = $this->config( 'admin/jqadm/url/search/controller', 'Jqadm' ); |
|
13 | -$action = $this->config( 'admin/jqadm/url/search/action', 'search' ); |
|
14 | -$config = $this->config( 'admin/jqadm/url/search/config', [] ); |
|
11 | +$target = $this->config('admin/jqadm/url/search/target'); |
|
12 | +$controller = $this->config('admin/jqadm/url/search/controller', 'Jqadm'); |
|
13 | +$action = $this->config('admin/jqadm/url/search/action', 'search'); |
|
14 | +$config = $this->config('admin/jqadm/url/search/config', []); |
|
15 | 15 | |
16 | -$newTarget = $this->config( 'admin/jqadm/url/create/target' ); |
|
17 | -$newCntl = $this->config( 'admin/jqadm/url/create/controller', 'Jqadm' ); |
|
18 | -$newAction = $this->config( 'admin/jqadm/url/create/action', 'create' ); |
|
19 | -$newConfig = $this->config( 'admin/jqadm/url/create/config', [] ); |
|
16 | +$newTarget = $this->config('admin/jqadm/url/create/target'); |
|
17 | +$newCntl = $this->config('admin/jqadm/url/create/controller', 'Jqadm'); |
|
18 | +$newAction = $this->config('admin/jqadm/url/create/action', 'create'); |
|
19 | +$newConfig = $this->config('admin/jqadm/url/create/config', []); |
|
20 | 20 | |
21 | -$getTarget = $this->config( 'admin/jqadm/url/get/target' ); |
|
22 | -$getCntl = $this->config( 'admin/jqadm/url/get/controller', 'Jqadm' ); |
|
23 | -$getAction = $this->config( 'admin/jqadm/url/get/action', 'get' ); |
|
24 | -$getConfig = $this->config( 'admin/jqadm/url/get/config', [] ); |
|
21 | +$getTarget = $this->config('admin/jqadm/url/get/target'); |
|
22 | +$getCntl = $this->config('admin/jqadm/url/get/controller', 'Jqadm'); |
|
23 | +$getAction = $this->config('admin/jqadm/url/get/action', 'get'); |
|
24 | +$getConfig = $this->config('admin/jqadm/url/get/config', []); |
|
25 | 25 | |
26 | -$copyTarget = $this->config( 'admin/jqadm/url/copy/target' ); |
|
27 | -$copyCntl = $this->config( 'admin/jqadm/url/copy/controller', 'Jqadm' ); |
|
28 | -$copyAction = $this->config( 'admin/jqadm/url/copy/action', 'copy' ); |
|
29 | -$copyConfig = $this->config( 'admin/jqadm/url/copy/config', [] ); |
|
26 | +$copyTarget = $this->config('admin/jqadm/url/copy/target'); |
|
27 | +$copyCntl = $this->config('admin/jqadm/url/copy/controller', 'Jqadm'); |
|
28 | +$copyAction = $this->config('admin/jqadm/url/copy/action', 'copy'); |
|
29 | +$copyConfig = $this->config('admin/jqadm/url/copy/config', []); |
|
30 | 30 | |
31 | -$delTarget = $this->config( 'admin/jqadm/url/delete/target' ); |
|
32 | -$delCntl = $this->config( 'admin/jqadm/url/delete/controller', 'Jqadm' ); |
|
33 | -$delAction = $this->config( 'admin/jqadm/url/delete/action', 'delete' ); |
|
34 | -$delConfig = $this->config( 'admin/jqadm/url/delete/config', [] ); |
|
31 | +$delTarget = $this->config('admin/jqadm/url/delete/target'); |
|
32 | +$delCntl = $this->config('admin/jqadm/url/delete/controller', 'Jqadm'); |
|
33 | +$delAction = $this->config('admin/jqadm/url/delete/action', 'delete'); |
|
34 | +$delConfig = $this->config('admin/jqadm/url/delete/config', []); |
|
35 | 35 | |
36 | -$expTarget = $this->config( 'admin/jqadm/url/export/target' ); |
|
37 | -$expCntl = $this->config( 'admin/jqadm/url/export/controller', 'Jqadm' ); |
|
38 | -$expAction = $this->config( 'admin/jqadm/url/export/action', 'export' ); |
|
39 | -$expConfig = $this->config( 'admin/jqadm/url/export/config', [] ); |
|
36 | +$expTarget = $this->config('admin/jqadm/url/export/target'); |
|
37 | +$expCntl = $this->config('admin/jqadm/url/export/controller', 'Jqadm'); |
|
38 | +$expAction = $this->config('admin/jqadm/url/export/action', 'export'); |
|
39 | +$expConfig = $this->config('admin/jqadm/url/export/config', []); |
|
40 | 40 | |
41 | 41 | |
42 | 42 | /** admin/jqadm/subscription/fields |
@@ -54,90 +54,90 @@ discard block |
||
54 | 54 | * @category Developer |
55 | 55 | */ |
56 | 56 | $default = ['subscription.status', 'subscription.datenext', 'subscription.dateend', 'subscription.interval']; |
57 | -$default = $this->config( 'admin/jqadm/subscription/fields', $default ); |
|
58 | -$fields = $this->session( 'aimeos/admin/jqadm/subscription/fields', $default ); |
|
57 | +$default = $this->config('admin/jqadm/subscription/fields', $default); |
|
58 | +$fields = $this->session('aimeos/admin/jqadm/subscription/fields', $default); |
|
59 | 59 | |
60 | -$searchParams = $params = $this->get( 'pageParams', [] ); |
|
60 | +$searchParams = $params = $this->get('pageParams', []); |
|
61 | 61 | $searchParams['page']['start'] = 0; |
62 | 62 | |
63 | -$baseItems = $this->get( 'baseItems', [] ); |
|
63 | +$baseItems = $this->get('baseItems', []); |
|
64 | 64 | |
65 | 65 | $columnList = [ |
66 | - 'subscription.id' => $this->translate( 'admin', 'ID' ), |
|
67 | - 'subscription.status' => $this->translate( 'admin', 'Status' ), |
|
68 | - 'subscription.interval' => $this->translate( 'admin', 'Interval' ), |
|
69 | - 'subscription.datenext' => $this->translate( 'admin', 'Next date' ), |
|
70 | - 'subscription.dateend' => $this->translate( 'admin', 'End date' ), |
|
71 | - 'subscription.reason' => $this->translate( 'admin', 'Reason' ), |
|
72 | - 'subscription.ctime' => $this->translate( 'admin', 'Created' ), |
|
73 | - 'subscription.mtime' => $this->translate( 'admin', 'Modified' ), |
|
74 | - 'subscription.editor' => $this->translate( 'admin', 'Editor' ), |
|
75 | - 'order.base.customerid' => $this->translate( 'admin', 'Customer ID' ), |
|
76 | - 'order.base.sitecode' => $this->translate( 'admin', 'Site' ), |
|
77 | - 'order.base.languageid' => $this->translate( 'admin', 'Language' ), |
|
78 | - 'order.base.currencyid' => $this->translate( 'admin', 'Currency' ), |
|
79 | - 'order.base.taxflag' => $this->translate( 'admin', 'Incl. tax' ), |
|
80 | - 'order.base.comment' => $this->translate( 'admin', 'Comment' ), |
|
81 | - 'order.base.address.salutation' => $this->translate( 'admin', 'Salutation' ), |
|
82 | - 'order.base.address.company' => $this->translate( 'admin', 'Company' ), |
|
83 | - 'order.base.address.vatid' => $this->translate( 'admin', 'VAT ID' ), |
|
84 | - 'order.base.address.title' => $this->translate( 'admin', 'Title' ), |
|
85 | - 'order.base.address.firstname' => $this->translate( 'admin', 'First name' ), |
|
86 | - 'order.base.address.lastname' => $this->translate( 'admin', 'Last name' ), |
|
87 | - 'order.base.address.address1' => $this->translate( 'admin', 'Street' ), |
|
88 | - 'order.base.address.address2' => $this->translate( 'admin', 'House number' ), |
|
89 | - 'order.base.address.address3' => $this->translate( 'admin', 'Floor' ), |
|
90 | - 'order.base.address.postal' => $this->translate( 'admin', 'Zip code' ), |
|
91 | - 'order.base.address.city' => $this->translate( 'admin', 'City' ), |
|
92 | - 'order.base.address.state' => $this->translate( 'admin', 'State' ), |
|
93 | - 'order.base.address.countryid' => $this->translate( 'admin', 'Country' ), |
|
94 | - 'order.base.address.languageid' => $this->translate( 'admin', 'Language' ), |
|
95 | - 'order.base.address.telephone' => $this->translate( 'admin', 'Telephone' ), |
|
96 | - 'order.base.address.telefax' => $this->translate( 'admin', 'Facsimile' ), |
|
97 | - 'order.base.address.email' => $this->translate( 'admin', 'E-Mail' ), |
|
98 | - 'order.base.address.website' => $this->translate( 'admin', 'Web site' ), |
|
66 | + 'subscription.id' => $this->translate('admin', 'ID'), |
|
67 | + 'subscription.status' => $this->translate('admin', 'Status'), |
|
68 | + 'subscription.interval' => $this->translate('admin', 'Interval'), |
|
69 | + 'subscription.datenext' => $this->translate('admin', 'Next date'), |
|
70 | + 'subscription.dateend' => $this->translate('admin', 'End date'), |
|
71 | + 'subscription.reason' => $this->translate('admin', 'Reason'), |
|
72 | + 'subscription.ctime' => $this->translate('admin', 'Created'), |
|
73 | + 'subscription.mtime' => $this->translate('admin', 'Modified'), |
|
74 | + 'subscription.editor' => $this->translate('admin', 'Editor'), |
|
75 | + 'order.base.customerid' => $this->translate('admin', 'Customer ID'), |
|
76 | + 'order.base.sitecode' => $this->translate('admin', 'Site'), |
|
77 | + 'order.base.languageid' => $this->translate('admin', 'Language'), |
|
78 | + 'order.base.currencyid' => $this->translate('admin', 'Currency'), |
|
79 | + 'order.base.taxflag' => $this->translate('admin', 'Incl. tax'), |
|
80 | + 'order.base.comment' => $this->translate('admin', 'Comment'), |
|
81 | + 'order.base.address.salutation' => $this->translate('admin', 'Salutation'), |
|
82 | + 'order.base.address.company' => $this->translate('admin', 'Company'), |
|
83 | + 'order.base.address.vatid' => $this->translate('admin', 'VAT ID'), |
|
84 | + 'order.base.address.title' => $this->translate('admin', 'Title'), |
|
85 | + 'order.base.address.firstname' => $this->translate('admin', 'First name'), |
|
86 | + 'order.base.address.lastname' => $this->translate('admin', 'Last name'), |
|
87 | + 'order.base.address.address1' => $this->translate('admin', 'Street'), |
|
88 | + 'order.base.address.address2' => $this->translate('admin', 'House number'), |
|
89 | + 'order.base.address.address3' => $this->translate('admin', 'Floor'), |
|
90 | + 'order.base.address.postal' => $this->translate('admin', 'Zip code'), |
|
91 | + 'order.base.address.city' => $this->translate('admin', 'City'), |
|
92 | + 'order.base.address.state' => $this->translate('admin', 'State'), |
|
93 | + 'order.base.address.countryid' => $this->translate('admin', 'Country'), |
|
94 | + 'order.base.address.languageid' => $this->translate('admin', 'Language'), |
|
95 | + 'order.base.address.telephone' => $this->translate('admin', 'Telephone'), |
|
96 | + 'order.base.address.telefax' => $this->translate('admin', 'Facsimile'), |
|
97 | + 'order.base.address.email' => $this->translate('admin', 'E-Mail'), |
|
98 | + 'order.base.address.website' => $this->translate('admin', 'Web site'), |
|
99 | 99 | ]; |
100 | 100 | |
101 | 101 | $deliveryStatusList = [ |
102 | - '-1' => $this->translate( 'mshop/code', 'stat:-1' ), |
|
103 | - '0' => $this->translate( 'mshop/code', 'stat:0' ), |
|
104 | - '1' => $this->translate( 'mshop/code', 'stat:1' ), |
|
105 | - '2' => $this->translate( 'mshop/code', 'stat:2' ), |
|
106 | - '3' => $this->translate( 'mshop/code', 'stat:3' ), |
|
107 | - '4' => $this->translate( 'mshop/code', 'stat:4' ), |
|
108 | - '5' => $this->translate( 'mshop/code', 'stat:5' ), |
|
109 | - '6' => $this->translate( 'mshop/code', 'stat:6' ), |
|
110 | - '7' => $this->translate( 'mshop/code', 'stat:7' ), |
|
102 | + '-1' => $this->translate('mshop/code', 'stat:-1'), |
|
103 | + '0' => $this->translate('mshop/code', 'stat:0'), |
|
104 | + '1' => $this->translate('mshop/code', 'stat:1'), |
|
105 | + '2' => $this->translate('mshop/code', 'stat:2'), |
|
106 | + '3' => $this->translate('mshop/code', 'stat:3'), |
|
107 | + '4' => $this->translate('mshop/code', 'stat:4'), |
|
108 | + '5' => $this->translate('mshop/code', 'stat:5'), |
|
109 | + '6' => $this->translate('mshop/code', 'stat:6'), |
|
110 | + '7' => $this->translate('mshop/code', 'stat:7'), |
|
111 | 111 | ]; |
112 | 112 | |
113 | 113 | $statusList = [ |
114 | - 0 => $this->translate( 'admin', 'no' ), |
|
115 | - 1 => $this->translate( 'admin', 'yes' ), |
|
114 | + 0 => $this->translate('admin', 'no'), |
|
115 | + 1 => $this->translate('admin', 'yes'), |
|
116 | 116 | ]; |
117 | 117 | |
118 | 118 | $reasonList = [ |
119 | 119 | null => '', |
120 | - -1 => $this->translate( 'mshop/code', 'reason:-1' ), |
|
121 | - 0 => $this->translate( 'mshop/code', 'reason:0' ), |
|
122 | - 1 => $this->translate( 'mshop/code', 'reason:1' ), |
|
120 | + -1 => $this->translate('mshop/code', 'reason:-1'), |
|
121 | + 0 => $this->translate('mshop/code', 'reason:0'), |
|
122 | + 1 => $this->translate('mshop/code', 'reason:1'), |
|
123 | 123 | ]; |
124 | 124 | |
125 | 125 | |
126 | 126 | ?> |
127 | -<?php $this->block()->start( 'jqadm_content' ); ?> |
|
127 | +<?php $this->block()->start('jqadm_content'); ?> |
|
128 | 128 | |
129 | 129 | <nav class="main-navbar"> |
130 | 130 | |
131 | 131 | <span class="navbar-brand"> |
132 | - <?= $enc->html( $this->translate( 'admin', 'Subscription' ) ); ?> |
|
133 | - <span class="navbar-secondary">(<?= $enc->html( $this->site()->label() ); ?>)</span> |
|
132 | + <?= $enc->html($this->translate('admin', 'Subscription')); ?> |
|
133 | + <span class="navbar-secondary">(<?= $enc->html($this->site()->label()); ?>)</span> |
|
134 | 134 | </span> |
135 | 135 | |
136 | 136 | <?= $this->partial( |
137 | - $this->config( 'admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard.php' ), [ |
|
138 | - 'filter' => $this->session( 'aimeos/admin/jqadm/subscription/filter', [] ), |
|
139 | - 'filterAttributes' => $this->get( 'filterAttributes', [] ), |
|
140 | - 'filterOperators' => $this->get( 'filterOperators', [] ), |
|
137 | + $this->config('admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard.php'), [ |
|
138 | + 'filter' => $this->session('aimeos/admin/jqadm/subscription/filter', []), |
|
139 | + 'filterAttributes' => $this->get('filterAttributes', []), |
|
140 | + 'filterOperators' => $this->get('filterOperators', []), |
|
141 | 141 | 'params' => $params, |
142 | 142 | ] |
143 | 143 | ); ?> |
@@ -145,13 +145,13 @@ discard block |
||
145 | 145 | |
146 | 146 | |
147 | 147 | <?= $this->partial( |
148 | - $this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard.php' ), |
|
149 | - ['pageParams' => $params, 'pos' => 'top', 'total' => $this->get( 'total' ), |
|
150 | - 'page' => $this->session( 'aimeos/admin/jqadm/subscription/page', [] )] |
|
148 | + $this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard.php'), |
|
149 | + ['pageParams' => $params, 'pos' => 'top', 'total' => $this->get('total'), |
|
150 | + 'page' => $this->session('aimeos/admin/jqadm/subscription/page', [])] |
|
151 | 151 | ); |
152 | 152 | ?> |
153 | 153 | |
154 | -<form class="list list-subscription" method="POST" action="<?= $enc->attr( $this->url( $target, $controller, $action, $searchParams, [], $config ) ); ?>"> |
|
154 | +<form class="list list-subscription" method="POST" action="<?= $enc->attr($this->url($target, $controller, $action, $searchParams, [], $config)); ?>"> |
|
155 | 155 | <?= $this->csrf()->formfield(); ?> |
156 | 156 | |
157 | 157 | <table class="list-items table table-hover table-striped"> |
@@ -159,20 +159,20 @@ discard block |
||
159 | 159 | <tr> |
160 | 160 | |
161 | 161 | <?= $this->partial( |
162 | - $this->config( 'admin/jqadm/partial/listhead', 'common/partials/listhead-standard.php' ), |
|
163 | - ['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session( 'aimeos/admin/jqadm/subscription/sort' )] |
|
162 | + $this->config('admin/jqadm/partial/listhead', 'common/partials/listhead-standard.php'), |
|
163 | + ['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session('aimeos/admin/jqadm/subscription/sort')] |
|
164 | 164 | ); |
165 | 165 | ?> |
166 | 166 | |
167 | 167 | <th class="actions"> |
168 | 168 | <a class="btn fa act-download" tabindex="1" |
169 | - href="<?= $enc->attr( $this->url( $expTarget, $expCntl, $expAction, $params, [], $expConfig ) ); ?>" |
|
170 | - title="<?= $enc->attr( $this->translate( 'admin', 'Download') ); ?>" |
|
171 | - aria-label="<?= $enc->attr( $this->translate( 'admin', 'Download' ) ); ?>"> |
|
169 | + href="<?= $enc->attr($this->url($expTarget, $expCntl, $expAction, $params, [], $expConfig)); ?>" |
|
170 | + title="<?= $enc->attr($this->translate('admin', 'Download')); ?>" |
|
171 | + aria-label="<?= $enc->attr($this->translate('admin', 'Download')); ?>"> |
|
172 | 172 | </a> |
173 | 173 | |
174 | 174 | <?= $this->partial( |
175 | - $this->config( 'admin/jqadm/partial/columns', 'common/partials/columns-standard.php' ), |
|
175 | + $this->config('admin/jqadm/partial/columns', 'common/partials/columns-standard.php'), |
|
176 | 176 | ['fields' => $fields, 'data' => $columnList] |
177 | 177 | ); |
178 | 178 | ?> |
@@ -182,15 +182,15 @@ discard block |
||
182 | 182 | <tbody> |
183 | 183 | |
184 | 184 | <?= $this->partial( |
185 | - $this->config( 'admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard.php' ), [ |
|
186 | - 'fields' => $fields, 'filter' => $this->session( 'aimeos/admin/jqadm/subscription/filter', [] ), |
|
185 | + $this->config('admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard.php'), [ |
|
186 | + 'fields' => $fields, 'filter' => $this->session('aimeos/admin/jqadm/subscription/filter', []), |
|
187 | 187 | 'data' => [ |
188 | 188 | 'subscription.id' => ['op' => '=='], |
189 | 189 | 'subscription.status' => ['op' => '==', 'type' => 'select', 'val' => [ |
190 | - '1' => $this->translate( 'mshop/code', 'status:1' ), |
|
191 | - '0' => $this->translate( 'mshop/code', 'status:0' ), |
|
192 | - '-1' => $this->translate( 'mshop/code', 'status:-1' ), |
|
193 | - '-2' => $this->translate( 'mshop/code', 'status:-2' ), |
|
190 | + '1' => $this->translate('mshop/code', 'status:1'), |
|
191 | + '0' => $this->translate('mshop/code', 'status:0'), |
|
192 | + '-1' => $this->translate('mshop/code', 'status:-1'), |
|
193 | + '-2' => $this->translate('mshop/code', 'status:-2'), |
|
194 | 194 | ]], |
195 | 195 | 'subscription.interval' => ['op' => '>=', 'type' => 'string'], |
196 | 196 | 'subscription.datenext' => ['op' => '>=', 'type' => 'date'], |
@@ -229,129 +229,129 @@ discard block |
||
229 | 229 | ] ); |
230 | 230 | ?> |
231 | 231 | |
232 | - <?php foreach( $this->get( 'items', [] ) as $id => $item ) : ?> |
|
233 | - <?php $url = $enc->attr( $this->url( $getTarget, $getCntl, $getAction, ['id' => $id] + $params, [], $getConfig ) ); ?> |
|
234 | - <tr class="<?= $this->site()->readonly( $item->getSiteId() ); ?>"> |
|
235 | - <?php if( in_array( 'subscription.id', $fields ) ) : ?> |
|
236 | - <td class="subscription-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getId() ); ?></a></td> |
|
232 | + <?php foreach ($this->get('items', []) as $id => $item) : ?> |
|
233 | + <?php $url = $enc->attr($this->url($getTarget, $getCntl, $getAction, ['id' => $id] + $params, [], $getConfig)); ?> |
|
234 | + <tr class="<?= $this->site()->readonly($item->getSiteId()); ?>"> |
|
235 | + <?php if (in_array('subscription.id', $fields)) : ?> |
|
236 | + <td class="subscription-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getId()); ?></a></td> |
|
237 | 237 | <?php endif; ?> |
238 | - <?php if( in_array( 'subscription.status', $fields ) ) : ?> |
|
239 | - <td class="subscription-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr( $item->getStatus() ); ?>"></div></a></td> |
|
238 | + <?php if (in_array('subscription.status', $fields)) : ?> |
|
239 | + <td class="subscription-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr($item->getStatus()); ?>"></div></a></td> |
|
240 | 240 | <?php endif; ?> |
241 | - <?php if( in_array( 'subscription.interval', $fields ) ) : ?> |
|
242 | - <td class="subscription-interval"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getInterval() ); ?></a></td> |
|
241 | + <?php if (in_array('subscription.interval', $fields)) : ?> |
|
242 | + <td class="subscription-interval"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getInterval()); ?></a></td> |
|
243 | 243 | <?php endif; ?> |
244 | - <?php if( in_array( 'subscription.datenext', $fields ) ) : ?> |
|
245 | - <td class="subscription-datenext"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getDateNext() ); ?></a></td> |
|
244 | + <?php if (in_array('subscription.datenext', $fields)) : ?> |
|
245 | + <td class="subscription-datenext"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getDateNext()); ?></a></td> |
|
246 | 246 | <?php endif; ?> |
247 | - <?php if( in_array( 'subscription.dateend', $fields ) ) : ?> |
|
248 | - <td class="subscription-dateend"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getDateEnd() ); ?></a></td> |
|
247 | + <?php if (in_array('subscription.dateend', $fields)) : ?> |
|
248 | + <td class="subscription-dateend"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getDateEnd()); ?></a></td> |
|
249 | 249 | <?php endif; ?> |
250 | - <?php if( in_array( 'subscription.reason', $fields ) ) : ?> |
|
251 | - <td class="subscription-reason"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $reasonList[$item->getReason()] ); ?></td> |
|
250 | + <?php if (in_array('subscription.reason', $fields)) : ?> |
|
251 | + <td class="subscription-reason"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($reasonList[$item->getReason()]); ?></td> |
|
252 | 252 | <?php endif; ?> |
253 | - <?php if( in_array( 'subscription.ctime', $fields ) ) : ?> |
|
254 | - <td class="subscription-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeCreated() ); ?></a></td> |
|
253 | + <?php if (in_array('subscription.ctime', $fields)) : ?> |
|
254 | + <td class="subscription-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeCreated()); ?></a></td> |
|
255 | 255 | <?php endif; ?> |
256 | - <?php if( in_array( 'subscription.mtime', $fields ) ) : ?> |
|
257 | - <td class="subscription-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeModified() ); ?></a></td> |
|
256 | + <?php if (in_array('subscription.mtime', $fields)) : ?> |
|
257 | + <td class="subscription-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeModified()); ?></a></td> |
|
258 | 258 | <?php endif; ?> |
259 | - <?php if( in_array( 'subscription.editor', $fields ) ) : ?> |
|
260 | - <td class="subscription-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getEditor() ); ?></a></td> |
|
259 | + <?php if (in_array('subscription.editor', $fields)) : ?> |
|
260 | + <td class="subscription-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getEditor()); ?></a></td> |
|
261 | 261 | <?php endif; ?> |
262 | 262 | |
263 | - <?php $baseItem = ( isset( $baseItems[$item->getOrderBaseId()] ) ? $baseItems[$item->getOrderBaseId()] : null ); ?> |
|
263 | + <?php $baseItem = (isset($baseItems[$item->getOrderBaseId()]) ? $baseItems[$item->getOrderBaseId()] : null); ?> |
|
264 | 264 | |
265 | - <?php if( in_array( 'order.base.customerid', $fields ) ) : ?> |
|
266 | - <td class="order-base-customerid"><a class="items-field" href="<?= $url; ?>"><?= $baseItem ? $enc->html( $baseItem->getCustomerId() ) : ''; ?></a></td> |
|
265 | + <?php if (in_array('order.base.customerid', $fields)) : ?> |
|
266 | + <td class="order-base-customerid"><a class="items-field" href="<?= $url; ?>"><?= $baseItem ? $enc->html($baseItem->getCustomerId()) : ''; ?></a></td> |
|
267 | 267 | <?php endif; ?> |
268 | - <?php if( in_array( 'order.base.sitecode', $fields ) ) : ?> |
|
269 | - <td class="order-base-sitecode"><a class="items-field" href="<?= $url; ?>"><?= $baseItem ? $enc->html( $baseItem->getSiteCode() ) : ''; ?></a></td> |
|
268 | + <?php if (in_array('order.base.sitecode', $fields)) : ?> |
|
269 | + <td class="order-base-sitecode"><a class="items-field" href="<?= $url; ?>"><?= $baseItem ? $enc->html($baseItem->getSiteCode()) : ''; ?></a></td> |
|
270 | 270 | <?php endif; ?> |
271 | - <?php if( in_array( 'order.base.languageid', $fields ) ) : ?> |
|
272 | - <td class="order-base-languageid"><a class="items-field" href="<?= $url; ?>"><?= $baseItem ? $enc->html( $baseItem->getLocale()->getLanguageId() ) : ''; ?></a></td> |
|
271 | + <?php if (in_array('order.base.languageid', $fields)) : ?> |
|
272 | + <td class="order-base-languageid"><a class="items-field" href="<?= $url; ?>"><?= $baseItem ? $enc->html($baseItem->getLocale()->getLanguageId()) : ''; ?></a></td> |
|
273 | 273 | <?php endif; ?> |
274 | - <?php if( in_array( 'order.base.currencyid', $fields ) ) : ?> |
|
275 | - <td class="order-base-currencyid"><a class="items-field" href="<?= $url; ?>"><?= $baseItem ? $enc->html( $baseItem->getLocale()->getCurrencyId() ) : ''; ?></a></td> |
|
274 | + <?php if (in_array('order.base.currencyid', $fields)) : ?> |
|
275 | + <td class="order-base-currencyid"><a class="items-field" href="<?= $url; ?>"><?= $baseItem ? $enc->html($baseItem->getLocale()->getCurrencyId()) : ''; ?></a></td> |
|
276 | 276 | <?php endif; ?> |
277 | - <?php if( in_array( 'order.base.taxflag', $fields ) ) : ?> |
|
278 | - <td class="order-base-taxflag"><a class="items-field" href="<?= $url; ?>"><?= $baseItem ? $enc->html( $statusList[$baseItem->getPrice()->getTaxFlag()] ) : ''; ?></a></td> |
|
277 | + <?php if (in_array('order.base.taxflag', $fields)) : ?> |
|
278 | + <td class="order-base-taxflag"><a class="items-field" href="<?= $url; ?>"><?= $baseItem ? $enc->html($statusList[$baseItem->getPrice()->getTaxFlag()]) : ''; ?></a></td> |
|
279 | 279 | <?php endif; ?> |
280 | - <?php if( in_array( 'order.base.comment', $fields ) ) : ?> |
|
281 | - <td class="order-base-comment"><a class="items-field" href="<?= $url; ?>"><?= $baseItem ? $enc->html( $baseItem->getComment() ) : ''; ?></a></td> |
|
280 | + <?php if (in_array('order.base.comment', $fields)) : ?> |
|
281 | + <td class="order-base-comment"><a class="items-field" href="<?= $url; ?>"><?= $baseItem ? $enc->html($baseItem->getComment()) : ''; ?></a></td> |
|
282 | 282 | <?php endif; ?> |
283 | 283 | |
284 | 284 | <?php $addrItem = null; |
285 | - if( $baseItem && ( $addresses = $baseItem->getAddresses() ) && isset( $addresses[\Aimeos\MShop\Order\Item\Base\Address\Base::TYPE_PAYMENT] ) ) { |
|
285 | + if ($baseItem && ($addresses = $baseItem->getAddresses()) && isset($addresses[\Aimeos\MShop\Order\Item\Base\Address\Base::TYPE_PAYMENT])) { |
|
286 | 286 | $addrItem = $addresses[\Aimeos\MShop\Order\Item\Base\Address\Base::TYPE_PAYMENT]; |
287 | 287 | } |
288 | 288 | ?> |
289 | 289 | |
290 | - <?php if( in_array( 'order.base.address.salutation', $fields ) ) : ?> |
|
291 | - <td class="order-base-address-salutation"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html( $addrItem->getSalutation() ) : ''; ?></a></td> |
|
290 | + <?php if (in_array('order.base.address.salutation', $fields)) : ?> |
|
291 | + <td class="order-base-address-salutation"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html($addrItem->getSalutation()) : ''; ?></a></td> |
|
292 | 292 | <?php endif; ?> |
293 | - <?php if( in_array( 'order.base.address.company', $fields ) ) : ?> |
|
294 | - <td class="order-base-address-company"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html( $addrItem->getCompany() ) : ''; ?></a></td> |
|
293 | + <?php if (in_array('order.base.address.company', $fields)) : ?> |
|
294 | + <td class="order-base-address-company"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html($addrItem->getCompany()) : ''; ?></a></td> |
|
295 | 295 | <?php endif; ?> |
296 | - <?php if( in_array( 'order.base.address.vatid', $fields ) ) : ?> |
|
297 | - <td class="order-base-address-vatid"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html( $addrItem->getVatID() ) : ''; ?></a></td> |
|
296 | + <?php if (in_array('order.base.address.vatid', $fields)) : ?> |
|
297 | + <td class="order-base-address-vatid"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html($addrItem->getVatID()) : ''; ?></a></td> |
|
298 | 298 | <?php endif; ?> |
299 | - <?php if( in_array( 'order.base.address.title', $fields ) ) : ?> |
|
300 | - <td class="order-base-address-title"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html( $addrItem->getTitle() ) : ''; ?></a></td> |
|
299 | + <?php if (in_array('order.base.address.title', $fields)) : ?> |
|
300 | + <td class="order-base-address-title"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html($addrItem->getTitle()) : ''; ?></a></td> |
|
301 | 301 | <?php endif; ?> |
302 | - <?php if( in_array( 'order.base.address.firstname', $fields ) ) : ?> |
|
303 | - <td class="order-base-address-firstname"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html( $addrItem->getFirstname() ) : ''; ?></a></td> |
|
302 | + <?php if (in_array('order.base.address.firstname', $fields)) : ?> |
|
303 | + <td class="order-base-address-firstname"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html($addrItem->getFirstname()) : ''; ?></a></td> |
|
304 | 304 | <?php endif; ?> |
305 | - <?php if( in_array( 'order.base.address.lastname', $fields ) ) : ?> |
|
306 | - <td class="order-base-address-lastname"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html( $addrItem->getLastname() ) : ''; ?></a></td> |
|
305 | + <?php if (in_array('order.base.address.lastname', $fields)) : ?> |
|
306 | + <td class="order-base-address-lastname"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html($addrItem->getLastname()) : ''; ?></a></td> |
|
307 | 307 | <?php endif; ?> |
308 | - <?php if( in_array( 'order.base.address.address1', $fields ) ) : ?> |
|
309 | - <td class="order-base-address-address1"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html( $addrItem->getAddress1() ) : ''; ?></a></td> |
|
308 | + <?php if (in_array('order.base.address.address1', $fields)) : ?> |
|
309 | + <td class="order-base-address-address1"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html($addrItem->getAddress1()) : ''; ?></a></td> |
|
310 | 310 | <?php endif; ?> |
311 | - <?php if( in_array( 'order.base.address.address2', $fields ) ) : ?> |
|
312 | - <td class="order-base-address-address2"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html( $addrItem->getAddress2() ) : ''; ?></a></td> |
|
311 | + <?php if (in_array('order.base.address.address2', $fields)) : ?> |
|
312 | + <td class="order-base-address-address2"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html($addrItem->getAddress2()) : ''; ?></a></td> |
|
313 | 313 | <?php endif; ?> |
314 | - <?php if( in_array( 'order.base.address.address3', $fields ) ) : ?> |
|
315 | - <td class="order-base-address-address3"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html( $addrItem->getAddress3() ) : ''; ?></a></td> |
|
314 | + <?php if (in_array('order.base.address.address3', $fields)) : ?> |
|
315 | + <td class="order-base-address-address3"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html($addrItem->getAddress3()) : ''; ?></a></td> |
|
316 | 316 | <?php endif; ?> |
317 | - <?php if( in_array( 'order.base.address.postal', $fields ) ) : ?> |
|
318 | - <td class="order-base-address-postal"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html( $addrItem->getPostal() ) : ''; ?></a></td> |
|
317 | + <?php if (in_array('order.base.address.postal', $fields)) : ?> |
|
318 | + <td class="order-base-address-postal"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html($addrItem->getPostal()) : ''; ?></a></td> |
|
319 | 319 | <?php endif; ?> |
320 | - <?php if( in_array( 'order.base.address.city', $fields ) ) : ?> |
|
321 | - <td class="order-base-address-city"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html( $addrItem->getCity() ) : ''; ?></a></td> |
|
320 | + <?php if (in_array('order.base.address.city', $fields)) : ?> |
|
321 | + <td class="order-base-address-city"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html($addrItem->getCity()) : ''; ?></a></td> |
|
322 | 322 | <?php endif; ?> |
323 | - <?php if( in_array( 'order.base.address.state', $fields ) ) : ?> |
|
324 | - <td class="order-base-address-state"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html( $addrItem->getState() ) : ''; ?></a></td> |
|
323 | + <?php if (in_array('order.base.address.state', $fields)) : ?> |
|
324 | + <td class="order-base-address-state"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html($addrItem->getState()) : ''; ?></a></td> |
|
325 | 325 | <?php endif; ?> |
326 | - <?php if( in_array( 'order.base.address.countryid', $fields ) ) : ?> |
|
327 | - <td class="order-base-address-countryid"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html( $addrItem->getCountryId() ) : ''; ?></a></td> |
|
326 | + <?php if (in_array('order.base.address.countryid', $fields)) : ?> |
|
327 | + <td class="order-base-address-countryid"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html($addrItem->getCountryId()) : ''; ?></a></td> |
|
328 | 328 | <?php endif; ?> |
329 | - <?php if( in_array( 'order.base.address.languageid', $fields ) ) : ?> |
|
330 | - <td class="order-base-address-languageid"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html( $addrItem->getLanguageId() ) : ''; ?></a></td> |
|
329 | + <?php if (in_array('order.base.address.languageid', $fields)) : ?> |
|
330 | + <td class="order-base-address-languageid"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html($addrItem->getLanguageId()) : ''; ?></a></td> |
|
331 | 331 | <?php endif; ?> |
332 | - <?php if( in_array( 'order.base.address.telephone', $fields ) ) : ?> |
|
333 | - <td class="order-base-address-telephone"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html( $addrItem->getTelephone() ) : ''; ?></a></td> |
|
332 | + <?php if (in_array('order.base.address.telephone', $fields)) : ?> |
|
333 | + <td class="order-base-address-telephone"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html($addrItem->getTelephone()) : ''; ?></a></td> |
|
334 | 334 | <?php endif; ?> |
335 | - <?php if( in_array( 'order.base.address.telefax', $fields ) ) : ?> |
|
336 | - <td class="order-base-address-telefax"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html( $addrItem->getTelefax() ) : ''; ?></a></td> |
|
335 | + <?php if (in_array('order.base.address.telefax', $fields)) : ?> |
|
336 | + <td class="order-base-address-telefax"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html($addrItem->getTelefax()) : ''; ?></a></td> |
|
337 | 337 | <?php endif; ?> |
338 | - <?php if( in_array( 'order.base.address.email', $fields ) ) : ?> |
|
339 | - <td class="order-base-address-email"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html( $addrItem->getEmail() ) : ''; ?></a></td> |
|
338 | + <?php if (in_array('order.base.address.email', $fields)) : ?> |
|
339 | + <td class="order-base-address-email"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html($addrItem->getEmail()) : ''; ?></a></td> |
|
340 | 340 | <?php endif; ?> |
341 | - <?php if( in_array( 'order.base.address.website', $fields ) ) : ?> |
|
342 | - <td class="order-base-address-website"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html( $addrItem->getWebsite() ) : ''; ?></a></td> |
|
341 | + <?php if (in_array('order.base.address.website', $fields)) : ?> |
|
342 | + <td class="order-base-address-website"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html($addrItem->getWebsite()) : ''; ?></a></td> |
|
343 | 343 | <?php endif; ?> |
344 | 344 | |
345 | 345 | <td class="actions"> |
346 | 346 | <a class="btn act-copy fa" tabindex="1" |
347 | - href="<?= $enc->attr( $this->url( $copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig ) ); ?>" |
|
348 | - title="<?= $enc->attr( $this->translate( 'admin', 'Copy this entry') ); ?>" |
|
349 | - aria-label="<?= $enc->attr( $this->translate( 'admin', 'Copy' ) ); ?>"></a> |
|
350 | - <?php if( !$this->site()->readonly( $item->getSiteId() ) ) : ?> |
|
347 | + href="<?= $enc->attr($this->url($copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig)); ?>" |
|
348 | + title="<?= $enc->attr($this->translate('admin', 'Copy this entry')); ?>" |
|
349 | + aria-label="<?= $enc->attr($this->translate('admin', 'Copy')); ?>"></a> |
|
350 | + <?php if (!$this->site()->readonly($item->getSiteId())) : ?> |
|
351 | 351 | <a class="btn act-delete fa" tabindex="1" |
352 | - href="<?= $enc->attr( $this->url( $delTarget, $delCntl, $delAction, ['resource' => 'subscription', 'id' => $id] + $params, [], $delConfig ) ); ?>" |
|
353 | - title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>" |
|
354 | - aria-label="<?= $enc->attr( $this->translate( 'admin', 'Delete' ) ); ?>"></a> |
|
352 | + href="<?= $enc->attr($this->url($delTarget, $delCntl, $delAction, ['resource' => 'subscription', 'id' => $id] + $params, [], $delConfig)); ?>" |
|
353 | + title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>" |
|
354 | + aria-label="<?= $enc->attr($this->translate('admin', 'Delete')); ?>"></a> |
|
355 | 355 | <?php endif; ?> |
356 | 356 | </td> |
357 | 357 | </tr> |
@@ -359,18 +359,18 @@ discard block |
||
359 | 359 | </tbody> |
360 | 360 | </table> |
361 | 361 | |
362 | - <?php if( $this->get( 'items', [] ) === [] ) : ?> |
|
363 | - <div class="noitems"><?= $enc->html( sprintf( $this->translate( 'admin', 'No items found' ) ) ); ?></div> |
|
362 | + <?php if ($this->get('items', []) === []) : ?> |
|
363 | + <div class="noitems"><?= $enc->html(sprintf($this->translate('admin', 'No items found'))); ?></div> |
|
364 | 364 | <?php endif; ?> |
365 | 365 | </form> |
366 | 366 | |
367 | 367 | <?= $this->partial( |
368 | - $this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard.php' ), |
|
369 | - ['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get( 'total' ), |
|
370 | - 'page' => $this->session( 'aimeos/admin/jqadm/subscription/page', [] )] |
|
368 | + $this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard.php'), |
|
369 | + ['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get('total'), |
|
370 | + 'page' => $this->session('aimeos/admin/jqadm/subscription/page', [])] |
|
371 | 371 | ); |
372 | 372 | ?> |
373 | 373 | |
374 | 374 | <?php $this->block()->stop(); ?> |
375 | 375 | |
376 | -<?= $this->render( $this->config( 'admin/jqadm/template/page', 'common/page-standard.php' ) ); ?> |
|
376 | +<?= $this->render($this->config('admin/jqadm/template/page', 'common/page-standard.php')); ?> |