Completed
Push — master ( 521882...b49ab8 )
by Aimeos
04:07
created
admin/jqadm/templates/order/item-standard.php 2 patches
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -322,8 +322,11 @@  discard block
 block discarded – undo
322 322
 										<div class="col-sm-8"><span class="item-coupon"><?= $enc->attr( $code ); ?></span></div>
323 323
 									</div>
324 324
 								<?php endforeach; ?>
325
-							<?php else : ?>
326
-								<?= $enc->html( $this->translate( 'admin', 'No voucher' ) ); ?>
325
+							<?php else {
326
+	: ?>
327
+								<?= $enc->html( $this->translate( 'admin', 'No voucher' ) );
328
+}
329
+?>
327 330
 							<?php endif; ?>
328 331
 						</div>
329 332
 
@@ -731,8 +734,11 @@  discard block
 block discarded – undo
731 734
 								<div class="col-6 name">
732 735
 									<?php if( $basket->getPrice()->getTaxFlag() ) : ?>
733 736
 										<?= $enc->html( $this->translate( 'admin', 'Incl. tax' ) ); ?>
734
-									<?php else : ?>
735
-										<?= $enc->html( $this->translate( 'admin', 'Excl. tax' ) ); ?>
737
+									<?php else {
738
+	: ?>
739
+										<?= $enc->html( $this->translate( 'admin', 'Excl. tax' ) );
740
+}
741
+?>
736 742
 									<?php endif; ?>
737 743
 								</div>
738 744
 								<div class="col-6 value"><?= $enc->html( sprintf( $priceFormat, $this->number( $basket->getPrice()->getTaxValue() ), $currency ) ); ?></div>
Please login to merge, or discard this patch.
Spacing   +306 added lines, -306 removed lines patch added patch discarded remove patch
@@ -5,20 +5,20 @@  discard block
 block discarded – undo
5 5
  * @copyright Aimeos (aimeos.org), 2017-2018
6 6
  */
7 7
 
8
-$selected = function( $key, $code ) {
9
-	return ( $key == $code ? 'selected="selected"' : '' );
8
+$selected = function($key, $code) {
9
+	return ($key == $code ? 'selected="selected"' : '');
10 10
 };
11 11
 
12
-$sortItems = function( array $items )
12
+$sortItems = function(array $items)
13 13
 {
14 14
 	$result = [];
15 15
 
16
-	if( isset( $items['payment'] ) ) {
17
-		$result['payment'] = $items['payment']; unset( $items['payment'] );
16
+	if (isset($items['payment'])) {
17
+		$result['payment'] = $items['payment']; unset($items['payment']);
18 18
 	}
19 19
 
20
-	if( isset( $items['delivery'] ) ) {
21
-		$result['delivery'] = $items['delivery']; unset( $items['delivery'] );
20
+	if (isset($items['delivery'])) {
21
+		$result['delivery'] = $items['delivery']; unset($items['delivery']);
22 22
 	}
23 23
 
24 24
 	return $result + $items;
@@ -28,32 +28,32 @@  discard block
 block discarded – undo
28 28
 $enc = $this->encoder();
29 29
 
30 30
 
31
-$target = $this->config( 'admin/jqadm/url/save/target' );
32
-$cntl = $this->config( 'admin/jqadm/url/save/controller', 'Jqadm' );
33
-$action = $this->config( 'admin/jqadm/url/save/action', 'save' );
34
-$config = $this->config( 'admin/jqadm/url/save/config', [] );
31
+$target = $this->config('admin/jqadm/url/save/target');
32
+$cntl = $this->config('admin/jqadm/url/save/controller', 'Jqadm');
33
+$action = $this->config('admin/jqadm/url/save/action', 'save');
34
+$config = $this->config('admin/jqadm/url/save/config', []);
35 35
 
36
-$getTarget = $this->config( 'admin/jqadm/url/get/target' );
37
-$getCntl = $this->config( 'admin/jqadm/url/get/controller', 'Jqadm' );
38
-$getAction = $this->config( 'admin/jqadm/url/get/action', 'get' );
39
-$getConfig = $this->config( 'admin/jqadm/url/get/config', [] );
36
+$getTarget = $this->config('admin/jqadm/url/get/target');
37
+$getCntl = $this->config('admin/jqadm/url/get/controller', 'Jqadm');
38
+$getAction = $this->config('admin/jqadm/url/get/action', 'get');
39
+$getConfig = $this->config('admin/jqadm/url/get/config', []);
40 40
 
41
-$listTarget = $this->config( 'admin/jqadm/url/search/target' );
42
-$listCntl = $this->config( 'admin/jqadm/url/search/controller', 'Jqadm' );
43
-$listAction = $this->config( 'admin/jqadm/url/search/action', 'search' );
44
-$listConfig = $this->config( 'admin/jqadm/url/search/config', [] );
41
+$listTarget = $this->config('admin/jqadm/url/search/target');
42
+$listCntl = $this->config('admin/jqadm/url/search/controller', 'Jqadm');
43
+$listAction = $this->config('admin/jqadm/url/search/action', 'search');
44
+$listConfig = $this->config('admin/jqadm/url/search/config', []);
45 45
 
46
-$newTarget = $this->config( 'admin/jqadm/url/create/target' );
47
-$newCntl = $this->config( 'admin/jqadm/url/create/controller', 'Jqadm' );
48
-$newAction = $this->config( 'admin/jqadm/url/create/action', 'create' );
49
-$newConfig = $this->config( 'admin/jqadm/url/create/config', [] );
46
+$newTarget = $this->config('admin/jqadm/url/create/target');
47
+$newCntl = $this->config('admin/jqadm/url/create/controller', 'Jqadm');
48
+$newAction = $this->config('admin/jqadm/url/create/action', 'create');
49
+$newConfig = $this->config('admin/jqadm/url/create/config', []);
50 50
 
51 51
 
52
-$searchParams = $params = $this->get( 'pageParams', [] );
53
-unset( $searchParams['id'] );
52
+$searchParams = $params = $this->get('pageParams', []);
53
+unset($searchParams['id']);
54 54
 
55 55
 /// Price format with price value (%1$s) and currency (%2$s)
56
-$priceFormat = $this->translate( 'client/code', '%1$s %2$s' );
56
+$priceFormat = $this->translate('client/code', '%1$s %2$s');
57 57
 
58 58
 $serviceAttrCodes = [
59 59
 	/** admin/jqadm/order/service/delivery/attribute/suggest
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 	 * @category Developer
69 69
 	 * @see admin/jqadm/order/service/payment/attribute/suggest
70 70
 	 */
71
-	'delivery' => $this->config( 'admin/jqadm/order/service/delivery/attribute/suggest', ['trackingid'] ),
71
+	'delivery' => $this->config('admin/jqadm/order/service/delivery/attribute/suggest', ['trackingid']),
72 72
 
73 73
 	/** admin/jqadm/order/service/payment/attribute/suggest
74 74
 	 * List of suggested configuration keys for payment service attributes in orders
@@ -82,59 +82,59 @@  discard block
 block discarded – undo
82 82
 	 * @category Developer
83 83
 	 * @see admin/jqadm/order/service/delivery/attribute/suggest
84 84
 	 */
85
-	'payment' => $this->config( 'admin/jqadm/order/service/payment/attribute/suggest', [] ),
85
+	'payment' => $this->config('admin/jqadm/order/service/payment/attribute/suggest', []),
86 86
 ];
87 87
 
88 88
 $statusList = [
89
-	'-1' => $this->translate( 'mshop/code', 'stat:-1' ),
90
-	'0' => $this->translate( 'mshop/code', 'stat:0' ),
91
-	'1' => $this->translate( 'mshop/code', 'stat:1' ),
92
-	'2' => $this->translate( 'mshop/code', 'stat:2' ),
93
-	'3' => $this->translate( 'mshop/code', 'stat:3' ),
94
-	'4' => $this->translate( 'mshop/code', 'stat:4' ),
95
-	'5' => $this->translate( 'mshop/code', 'stat:5' ),
96
-	'6' => $this->translate( 'mshop/code', 'stat:6' ),
97
-	'7' => $this->translate( 'mshop/code', 'stat:7' ),
89
+	'-1' => $this->translate('mshop/code', 'stat:-1'),
90
+	'0' => $this->translate('mshop/code', 'stat:0'),
91
+	'1' => $this->translate('mshop/code', 'stat:1'),
92
+	'2' => $this->translate('mshop/code', 'stat:2'),
93
+	'3' => $this->translate('mshop/code', 'stat:3'),
94
+	'4' => $this->translate('mshop/code', 'stat:4'),
95
+	'5' => $this->translate('mshop/code', 'stat:5'),
96
+	'6' => $this->translate('mshop/code', 'stat:6'),
97
+	'7' => $this->translate('mshop/code', 'stat:7'),
98 98
 ];
99 99
 
100 100
 
101 101
 ?>
102
-<?php $this->block()->start( 'jqadm_content' ); ?>
102
+<?php $this->block()->start('jqadm_content'); ?>
103 103
 
104
-<?php if( isset( $this->item ) ) : ?>
105
-	<?php $basket = $this->item; $currency = $this->translate( 'currency', $basket->getPrice()->getCurrencyId() ); ?>
104
+<?php if (isset($this->item)) : ?>
105
+	<?php $basket = $this->item; $currency = $this->translate('currency', $basket->getPrice()->getCurrencyId()); ?>
106 106
 
107
-	<form class="item item-order form-horizontal" method="POST" enctype="multipart/form-data" action="<?= $enc->attr( $this->url( $target, $cntl, $action, $params, [], $config ) ); ?>">
108
-		<input id="item-baseid" type="hidden" name="<?= $enc->attr( $this->formparam( array( 'item', 'order.base.id' ) ) ); ?>" value="<?= $enc->attr( $basket->getId() ); ?>" />
109
-		<input id="item-next" type="hidden" name="<?= $enc->attr( $this->formparam( array( 'next' ) ) ); ?>" value="get" />
107
+	<form class="item item-order form-horizontal" method="POST" enctype="multipart/form-data" action="<?= $enc->attr($this->url($target, $cntl, $action, $params, [], $config)); ?>">
108
+		<input id="item-baseid" type="hidden" name="<?= $enc->attr($this->formparam(array('item', 'order.base.id'))); ?>" value="<?= $enc->attr($basket->getId()); ?>" />
109
+		<input id="item-next" type="hidden" name="<?= $enc->attr($this->formparam(array('next'))); ?>" value="get" />
110 110
 		<?= $this->csrf()->formfield(); ?>
111 111
 
112 112
 		<nav class="main-navbar">
113 113
 			<span class="navbar-brand">
114
-				<?= $enc->html( $this->translate( 'admin', 'Order' ) ); ?>:
115
-				<?= $enc->html( $basket->getId() ); ?> -
116
-				<?= $enc->html( $this->number( $basket->getPrice()->getValue() ) ); ?>
117
-				<?= $enc->html( $basket->getPrice()->getCurrencyId() ); ?>
118
-				<span class="navbar-secondary">(<?= $enc->html( $this->site()->match( $basket->getLocale()->getSiteId() ) ); ?>)</span>
114
+				<?= $enc->html($this->translate('admin', 'Order')); ?>:
115
+				<?= $enc->html($basket->getId()); ?> -
116
+				<?= $enc->html($this->number($basket->getPrice()->getValue())); ?>
117
+				<?= $enc->html($basket->getPrice()->getCurrencyId()); ?>
118
+				<span class="navbar-secondary">(<?= $enc->html($this->site()->match($basket->getLocale()->getSiteId())); ?>)</span>
119 119
 			</span>
120 120
 			<div class="item-actions">
121 121
 				<a class="btn btn-secondary act-cancel"
122
-					title="<?= $enc->attr( $this->translate( 'admin', 'Cancel and return to list') ); ?>"
123
-					href="<?= $enc->attr( $this->url( $listTarget, $listCntl, $listAction, $searchParams, [], $listConfig ) ); ?>">
124
-					<?= $enc->html( $this->translate( 'admin', 'Cancel' ) ); ?>
122
+					title="<?= $enc->attr($this->translate('admin', 'Cancel and return to list')); ?>"
123
+					href="<?= $enc->attr($this->url($listTarget, $listCntl, $listAction, $searchParams, [], $listConfig)); ?>">
124
+					<?= $enc->html($this->translate('admin', 'Cancel')); ?>
125 125
 				</a>
126 126
 
127 127
 				<div class="btn-group">
128 128
 					<button type="submit" class="btn btn-primary act-save"
129
-						title="<?= $enc->attr( $this->translate( 'admin', 'Save entry (Ctrl+S)') ); ?>">
130
-						<?= $enc->html( $this->translate( 'admin', 'Save' ) ); ?>
129
+						title="<?= $enc->attr($this->translate('admin', 'Save entry (Ctrl+S)')); ?>">
130
+						<?= $enc->html($this->translate('admin', 'Save')); ?>
131 131
 					</button>
132 132
 					<button type="button" class="btn btn-primary dropdown-toggle dropdown-toggle-split" data-toggle="dropdown"
133 133
 						aria-haspopup="true" aria-expanded="false">
134
-						<span class="sr-only"><?= $enc->html( $this->translate( 'admin', 'Toggle dropdown' ) ); ?></span>
134
+						<span class="sr-only"><?= $enc->html($this->translate('admin', 'Toggle dropdown')); ?></span>
135 135
 					</button>
136 136
 					<ul class="dropdown-menu dropdown-menu-right">
137
-						<li class="dropdown-item"><a class="next-action" href="#" data-next="search"><?= $enc->html( $this->translate( 'admin', 'Save & Close' ) ); ?></a></li>
137
+						<li class="dropdown-item"><a class="next-action" href="#" data-next="search"><?= $enc->html($this->translate('admin', 'Save & Close')); ?></a></li>
138 138
 					</ul>
139 139
 				</div>
140 140
 			</div>
@@ -147,14 +147,14 @@  discard block
 block discarded – undo
147 147
 
148 148
 					<li class="nav-item order">
149 149
 						<a class="nav-link active" href="#order" data-toggle="tab" role="tab" aria-expanded="true" aria-controls="order">
150
-							<?= $enc->html( $this->translate( 'admin', 'Order' ) ); ?>
150
+							<?= $enc->html($this->translate('admin', 'Order')); ?>
151 151
 						</a>
152 152
 					</li>
153 153
 
154
-					<?php foreach( array_values( $this->get( 'itemSubparts', [] ) ) as $type => $subpart ) : ?>
155
-						<li class="nav-item <?= $enc->attr( $subpart ); ?>">
156
-							<a class="nav-link" href="#<?= $enc->attr( $subpart ); ?>" data-toggle="tab" role="tab" tabindex="<?= ++$type+1; ?>">
157
-								<?= $enc->html( $this->translate( 'admin', $subpart ) ); ?>
154
+					<?php foreach (array_values($this->get('itemSubparts', [])) as $type => $subpart) : ?>
155
+						<li class="nav-item <?= $enc->attr($subpart); ?>">
156
+							<a class="nav-link" href="#<?= $enc->attr($subpart); ?>" data-toggle="tab" role="tab" tabindex="<?= ++$type + 1; ?>">
157
+								<?= $enc->html($this->translate('admin', $subpart)); ?>
158 158
 							</a>
159 159
 						</li>
160 160
 					<?php endforeach; ?>
@@ -163,16 +163,16 @@  discard block
 block discarded – undo
163 163
 
164 164
 				<div class="item-meta text-muted">
165 165
 					<small>
166
-						<?= $enc->html( $this->translate( 'admin', 'Modified' ) ); ?>:
167
-						<span class="meta-value"><?= $enc->html( $basket->getTimeModified() ); ?></span>
166
+						<?= $enc->html($this->translate('admin', 'Modified')); ?>:
167
+						<span class="meta-value"><?= $enc->html($basket->getTimeModified()); ?></span>
168 168
 					</small>
169 169
 					<small>
170
-						<?= $enc->html( $this->translate( 'admin', 'Created' ) ); ?>:
171
-						<span class="meta-value"><?= $enc->html( $basket->getTimeCreated() ); ?></span>
170
+						<?= $enc->html($this->translate('admin', 'Created')); ?>:
171
+						<span class="meta-value"><?= $enc->html($basket->getTimeCreated()); ?></span>
172 172
 					</small>
173 173
 					<small>
174
-						<?= $enc->html( $this->translate( 'admin', 'Editor' ) ); ?>:
175
-						<span class="meta-value"><?= $enc->html( $basket->getEditor() ); ?></span>
174
+						<?= $enc->html($this->translate('admin', 'Editor')); ?>:
175
+						<span class="meta-value"><?= $enc->html($basket->getEditor()); ?></span>
176 176
 					</small>
177 177
 				</div>
178 178
 			</div>
@@ -182,57 +182,57 @@  discard block
 block discarded – undo
182 182
 				<div id="order" class="item-order tab-pane fade show active" role="tabpanel" aria-labelledby="order">
183 183
 
184 184
 					<div class="row item-base">
185
-						<div class="col-xl-6 content-block <?= $this->site()->readonly( $basket->getSiteId() ); ?>">
185
+						<div class="col-xl-6 content-block <?= $this->site()->readonly($basket->getSiteId()); ?>">
186 186
 							<div class="form-group row mandatory">
187
-								<label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Language' ) ); ?></label>
187
+								<label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'Language')); ?></label>
188 188
 								<div class="col-sm-8">
189 189
 									<select class="form-control custom-select item-languageid" required="required" tabindex="1"
190
-										name="<?= $enc->attr( $this->formparam( array( 'item', 'order.base.languageid' ) ) ); ?>"
191
-										<?= $this->site()->readonly( $basket->getLocale()->getSiteId() ); ?> >
190
+										name="<?= $enc->attr($this->formparam(array('item', 'order.base.languageid'))); ?>"
191
+										<?= $this->site()->readonly($basket->getLocale()->getSiteId()); ?> >
192 192
 										<option value="">
193
-											<?= $enc->html( $this->translate( 'admin', 'Please select' ) ); ?>
193
+											<?= $enc->html($this->translate('admin', 'Please select')); ?>
194 194
 										</option>
195 195
 
196
-										<?php foreach( $this->get( 'pageLangItems', [] ) as $langId => $langItem ) : ?>
197
-											<option value="<?= $enc->attr( $langId ); ?>" <?= $selected( $basket->getLocale()->getLanguageId(), $langId ); ?> >
198
-												<?= $enc->html( $this->translate( 'language', $langId ) ); ?>
196
+										<?php foreach ($this->get('pageLangItems', []) as $langId => $langItem) : ?>
197
+											<option value="<?= $enc->attr($langId); ?>" <?= $selected($basket->getLocale()->getLanguageId(), $langId); ?> >
198
+												<?= $enc->html($this->translate('language', $langId)); ?>
199 199
 											</option>
200 200
 										<?php endforeach; ?>
201 201
 									</select>
202 202
 								</div>
203 203
 							</div>
204 204
 							<div class="form-group row">
205
-								<label class="col-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Site' ) ); ?></label>
205
+								<label class="col-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Site')); ?></label>
206 206
 								<div class="col-8">
207
-									<span class="form-control item-sitecode"><?= $enc->html( $basket->getSiteCode() ); ?></span>
207
+									<span class="form-control item-sitecode"><?= $enc->html($basket->getSiteCode()); ?></span>
208 208
 								</div>
209 209
 								<div class="col-12 form-text text-muted help-text">
210
-									<?= $enc->html( $this->translate( 'admin', 'Site the order was placed at' ) ); ?>
210
+									<?= $enc->html($this->translate('admin', 'Site the order was placed at')); ?>
211 211
 								</div>
212 212
 							</div>
213 213
 						</div>
214 214
 
215
-						<div class="col-xl-6 content-block <?= $this->site()->readonly( $basket->getLocale()->getSiteId() ); ?>">
215
+						<div class="col-xl-6 content-block <?= $this->site()->readonly($basket->getLocale()->getSiteId()); ?>">
216 216
 							<div class="form-group row">
217
-								<label class="col-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Customer' ) ); ?></label>
217
+								<label class="col-4 form-control-label"><?= $enc->html($this->translate('admin', 'Customer')); ?></label>
218 218
 								<div class="col-8">
219 219
 									<select class="combobox item-customer" tabindex="1"
220
-										name="<?= $enc->attr( $this->formparam( array( 'item', 'order.base.customerid' ) ) ); ?>"
221
-										<?= $this->site()->readonly( $basket->getLocale()->getSiteId() ); ?> />
222
-										<option value="<?= $enc->attr( $this->get( 'itemData/order.base.customerid' ) ); ?>" >
223
-											<?= $enc->html( $this->get( 'itemData/customer.code' ) ); ?>
220
+										name="<?= $enc->attr($this->formparam(array('item', 'order.base.customerid'))); ?>"
221
+										<?= $this->site()->readonly($basket->getLocale()->getSiteId()); ?> />
222
+										<option value="<?= $enc->attr($this->get('itemData/order.base.customerid')); ?>" >
223
+											<?= $enc->html($this->get('itemData/customer.code')); ?>
224 224
 										</option>
225 225
 									</select>
226 226
 								</div>
227 227
 							</div>
228 228
 							<div class="form-group row">
229
-								<label class="col-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Customer ID' ) ); ?></label>
229
+								<label class="col-4 form-control-label"><?= $enc->html($this->translate('admin', 'Customer ID')); ?></label>
230 230
 								<div class="col-8">
231 231
 									<span class="form-control item-customerid">
232
-										<?php if( $basket->getCustomerId() ) : ?>
232
+										<?php if ($basket->getCustomerId()) : ?>
233 233
 											<a class="act-view" target="_blank"
234
-												href="<?= $enc->attr( $this->url( $getTarget, $getCntl, $getAction, ['resource' => 'customer', 'id' => $basket->getCustomerId()], [], $getConfig ) ); ?>">
235
-												<?= $enc->attr( $basket->getCustomerId() ); ?>
234
+												href="<?= $enc->attr($this->url($getTarget, $getCntl, $getAction, ['resource' => 'customer', 'id' => $basket->getCustomerId()], [], $getConfig)); ?>">
235
+												<?= $enc->attr($basket->getCustomerId()); ?>
236 236
 											</a>
237 237
 										<?php endif; ?>
238 238
 									</span>
@@ -245,73 +245,73 @@  discard block
 block discarded – undo
245 245
 					<div class="row item-product">
246 246
 
247 247
 						<div class="col-sm-12 content-block">
248
-							<h2 class="col-sm-12 item-header"><?= $enc->html( $this->translate( 'admin', 'Products' ) ); ?></h2>
248
+							<h2 class="col-sm-12 item-header"><?= $enc->html($this->translate('admin', 'Products')); ?></h2>
249 249
 							<table class="item-product-list table table-striped">
250 250
 								<thead>
251 251
 									<tr>
252
-										<th class="item-column column-subscription"><?= $enc->html( $this->translate( 'admin', 'Renew' ) ); ?></th>
253
-										<th class="item-column column-status"><?= $enc->html( $this->translate( 'admin', 'Status' ) ); ?></th>
254
-										<th class="item-column column-desc"><?= $enc->html( $this->translate( 'admin', 'Name' ) ); ?></th>
255
-										<th class="item-column column-quantity"><?= $enc->html( $this->translate( 'admin', 'Quantity' ) ); ?></th>
256
-										<th class="item-column column-price"><?= $enc->html( $this->translate( 'admin', 'Price' ) ); ?></th>
257
-										<th class="item-column column-sum"><?= $enc->html( $this->translate( 'admin', 'Sum' ) ); ?></th>
252
+										<th class="item-column column-subscription"><?= $enc->html($this->translate('admin', 'Renew')); ?></th>
253
+										<th class="item-column column-status"><?= $enc->html($this->translate('admin', 'Status')); ?></th>
254
+										<th class="item-column column-desc"><?= $enc->html($this->translate('admin', 'Name')); ?></th>
255
+										<th class="item-column column-quantity"><?= $enc->html($this->translate('admin', 'Quantity')); ?></th>
256
+										<th class="item-column column-price"><?= $enc->html($this->translate('admin', 'Price')); ?></th>
257
+										<th class="item-column column-sum"><?= $enc->html($this->translate('admin', 'Sum')); ?></th>
258 258
 									</tr>
259 259
 								</thead>
260 260
 								<tbody>
261 261
 
262
-									<?php foreach( (array) $basket->getProducts() as $pos => $orderProduct ) : ?>
262
+									<?php foreach ((array) $basket->getProducts() as $pos => $orderProduct) : ?>
263 263
 										<tr class="list-item">
264 264
 											<td class="item-column column-subscription">
265 265
 												<?php $newParams = [
266 266
 														'item' => ['subscription.ordbaseid' => $basket->getId(), 'subscription.ordprodid' => $orderProduct->getId()],
267
-														'site' => $this->param( 'site' ),
268
-														'lang' => $this->param( 'lang' ),
267
+														'site' => $this->param('site'),
268
+														'lang' => $this->param('lang'),
269 269
 														'resource' => 'subscription'
270 270
 													];
271 271
 												?>
272
-												<a class="btn btn-subscription fa" href="<?= $this->url( $newTarget, $newCntl, $newAction, $newParams, [], $newConfig ) ?>"></a>
272
+												<a class="btn btn-subscription fa" href="<?= $this->url($newTarget, $newCntl, $newAction, $newParams, [], $newConfig) ?>"></a>
273 273
 											</td>
274 274
 											<td class="item-column column-status">
275 275
 												<select class="form-control custom-select product-status" required="required" tabindex="1"
276
-													name="<?= $enc->attr( $this->formparam( array( 'item', 'product', $pos, 'order.base.product.status' ) ) ); ?>"
277
-													<?= $this->site()->readonly( $basket->getLocale()->getSiteId() ); ?> >
276
+													name="<?= $enc->attr($this->formparam(array('item', 'product', $pos, 'order.base.product.status'))); ?>"
277
+													<?= $this->site()->readonly($basket->getLocale()->getSiteId()); ?> >
278 278
 													<option value="">
279
-														<?= $enc->html( $this->translate( 'admin', 'Please select' ) ); ?>
279
+														<?= $enc->html($this->translate('admin', 'Please select')); ?>
280 280
 													</option>
281
-													<?php foreach( $statusList as $code => $label ) : ?>
282
-														<option value="<?= $code ?>" <?= $selected( $this->get( 'itemData/product/' . $pos . '/order.base.product.status' ), $code ); ?> >
283
-															<?= $enc->html( $label ); ?>
281
+													<?php foreach ($statusList as $code => $label) : ?>
282
+														<option value="<?= $code ?>" <?= $selected($this->get('itemData/product/' . $pos . '/order.base.product.status'), $code); ?> >
283
+															<?= $enc->html($label); ?>
284 284
 														</option>
285 285
 													<?php endforeach; ?>
286 286
 												</select>
287 287
 											</td>
288 288
 											<td class="item-column column-desc">
289
-												<span class="product-name"><?= $enc->html( $orderProduct->getName() ); ?></span>
289
+												<span class="product-name"><?= $enc->html($orderProduct->getName()); ?></span>
290 290
 												<span class="product-attr">
291
-													<?php foreach( $orderProduct->getAttributeItems() as $attrItem ) : ?>
292
-														<span class="attr-code"><?= $enc->html( $attrItem->getCode() ); ?></span>
291
+													<?php foreach ($orderProduct->getAttributeItems() as $attrItem) : ?>
292
+														<span class="attr-code"><?= $enc->html($attrItem->getCode()); ?></span>
293 293
 														<span class="attr-value">
294
-															<?php if( $attrItem->getQuantity() > 1 ) : ?>
295
-																<?= $enc->html( $attrItem->getQuantity() ); ?>×
294
+															<?php if ($attrItem->getQuantity() > 1) : ?>
295
+																<?= $enc->html($attrItem->getQuantity()); ?>×
296 296
 															<?php endif; ?>
297
-															<?= $enc->html( $attrItem->getValue() ); ?>
297
+															<?= $enc->html($attrItem->getValue()); ?>
298 298
 														</span>
299 299
 													<?php endforeach; ?>
300 300
 												</span>
301
-												<span class="product-sku"><?= $enc->html( $orderProduct->getProductCode() ); ?></span>
301
+												<span class="product-sku"><?= $enc->html($orderProduct->getProductCode()); ?></span>
302 302
 											</td>
303 303
 											<td class="item-column column-quantity">
304
-												<span class="product-quantity"><?= $enc->html( $orderProduct->getQuantity() ); ?></span>
304
+												<span class="product-quantity"><?= $enc->html($orderProduct->getQuantity()); ?></span>
305 305
 											</td>
306 306
 											<td class="item-column column-price">
307
-												<span class="product-price"><?= $enc->html( sprintf( $priceFormat, $orderProduct->getPrice()->getValue(), $currency ) ); ?></span>
308
-												<span class="product-costs"><?= $enc->html( sprintf( $priceFormat, $orderProduct->getPrice()->getCosts(), $currency ) ); ?></span>
309
-												<span class="product-rebate"><?= $enc->html( sprintf( $priceFormat, $orderProduct->getPrice()->getRebate(), $currency ) ); ?></span>
307
+												<span class="product-price"><?= $enc->html(sprintf($priceFormat, $orderProduct->getPrice()->getValue(), $currency)); ?></span>
308
+												<span class="product-costs"><?= $enc->html(sprintf($priceFormat, $orderProduct->getPrice()->getCosts(), $currency)); ?></span>
309
+												<span class="product-rebate"><?= $enc->html(sprintf($priceFormat, $orderProduct->getPrice()->getRebate(), $currency)); ?></span>
310 310
 											</td>
311 311
 											<td class="item-column column-sum">
312
-												<span class="product-price"><?= $enc->html( sprintf( $priceFormat, $this->number( $orderProduct->getPrice()->getValue() * $orderProduct->getQuantity() ), $currency ) ); ?></span>
313
-												<span class="product-costs"><?= $enc->html( sprintf( $priceFormat, $this->number( $orderProduct->getPrice()->getCosts() * $orderProduct->getQuantity() ), $currency ) ); ?></span>
314
-												<span class="product-rebate"><?= $enc->html( sprintf( $priceFormat, $this->number( $orderProduct->getPrice()->getRebate() * $orderProduct->getQuantity() ), $currency ) ); ?></span>
312
+												<span class="product-price"><?= $enc->html(sprintf($priceFormat, $this->number($orderProduct->getPrice()->getValue() * $orderProduct->getQuantity()), $currency)); ?></span>
313
+												<span class="product-costs"><?= $enc->html(sprintf($priceFormat, $this->number($orderProduct->getPrice()->getCosts() * $orderProduct->getQuantity()), $currency)); ?></span>
314
+												<span class="product-rebate"><?= $enc->html(sprintf($priceFormat, $this->number($orderProduct->getPrice()->getRebate() * $orderProduct->getQuantity()), $currency)); ?></span>
315 315
 											</td>
316 316
 										</tr>
317 317
 									<?php endforeach; ?>
@@ -326,27 +326,27 @@  discard block
 block discarded – undo
326 326
 					<div class="row item-misc">
327 327
 
328 328
 						<div class="col-xl-6 content-block">
329
-							<h2 class="col-sm-12 item-header"><?= $enc->html( $this->translate( 'admin', 'Coupon' ) ); ?></h2>
330
-							<?php if( $basket->getCoupons() !== [] ) : ?>
331
-								<?php foreach( $basket->getCoupons() as $code => $product ) : ?>
329
+							<h2 class="col-sm-12 item-header"><?= $enc->html($this->translate('admin', 'Coupon')); ?></h2>
330
+							<?php if ($basket->getCoupons() !== []) : ?>
331
+								<?php foreach ($basket->getCoupons() as $code => $product) : ?>
332 332
 									<div class="form-group row">
333
-										<label class="col-sm-4"><?= $enc->html( $this->translate( 'admin', 'Code' ) ); ?></label>
334
-										<div class="col-sm-8"><span class="item-coupon"><?= $enc->attr( $code ); ?></span></div>
333
+										<label class="col-sm-4"><?= $enc->html($this->translate('admin', 'Code')); ?></label>
334
+										<div class="col-sm-8"><span class="item-coupon"><?= $enc->attr($code); ?></span></div>
335 335
 									</div>
336 336
 								<?php endforeach; ?>
337 337
 							<?php else : ?>
338
-								<?= $enc->html( $this->translate( 'admin', 'No voucher' ) ); ?>
338
+								<?= $enc->html($this->translate('admin', 'No voucher')); ?>
339 339
 							<?php endif; ?>
340 340
 						</div>
341 341
 
342 342
 						<div class="col-xl-6 content-block">
343
-							<h2 class="col-sm-12 item-header"><?= $enc->html( $this->translate( 'admin', 'Comment' ) ); ?></h2>
343
+							<h2 class="col-sm-12 item-header"><?= $enc->html($this->translate('admin', 'Comment')); ?></h2>
344 344
 							<div class="form-group optional">
345 345
 								<textarea class="form-control item-title" type="text" tabindex="1" rows="3"
346
-									name="<?= $enc->attr( $this->formparam( array( 'item', 'order.base.comment' ) ) ); ?>"
347
-									placeholder="<?= $enc->attr( $this->translate( 'admin', 'Customer comment (optional)' ) ); ?>"
348
-									<?= $this->site()->readonly( $basket->getLocale()->getSiteId() ); ?>
349
-								><?= $enc->html( $basket->getComment() ); ?></textarea>
346
+									name="<?= $enc->attr($this->formparam(array('item', 'order.base.comment'))); ?>"
347
+									placeholder="<?= $enc->attr($this->translate('admin', 'Customer comment (optional)')); ?>"
348
+									<?= $this->site()->readonly($basket->getLocale()->getSiteId()); ?>
349
+								><?= $enc->html($basket->getComment()); ?></textarea>
350 350
 							</div>
351 351
 						</div>
352 352
 
@@ -354,265 +354,265 @@  discard block
 block discarded – undo
354 354
 
355 355
 
356 356
 					<div class="row">
357
-						<?php foreach( $sortItems( $basket->getAddresses() ) as $type => $addressItem ) : $code = 'address:' . $type; ?>
357
+						<?php foreach ($sortItems($basket->getAddresses()) as $type => $addressItem) : $code = 'address:' . $type; ?>
358 358
 
359 359
 							<div class="col-xl-6 content-block item-address">
360
-								<h2 class="col-sm-12 item-header"><?= $enc->html( $this->translate( 'admin/ext', $code ) ); ?></h2>
360
+								<h2 class="col-sm-12 item-header"><?= $enc->html($this->translate('admin/ext', $code)); ?></h2>
361 361
 
362 362
 								<div class="address-short">
363 363
 									<?php
364 364
 										/// short order address with company (%1$s), first name (%2$s), last name (%3$s), street (%4$s), house number (%5$s),
365 365
 										/// zip code (%6$s), city (%7$s),state (%8$s), countryid (%9$s), e-mail (%10$s), telephone (%11$s), VAT ID  (%12$s)
366
-										$addrFormat = $this->translate( 'admin', "%1\$s\n%2\$s %3\$s\n%5\$s %4\$s\n%7\$s, %6\$s\n%8\$s, %9\$s\n%10\$s\n%11\$s\n%12\$s" );
366
+										$addrFormat = $this->translate('admin', "%1\$s\n%2\$s %3\$s\n%5\$s %4\$s\n%7\$s, %6\$s\n%8\$s, %9\$s\n%10\$s\n%11\$s\n%12\$s");
367 367
 									?>
368
-									<span class="address-text" data-format="<?= $enc->attr( $addrFormat ); ?>"><!-- inserted by order.js --></span>
368
+									<span class="address-text" data-format="<?= $enc->attr($addrFormat); ?>"><!-- inserted by order.js --></span>
369 369
 									<span class="address-edit"></span>
370 370
 								</div>
371 371
 
372 372
 								<fieldset class="address-form">
373 373
 									<div class="form-group row mandatory">
374
-										<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'E-Mail' ) ); ?></label>
374
+										<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'E-Mail')); ?></label>
375 375
 										<div class="col-sm-8">
376 376
 											<input class="form-control item-email" type="email" tabindex="1" data-field="email"
377
-												name="<?= $enc->attr( $this->formparam( array( 'item', 'address', $type, 'order.base.address.email' ) ) ); ?>"
378
-												placeholder="<?= $enc->attr( $this->translate( 'admin', 'E-Mail address (required)' ) ); ?>"
379
-												value="<?= $enc->attr( $this->get( 'itemData/address/' . $type . '/order.base.address.email' ) ); ?>"
380
-												<?= $this->site()->readonly( $basket->getLocale()->getSiteId() ); ?> />
377
+												name="<?= $enc->attr($this->formparam(array('item', 'address', $type, 'order.base.address.email'))); ?>"
378
+												placeholder="<?= $enc->attr($this->translate('admin', 'E-Mail address (required)')); ?>"
379
+												value="<?= $enc->attr($this->get('itemData/address/' . $type . '/order.base.address.email')); ?>"
380
+												<?= $this->site()->readonly($basket->getLocale()->getSiteId()); ?> />
381 381
 										</div>
382 382
 										<div class="col-sm-12 form-text text-muted help-text">
383
-											<?= $enc->html( $this->translate( 'admin', 'Customer e-mail address' ) ); ?>
383
+											<?= $enc->html($this->translate('admin', 'Customer e-mail address')); ?>
384 384
 										</div>
385 385
 									</div>
386 386
 									<div class="form-group row optional">
387
-										<label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Language' ) ); ?></label>
387
+										<label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'Language')); ?></label>
388 388
 										<div class="col-sm-8">
389 389
 											<select class="form-control custom-select item-languageid" tabindex="1" data-field="languageid"
390
-												name="<?= $enc->attr( $this->formparam( array( 'item', 'address', $type, 'order.base.address.languageid' ) ) ); ?>"
391
-												<?= $this->site()->readonly( $basket->getLocale()->getSiteId() ); ?> >
392
-												<option value=""><?= $enc->html( $this->translate( 'admin', 'Please select' ) ); ?></option>
390
+												name="<?= $enc->attr($this->formparam(array('item', 'address', $type, 'order.base.address.languageid'))); ?>"
391
+												<?= $this->site()->readonly($basket->getLocale()->getSiteId()); ?> >
392
+												<option value=""><?= $enc->html($this->translate('admin', 'Please select')); ?></option>
393 393
 
394
-												<?php foreach( $this->get( 'pageLangItems', [] ) as $langId => $langItem ) : ?>
395
-													<option value="<?= $enc->attr( $langId ); ?>" <?= $selected( $this->get( 'itemData/address/' . $type . '/order.base.address.languageid' ), $langId ); ?> >
396
-														<?= $enc->html( $this->translate( 'language', $langId ) ); ?>
394
+												<?php foreach ($this->get('pageLangItems', []) as $langId => $langItem) : ?>
395
+													<option value="<?= $enc->attr($langId); ?>" <?= $selected($this->get('itemData/address/' . $type . '/order.base.address.languageid'), $langId); ?> >
396
+														<?= $enc->html($this->translate('language', $langId)); ?>
397 397
 													</option>
398 398
 												<?php endforeach; ?>
399 399
 											</select>
400 400
 										</div>
401 401
 									</div>
402 402
 									<div class="form-group row optional">
403
-										<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Salutation' ) ); ?></label>
403
+										<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Salutation')); ?></label>
404 404
 										<div class="col-sm-8">
405 405
 											<select class="form-control custom-select item-salutation" tabindex="1" data-field="salutation"
406
-												name="<?= $enc->attr( $this->formparam( array( 'item', 'address', $type, 'order.base.address.salutation' ) ) ); ?>"
407
-												<?= $this->site()->readonly( $basket->getLocale()->getSiteId() ); ?> >
408
-												<option value="" <?= $selected( $this->get( 'itemData/address/' . $type . '/order.base.address.salutation' ), '' ); ?> >
409
-													<?= $enc->html( $this->translate( 'admin', 'Please select' ) ); ?>
406
+												name="<?= $enc->attr($this->formparam(array('item', 'address', $type, 'order.base.address.salutation'))); ?>"
407
+												<?= $this->site()->readonly($basket->getLocale()->getSiteId()); ?> >
408
+												<option value="" <?= $selected($this->get('itemData/address/' . $type . '/order.base.address.salutation'), ''); ?> >
409
+													<?= $enc->html($this->translate('admin', 'Please select')); ?>
410 410
 												</option>
411
-												<option value="company" <?= $selected( $this->get( 'itemData/address/' . $type . '/order.base.address.salutation' ), 'company' ); ?> >
412
-													<?= $enc->html( $this->translate( 'client/code', 'company' ) ); ?>
411
+												<option value="company" <?= $selected($this->get('itemData/address/' . $type . '/order.base.address.salutation'), 'company'); ?> >
412
+													<?= $enc->html($this->translate('client/code', 'company')); ?>
413 413
 												</option>
414
-												<option value="mr" <?= $selected( $this->get( 'itemData/address/' . $type . '/order.base.address.salutation' ), 'mr' ); ?> >
415
-													<?= $enc->html( $this->translate( 'client/code', 'mr' ) ); ?>
414
+												<option value="mr" <?= $selected($this->get('itemData/address/' . $type . '/order.base.address.salutation'), 'mr'); ?> >
415
+													<?= $enc->html($this->translate('client/code', 'mr')); ?>
416 416
 												</option>
417
-												<option value="mrs" <?= $selected( $this->get( 'itemData/address/' . $type . '/order.base.address.salutation' ), 'mrs' ); ?> >
418
-													<?= $enc->html( $this->translate( 'client/code', 'mrs' ) ); ?>
417
+												<option value="mrs" <?= $selected($this->get('itemData/address/' . $type . '/order.base.address.salutation'), 'mrs'); ?> >
418
+													<?= $enc->html($this->translate('client/code', 'mrs')); ?>
419 419
 												</option>
420
-												<option value="miss" <?= $selected( $this->get( 'itemData/address/' . $type . '/order.base.address.salutation' ), 'miss' ); ?> >
421
-													<?= $enc->html( $this->translate( 'client/code', 'miss' ) ); ?>
420
+												<option value="miss" <?= $selected($this->get('itemData/address/' . $type . '/order.base.address.salutation'), 'miss'); ?> >
421
+													<?= $enc->html($this->translate('client/code', 'miss')); ?>
422 422
 												</option>
423 423
 											</select>
424 424
 										</div>
425 425
 										<div class="col-sm-12 form-text text-muted help-text">
426
-											<?= $enc->html( $this->translate( 'admin', 'How the customer is addressed in e-mails' ) ); ?>
426
+											<?= $enc->html($this->translate('admin', 'How the customer is addressed in e-mails')); ?>
427 427
 										</div>
428 428
 									</div>
429 429
 									<div class="form-group row optional">
430
-										<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Title' ) ); ?></label>
430
+										<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Title')); ?></label>
431 431
 										<div class="col-sm-8">
432 432
 											<input class="form-control item-title" type="text" tabindex="1" data-field="title"
433
-												name="<?= $enc->attr( $this->formparam( array( 'item', 'address', $type, 'order.base.address.title' ) ) ); ?>"
434
-												placeholder="<?= $enc->attr( $this->translate( 'admin', 'Honorary title (optional)' ) ); ?>"
435
-												value="<?= $enc->attr( $this->get( 'itemData/address/' . $type . '/order.base.address.title' ) ); ?>"
436
-												<?= $this->site()->readonly( $basket->getLocale()->getSiteId() ); ?> />
433
+												name="<?= $enc->attr($this->formparam(array('item', 'address', $type, 'order.base.address.title'))); ?>"
434
+												placeholder="<?= $enc->attr($this->translate('admin', 'Honorary title (optional)')); ?>"
435
+												value="<?= $enc->attr($this->get('itemData/address/' . $type . '/order.base.address.title')); ?>"
436
+												<?= $this->site()->readonly($basket->getLocale()->getSiteId()); ?> />
437 437
 										</div>
438 438
 										<div class="col-sm-12 form-text text-muted help-text">
439
-											<?= $enc->html( $this->translate( 'admin', 'Honorary titles like Dr., Ph.D, etc.' ) ); ?>
439
+											<?= $enc->html($this->translate('admin', 'Honorary titles like Dr., Ph.D, etc.')); ?>
440 440
 										</div>
441 441
 									</div>
442 442
 									<div class="form-group row mandatory">
443
-										<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Last name' ) ); ?></label>
443
+										<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Last name')); ?></label>
444 444
 										<div class="col-sm-8">
445 445
 											<input class="form-control item-lastname" type="text" required="required" tabindex="1" data-field="lastname"
446
-												name="<?= $enc->attr( $this->formparam( array( 'item', 'address', $type, 'order.base.address.lastname' ) ) ); ?>"
447
-												placeholder="<?= $enc->attr( $this->translate( 'admin', 'Last name (required)' ) ); ?>"
448
-												value="<?= $enc->attr( $this->get( 'itemData/address/' . $type . '/order.base.address.lastname' ) ); ?>"
449
-												<?= $this->site()->readonly( $basket->getLocale()->getSiteId() ); ?> />
446
+												name="<?= $enc->attr($this->formparam(array('item', 'address', $type, 'order.base.address.lastname'))); ?>"
447
+												placeholder="<?= $enc->attr($this->translate('admin', 'Last name (required)')); ?>"
448
+												value="<?= $enc->attr($this->get('itemData/address/' . $type . '/order.base.address.lastname')); ?>"
449
+												<?= $this->site()->readonly($basket->getLocale()->getSiteId()); ?> />
450 450
 										</div>
451 451
 										<div class="col-sm-12 form-text text-muted help-text">
452
-											<?= $enc->html( $this->translate( 'admin', 'Last name of the person or full name in cultures where no first names are used' ) ); ?>
452
+											<?= $enc->html($this->translate('admin', 'Last name of the person or full name in cultures where no first names are used')); ?>
453 453
 										</div>
454 454
 									</div>
455 455
 									<div class="form-group row optional">
456
-										<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'First name' ) ); ?></label>
456
+										<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'First name')); ?></label>
457 457
 										<div class="col-sm-8">
458 458
 											<input class="form-control item-firstname" type="text" tabindex="1" data-field="firstname"
459
-												name="<?= $enc->attr( $this->formparam( array( 'item', 'address', $type, 'order.base.address.firstname' ) ) ); ?>"
460
-												placeholder="<?= $enc->attr( $this->translate( 'admin', 'First name (optional)' ) ); ?>"
461
-												value="<?= $enc->attr( $this->get( 'itemData/address/' . $type . '/order.base.address.firstname' ) ); ?>"
462
-												<?= $this->site()->readonly( $basket->getLocale()->getSiteId() ); ?> />
459
+												name="<?= $enc->attr($this->formparam(array('item', 'address', $type, 'order.base.address.firstname'))); ?>"
460
+												placeholder="<?= $enc->attr($this->translate('admin', 'First name (optional)')); ?>"
461
+												value="<?= $enc->attr($this->get('itemData/address/' . $type . '/order.base.address.firstname')); ?>"
462
+												<?= $this->site()->readonly($basket->getLocale()->getSiteId()); ?> />
463 463
 										</div>
464 464
 										<div class="col-sm-12 form-text text-muted help-text">
465
-											<?= $enc->html( $this->translate( 'admin', 'First name of the person if used in cultures where they are used' ) ); ?>
465
+											<?= $enc->html($this->translate('admin', 'First name of the person if used in cultures where they are used')); ?>
466 466
 										</div>
467 467
 									</div>
468 468
 									<div class="form-group row optional">
469
-										<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Street' ) ); ?></label>
469
+										<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Street')); ?></label>
470 470
 										<div class="col-sm-8">
471 471
 											<input class="form-control item-address1" type="text" tabindex="1" data-field="address1"
472
-												name="<?= $enc->attr( $this->formparam( array( 'item', 'address', $type, 'order.base.address.address1' ) ) ); ?>"
473
-												placeholder="<?= $enc->attr( $this->translate( 'admin', 'Street name (optional)' ) ); ?>"
474
-												value="<?= $enc->attr( $this->get( 'itemData/address/' . $type . '/order.base.address.address1' ) ); ?>"
475
-												<?= $this->site()->readonly( $basket->getLocale()->getSiteId() ); ?> />
472
+												name="<?= $enc->attr($this->formparam(array('item', 'address', $type, 'order.base.address.address1'))); ?>"
473
+												placeholder="<?= $enc->attr($this->translate('admin', 'Street name (optional)')); ?>"
474
+												value="<?= $enc->attr($this->get('itemData/address/' . $type . '/order.base.address.address1')); ?>"
475
+												<?= $this->site()->readonly($basket->getLocale()->getSiteId()); ?> />
476 476
 										</div>
477 477
 										<div class="col-sm-12 form-text text-muted help-text">
478
-											<?= $enc->html( $this->translate( 'admin', 'First name of the person if used in cultures where they are used' ) ); ?>
478
+											<?= $enc->html($this->translate('admin', 'First name of the person if used in cultures where they are used')); ?>
479 479
 										</div>
480 480
 									</div>
481 481
 									<div class="form-group row optional">
482
-										<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'House number' ) ); ?></label>
482
+										<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'House number')); ?></label>
483 483
 										<div class="col-sm-8">
484 484
 											<input class="form-control item-address2" type="text" tabindex="1" data-field="address2"
485
-												name="<?= $enc->attr( $this->formparam( array( 'item', 'address', $type, 'order.base.address.address2' ) ) ); ?>"
486
-												placeholder="<?= $enc->attr( $this->translate( 'admin', 'House number (optional)' ) ); ?>"
487
-												value="<?= $enc->attr( $this->get( 'itemData/address/' . $type . '/order.base.address.address2' ) ); ?>"
488
-												<?= $this->site()->readonly( $basket->getLocale()->getSiteId() ); ?> />
485
+												name="<?= $enc->attr($this->formparam(array('item', 'address', $type, 'order.base.address.address2'))); ?>"
486
+												placeholder="<?= $enc->attr($this->translate('admin', 'House number (optional)')); ?>"
487
+												value="<?= $enc->attr($this->get('itemData/address/' . $type . '/order.base.address.address2')); ?>"
488
+												<?= $this->site()->readonly($basket->getLocale()->getSiteId()); ?> />
489 489
 										</div>
490 490
 										<div class="col-sm-12 form-text text-muted help-text">
491
-											<?= $enc->html( $this->translate( 'admin', 'Address identifier of the customer\'s house for delivery' ) ); ?>
491
+											<?= $enc->html($this->translate('admin', 'Address identifier of the customer\'s house for delivery')); ?>
492 492
 										</div>
493 493
 									</div>
494 494
 									<div class="form-group row optional">
495
-										<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Floor / Appartment' ) ); ?></label>
495
+										<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Floor / Appartment')); ?></label>
496 496
 										<div class="col-sm-8">
497 497
 											<input class="form-control item-address3" type="text" tabindex="1" data-field="address3"
498
-												name="<?= $enc->attr( $this->formparam( array( 'item', 'address', $type, 'order.base.address.address3' ) ) ); ?>"
499
-												placeholder="<?= $enc->attr( $this->translate( 'admin', 'Floor and/or apartment (optional)' ) ); ?>"
500
-												value="<?= $enc->attr( $this->get( 'itemData/address/' . $type . '/order.base.address.address3' ) ); ?>"
501
-												<?= $this->site()->readonly( $basket->getLocale()->getSiteId() ); ?> />
498
+												name="<?= $enc->attr($this->formparam(array('item', 'address', $type, 'order.base.address.address3'))); ?>"
499
+												placeholder="<?= $enc->attr($this->translate('admin', 'Floor and/or apartment (optional)')); ?>"
500
+												value="<?= $enc->attr($this->get('itemData/address/' . $type . '/order.base.address.address3')); ?>"
501
+												<?= $this->site()->readonly($basket->getLocale()->getSiteId()); ?> />
502 502
 										</div>
503 503
 										<div class="col-sm-12 form-text text-muted help-text">
504
-											<?= $enc->html( $this->translate( 'admin', 'Additional information where the customer\'s apartment can be found' ) ); ?>
504
+											<?= $enc->html($this->translate('admin', 'Additional information where the customer\'s apartment can be found')); ?>
505 505
 										</div>
506 506
 									</div>
507 507
 									<div class="form-group row optional">
508
-										<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Zip code' ) ); ?></label>
508
+										<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Zip code')); ?></label>
509 509
 										<div class="col-sm-8">
510 510
 											<input class="form-control item-postal" type="text" tabindex="1" data-field="postal"
511
-												name="<?= $enc->attr( $this->formparam( array( 'item', 'address', $type, 'order.base.address.postal' ) ) ); ?>"
512
-												placeholder="<?= $enc->attr( $this->translate( 'admin', 'Zip code (optional)' ) ); ?>"
513
-												value="<?= $enc->attr( $this->get( 'itemData/address/' . $type . '/order.base.address.postal' ) ); ?>"
514
-												<?= $this->site()->readonly( $basket->getLocale()->getSiteId() ); ?> />
511
+												name="<?= $enc->attr($this->formparam(array('item', 'address', $type, 'order.base.address.postal'))); ?>"
512
+												placeholder="<?= $enc->attr($this->translate('admin', 'Zip code (optional)')); ?>"
513
+												value="<?= $enc->attr($this->get('itemData/address/' . $type . '/order.base.address.postal')); ?>"
514
+												<?= $this->site()->readonly($basket->getLocale()->getSiteId()); ?> />
515 515
 										</div>
516 516
 										<div class="col-sm-12 form-text text-muted help-text">
517
-											<?= $enc->html( $this->translate( 'admin', 'Postal code for delivery if used in the area the customer is living' ) ); ?>
517
+											<?= $enc->html($this->translate('admin', 'Postal code for delivery if used in the area the customer is living')); ?>
518 518
 										</div>
519 519
 									</div>
520 520
 									<div class="form-group row mandatory">
521
-										<label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'City' ) ); ?></label>
521
+										<label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'City')); ?></label>
522 522
 										<div class="col-sm-8">
523 523
 											<input class="form-control item-city" type="text" required="required" tabindex="1" data-field="city"
524
-												name="<?= $enc->attr( $this->formparam( array( 'item', 'address', $type, 'order.base.address.city' ) ) ); ?>"
525
-												placeholder="<?= $enc->attr( $this->translate( 'admin', 'City or town name (required)' ) ); ?>"
526
-												value="<?= $enc->attr( $this->get( 'itemData/address/' . $type . '/order.base.address.city' ) ); ?>"
527
-												<?= $this->site()->readonly( $basket->getLocale()->getSiteId() ); ?> />
524
+												name="<?= $enc->attr($this->formparam(array('item', 'address', $type, 'order.base.address.city'))); ?>"
525
+												placeholder="<?= $enc->attr($this->translate('admin', 'City or town name (required)')); ?>"
526
+												value="<?= $enc->attr($this->get('itemData/address/' . $type . '/order.base.address.city')); ?>"
527
+												<?= $this->site()->readonly($basket->getLocale()->getSiteId()); ?> />
528 528
 										</div>
529 529
 									</div>
530 530
 									<div class="form-group row optional">
531
-										<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'State' ) ); ?></label>
531
+										<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'State')); ?></label>
532 532
 										<div class="col-sm-8">
533 533
 											<input class="form-control item-state" type="text" tabindex="1" data-field="state"
534
-												name="<?= $enc->attr( $this->formparam( array( 'item', 'address', $type, 'order.base.address.state' ) ) ); ?>"
535
-												placeholder="<?= $enc->attr( $this->translate( 'admin', 'Country state code (optional)' ) ); ?>"
536
-												value="<?= $enc->attr( $this->get( 'itemData/address/' . $type . '/order.base.address.state' ) ); ?>"
537
-												<?= $this->site()->readonly( $basket->getLocale()->getSiteId() ); ?> />
534
+												name="<?= $enc->attr($this->formparam(array('item', 'address', $type, 'order.base.address.state'))); ?>"
535
+												placeholder="<?= $enc->attr($this->translate('admin', 'Country state code (optional)')); ?>"
536
+												value="<?= $enc->attr($this->get('itemData/address/' . $type . '/order.base.address.state')); ?>"
537
+												<?= $this->site()->readonly($basket->getLocale()->getSiteId()); ?> />
538 538
 										</div>
539 539
 										<div class="col-sm-12 form-text text-muted help-text">
540
-											<?= $enc->html( $this->translate( 'admin', 'Short state code (e.g. NY) if used in the country the customer is living' ) ); ?>
540
+											<?= $enc->html($this->translate('admin', 'Short state code (e.g. NY) if used in the country the customer is living')); ?>
541 541
 										</div>
542 542
 									</div>
543 543
 									<div class="form-group row optional">
544
-										<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Country' ) ); ?></label>
544
+										<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Country')); ?></label>
545 545
 										<div class="col-sm-8">
546 546
 											<input class="form-control item-countryid" type="text" tabindex="1" maxlength="2" pattern="^[a-zA-Z]{2}$" data-field="countryid"
547
-												name="<?= $enc->attr( $this->formparam( array( 'item', 'address', $type, 'order.base.address.countryid' ) ) ); ?>"
548
-												placeholder="<?= $enc->attr( $this->translate( 'admin', 'Country code (required)' ) ); ?>"
549
-												value="<?= $enc->attr( $this->get( 'itemData/address/' . $type . '/order.base.address.countryid' ) ); ?>"
550
-												<?= $this->site()->readonly( $basket->getLocale()->getSiteId() ); ?> />
547
+												name="<?= $enc->attr($this->formparam(array('item', 'address', $type, 'order.base.address.countryid'))); ?>"
548
+												placeholder="<?= $enc->attr($this->translate('admin', 'Country code (required)')); ?>"
549
+												value="<?= $enc->attr($this->get('itemData/address/' . $type . '/order.base.address.countryid')); ?>"
550
+												<?= $this->site()->readonly($basket->getLocale()->getSiteId()); ?> />
551 551
 										</div>
552 552
 										<div class="col-sm-12 form-text text-muted help-text">
553
-											<?= $enc->html( $this->translate( 'admin', 'Two letter ISO country code' ) ); ?>
553
+											<?= $enc->html($this->translate('admin', 'Two letter ISO country code')); ?>
554 554
 										</div>
555 555
 									</div>
556 556
 									<div class="form-group row optional">
557
-										<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Telephone' ) ); ?></label>
557
+										<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Telephone')); ?></label>
558 558
 										<div class="col-sm-8">
559 559
 											<input class="form-control item-telephone" type="tel" tabindex="1" data-field="telephone"
560
-												name="<?= $enc->attr( $this->formparam( array( 'item', 'address', $type, 'order.base.address.telephone' ) ) ); ?>"
561
-												placeholder="<?= $enc->attr( $this->translate( 'admin', 'Telephone number (optional)' ) ); ?>"
562
-												value="<?= $enc->attr( $this->get( 'itemData/address/' . $type . '/order.base.address.telephone' ) ); ?>"
563
-												<?= $this->site()->readonly( $basket->getLocale()->getSiteId() ); ?> />
560
+												name="<?= $enc->attr($this->formparam(array('item', 'address', $type, 'order.base.address.telephone'))); ?>"
561
+												placeholder="<?= $enc->attr($this->translate('admin', 'Telephone number (optional)')); ?>"
562
+												value="<?= $enc->attr($this->get('itemData/address/' . $type . '/order.base.address.telephone')); ?>"
563
+												<?= $this->site()->readonly($basket->getLocale()->getSiteId()); ?> />
564 564
 										</div>
565 565
 										<div class="col-sm-12 form-text text-muted help-text">
566
-											<?= $enc->html( $this->translate( 'admin', '(International) telephone number without separation characters, can start with a "+"' ) ); ?>
566
+											<?= $enc->html($this->translate('admin', '(International) telephone number without separation characters, can start with a "+"')); ?>
567 567
 										</div>
568 568
 									</div>
569 569
 									<div class="form-group row optional">
570
-										<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Facsimile' ) ); ?></label>
570
+										<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Facsimile')); ?></label>
571 571
 										<div class="col-sm-8">
572 572
 											<input class="form-control item-telefax" type="text" tabindex="1" data-field="telefax"
573
-												name="<?= $enc->attr( $this->formparam( array( 'item', 'address', $type, 'order.base.address.telefax' ) ) ); ?>"
574
-												placeholder="<?= $enc->attr( $this->translate( 'admin', 'Facsimile number (optional)' ) ); ?>"
575
-												value="<?= $enc->attr( $this->get( 'itemData/address/' . $type . '/order.base.address.telefax' ) ); ?>"
576
-												<?= $this->site()->readonly( $basket->getLocale()->getSiteId() ); ?> />
573
+												name="<?= $enc->attr($this->formparam(array('item', 'address', $type, 'order.base.address.telefax'))); ?>"
574
+												placeholder="<?= $enc->attr($this->translate('admin', 'Facsimile number (optional)')); ?>"
575
+												value="<?= $enc->attr($this->get('itemData/address/' . $type . '/order.base.address.telefax')); ?>"
576
+												<?= $this->site()->readonly($basket->getLocale()->getSiteId()); ?> />
577 577
 										</div>
578 578
 										<div class="col-sm-12 form-text text-muted help-text">
579
-											<?= $enc->html( $this->translate( 'admin', '(International) facsimilie number without separation characters, can start with a "+"' ) ); ?>
579
+											<?= $enc->html($this->translate('admin', '(International) facsimilie number without separation characters, can start with a "+"')); ?>
580 580
 										</div>
581 581
 									</div>
582 582
 									<div class="form-group row optional">
583
-										<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Web site' ) ); ?></label>
583
+										<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Web site')); ?></label>
584 584
 										<div class="col-sm-8">
585 585
 											<input class="form-control item-website" type="url" tabindex="1" data-field="website"
586
-												name="<?= $enc->attr( $this->formparam( array( 'item', 'address', $type, 'order.base.address.website' ) ) ); ?>"
587
-												placeholder="<?= $enc->attr( $this->translate( 'admin', 'Web site URL (optional)' ) ); ?>"
588
-												value="<?= $enc->attr( $this->get( 'itemData/address/' . $type . '/order.base.address.website') ); ?>"
589
-												<?= $this->site()->readonly( $basket->getLocale()->getSiteId() ); ?> />
586
+												name="<?= $enc->attr($this->formparam(array('item', 'address', $type, 'order.base.address.website'))); ?>"
587
+												placeholder="<?= $enc->attr($this->translate('admin', 'Web site URL (optional)')); ?>"
588
+												value="<?= $enc->attr($this->get('itemData/address/' . $type . '/order.base.address.website')); ?>"
589
+												<?= $this->site()->readonly($basket->getLocale()->getSiteId()); ?> />
590 590
 										</div>
591 591
 										<div class="col-sm-12 form-text text-muted help-text">
592
-											<?= $enc->html( $this->translate( 'admin', 'URL of the customer web site' ) ); ?>
592
+											<?= $enc->html($this->translate('admin', 'URL of the customer web site')); ?>
593 593
 										</div>
594 594
 									</div>
595 595
 									<div class="form-group row optional">
596
-										<label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Company' ) ); ?></label>
596
+										<label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'Company')); ?></label>
597 597
 										<div class="col-sm-8">
598 598
 											<input class="form-control item-company" type="text" tabindex="1" data-field="company"
599
-												name="<?= $enc->attr( $this->formparam( array( 'item', 'address', $type, 'order.base.address.company' ) ) ); ?>"
600
-												placeholder="<?= $enc->attr( $this->translate( 'admin', 'Company name (optional)' ) ); ?>"
601
-												value="<?= $enc->attr( $this->get( 'itemData/address/' . $type . '/order.base.address.company' ) ); ?>"
602
-												<?= $this->site()->readonly( $basket->getLocale()->getSiteId() ); ?> />
599
+												name="<?= $enc->attr($this->formparam(array('item', 'address', $type, 'order.base.address.company'))); ?>"
600
+												placeholder="<?= $enc->attr($this->translate('admin', 'Company name (optional)')); ?>"
601
+												value="<?= $enc->attr($this->get('itemData/address/' . $type . '/order.base.address.company')); ?>"
602
+												<?= $this->site()->readonly($basket->getLocale()->getSiteId()); ?> />
603 603
 										</div>
604 604
 									</div>
605 605
 									<div class="form-group row optional">
606
-										<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'VAT ID' ) ); ?></label>
606
+										<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'VAT ID')); ?></label>
607 607
 										<div class="col-sm-8">
608 608
 											<input class="form-control item-vatid" type="text" tabindex="1" data-field="vatid"
609
-												name="<?= $enc->attr( $this->formparam( array( 'item', 'address', $type, 'order.base.address.vatid' ) ) ); ?>"
610
-												placeholder="<?= $enc->attr( $this->translate( 'admin', 'Value added tax identifier (optional)' ) ); ?>"
611
-												value="<?= $enc->attr( $this->get( 'itemData/address/' . $type . '/order.base.address.vatid' ) ); ?>"
612
-												<?= $this->site()->readonly( $basket->getLocale()->getSiteId() ); ?> />
609
+												name="<?= $enc->attr($this->formparam(array('item', 'address', $type, 'order.base.address.vatid'))); ?>"
610
+												placeholder="<?= $enc->attr($this->translate('admin', 'Value added tax identifier (optional)')); ?>"
611
+												value="<?= $enc->attr($this->get('itemData/address/' . $type . '/order.base.address.vatid')); ?>"
612
+												<?= $this->site()->readonly($basket->getLocale()->getSiteId()); ?> />
613 613
 										</div>
614 614
 										<div class="col-sm-12 form-text text-muted help-text">
615
-											<?= $enc->html( $this->translate( 'admin', 'Official VAT ID to determine if the tax needs to be billed in invoices' ) ); ?>
615
+											<?= $enc->html($this->translate('admin', 'Official VAT ID to determine if the tax needs to be billed in invoices')); ?>
616 616
 										</div>
617 617
 									</div>
618 618
 								</div>
@@ -622,41 +622,41 @@  discard block
 block discarded – undo
622 622
 					</div>
623 623
 
624 624
 					<div class="row">
625
-						<?php foreach( $sortItems( $basket->getServices() ) as $type => $services ) : $code = 'service:' . $type; ?>
626
-							<?php foreach( $services as $serviceItem ) : $serviceId = $serviceItem->getServiceId(); ?>
625
+						<?php foreach ($sortItems($basket->getServices()) as $type => $services) : $code = 'service:' . $type; ?>
626
+							<?php foreach ($services as $serviceItem) : $serviceId = $serviceItem->getServiceId(); ?>
627 627
 
628 628
 								<div class="col-xl-6 content-block item-service">
629
-									<h2 class="col-12 item-header"><?= $enc->html( $this->translate( 'admin/ext', $code ) ); ?></h2>
629
+									<h2 class="col-12 item-header"><?= $enc->html($this->translate('admin/ext', $code)); ?></h2>
630 630
 									<div class="row">
631 631
 										<div class="col-6 content-block">
632
-											<span class="service-name"><?= $enc->html( $serviceItem->getName() ); ?></span>
633
-											<span class="service-code"><?= $enc->html( $serviceItem->getCode() ); ?></span>
632
+											<span class="service-name"><?= $enc->html($serviceItem->getName()); ?></span>
633
+											<span class="service-code"><?= $enc->html($serviceItem->getCode()); ?></span>
634 634
 										</div>
635 635
 										<div class="col-6 content-block">
636
-											<span class="service-price"><?= $enc->html( sprintf( $priceFormat, $this->number( $serviceItem->getPrice()->getValue() + $serviceItem->getPrice()->getCosts() ), $currency ) ); ?></span>
637
-											<?php if( $serviceItem->getPrice()->getRebate() > 0 ) : ?>
638
-												<span class="service-rebate"><?= $enc->html( sprintf( $priceFormat, $this->number( $serviceItem->getPrice()->getRebate() ), $currency ) ); ?></span>
636
+											<span class="service-price"><?= $enc->html(sprintf($priceFormat, $this->number($serviceItem->getPrice()->getValue() + $serviceItem->getPrice()->getCosts()), $currency)); ?></span>
637
+											<?php if ($serviceItem->getPrice()->getRebate() > 0) : ?>
638
+												<span class="service-rebate"><?= $enc->html(sprintf($priceFormat, $this->number($serviceItem->getPrice()->getRebate()), $currency)); ?></span>
639 639
 											<?php endif; ?>
640 640
 										</div>
641 641
 									</div>
642 642
 
643
-									<table class="service-attr table table-striped" data-id="<?= $enc->attr($serviceId ) ?>"
644
-										data-codes="<?= $enc->attr( isset( $serviceAttrCodes[$type] ) ? implode( ',', $serviceAttrCodes[$type] ) : '' ); ?>">
643
+									<table class="service-attr table table-striped" data-id="<?= $enc->attr($serviceId) ?>"
644
+										data-codes="<?= $enc->attr(isset($serviceAttrCodes[$type]) ? implode(',', $serviceAttrCodes[$type]) : ''); ?>">
645 645
 										<thead>
646 646
 											<tr>
647 647
 												<th>
648
-													<span class="help"><?= $enc->html( $this->translate( 'admin', 'Code' ) ); ?></span>
648
+													<span class="help"><?= $enc->html($this->translate('admin', 'Code')); ?></span>
649 649
 													<div class="form-text text-muted help-text">
650
-														<?= $enc->html( $this->translate( 'admin', 'Service attribute code' ) ); ?>
650
+														<?= $enc->html($this->translate('admin', 'Service attribute code')); ?>
651 651
 													</div>
652 652
 												</th>
653 653
 												<th>
654
-													<?= $enc->html( $this->translate( 'admin', 'Value' ) ); ?>
654
+													<?= $enc->html($this->translate('admin', 'Value')); ?>
655 655
 												</th>
656 656
 												<th class="actions">
657
-													<?php if( !$this->site()->readonly( $basket->getLocale()->getSiteId() ) ) : ?>
657
+													<?php if (!$this->site()->readonly($basket->getLocale()->getSiteId())) : ?>
658 658
 														<div class="btn act-add fa" tabindex="1"
659
-															title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>">
659
+															title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>">
660 660
 														</div>
661 661
 													<?php endif; ?>
662 662
 												</th>
@@ -664,38 +664,38 @@  discard block
 block discarded – undo
664 664
 										</thead>
665 665
 										<tbody>
666 666
 
667
-											<?php foreach( (array) $this->get( 'itemData/service/' . $type . '/' . $serviceId . '/order.base.service.attribute.id', [] ) as $idx => $attrId ) : ?>
667
+											<?php foreach ((array) $this->get('itemData/service/' . $type . '/' . $serviceId . '/order.base.service.attribute.id', []) as $idx => $attrId) : ?>
668 668
 												<tr class="service-attr-item">
669 669
 													<td>
670
-														<input type="hidden" class="service-attr-id" value="<?= $enc->attr( $attrId ); ?>"
671
-															name="<?= $enc->attr( $this->formparam( array( 'item', 'service', $type, $serviceId, 'order.base.service.attribute.id', '' ) ) ); ?>" />
670
+														<input type="hidden" class="service-attr-id" value="<?= $enc->attr($attrId); ?>"
671
+															name="<?= $enc->attr($this->formparam(array('item', 'service', $type, $serviceId, 'order.base.service.attribute.id', ''))); ?>" />
672 672
 														<input type="hidden" class="service-attr-attributeid"
673
-															name="<?= $enc->attr( $this->formparam( array( 'item', 'service', $type, $serviceId, 'order.base.service.attribute.attrid', '' ) ) ); ?>"
674
-															value="<?= $enc->attr( $this->get( 'itemData/service/' . $type . '/' . $serviceId . '/order.base.service.attribute.attrid/' . $idx ) ); ?>" />
673
+															name="<?= $enc->attr($this->formparam(array('item', 'service', $type, $serviceId, 'order.base.service.attribute.attrid', ''))); ?>"
674
+															value="<?= $enc->attr($this->get('itemData/service/' . $type . '/' . $serviceId . '/order.base.service.attribute.attrid/' . $idx)); ?>" />
675 675
 														<input type="hidden" class="service-attr-type"
676
-															name="<?= $enc->attr( $this->formparam( array( 'item', 'service', $type, $serviceId, 'order.base.service.attribute.type', '' ) ) ); ?>"
677
-															value="<?= $enc->attr( $this->get( 'itemData/service/' . $type . '/' . $serviceId . '/order.base.service.attribute.type/' . $idx ) ); ?>" />
676
+															name="<?= $enc->attr($this->formparam(array('item', 'service', $type, $serviceId, 'order.base.service.attribute.type', ''))); ?>"
677
+															value="<?= $enc->attr($this->get('itemData/service/' . $type . '/' . $serviceId . '/order.base.service.attribute.type/' . $idx)); ?>" />
678 678
 														<input type="hidden" class="service-attr-name"
679
-															name="<?= $enc->attr( $this->formparam( array( 'item', 'service', $type, $serviceId, 'order.base.service.attribute.name', '' ) ) ); ?>"
680
-															value="<?= $enc->attr( $this->get( 'itemData/service/' . $type . '/' . $serviceId . '/order.base.service.attribute.name/' . $idx ) ); ?>" />
679
+															name="<?= $enc->attr($this->formparam(array('item', 'service', $type, $serviceId, 'order.base.service.attribute.name', ''))); ?>"
680
+															value="<?= $enc->attr($this->get('itemData/service/' . $type . '/' . $serviceId . '/order.base.service.attribute.name/' . $idx)); ?>" />
681 681
 														<input type="hidden" class="service-attr-quantity"
682
-															name="<?= $enc->attr( $this->formparam( array( 'item', 'service', $type, $serviceId, 'order.base.service.attribute.quantity', '' ) ) ); ?>"
683
-															value="<?= $enc->attr( $this->get( 'itemData/service/' . $type . '/' . $serviceId . '/order.base.service.attribute.quantity/' . $idx ) ); ?>" />
682
+															name="<?= $enc->attr($this->formparam(array('item', 'service', $type, $serviceId, 'order.base.service.attribute.quantity', ''))); ?>"
683
+															value="<?= $enc->attr($this->get('itemData/service/' . $type . '/' . $serviceId . '/order.base.service.attribute.quantity/' . $idx)); ?>" />
684 684
 														<input type="text" class="service-attr-code form-control" tabindex="1"
685
-															name="<?= $enc->attr( $this->formparam( array( 'item', 'service', $type, $serviceId, 'order.base.service.attribute.code', '' ) ) ); ?>"
686
-															value="<?= $enc->attr( $this->get( 'itemData/service/' . $type . '/' . $serviceId . '/order.base.service.attribute.code/' . $idx ) ); ?>"
687
-															<?= $this->site()->readonly( $basket->getLocale()->getSiteId() ); ?> />
685
+															name="<?= $enc->attr($this->formparam(array('item', 'service', $type, $serviceId, 'order.base.service.attribute.code', ''))); ?>"
686
+															value="<?= $enc->attr($this->get('itemData/service/' . $type . '/' . $serviceId . '/order.base.service.attribute.code/' . $idx)); ?>"
687
+															<?= $this->site()->readonly($basket->getLocale()->getSiteId()); ?> />
688 688
 													</td>
689 689
 													<td>
690 690
 														<input type="text" class="service-attr-value form-control" tabindex="1"
691
-															name="<?= $enc->attr( $this->formparam( array( 'item', 'service', $type, $serviceId, 'order.base.service.attribute.value', '' ) ) ); ?>"
692
-															value="<?= $enc->attr( $this->get( 'itemData/service/' . $type . '/' . $serviceId . '/order.base.service.attribute.value/' . $idx ) ); ?>"
693
-															<?= $this->site()->readonly( $basket->getLocale()->getSiteId() ); ?> />
691
+															name="<?= $enc->attr($this->formparam(array('item', 'service', $type, $serviceId, 'order.base.service.attribute.value', ''))); ?>"
692
+															value="<?= $enc->attr($this->get('itemData/service/' . $type . '/' . $serviceId . '/order.base.service.attribute.value/' . $idx)); ?>"
693
+															<?= $this->site()->readonly($basket->getLocale()->getSiteId()); ?> />
694 694
 													</td>
695 695
 													<td class="actions">
696
-														<?php if( !$this->site()->readonly( $basket->getLocale()->getSiteId() ) ) : ?>
696
+														<?php if (!$this->site()->readonly($basket->getLocale()->getSiteId())) : ?>
697 697
 															<div class="btn act-delete fa" tabindex="1"
698
-																title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>">
698
+																title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>">
699 699
 															</div>
700 700
 														<?php endif; ?>
701 701
 													</td>
@@ -705,26 +705,26 @@  discard block
 block discarded – undo
705 705
 											<tr class="prototype">
706 706
 												<td>
707 707
 													<input type="hidden" class="service-attr-id" value="" disabled="disabled"
708
-														name="<?= $enc->attr( $this->formparam( array( 'item', 'service', $type, '_id_', 'order.base.service.attribute.id', '' ) ) ); ?>" />
708
+														name="<?= $enc->attr($this->formparam(array('item', 'service', $type, '_id_', 'order.base.service.attribute.id', ''))); ?>" />
709 709
 													<input type="hidden" class="service-attr-attributeid" value="" disabled="disabled"
710
-														name="<?= $enc->attr( $this->formparam( array( 'item', 'service', $type, '_id_', 'order.base.service.attribute.attrid', '' ) ) ); ?>" />
711
-													<input type="hidden" class="service-attr-type" value="<?= $enc->attr( $type ); ?>" disabled="disabled"
712
-														name="<?= $enc->attr( $this->formparam( array( 'item', 'service', $type, '_id_', 'order.base.service.attribute.type', '' ) ) ); ?>" />
710
+														name="<?= $enc->attr($this->formparam(array('item', 'service', $type, '_id_', 'order.base.service.attribute.attrid', ''))); ?>" />
711
+													<input type="hidden" class="service-attr-type" value="<?= $enc->attr($type); ?>" disabled="disabled"
712
+														name="<?= $enc->attr($this->formparam(array('item', 'service', $type, '_id_', 'order.base.service.attribute.type', ''))); ?>" />
713 713
 													<input type="hidden" class="service-attr-name" value="" disabled="disabled"
714
-														name="<?= $enc->attr( $this->formparam( array( 'item', 'service', $type, '_id_', 'order.base.service.attribute.name', '' ) ) ); ?>" />
714
+														name="<?= $enc->attr($this->formparam(array('item', 'service', $type, '_id_', 'order.base.service.attribute.name', ''))); ?>" />
715 715
 													<input type="hidden" class="service-attr-quantity" value="1" disabled="disabled"
716
-														name="<?= $enc->attr( $this->formparam( array( 'item', 'service', $type, '_id_', 'order.base.service.attribute.quantity', '' ) ) ); ?>" />
716
+														name="<?= $enc->attr($this->formparam(array('item', 'service', $type, '_id_', 'order.base.service.attribute.quantity', ''))); ?>" />
717 717
 													<input type="text" class="service-attr-code form-control" value="" disabled="disabled" tabindex="1"
718
-														name="<?= $enc->attr( $this->formparam( array( 'item', 'service', $type, '_id_', 'order.base.service.attribute.code', '' ) ) ); ?>" />
718
+														name="<?= $enc->attr($this->formparam(array('item', 'service', $type, '_id_', 'order.base.service.attribute.code', ''))); ?>" />
719 719
 												</td>
720 720
 												<td>
721 721
 													<input type="text" class="service-attr-value form-control" value="" disabled="disabled" tabindex="1"
722
-														name="<?= $enc->attr( $this->formparam( array( 'item', 'service', $type, '_id_', 'order.base.service.attribute.value', '' ) ) ); ?>" />
722
+														name="<?= $enc->attr($this->formparam(array('item', 'service', $type, '_id_', 'order.base.service.attribute.value', ''))); ?>" />
723 723
 												</td>
724 724
 												<td class="actions">
725
-													<?php if( !$this->site()->readonly( $basket->getLocale()->getSiteId() ) ) : ?>
725
+													<?php if (!$this->site()->readonly($basket->getLocale()->getSiteId())) : ?>
726 726
 														<div class="btn act-delete fa" tabindex="1"
727
-															title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>">
727
+															title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>">
728 728
 														</div>
729 729
 													<?php endif; ?>
730 730
 												</td>
@@ -741,40 +741,40 @@  discard block
 block discarded – undo
741 741
 						<div class="col-xl-6 content-block"></div>
742 742
 
743 743
 						<div class="col-xl-6 content-block item-total">
744
-							<h2 class="item-header"><?= $enc->html( $this->translate( 'admin', 'Order totals' ) ); ?></h2>
744
+							<h2 class="item-header"><?= $enc->html($this->translate('admin', 'Order totals')); ?></h2>
745 745
 							<div class="form-group row total-subtotal">
746
-								<div class="col-6 name"><?= $enc->html( $this->translate( 'admin', 'Sub-total' ) ); ?></div>
747
-								<div class="col-6 value"><?= $enc->html( sprintf( $priceFormat, $this->number( $basket->getPrice()->getValue() ), $currency ) ); ?></div>
746
+								<div class="col-6 name"><?= $enc->html($this->translate('admin', 'Sub-total')); ?></div>
747
+								<div class="col-6 value"><?= $enc->html(sprintf($priceFormat, $this->number($basket->getPrice()->getValue()), $currency)); ?></div>
748 748
 							</div>
749 749
 							<div class="form-group row total-shipping">
750
-								<div class="col-6 name"><?= $enc->html( $this->translate( 'admin', 'Shipping' ) ); ?></div>
751
-								<div class="col-6 value"><?= $enc->html( sprintf( $priceFormat, $this->number( $basket->getPrice()->getCosts() ), $currency ) ); ?></div>
750
+								<div class="col-6 name"><?= $enc->html($this->translate('admin', 'Shipping')); ?></div>
751
+								<div class="col-6 value"><?= $enc->html(sprintf($priceFormat, $this->number($basket->getPrice()->getCosts()), $currency)); ?></div>
752 752
 							</div>
753 753
 							<div class="form-group row total-value">
754
-								<div class="col-6 name"><?= $enc->html( $this->translate( 'admin', 'Total' ) ); ?></div>
755
-								<div class="col-6 value"><?= $enc->html( sprintf( $priceFormat, $this->number( $basket->getPrice()->getValue() + $basket->getPrice()->getCosts() ), $currency ) ); ?></div>
754
+								<div class="col-6 name"><?= $enc->html($this->translate('admin', 'Total')); ?></div>
755
+								<div class="col-6 value"><?= $enc->html(sprintf($priceFormat, $this->number($basket->getPrice()->getValue() + $basket->getPrice()->getCosts()), $currency)); ?></div>
756 756
 							</div>
757 757
 							<div class="form-group row total-tax">
758 758
 								<div class="col-6 name">
759
-									<?php if( $basket->getPrice()->getTaxFlag() ) : ?>
760
-										<?= $enc->html( $this->translate( 'admin', 'Incl. tax' ) ); ?>
759
+									<?php if ($basket->getPrice()->getTaxFlag()) : ?>
760
+										<?= $enc->html($this->translate('admin', 'Incl. tax')); ?>
761 761
 									<?php else : ?>
762
-										<?= $enc->html( $this->translate( 'admin', 'Excl. tax' ) ); ?>
762
+										<?= $enc->html($this->translate('admin', 'Excl. tax')); ?>
763 763
 									<?php endif; ?>
764 764
 								</div>
765
-								<div class="col-6 value"><?= $enc->html( sprintf( $priceFormat, $this->number( $basket->getPrice()->getTaxValue() ), $currency ) ); ?></div>
765
+								<div class="col-6 value"><?= $enc->html(sprintf($priceFormat, $this->number($basket->getPrice()->getTaxValue()), $currency)); ?></div>
766 766
 							</div>
767 767
 						</div>
768 768
 					</div>
769 769
 
770 770
 				</div>
771 771
 
772
-				<?= $this->get( 'itemBody' ); ?>
772
+				<?= $this->get('itemBody'); ?>
773 773
 
774 774
 			</div>
775 775
 
776 776
 			<div class="item-actions">
777
-				<?= $this->partial( $this->config( 'admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard' ), ['params' => $params] ); ?>
777
+				<?= $this->partial($this->config('admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard'), ['params' => $params]); ?>
778 778
 			</div>
779 779
 		</div>
780 780
 	</form>
@@ -784,4 +784,4 @@  discard block
 block discarded – undo
784 784
 <?php $this->block()->stop(); ?>
785 785
 
786 786
 
787
-<?= $this->render( $this->config( 'admin/jqadm/template/page', 'common/page-standard' ) ); ?>
787
+<?= $this->render($this->config('admin/jqadm/template/page', 'common/page-standard')); ?>
Please login to merge, or discard this patch.
admin/jqadm/src/Admin/JQAdm/Common/Decorator/Page.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,8 +70,7 @@
 block discarded – undo
70 70
 			if( ( $rootItem = reset( $sitePath ) ) !== false ) {
71 71
 				$view->pageSiteTree = $siteManager->getTree( $rootItem->getId(), [], $level );
72 72
 			}
73
-		}
74
-		else
73
+		} else
75 74
 		{
76 75
 			$view->pageSiteList = [$view->pageSiteTree];
77 76
 		}
Please login to merge, or discard this patch.
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -25,50 +25,50 @@  discard block
 block discarded – undo
25 25
 	 * @param \Aimeos\MW\View\Iface $view The view object which generates the admin output
26 26
 	 * @return \Aimeos\Admin\JQAdm\Iface Reference to this object for fluent calls
27 27
 	 */
28
-	public function setView( \Aimeos\MW\View\Iface $view )
28
+	public function setView(\Aimeos\MW\View\Iface $view)
29 29
 	{
30
-		parent::setView( $view );
30
+		parent::setView($view);
31 31
 
32 32
 		// set first to be able to show errors occuring afterwards
33 33
 		$view->pageParams = $this->getClientParams();
34 34
 		$context = $this->getContext();
35 35
 
36
-		$siteManager = \Aimeos\MShop::create( $context, 'locale/site' );
37
-		$langManager = \Aimeos\MShop::create( $context, 'locale/language' );
38
-		$customerManager = \Aimeos\MShop::create( $context, 'customer' );
36
+		$siteManager = \Aimeos\MShop::create($context, 'locale/site');
37
+		$langManager = \Aimeos\MShop::create($context, 'locale/language');
38
+		$customerManager = \Aimeos\MShop::create($context, 'customer');
39 39
 
40
-		$siteItem = $siteManager->findItem( $view->param( 'site', 'default' ) );
40
+		$siteItem = $siteManager->findItem($view->param('site', 'default'));
41 41
 
42 42
 		try {
43
-			$siteid = $customerManager->getItem( $context->getUserId() )->getSiteId() ?: $siteItem->getSiteId();
44
-		} catch( \Exception $e ) {
43
+			$siteid = $customerManager->getItem($context->getUserId())->getSiteId() ?: $siteItem->getSiteId();
44
+		} catch (\Exception $e) {
45 45
 			$siteid = $siteItem->getSiteId();
46 46
 		}
47 47
 
48
-		if( $view->access( ['admin', 'super'] ) ) {
48
+		if ($view->access(['admin', 'super'])) {
49 49
 			$level = \Aimeos\MW\Tree\Manager\Base::LEVEL_TREE;
50 50
 		} else {
51 51
 			$level = \Aimeos\MW\Tree\Manager\Base::LEVEL_ONE;
52 52
 		}
53 53
 
54
-		$sitePath = $siteManager->getPath( $siteid );
54
+		$sitePath = $siteManager->getPath($siteid);
55 55
 
56
-		$view->pageI18nList = $this->getAimeos()->getI18nList( 'admin' );
57
-		$view->pageLangItems = $langManager->searchItems( $langManager->createSearch( true ) );
58
-		$view->pageSiteTree = $siteManager->getTree( $siteid, [], $level );
56
+		$view->pageI18nList = $this->getAimeos()->getI18nList('admin');
57
+		$view->pageLangItems = $langManager->searchItems($langManager->createSearch(true));
58
+		$view->pageSiteTree = $siteManager->getTree($siteid, [], $level);
59 59
 		$view->pageSitePath = $sitePath;
60 60
 		$view->pageSiteItem = $siteItem;
61 61
 
62
-		if( $view->access( ['super'] ) )
62
+		if ($view->access(['super']))
63 63
 		{
64
-			$search = $siteManager->createSearch()->setSlice( 0, 1000 );
65
-			$search->setSortations( [$search->sort( '+', 'locale.site.label')] );
66
-			$search->setConditions( $search->compare( '==', 'locale.site.level', 0 ) );
64
+			$search = $siteManager->createSearch()->setSlice(0, 1000);
65
+			$search->setSortations([$search->sort('+', 'locale.site.label')]);
66
+			$search->setConditions($search->compare('==', 'locale.site.level', 0));
67 67
 
68
-			$view->pageSiteList = $siteManager->searchItems( $search );
68
+			$view->pageSiteList = $siteManager->searchItems($search);
69 69
 
70
-			if( ( $rootItem = reset( $sitePath ) ) !== false ) {
71
-				$view->pageSiteTree = $siteManager->getTree( $rootItem->getId(), [], $level );
70
+			if (($rootItem = reset($sitePath)) !== false) {
71
+				$view->pageSiteTree = $siteManager->getTree($rootItem->getId(), [], $level);
72 72
 			}
73 73
 		}
74 74
 		else
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 			$view->pageSiteList = [$view->pageSiteTree];
77 77
 		}
78 78
 
79
-		$this->getClient()->setView( $view );
79
+		$this->getClient()->setView($view);
80 80
 		return $this;
81 81
 	}
82 82
 }
Please login to merge, or discard this patch.
lib/custom/tests/MW/View/Helper/Site/StandardTest.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -17,9 +17,9 @@  discard block
 block discarded – undo
17 17
 	protected function setUp()
18 18
 	{
19 19
 		$view = new \Aimeos\MW\View\Standard();
20
-		$view->pageSiteItem = new TestSite( 1, 'label1' );
20
+		$view->pageSiteItem = new TestSite(1, 'label1');
21 21
 
22
-		$this->object = new \Aimeos\MW\View\Helper\Site\Standard( $view );
22
+		$this->object = new \Aimeos\MW\View\Helper\Site\Standard($view);
23 23
 	}
24 24
 
25 25
 
@@ -31,31 +31,31 @@  discard block
 block discarded – undo
31 31
 
32 32
 	public function testTransform()
33 33
 	{
34
-		$this->assertInstanceOf( '\\Aimeos\\MW\\View\\Helper\\Site\\Iface', $this->object->transform() );
34
+		$this->assertInstanceOf('\\Aimeos\\MW\\View\\Helper\\Site\\Iface', $this->object->transform());
35 35
 	}
36 36
 
37 37
 
38 38
 	public function testLabel()
39 39
 	{
40
-		$this->assertEquals( 'label1', $this->object->transform()->label() );
40
+		$this->assertEquals('label1', $this->object->transform()->label());
41 41
 	}
42 42
 
43 43
 
44 44
 	public function testMatch()
45 45
 	{
46
-		$this->assertEquals( 'label1', $this->object->transform()->match( 1 ) );
46
+		$this->assertEquals('label1', $this->object->transform()->match(1));
47 47
 	}
48 48
 
49 49
 
50 50
 	public function testReadonly()
51 51
 	{
52
-		$this->assertEquals( 'readonly', $this->object->transform()->readonly( 2 ) );
52
+		$this->assertEquals('readonly', $this->object->transform()->readonly(2));
53 53
 	}
54 54
 
55 55
 
56 56
 	public function testSiteid()
57 57
 	{
58
-		$this->assertEquals( 1, $this->object->transform()->siteid() );
58
+		$this->assertEquals(1, $this->object->transform()->siteid());
59 59
 	}
60 60
 }
61 61
 
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 	private $id;
66 66
 	private $label;
67 67
 
68
-	public function __construct( $id, $label )
68
+	public function __construct($id, $label)
69 69
 	{
70 70
 		$this->id = $id;
71 71
 		$this->label = $label;
Please login to merge, or discard this patch.
admin/jqadm/templates/dashboard/item-order-latest-standard.php 1 patch
Spacing   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -5,29 +5,29 @@  discard block
 block discarded – undo
5 5
  * @copyright Aimeos (aimeos.org), 2016-2018
6 6
  */
7 7
 
8
-$price = function( array $orders, \Aimeos\MShop\Order\Item\Iface $item, $priceFormat )
8
+$price = function(array $orders, \Aimeos\MShop\Order\Item\Iface $item, $priceFormat)
9 9
 {
10
-	if( isset( $orders[$item->getBaseId()] ) )
10
+	if (isset($orders[$item->getBaseId()]))
11 11
 	{
12 12
 		$price = $orders[$item->getBaseId()]->getPrice();
13
-		return sprintf( $priceFormat, $price->getValue(), $price->getCurrencyId() );
13
+		return sprintf($priceFormat, $price->getValue(), $price->getCurrencyId());
14 14
 	}
15 15
 };
16 16
 
17 17
 
18
-$name = function( array $orders, \Aimeos\MShop\Order\Item\Iface $item )
18
+$name = function(array $orders, \Aimeos\MShop\Order\Item\Iface $item)
19 19
 {
20
-	if( isset( $orders[$item->getBaseId()] ) )
20
+	if (isset($orders[$item->getBaseId()]))
21 21
 	{
22 22
 		$addresses = $orders[$item->getBaseId()]->getAddresses();
23 23
 
24
-		if( !isset( $addresses[\Aimeos\MShop\Order\Item\Base\Address\Base::TYPE_PAYMENT] ) ) {
24
+		if (!isset($addresses[\Aimeos\MShop\Order\Item\Base\Address\Base::TYPE_PAYMENT])) {
25 25
 			return;
26 26
 		}
27 27
 
28 28
 		$address = $addresses[\Aimeos\MShop\Order\Item\Base\Address\Base::TYPE_PAYMENT];
29 29
 
30
-		if( $address->getSalutation() !== \Aimeos\MShop\Common\Item\Address\Base::SALUTATION_COMPANY ) {
30
+		if ($address->getSalutation() !== \Aimeos\MShop\Common\Item\Address\Base::SALUTATION_COMPANY) {
31 31
 			return $address->getFirstName() . ' ' . $address->getLastName();
32 32
 		} else {
33 33
 			return $address->getCompany();
@@ -36,50 +36,50 @@  discard block
 block discarded – undo
36 36
 };
37 37
 
38 38
 
39
-$payment = function( array $orders, \Aimeos\MShop\Order\Item\Iface $item )
39
+$payment = function(array $orders, \Aimeos\MShop\Order\Item\Iface $item)
40 40
 {
41
-	if( isset( $orders[$item->getBaseId()] ) )
41
+	if (isset($orders[$item->getBaseId()]))
42 42
 	{
43 43
 		$type = \Aimeos\MShop\Order\Item\Base\Service\Base::TYPE_PAYMENT;
44
-		$services = $orders[$item->getBaseId()]->getService( $type );
44
+		$services = $orders[$item->getBaseId()]->getService($type);
45 45
 		$codes = [];
46 46
 
47
-		foreach( $services as $service ) {
47
+		foreach ($services as $service) {
48 48
 			$codes[] = $service->getCode();
49 49
 		}
50 50
 
51
-		return implode( ', ', $codes );
51
+		return implode(', ', $codes);
52 52
 	}
53 53
 };
54 54
 
55 55
 
56
-$status = function( $list, $key )
56
+$status = function($list, $key)
57 57
 {
58
-	return ( isset( $list[$key] ) ? $list[$key] : '' );
58
+	return (isset($list[$key]) ? $list[$key] : '');
59 59
 };
60 60
 
61 61
 
62
-$getTarget = $this->config( 'admin/jqadm/url/get/target' );
63
-$getCntl = $this->config( 'admin/jqadm/url/get/controller', 'Jqadm' );
64
-$getAction = $this->config( 'admin/jqadm/url/get/action', 'get' );
65
-$getConfig = $this->config( 'admin/jqadm/url/get/config', [] );
62
+$getTarget = $this->config('admin/jqadm/url/get/target');
63
+$getCntl = $this->config('admin/jqadm/url/get/controller', 'Jqadm');
64
+$getAction = $this->config('admin/jqadm/url/get/action', 'get');
65
+$getConfig = $this->config('admin/jqadm/url/get/config', []);
66 66
 
67 67
 
68 68
 $enc = $this->encoder();
69 69
 $params = $this->param();
70
-$baskets = $this->get( 'orderlatestBaskets', [] );
70
+$baskets = $this->get('orderlatestBaskets', []);
71 71
 /// price format with value (%1$s) and currency (%2$s)
72
-$priceFormat = $this->translate( 'admin', '%1$s %2$s' );
72
+$priceFormat = $this->translate('admin', '%1$s %2$s');
73 73
 
74 74
 $statuslist = array(
75
-	'-1' => $this->translate( 'mshop/code', 'pay:-1' ),
76
-	'0' => $this->translate( 'mshop/code', 'pay:0' ),
77
-	'1' => $this->translate( 'mshop/code', 'pay:1' ),
78
-	'2' => $this->translate( 'mshop/code', 'pay:2' ),
79
-	'3' => $this->translate( 'mshop/code', 'pay:3' ),
80
-	'4' => $this->translate( 'mshop/code', 'pay:4' ),
81
-	'5' => $this->translate( 'mshop/code', 'pay:5' ),
82
-	'6' => $this->translate( 'mshop/code', 'pay:6' ),
75
+	'-1' => $this->translate('mshop/code', 'pay:-1'),
76
+	'0' => $this->translate('mshop/code', 'pay:0'),
77
+	'1' => $this->translate('mshop/code', 'pay:1'),
78
+	'2' => $this->translate('mshop/code', 'pay:2'),
79
+	'3' => $this->translate('mshop/code', 'pay:3'),
80
+	'4' => $this->translate('mshop/code', 'pay:4'),
81
+	'5' => $this->translate('mshop/code', 'pay:5'),
82
+	'6' => $this->translate('mshop/code', 'pay:6'),
83 83
 );
84 84
 
85 85
 ?>
@@ -91,33 +91,33 @@  discard block
 block discarded – undo
91 91
 			<div class="btn btn-card-header act-show fa"></div>
92 92
 		</div>
93 93
 		<span class="item-label header-label">
94
-			<?= $enc->html( $this->translate( 'admin', 'Latest orders' ) ); ?>
94
+			<?= $enc->html($this->translate('admin', 'Latest orders')); ?>
95 95
 		</span>
96 96
 	</div>
97 97
 	<div id="order-latest-data" class="card-block content collapse show" role="tabpanel" aria-labelledby="order-latest-head">
98 98
 		<div class="table-responsive">
99 99
 			<table class="list-items table table-hover">
100 100
 				<tbody>
101
-					<?php foreach( $this->get( 'orderlatestItems', [] ) as $item ) : ?>
102
-						<?php $url = $enc->attr( $this->url( $getTarget, $getCntl, $getAction, ['resource' => 'order', 'id' => $item->getBaseId()] + $params, [], $getConfig ) ); ?>
101
+					<?php foreach ($this->get('orderlatestItems', []) as $item) : ?>
102
+						<?php $url = $enc->attr($this->url($getTarget, $getCntl, $getAction, ['resource' => 'order', 'id' => $item->getBaseId()] + $params, [], $getConfig)); ?>
103 103
 						<tr>
104 104
 							<td class="order-id">
105
-								<a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getId() ); ?></a>
105
+								<a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getId()); ?></a>
106 106
 							</td>
107 107
 							<td class="order-base-address-name">
108
-								<a class="items-field" href="<?= $url; ?>"><?= $enc->html( $name( $baskets, $item ) ); ?></a>
108
+								<a class="items-field" href="<?= $url; ?>"><?= $enc->html($name($baskets, $item)); ?></a>
109 109
 							</td>
110 110
 							<td class="order-base-price">
111
-								<a class="items-field" href="<?= $url; ?>"><?= $enc->html( $price( $baskets, $item, $priceFormat ) ); ?></a>
111
+								<a class="items-field" href="<?= $url; ?>"><?= $enc->html($price($baskets, $item, $priceFormat)); ?></a>
112 112
 							</td>
113 113
 							<td class="order-datepayment">
114
-								<a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getDatePayment() ); ?></a>
114
+								<a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getDatePayment()); ?></a>
115 115
 							</td>
116 116
 							<td class="order-statuspayment">
117
-								<a class="items-field" href="<?= $url; ?>"><?= $enc->html( $status( $statuslist, $item->getPaymentStatus() ) ); ?></a>
117
+								<a class="items-field" href="<?= $url; ?>"><?= $enc->html($status($statuslist, $item->getPaymentStatus())); ?></a>
118 118
 							</td>
119 119
 							<td class="order-base-service-payment">
120
-								<a class="items-field" href="<?= $url; ?>"><?= $enc->html( $payment( $baskets, $item ) ); ?></a>
120
+								<a class="items-field" href="<?= $url; ?>"><?= $enc->html($payment($baskets, $item)); ?></a>
121 121
 							</td>
122 122
 						</tr>
123 123
 					<?php endforeach; ?>
@@ -126,4 +126,4 @@  discard block
 block discarded – undo
126 126
 		</div>
127 127
 	</div>
128 128
 </div>
129
-<?= $this->get( 'orderlatestBody' ); ?>
129
+<?= $this->get('orderlatestBody'); ?>
Please login to merge, or discard this patch.
admin/jqadm/templates/product/item-download-standard.php 1 patch
Spacing   +44 added lines, -44 removed lines patch added patch discarded remove patch
@@ -5,8 +5,8 @@  discard block
 block discarded – undo
5 5
  * @copyright Aimeos (aimeos.org), 2016-2018
6 6
  */
7 7
 
8
-$selected = function( $key, $code ) {
9
-	return ( $key == $code ? 'selected="selected"' : '' );
8
+$selected = function($key, $code) {
9
+	return ($key == $code ? 'selected="selected"' : '');
10 10
 };
11 11
 
12 12
 $enc = $this->encoder();
@@ -14,90 +14,90 @@  discard block
 block discarded – undo
14 14
 
15 15
 ?>
16 16
 <div id="download" class="row item-download tab-pane fade" role="tabpanel" aria-labelledby="download">
17
-	<div class="col-lg-6 content-block <?= $this->site()->readonly( $this->get( 'downloadData/product.lists.siteid', $this->pageSiteItem->getId() ) ); ?>">
17
+	<div class="col-lg-6 content-block <?= $this->site()->readonly($this->get('downloadData/product.lists.siteid', $this->pageSiteItem->getId())); ?>">
18 18
 		<div class="form-group row optional">
19
-			<label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'File' ) ); ?></label>
19
+			<label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'File')); ?></label>
20 20
 			<div class="input-group col-sm-8">
21
-				<input class="item-siteid" type="hidden" name="<?= $enc->attr( $this->formparam( array( 'download', 'product.lists.siteid' ) ) ); ?>"
22
-					value="<?= $enc->attr( $this->get( 'downloadData/product.lists.siteid' ) ); ?>" />
23
-				<input class="item-listid" type="hidden" name="<?= $enc->attr( $this->formparam( array( 'download', 'product.lists.id' ) ) ); ?>"
24
-					value="<?= $enc->attr( $this->get( 'downloadData/product.lists.id' ) ); ?>" />
25
-				<input class="item-id" type="hidden" name="<?= $enc->attr( $this->formparam( array( 'download', 'attribute.id' ) ) ); ?>"
26
-					value="<?= $enc->attr( $this->get( 'downloadData/attribute.id' ) ); ?>" />
21
+				<input class="item-siteid" type="hidden" name="<?= $enc->attr($this->formparam(array('download', 'product.lists.siteid'))); ?>"
22
+					value="<?= $enc->attr($this->get('downloadData/product.lists.siteid')); ?>" />
23
+				<input class="item-listid" type="hidden" name="<?= $enc->attr($this->formparam(array('download', 'product.lists.id'))); ?>"
24
+					value="<?= $enc->attr($this->get('downloadData/product.lists.id')); ?>" />
25
+				<input class="item-id" type="hidden" name="<?= $enc->attr($this->formparam(array('download', 'attribute.id'))); ?>"
26
+					value="<?= $enc->attr($this->get('downloadData/attribute.id')); ?>" />
27 27
 				<div class="custom-file">
28
-					<input id="download-file" class="custom-file-input fileupload" type="file" name="download[file]" tabindex="<?= $this->get( 'tabindex' ); ?>" />
29
-					<label for="download-file" class="custom-file-label"><?= $enc->html( $this->translate( 'admin', 'Choose file' ) ); ?></label>
28
+					<input id="download-file" class="custom-file-input fileupload" type="file" name="download[file]" tabindex="<?= $this->get('tabindex'); ?>" />
29
+					<label for="download-file" class="custom-file-label"><?= $enc->html($this->translate('admin', 'Choose file')); ?></label>
30 30
 				</div>
31 31
 			</div>
32 32
 		</div>
33 33
 		<div class="form-group row optional">
34
-			<label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Status' ) ); ?></label>
34
+			<label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'Status')); ?></label>
35 35
 			<div class="col-sm-8">
36
-				<select class="form-control custom-select item-status" tabindex="<?= $this->get( 'tabindex' ); ?>"
37
-					name="<?= $enc->attr( $this->formparam( array( 'download', 'attribute.status' ) ) ); ?>"
38
-					<?= $this->site()->readonly( $this->get( 'downloadData/attribute.siteid', $this->pageSiteItem->getId() ) ); ?> >
39
-					<option value="1" <?= $selected( $this->get( 'downloadData/attribute.status', 1 ), 1 ); ?> >
40
-						<?= $enc->html( $this->translate( 'mshop/code', 'status:1' ) ); ?>
36
+				<select class="form-control custom-select item-status" tabindex="<?= $this->get('tabindex'); ?>"
37
+					name="<?= $enc->attr($this->formparam(array('download', 'attribute.status'))); ?>"
38
+					<?= $this->site()->readonly($this->get('downloadData/attribute.siteid', $this->pageSiteItem->getId())); ?> >
39
+					<option value="1" <?= $selected($this->get('downloadData/attribute.status', 1), 1); ?> >
40
+						<?= $enc->html($this->translate('mshop/code', 'status:1')); ?>
41 41
 					</option>
42
-					<option value="0" <?= $selected( $this->get( 'downloadData/attribute.status', 1 ), 0 ); ?> >
43
-						<?= $enc->html( $this->translate( 'mshop/code', 'status:0' ) ); ?>
42
+					<option value="0" <?= $selected($this->get('downloadData/attribute.status', 1), 0); ?> >
43
+						<?= $enc->html($this->translate('mshop/code', 'status:0')); ?>
44 44
 					</option>
45
-					<option value="-1" <?= $selected( $this->get( 'downloadData/attribute.status', 1 ), -1 ); ?> >
46
-						<?= $enc->html( $this->translate( 'mshop/code', 'status:-1' ) ); ?>
45
+					<option value="-1" <?= $selected($this->get('downloadData/attribute.status', 1), -1); ?> >
46
+						<?= $enc->html($this->translate('mshop/code', 'status:-1')); ?>
47 47
 					</option>
48
-					<option value="-2" <?= $selected( $this->get( 'downloadData/attribute.status', 1 ), -2 ); ?> >
49
-						<?= $enc->html( $this->translate( 'mshop/code', 'status:-2' ) ); ?>
48
+					<option value="-2" <?= $selected($this->get('downloadData/attribute.status', 1), -2); ?> >
49
+						<?= $enc->html($this->translate('mshop/code', 'status:-2')); ?>
50 50
 					</option>
51 51
 				</select>
52 52
 			</div>
53 53
 		</div>
54 54
 		<div class="form-group row optional">
55
-			<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Name' ) ); ?></label>
55
+			<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Name')); ?></label>
56 56
 			<div class="col-sm-8">
57
-				<input class="form-control item-label" type="text" tabindex="<?= $this->get( 'tabindex' ); ?>"
58
-					name="<?= $enc->attr( $this->formparam( array( 'download', 'attribute.label' ) ) ); ?>"
59
-					value="<?= $enc->attr( $this->get( 'downloadData/attribute.label' ) ); ?>"
60
-					<?= $this->site()->readonly( $this->get( 'downloadData/product.lists.siteid', $this->pageSiteItem->getId() ) ); ?> />
57
+				<input class="form-control item-label" type="text" tabindex="<?= $this->get('tabindex'); ?>"
58
+					name="<?= $enc->attr($this->formparam(array('download', 'attribute.label'))); ?>"
59
+					value="<?= $enc->attr($this->get('downloadData/attribute.label')); ?>"
60
+					<?= $this->site()->readonly($this->get('downloadData/product.lists.siteid', $this->pageSiteItem->getId())); ?> />
61 61
 			</div>
62 62
 			<div class="col-sm-12 form-text text-muted help-text">
63
-				<?= $enc->html( $this->translate( 'admin', 'Name of the downloaded file when customers saves the file on their computers' ) ); ?>
63
+				<?= $enc->html($this->translate('admin', 'Name of the downloaded file when customers saves the file on their computers')); ?>
64 64
 			</div>
65 65
 		</div>
66 66
 		<div class="form-group row optional">
67
-			<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Replace file' ) ); ?></label>
67
+			<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Replace file')); ?></label>
68 68
 			<div class="col-sm-8">
69
-				<input class="form-control item-overwrite" type="checkbox" tabindex="<?= $this->get( 'tabindex' ); ?>"
70
-					name="<?= $enc->attr( $this->formparam( array( 'download', 'overwrite' ) ) ); ?>" value="1"
71
-					<?= $this->site()->readonly( $this->get( 'downloadData/product.lists.siteid', $this->pageSiteItem->getId() ) ); ?>
72
-					<?= $selected( $this->get( 'downloadData/overwrite' ), 1 ); ?> />
69
+				<input class="form-control item-overwrite" type="checkbox" tabindex="<?= $this->get('tabindex'); ?>"
70
+					name="<?= $enc->attr($this->formparam(array('download', 'overwrite'))); ?>" value="1"
71
+					<?= $this->site()->readonly($this->get('downloadData/product.lists.siteid', $this->pageSiteItem->getId())); ?>
72
+					<?= $selected($this->get('downloadData/overwrite'), 1); ?> />
73 73
 			</div>
74 74
 			<div class="col-sm-12 form-text text-muted help-text">
75
-				<?= $enc->html( $this->translate( 'admin', 'Overwrite the existing file and customers bought it in the past can then download the new content too' ) ); ?>
75
+				<?= $enc->html($this->translate('admin', 'Overwrite the existing file and customers bought it in the past can then download the new content too')); ?>
76 76
 			</div>
77 77
 		</div>
78 78
 	</div>
79 79
 	<div class="col-lg-6 content-block ">
80
-		<?php if( $this->get( 'downloadData/attribute.code' ) != '' ) : ?>
80
+		<?php if ($this->get('downloadData/attribute.code') != '') : ?>
81 81
 			<div class="form-group row">
82
-				<label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Path' ) ); ?></label>
82
+				<label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'Path')); ?></label>
83 83
 				<div class="col-sm-8">
84
-					<p class="form-control-plaintext item-file"><?= $enc->html( $this->get( 'downloadData/attribute.code' ) ); ?></p>
84
+					<p class="form-control-plaintext item-file"><?= $enc->html($this->get('downloadData/attribute.code')); ?></p>
85 85
 				</div>
86 86
 			</div>
87 87
 			<div class="form-group row">
88
-				<label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Size' ) ); ?></label>
88
+				<label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'Size')); ?></label>
89 89
 				<div class="col-sm-8">
90
-					<p class="form-control-plaintext item-file"><?= $enc->html( number_format( $this->get( 'downloadData/size' ) / 1024, 0, '.', ' ' ) ); ?> KB</p>
90
+					<p class="form-control-plaintext item-file"><?= $enc->html(number_format($this->get('downloadData/size') / 1024, 0, '.', ' ')); ?> KB</p>
91 91
 				</div>
92 92
 			</div>
93 93
 			<div class="form-group row">
94
-				<label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Uploaded' ) ); ?></label>
94
+				<label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'Uploaded')); ?></label>
95 95
 				<div class="col-sm-8">
96
-					<p class="form-control-plaintext item-file"><?= $enc->html( date( 'Y-m-d H:i:s', $this->get( 'downloadData/time' ) ) ); ?></p>
96
+					<p class="form-control-plaintext item-file"><?= $enc->html(date('Y-m-d H:i:s', $this->get('downloadData/time'))); ?></p>
97 97
 				</div>
98 98
 			</div>
99 99
 		<?php endif; ?>
100 100
 	</div>
101 101
 
102
-	<?= $this->get( 'downloadBody' ); ?>
102
+	<?= $this->get('downloadBody'); ?>
103 103
 </div>
Please login to merge, or discard this patch.
admin/jqadm/templates/order/item-invoice-standard.php 1 patch
Spacing   +159 added lines, -159 removed lines patch added patch discarded remove patch
@@ -6,12 +6,12 @@  discard block
 block discarded – undo
6 6
  */
7 7
 
8 8
 
9
-$selected = function( $key, $code ) {
10
-	return ( $key == $code ? 'selected="selected"' : '' );
9
+$selected = function($key, $code) {
10
+	return ($key == $code ? 'selected="selected"' : '');
11 11
 };
12 12
 
13 13
 $enc = $this->encoder();
14
-$params = $this->get( 'pageParams', [] );
14
+$params = $this->get('pageParams', []);
15 15
 
16 16
 
17 17
 /** admin/jqadm/order/invoice/fields
@@ -29,8 +29,8 @@  discard block
 block discarded – undo
29 29
  * @category Developer
30 30
  */
31 31
 $default = ['order.id', 'order.datepayment', 'order.statuspayment', 'order.statusdelivery'];
32
-$default = $this->config( 'admin/jqadm/order/invoice/fields', $default );
33
-$fields = $this->session( 'aimeos/admin/jqadm/orderinvoice/fields', $default );
32
+$default = $this->config('admin/jqadm/order/invoice/fields', $default);
33
+$fields = $this->session('aimeos/admin/jqadm/orderinvoice/fields', $default);
34 34
 
35 35
 
36 36
 /** admin/jqadm/order/invoice/types
@@ -44,30 +44,30 @@  discard block
 block discarded – undo
44 44
  * @since 2017.07
45 45
  * @category Developer
46 46
  */
47
-$types = $this->config( 'admin/jqadm/order/invoice/fields', ['web', 'phone'] );
47
+$types = $this->config('admin/jqadm/order/invoice/fields', ['web', 'phone']);
48 48
 
49 49
 
50 50
 $paymentStatusList = [
51
-	'-1' => $this->translate( 'mshop/code', 'pay:-1' ),
52
-	'0' => $this->translate( 'mshop/code', 'pay:0' ),
53
-	'1' => $this->translate( 'mshop/code', 'pay:1' ),
54
-	'2' => $this->translate( 'mshop/code', 'pay:2' ),
55
-	'3' => $this->translate( 'mshop/code', 'pay:3' ),
56
-	'4' => $this->translate( 'mshop/code', 'pay:4' ),
57
-	'5' => $this->translate( 'mshop/code', 'pay:5' ),
58
-	'6' => $this->translate( 'mshop/code', 'pay:6' ),
51
+	'-1' => $this->translate('mshop/code', 'pay:-1'),
52
+	'0' => $this->translate('mshop/code', 'pay:0'),
53
+	'1' => $this->translate('mshop/code', 'pay:1'),
54
+	'2' => $this->translate('mshop/code', 'pay:2'),
55
+	'3' => $this->translate('mshop/code', 'pay:3'),
56
+	'4' => $this->translate('mshop/code', 'pay:4'),
57
+	'5' => $this->translate('mshop/code', 'pay:5'),
58
+	'6' => $this->translate('mshop/code', 'pay:6'),
59 59
 ];
60 60
 
61 61
 $statusList = [
62
-	'-1' => $this->translate( 'mshop/code', 'stat:-1' ),
63
-	'0' => $this->translate( 'mshop/code', 'stat:0' ),
64
-	'1' => $this->translate( 'mshop/code', 'stat:1' ),
65
-	'2' => $this->translate( 'mshop/code', 'stat:2' ),
66
-	'3' => $this->translate( 'mshop/code', 'stat:3' ),
67
-	'4' => $this->translate( 'mshop/code', 'stat:4' ),
68
-	'5' => $this->translate( 'mshop/code', 'stat:5' ),
69
-	'6' => $this->translate( 'mshop/code', 'stat:6' ),
70
-	'7' => $this->translate( 'mshop/code', 'stat:7' ),
62
+	'-1' => $this->translate('mshop/code', 'stat:-1'),
63
+	'0' => $this->translate('mshop/code', 'stat:0'),
64
+	'1' => $this->translate('mshop/code', 'stat:1'),
65
+	'2' => $this->translate('mshop/code', 'stat:2'),
66
+	'3' => $this->translate('mshop/code', 'stat:3'),
67
+	'4' => $this->translate('mshop/code', 'stat:4'),
68
+	'5' => $this->translate('mshop/code', 'stat:5'),
69
+	'6' => $this->translate('mshop/code', 'stat:6'),
70
+	'7' => $this->translate('mshop/code', 'stat:7'),
71 71
 ];
72 72
 
73 73
 
@@ -75,10 +75,10 @@  discard block
 block discarded – undo
75 75
 <div id="invoice" class="item-invoice content-block tab-pane fade" role="tabpanel" aria-labelledby="invoice">
76 76
 
77 77
 	<?= $this->partial(
78
-			$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard' ),
79
-			['pageParams' => $params, 'pos' => 'top', 'total' => $this->get( 'invoiceTotal' ),
78
+			$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard'),
79
+			['pageParams' => $params, 'pos' => 'top', 'total' => $this->get('invoiceTotal'),
80 80
 			'group' => 'oi', 'action' => 'get', 'fragment' => 'invoice',
81
-			'page' => $this->session( 'aimeos/admin/jqadm/orderinvoice/page', [] )]
81
+			'page' => $this->session('aimeos/admin/jqadm/orderinvoice/page', [])]
82 82
 		);
83 83
 	?>
84 84
 
@@ -86,45 +86,45 @@  discard block
 block discarded – undo
86 86
 		<thead class="list-header">
87 87
 			<tr>
88 88
 				<?= $this->partial(
89
-					$this->config( 'admin/jqadm/partial/listhead', 'common/partials/listhead-standard' ), [
90
-						'fields' => $fields, 'params' => $params, 'tabindex' => $this->get( 'tabindex' ),
89
+					$this->config('admin/jqadm/partial/listhead', 'common/partials/listhead-standard'), [
90
+						'fields' => $fields, 'params' => $params, 'tabindex' => $this->get('tabindex'),
91 91
 						'group' => 'oi', 'action' => 'get', 'fragment' => 'invoice',
92
-						'sort' => $this->session( 'aimeos/admin/jqadm/product/sort' ),
92
+						'sort' => $this->session('aimeos/admin/jqadm/product/sort'),
93 93
 						'data' => [
94
-							'order.id' => $this->translate( 'admin', 'Invoice' ),
95
-							'order.type' => $this->translate( 'admin', 'Type' ),
96
-							'order.datepayment' => $this->translate( 'admin', 'Payment' ),
97
-							'order.statuspayment' => $this->translate( 'admin', 'Payment status' ),
98
-							'order.datedelivery' => $this->translate( 'admin', 'Delivery' ),
99
-							'order.statusdelivery' => $this->translate( 'admin', 'Delivery status' ),
100
-							'order.relatedid' => $this->translate( 'admin', 'Related ID' ),
101
-							'order.ctime' => $this->translate( 'admin', 'Created' ),
102
-							'order.mtime' => $this->translate( 'admin', 'Modified' ),
103
-							'order.editor' => $this->translate( 'admin', 'Editor' ),
94
+							'order.id' => $this->translate('admin', 'Invoice'),
95
+							'order.type' => $this->translate('admin', 'Type'),
96
+							'order.datepayment' => $this->translate('admin', 'Payment'),
97
+							'order.statuspayment' => $this->translate('admin', 'Payment status'),
98
+							'order.datedelivery' => $this->translate('admin', 'Delivery'),
99
+							'order.statusdelivery' => $this->translate('admin', 'Delivery status'),
100
+							'order.relatedid' => $this->translate('admin', 'Related ID'),
101
+							'order.ctime' => $this->translate('admin', 'Created'),
102
+							'order.mtime' => $this->translate('admin', 'Modified'),
103
+							'order.editor' => $this->translate('admin', 'Editor'),
104 104
 						]
105 105
 					] );
106 106
 				?>
107 107
 
108 108
 				<th class="actions">
109
-					<a class="btn fa act-add" href="#" tabindex="<?= $this->get( 'tabindex' ); ?>"
110
-						title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
111
-						aria-label="<?= $enc->attr( $this->translate( 'admin', 'Add' ) ); ?>">
109
+					<a class="btn fa act-add" href="#" tabindex="<?= $this->get('tabindex'); ?>"
110
+						title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>"
111
+						aria-label="<?= $enc->attr($this->translate('admin', 'Add')); ?>">
112 112
 					</a>
113 113
 
114 114
 					<?= $this->partial(
115
-						$this->config( 'admin/jqadm/partial/columns', 'common/partials/columns-standard' ), [
116
-							'fields' => $fields, 'group' => 'oi', 'tabindex' => $this->get( 'tabindex' ),
115
+						$this->config('admin/jqadm/partial/columns', 'common/partials/columns-standard'), [
116
+							'fields' => $fields, 'group' => 'oi', 'tabindex' => $this->get('tabindex'),
117 117
 							'data' => [
118
-								'order.id' => $this->translate( 'admin', 'Invoice' ),
119
-								'order.type' => $this->translate( 'admin', 'Type' ),
120
-								'order.datepayment' => $this->translate( 'admin', 'Payment' ),
121
-								'order.statuspayment' => $this->translate( 'admin', 'Payment status' ),
122
-								'order.datedelivery' => $this->translate( 'admin', 'Delivery' ),
123
-								'order.statusdelivery' => $this->translate( 'admin', 'Delivery status' ),
124
-								'order.relatedid' => $this->translate( 'admin', 'Related ID' ),
125
-								'order.ctime' => $this->translate( 'admin', 'Created' ),
126
-								'order.mtime' => $this->translate( 'admin', 'Modified' ),
127
-								'order.editor' => $this->translate( 'admin', 'Editor' ),
118
+								'order.id' => $this->translate('admin', 'Invoice'),
119
+								'order.type' => $this->translate('admin', 'Type'),
120
+								'order.datepayment' => $this->translate('admin', 'Payment'),
121
+								'order.statuspayment' => $this->translate('admin', 'Payment status'),
122
+								'order.datedelivery' => $this->translate('admin', 'Delivery'),
123
+								'order.statusdelivery' => $this->translate('admin', 'Delivery status'),
124
+								'order.relatedid' => $this->translate('admin', 'Related ID'),
125
+								'order.ctime' => $this->translate('admin', 'Created'),
126
+								'order.mtime' => $this->translate('admin', 'Modified'),
127
+								'order.editor' => $this->translate('admin', 'Editor'),
128 128
 							]
129 129
 						] );
130 130
 					?>
@@ -133,14 +133,14 @@  discard block
 block discarded – undo
133 133
 		</thead>
134 134
 		<tbody>
135 135
 			<?= $this->partial(
136
-				$this->config( 'admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard' ), [
137
-					'filter' => $this->session( 'aimeos/admin/jqadm/orderinvoice/filter', [] ),
138
-					'fields' => $fields, 'group' => 'oi', 'tabindex' => $this->get( 'tabindex' ),
136
+				$this->config('admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard'), [
137
+					'filter' => $this->session('aimeos/admin/jqadm/orderinvoice/filter', []),
138
+					'fields' => $fields, 'group' => 'oi', 'tabindex' => $this->get('tabindex'),
139 139
 					'data' => [
140 140
 						'order.id' => ['oi' => '==', 'type' => 'number'],
141 141
 						'order.type' => ['oi' => '~=', 'type' => 'select', 'val' => [
142
-							'web' => $this->translate( 'mshop/code', 'order:web' ),
143
-							'phone' => $this->translate( 'mshop/code', 'order:phone' ),
142
+							'web' => $this->translate('mshop/code', 'order:web'),
143
+							'phone' => $this->translate('mshop/code', 'order:phone'),
144 144
 						]],
145 145
 						'order.datepayment' => ['oi' => '>=', 'type' => 'datetime-local'],
146 146
 						'order.statuspayment' => ['oi' => '==', 'type' => 'select', 'val' => $paymentStatusList],
@@ -155,198 +155,198 @@  discard block
 block discarded – undo
155 155
 			?>
156 156
 
157 157
 			<tr class="list-item-new prototype">
158
-				<td colspan="<?= count( $fields ); ?>">
158
+				<td colspan="<?= count($fields); ?>">
159 159
 					<div class="content-block row">
160 160
 						<div class="col-xl-6">
161 161
 							<input class="order-id" type="hidden" value="" disabled="disabled"
162
-								name="<?= $enc->attr( $this->formparam( array( 'invoice', 'order.id', '' ) ) ); ?>" />
162
+								name="<?= $enc->attr($this->formparam(array('invoice', 'order.id', ''))); ?>" />
163 163
 
164 164
 							<div class="form-group row mandatory">
165
-								<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Type' ) ); ?></label>
165
+								<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Type')); ?></label>
166 166
 								<div class="col-sm-8">
167
-									<select class="form-control custom-select order-type" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>"
168
-										name="<?= $enc->attr( $this->formparam( array( 'invoice', 'order.type', '' ) ) ); ?>" disabled="disabled">
169
-										<option value=""><?= $enc->html( $this->translate( 'admin', 'Please select' ) ); ?></option>
167
+									<select class="form-control custom-select order-type" required="required" tabindex="<?= $this->get('tabindex'); ?>"
168
+										name="<?= $enc->attr($this->formparam(array('invoice', 'order.type', ''))); ?>" disabled="disabled">
169
+										<option value=""><?= $enc->html($this->translate('admin', 'Please select')); ?></option>
170 170
 
171
-										<?php foreach( $types as $type ) : ?>
172
-											<option value="<?= $enc->attr( $type ); ?>" ><?= $enc->html( $type ); ?></option>
171
+										<?php foreach ($types as $type) : ?>
172
+											<option value="<?= $enc->attr($type); ?>" ><?= $enc->html($type); ?></option>
173 173
 										<?php endforeach; ?>
174 174
 									</select>
175 175
 								</div>
176 176
 								<div class="col-sm-12 form-text text-muted help-text">
177
-									<?= $enc->html( $this->translate( 'admin', 'Source of the invoice, e.g. by web or phone' ) ); ?>
177
+									<?= $enc->html($this->translate('admin', 'Source of the invoice, e.g. by web or phone')); ?>
178 178
 								</div>
179 179
 							</div>
180 180
 							<div class="form-group row mandatory">
181
-								<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Payment' ) ); ?></label>
181
+								<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Payment')); ?></label>
182 182
 								<div class="col-sm-8">
183
-									<input class="form-control order-datepayment" type="datetime-local" tabindex="<?= $this->get( 'tabindex' ); ?>"
184
-										name="<?= $enc->attr( $this->formparam( array( 'invoice', 'order.datepayment', '' ) ) ); ?>" disabled="disabled" />
183
+									<input class="form-control order-datepayment" type="datetime-local" tabindex="<?= $this->get('tabindex'); ?>"
184
+										name="<?= $enc->attr($this->formparam(array('invoice', 'order.datepayment', ''))); ?>" disabled="disabled" />
185 185
 								</div>
186 186
 								<div class="col-sm-12 form-text text-muted help-text">
187
-									<?= $enc->html( $this->translate( 'admin', 'Date of the last payment status change' ) ); ?>
187
+									<?= $enc->html($this->translate('admin', 'Date of the last payment status change')); ?>
188 188
 								</div>
189 189
 							</div>
190 190
 							<div class="form-group row mandatory">
191
-								<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Payment status' ) ); ?></label>
191
+								<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Payment status')); ?></label>
192 192
 								<div class="col-sm-8">
193
-									<select class="form-control custom-select order-statuspayment" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>"
194
-										name="<?= $enc->attr( $this->formparam( array( 'invoice', 'order.statuspayment', '' ) ) ); ?>" disabled="disabled">
195
-										<option value=""><?= $enc->html( $this->translate( 'admin', 'Please select' ) ); ?></option>
196
-										<?php foreach( $paymentStatusList as $code => $label ) : ?>
197
-											<option value="<?= $code ?>"><?= $enc->html( $label ); ?></option>
193
+									<select class="form-control custom-select order-statuspayment" required="required" tabindex="<?= $this->get('tabindex'); ?>"
194
+										name="<?= $enc->attr($this->formparam(array('invoice', 'order.statuspayment', ''))); ?>" disabled="disabled">
195
+										<option value=""><?= $enc->html($this->translate('admin', 'Please select')); ?></option>
196
+										<?php foreach ($paymentStatusList as $code => $label) : ?>
197
+											<option value="<?= $code ?>"><?= $enc->html($label); ?></option>
198 198
 										<?php endforeach; ?>
199 199
 									</select>
200 200
 								</div>
201 201
 								<div class="col-sm-12 form-text text-muted help-text">
202
-									<?= $enc->html( $this->translate( 'admin', 'Last payment status of the order' ) ); ?>
202
+									<?= $enc->html($this->translate('admin', 'Last payment status of the order')); ?>
203 203
 								</div>
204 204
 							</div>
205 205
 						</div>
206 206
 						<div class="col-xl-6">
207 207
 							<div class="form-group row optional">
208
-								<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Delivery' ) ); ?></label>
208
+								<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Delivery')); ?></label>
209 209
 								<div class="col-sm-8">
210
-									<input class="form-control order-datedelivery" type="datetime-local" tabindex="<?= $this->get( 'tabindex' ); ?>"
211
-										name="<?= $enc->attr( $this->formparam( array( 'invoice', 'order.datedelivery', '' ) ) ); ?>" disabled="disabled" />
210
+									<input class="form-control order-datedelivery" type="datetime-local" tabindex="<?= $this->get('tabindex'); ?>"
211
+										name="<?= $enc->attr($this->formparam(array('invoice', 'order.datedelivery', ''))); ?>" disabled="disabled" />
212 212
 								</div>
213 213
 								<div class="col-sm-12 form-text text-muted help-text">
214
-									<?= $enc->html( $this->translate( 'admin', 'Date of the last delivery status change' ) ); ?>
214
+									<?= $enc->html($this->translate('admin', 'Date of the last delivery status change')); ?>
215 215
 								</div>
216 216
 							</div>
217 217
 							<div class="form-group row optional">
218
-								<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Delivery status' ) ); ?></label>
218
+								<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Delivery status')); ?></label>
219 219
 								<div class="col-sm-8">
220
-									<select class="form-control custom-select order-statusdelivery" tabindex="<?= $this->get( 'tabindex' ); ?>"
221
-										name="<?= $enc->attr( $this->formparam( array( 'invoice', 'order.statusdelivery', '' ) ) ); ?>" disabled="disabled">
222
-										<option value=""><?= $enc->html( $this->translate( 'admin', 'Please select' ) ); ?></option>
223
-										<?php foreach( $statusList as $code => $label ) : ?>
224
-											<option value="<?= $code ?>"><?= $enc->html( $label ); ?></option>
220
+									<select class="form-control custom-select order-statusdelivery" tabindex="<?= $this->get('tabindex'); ?>"
221
+										name="<?= $enc->attr($this->formparam(array('invoice', 'order.statusdelivery', ''))); ?>" disabled="disabled">
222
+										<option value=""><?= $enc->html($this->translate('admin', 'Please select')); ?></option>
223
+										<?php foreach ($statusList as $code => $label) : ?>
224
+											<option value="<?= $code ?>"><?= $enc->html($label); ?></option>
225 225
 										<?php endforeach; ?>
226 226
 									</select>
227 227
 								</div>
228 228
 								<div class="col-sm-12 form-text text-muted help-text">
229
-									<?= $enc->html( $this->translate( 'admin', 'Last delivery status of the order' ) ); ?>
229
+									<?= $enc->html($this->translate('admin', 'Last delivery status of the order')); ?>
230 230
 								</div>
231 231
 							</div>
232 232
 							<div class="form-group row optional">
233
-								<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Related ID' ) ); ?></label>
233
+								<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Related ID')); ?></label>
234 234
 								<div class="col-sm-8">
235
-									<input class="form-control order-relatedid" type="text" tabindex="<?= $this->get( 'tabindex' ); ?>"
236
-										name="<?= $enc->attr( $this->formparam( array( 'invoice', 'order.relatedid', '' ) ) ); ?>" disabled="disabled" />
235
+									<input class="form-control order-relatedid" type="text" tabindex="<?= $this->get('tabindex'); ?>"
236
+										name="<?= $enc->attr($this->formparam(array('invoice', 'order.relatedid', ''))); ?>" disabled="disabled" />
237 237
 								</div>
238 238
 								<div class="col-sm-12 form-text text-muted help-text">
239
-									<?= $enc->html( $this->translate( 'admin', 'ID of a related invoice, e.g. of a changed or refunded invoice' ) ); ?>
239
+									<?= $enc->html($this->translate('admin', 'ID of a related invoice, e.g. of a changed or refunded invoice')); ?>
240 240
 								</div>
241 241
 							</div>
242 242
 						</div>
243 243
 					</div>
244 244
 				</td>
245 245
 				<td class="actions">
246
-					<a class="btn fa act-close" href="#" tabindex="<?= $this->get( 'tabindex' ); ?>"
247
-						title="<?= $enc->attr( $this->translate( 'admin', 'Close') ); ?>"
248
-						aria-label="<?= $enc->attr( $this->translate( 'admin', 'Close' ) ); ?>">
246
+					<a class="btn fa act-close" href="#" tabindex="<?= $this->get('tabindex'); ?>"
247
+						title="<?= $enc->attr($this->translate('admin', 'Close')); ?>"
248
+						aria-label="<?= $enc->attr($this->translate('admin', 'Close')); ?>">
249 249
 					</a>
250 250
 				</td>
251 251
 			</tr>
252 252
 
253
-			<?php foreach( $this->get( 'invoiceData/order.id', [] ) as $idx => $orderId ) : ?>
254
-				<?php $siteId = $this->get( 'invoiceData/order.siteid/' . $idx ); ?>
253
+			<?php foreach ($this->get('invoiceData/order.id', []) as $idx => $orderId) : ?>
254
+				<?php $siteId = $this->get('invoiceData/order.siteid/' . $idx); ?>
255 255
 
256
-				<tr class="list-item <?= $this->site()->readonly( $siteId ); ?>">
257
-					<?php if( in_array( 'order.id', $fields ) ) : ?>
256
+				<tr class="list-item <?= $this->site()->readonly($siteId); ?>">
257
+					<?php if (in_array('order.id', $fields)) : ?>
258 258
 						<td class="order-id">
259 259
 							<input class="order-id" type="hidden"
260
-								name="<?= $enc->attr( $this->formparam( array( 'invoice', 'order.id', '' ) ) ); ?>"
261
-								value="<?= $enc->attr( $orderId ); ?>" disabled="disabled" />
262
-							<?= $enc->html( $orderId ); ?>
260
+								name="<?= $enc->attr($this->formparam(array('invoice', 'order.id', ''))); ?>"
261
+								value="<?= $enc->attr($orderId); ?>" disabled="disabled" />
262
+							<?= $enc->html($orderId); ?>
263 263
 						</td>
264 264
 					<?php endif; ?>
265
-					<?php if( in_array( 'order.type', $fields ) ) : ?>
265
+					<?php if (in_array('order.type', $fields)) : ?>
266 266
 						<td class="order-type">
267
-							<select class="form-control custom-select order-type" tabindex="<?= $this->get( 'tabindex' ); ?>"
268
-								name="<?= $enc->attr( $this->formparam( array( 'invoice', 'order.type', '' ) ) ); ?>"
269
-								value="<?= $enc->attr( $this->get( 'invoiceData/order.type/' . $idx ) ); ?>" disabled="disabled" />
270
-								<option value=""><?= $enc->html( $this->translate( 'admin', 'Please select' ) ); ?></option>
267
+							<select class="form-control custom-select order-type" tabindex="<?= $this->get('tabindex'); ?>"
268
+								name="<?= $enc->attr($this->formparam(array('invoice', 'order.type', ''))); ?>"
269
+								value="<?= $enc->attr($this->get('invoiceData/order.type/' . $idx)); ?>" disabled="disabled" />
270
+								<option value=""><?= $enc->html($this->translate('admin', 'Please select')); ?></option>
271 271
 
272
-								<?php foreach( $types as $type ) : ?>
273
-									<option value="<?= $enc->attr( $type ); ?>" <?= $selected( $this->get( 'invoiceData/order.type/' . $idx ), $type ); ?> >
274
-										<?= $enc->html( $type ); ?>
272
+								<?php foreach ($types as $type) : ?>
273
+									<option value="<?= $enc->attr($type); ?>" <?= $selected($this->get('invoiceData/order.type/' . $idx), $type); ?> >
274
+										<?= $enc->html($type); ?>
275 275
 									</option>
276 276
 								<?php endforeach; ?>
277 277
 							</select>
278 278
 						</td>
279 279
 					<?php endif; ?>
280
-					<?php if( in_array( 'order.datepayment', $fields ) ) : ?>
280
+					<?php if (in_array('order.datepayment', $fields)) : ?>
281 281
 						<td class="order-datepayment">
282
-							<input class="form-control order-datepayment" type="datetime-local" tabindex="<?= $this->get( 'tabindex' ); ?>"
283
-								name="<?= $enc->attr( $this->formparam( array( 'invoice', 'order.datepayment', '' ) ) ); ?>"
284
-								value="<?= $enc->attr( str_replace( ' ', 'T', $this->get( 'invoiceData/order.datepayment/' . $idx ) ) ); ?>"
285
-								<?= $this->site()->readonly( $siteId ); ?> disabled="disabled" />
282
+							<input class="form-control order-datepayment" type="datetime-local" tabindex="<?= $this->get('tabindex'); ?>"
283
+								name="<?= $enc->attr($this->formparam(array('invoice', 'order.datepayment', ''))); ?>"
284
+								value="<?= $enc->attr(str_replace(' ', 'T', $this->get('invoiceData/order.datepayment/' . $idx))); ?>"
285
+								<?= $this->site()->readonly($siteId); ?> disabled="disabled" />
286 286
 						</td>
287 287
 					<?php endif; ?>
288
-					<?php if( in_array( 'order.statuspayment', $fields ) ) : ?>
288
+					<?php if (in_array('order.statuspayment', $fields)) : ?>
289 289
 						<td class="order-statuspayment">
290
-							<select class="form-control custom-select order-statuspayment" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>"
291
-								name="<?= $enc->attr( $this->formparam( array( 'invoice', 'order.statuspayment', '' ) ) ); ?>"
292
-								<?= $this->site()->readonly( $siteId ); ?> disabled="disabled" >
290
+							<select class="form-control custom-select order-statuspayment" required="required" tabindex="<?= $this->get('tabindex'); ?>"
291
+								name="<?= $enc->attr($this->formparam(array('invoice', 'order.statuspayment', ''))); ?>"
292
+								<?= $this->site()->readonly($siteId); ?> disabled="disabled" >
293 293
 								<option value="">
294
-									<?= $enc->html( $this->translate( 'admin', 'Please select' ) ); ?>
294
+									<?= $enc->html($this->translate('admin', 'Please select')); ?>
295 295
 								</option>
296
-								<?php foreach( $paymentStatusList as $code => $label ) : ?>
297
-									<option value="<?= $code ?>" <?= $selected( $this->get( 'invoiceData/order.statuspayment/' . $idx ), $code ); ?> >
298
-										<?= $enc->html( $label ); ?>
296
+								<?php foreach ($paymentStatusList as $code => $label) : ?>
297
+									<option value="<?= $code ?>" <?= $selected($this->get('invoiceData/order.statuspayment/' . $idx), $code); ?> >
298
+										<?= $enc->html($label); ?>
299 299
 									</option>
300 300
 								<?php endforeach; ?>
301 301
 							</select>
302 302
 						</td>
303 303
 					<?php endif; ?>
304
-					<?php if( in_array( 'order.datedelivery', $fields ) ) : ?>
304
+					<?php if (in_array('order.datedelivery', $fields)) : ?>
305 305
 						<td class="order-datedelivery">
306
-							<input class="form-control order-datedelivery" type="datetime-local" tabindex="<?= $this->get( 'tabindex' ); ?>"
307
-								name="<?= $enc->attr( $this->formparam( array( 'invoice', 'order.datedelivery', '' ) ) ); ?>"
308
-								value="<?= $enc->attr( str_replace( ' ', 'T', $this->get( 'invoiceData/order.datedelivery/' . $idx ) ) ); ?>"
309
-								<?= $this->site()->readonly( $siteId ); ?> disabled="disabled" />
306
+							<input class="form-control order-datedelivery" type="datetime-local" tabindex="<?= $this->get('tabindex'); ?>"
307
+								name="<?= $enc->attr($this->formparam(array('invoice', 'order.datedelivery', ''))); ?>"
308
+								value="<?= $enc->attr(str_replace(' ', 'T', $this->get('invoiceData/order.datedelivery/' . $idx))); ?>"
309
+								<?= $this->site()->readonly($siteId); ?> disabled="disabled" />
310 310
 						</td>
311 311
 					<?php endif; ?>
312
-					<?php if( in_array( 'order.statusdelivery', $fields ) ) : ?>
312
+					<?php if (in_array('order.statusdelivery', $fields)) : ?>
313 313
 						<td class="order-statusdelivery">
314
-							<select class="form-control custom-select order-statusdelivery" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>"
315
-								name="<?= $enc->attr( $this->formparam( array( 'invoice', 'order.statusdelivery', '' ) ) ); ?>"
316
-								<?= $this->site()->readonly( $siteId ); ?> disabled="disabled" >
314
+							<select class="form-control custom-select order-statusdelivery" required="required" tabindex="<?= $this->get('tabindex'); ?>"
315
+								name="<?= $enc->attr($this->formparam(array('invoice', 'order.statusdelivery', ''))); ?>"
316
+								<?= $this->site()->readonly($siteId); ?> disabled="disabled" >
317 317
 								<option value="">
318
-									<?= $enc->html( $this->translate( 'admin', 'Please select' ) ); ?>
318
+									<?= $enc->html($this->translate('admin', 'Please select')); ?>
319 319
 								</option>
320
-								<?php foreach( $statusList as $code => $label ) : ?>
321
-									<option value="<?= $code ?>" <?= $selected( $this->get( 'invoiceData/order.statusdelivery/' . $idx ), $code ); ?> >
322
-										<?= $enc->html( $label ); ?>
320
+								<?php foreach ($statusList as $code => $label) : ?>
321
+									<option value="<?= $code ?>" <?= $selected($this->get('invoiceData/order.statusdelivery/' . $idx), $code); ?> >
322
+										<?= $enc->html($label); ?>
323 323
 									</option>
324 324
 								<?php endforeach; ?>
325 325
 							</select>
326 326
 						</td>
327 327
 					<?php endif; ?>
328
-					<?php if( in_array( 'order.relatedid', $fields ) ) : ?>
328
+					<?php if (in_array('order.relatedid', $fields)) : ?>
329 329
 						<td class="order-relatedid">
330
-							<input class="form-control order-relatedid" type="text" tabindex="<?= $this->get( 'tabindex' ); ?>"
331
-								name="<?= $enc->attr( $this->formparam( array( 'invoice', 'order.relatedid', '' ) ) ); ?>"
332
-								value="<?= $enc->attr( $this->get( 'invoiceData/order.relatedid/' . $idx ) ); ?>"
333
-								<?= $this->site()->readonly( $siteId ); ?> disabled="disabled" />
330
+							<input class="form-control order-relatedid" type="text" tabindex="<?= $this->get('tabindex'); ?>"
331
+								name="<?= $enc->attr($this->formparam(array('invoice', 'order.relatedid', ''))); ?>"
332
+								value="<?= $enc->attr($this->get('invoiceData/order.relatedid/' . $idx)); ?>"
333
+								<?= $this->site()->readonly($siteId); ?> disabled="disabled" />
334 334
 						</td>
335 335
 					<?php endif; ?>
336
-					<?php if( in_array( 'order.ctime', $fields ) ) : ?>
337
-						<td class="order-ctime"><?= $enc->html( $this->get( 'invoiceData/order.ctime/' . $idx ) ); ?></td>
336
+					<?php if (in_array('order.ctime', $fields)) : ?>
337
+						<td class="order-ctime"><?= $enc->html($this->get('invoiceData/order.ctime/' . $idx)); ?></td>
338 338
 					<?php endif; ?>
339
-					<?php if( in_array( 'order.mtime', $fields ) ) : ?>
340
-						<td class="order-mtime"><?= $enc->html( $this->get( 'invoiceData/order.mtime/' . $idx ) ); ?></td>
339
+					<?php if (in_array('order.mtime', $fields)) : ?>
340
+						<td class="order-mtime"><?= $enc->html($this->get('invoiceData/order.mtime/' . $idx)); ?></td>
341 341
 					<?php endif; ?>
342
-					<?php if( in_array( 'order.editor', $fields ) ) : ?>
343
-						<td class="order-editor"><?= $enc->html( $this->get( 'invoiceData/order.editor/' . $idx ) ); ?></td>
342
+					<?php if (in_array('order.editor', $fields)) : ?>
343
+						<td class="order-editor"><?= $enc->html($this->get('invoiceData/order.editor/' . $idx)); ?></td>
344 344
 					<?php endif; ?>
345 345
 					<td class="actions">
346
-						<?php if( !$this->site()->readonly( $siteId ) ) : ?>
347
-							<a class="btn act-edit fa" tabindex="<?= $this->get( 'tabindex' ); ?>" href="#"
348
-								title="<?= $enc->attr( $this->translate( 'admin', 'Edit this entry') ); ?>"
349
-								aria-label="<?= $enc->attr( $this->translate( 'admin', 'Edit' ) ); ?>"></a>
346
+						<?php if (!$this->site()->readonly($siteId)) : ?>
347
+							<a class="btn act-edit fa" tabindex="<?= $this->get('tabindex'); ?>" href="#"
348
+								title="<?= $enc->attr($this->translate('admin', 'Edit this entry')); ?>"
349
+								aria-label="<?= $enc->attr($this->translate('admin', 'Edit')); ?>"></a>
350 350
 						<?php endif; ?>
351 351
 					</td>
352 352
 				</tr>
@@ -354,17 +354,17 @@  discard block
 block discarded – undo
354 354
 		</tbody>
355 355
 	</table>
356 356
 
357
-	<?php if( $this->get( 'invoiceData/order.id', [] ) === [] ) : ?>
358
-		<div class="noitems"><?= $enc->html( sprintf( $this->translate( 'admin', 'No items found' ) ) ); ?></div>
357
+	<?php if ($this->get('invoiceData/order.id', []) === []) : ?>
358
+		<div class="noitems"><?= $enc->html(sprintf($this->translate('admin', 'No items found'))); ?></div>
359 359
 	<?php endif; ?>
360 360
 
361 361
 	<?= $this->partial(
362
-			$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard' ),
363
-			['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get( 'invoiceTotal' ),
362
+			$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard'),
363
+			['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get('invoiceTotal'),
364 364
 			'group' => 'oi', 'action' => 'get', 'fragment' => 'invoice',
365
-			'page' =>$this->session( 'aimeos/admin/jqadm/orderinvoice/page', [] )]
365
+			'page' =>$this->session('aimeos/admin/jqadm/orderinvoice/page', [])]
366 366
 		);
367 367
 	?>
368 368
 
369 369
 </div>
370
-<?= $this->get( 'invoiceIBody' ); ?>
370
+<?= $this->get('invoiceIBody'); ?>
Please login to merge, or discard this patch.
admin/jqadm/templates/order/list-standard.php 1 patch
Spacing   +213 added lines, -213 removed lines patch added patch discarded remove patch
@@ -8,20 +8,20 @@  discard block
 block discarded – undo
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
-$getTarget = $this->config( 'admin/jqadm/url/get/target' );
17
-$getCntl = $this->config( 'admin/jqadm/url/get/controller', 'Jqadm' );
18
-$getAction = $this->config( 'admin/jqadm/url/get/action', 'get' );
19
-$getConfig = $this->config( 'admin/jqadm/url/get/config', [] );
16
+$getTarget = $this->config('admin/jqadm/url/get/target');
17
+$getCntl = $this->config('admin/jqadm/url/get/controller', 'Jqadm');
18
+$getAction = $this->config('admin/jqadm/url/get/action', 'get');
19
+$getConfig = $this->config('admin/jqadm/url/get/config', []);
20 20
 
21
-$copyTarget = $this->config( 'admin/jqadm/url/copy/target' );
22
-$copyCntl = $this->config( 'admin/jqadm/url/copy/controller', 'Jqadm' );
23
-$copyAction = $this->config( 'admin/jqadm/url/copy/action', 'copy' );
24
-$copyConfig = $this->config( 'admin/jqadm/url/copy/config', [] );
21
+$copyTarget = $this->config('admin/jqadm/url/copy/target');
22
+$copyCntl = $this->config('admin/jqadm/url/copy/controller', 'Jqadm');
23
+$copyAction = $this->config('admin/jqadm/url/copy/action', 'copy');
24
+$copyConfig = $this->config('admin/jqadm/url/copy/config', []);
25 25
 
26 26
 /** admin/jqadm/url/export/target
27 27
  * Destination of the URL where the controller specified in the URL is known
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
  * @see admin/jqadm/url/export/action
38 38
  * @see admin/jqadm/url/export/config
39 39
  */
40
-$expTarget = $this->config( 'admin/jqadm/url/export/target' );
40
+$expTarget = $this->config('admin/jqadm/url/export/target');
41 41
 
42 42
 /** admin/jqadm/url/export/controller
43 43
  * Name of the controller whose action should be called
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
  * @see admin/jqadm/url/export/action
54 54
  * @see admin/jqadm/url/export/config
55 55
  */
56
-$expCntl = $this->config( 'admin/jqadm/url/export/controller', 'Jqadm' );
56
+$expCntl = $this->config('admin/jqadm/url/export/controller', 'Jqadm');
57 57
 
58 58
 /** admin/jqadm/url/export/action
59 59
  * Name of the action that should create the output
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
  * @see admin/jqadm/url/export/controller
70 70
  * @see admin/jqadm/url/export/config
71 71
  */
72
-$expAction = $this->config( 'admin/jqadm/url/export/action', 'export' );
72
+$expAction = $this->config('admin/jqadm/url/export/action', 'export');
73 73
 
74 74
 /** admin/jqadm/url/export/config
75 75
  * Associative list of configuration options used for generating the URL
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
  * @see admin/jqadm/url/export/controller
92 92
  * @see admin/jqadm/url/export/action
93 93
  */
94
-$expConfig = $this->config( 'admin/jqadm/url/export/config', [] );
94
+$expConfig = $this->config('admin/jqadm/url/export/config', []);
95 95
 
96 96
 
97 97
 /** admin/jqadm/order/fields
@@ -108,105 +108,105 @@  discard block
 block discarded – undo
108 108
  * @since 2017.07
109 109
  * @category Developer
110 110
  */
111
-$default = $this->config( 'admin/jqadm/order/fields', ['order.id', 'order.ctime', 'order.statuspayment', 'order.base.address.lastname'] );
112
-$fields = $this->session( 'aimeos/admin/jqadm/order/fields', $default );
111
+$default = $this->config('admin/jqadm/order/fields', ['order.id', 'order.ctime', 'order.statuspayment', 'order.base.address.lastname']);
112
+$fields = $this->session('aimeos/admin/jqadm/order/fields', $default);
113 113
 
114
-$searchParams = $params = $this->get( 'pageParams', [] );
114
+$searchParams = $params = $this->get('pageParams', []);
115 115
 $searchParams['page']['start'] = 0;
116 116
 
117
-$baseItems = $this->get( 'baseItems', [] );
117
+$baseItems = $this->get('baseItems', []);
118 118
 
119 119
 
120 120
 $columnList = [
121
-	'order.id' => $this->translate( 'admin', 'Invoice' ),
122
-	'order.type' => $this->translate( 'admin', 'Type' ),
123
-	'order.statuspayment' => $this->translate( 'admin', 'Pay status' ),
124
-	'order.datepayment' => $this->translate( 'admin', 'Pay date' ),
125
-	'order.statusdelivery' => $this->translate( 'admin', 'Ship status' ),
126
-	'order.datedelivery' => $this->translate( 'admin', 'Ship date' ),
127
-	'order.relatedid' => $this->translate( 'admin', 'Related order' ),
128
-	'order.ctime' => $this->translate( 'admin', 'Created' ),
129
-	'order.mtime' => $this->translate( 'admin', 'Modified' ),
130
-	'order.editor' => $this->translate( 'admin', 'Editor' ),
131
-	'order.base.customerid' => $this->translate( 'admin', 'Customer ID' ),
132
-	'order.base.sitecode' => $this->translate( 'admin', 'Site' ),
133
-	'order.base.languageid' => $this->translate( 'admin', 'Language' ),
134
-	'order.base.currencyid' => $this->translate( 'admin', 'Currency' ),
135
-	'order.base.price' => $this->translate( 'admin', 'Price' ),
136
-	'order.base.costs' => $this->translate( 'admin', 'Costs' ),
137
-	'order.base.rebate' => $this->translate( 'admin', 'Rebate' ),
138
-	'order.base.taxvalue' => $this->translate( 'admin', 'Tax' ),
139
-	'order.base.taxflag' => $this->translate( 'admin', 'Incl. tax' ),
140
-	'order.base.comment' => $this->translate( 'admin', 'Comment' ),
141
-	'order.base.address.salutation' => $this->translate( 'admin', 'Salutation' ),
142
-	'order.base.address.company' => $this->translate( 'admin', 'Company' ),
143
-	'order.base.address.vatid' => $this->translate( 'admin', 'VAT ID' ),
144
-	'order.base.address.title' => $this->translate( 'admin', 'Title' ),
145
-	'order.base.address.firstname' => $this->translate( 'admin', 'First name' ),
146
-	'order.base.address.lastname' => $this->translate( 'admin', 'Last name' ),
147
-	'order.base.address.address1' => $this->translate( 'admin', 'Street' ),
148
-	'order.base.address.address2' => $this->translate( 'admin', 'House number' ),
149
-	'order.base.address.address3' => $this->translate( 'admin', 'Floor' ),
150
-	'order.base.address.postal' => $this->translate( 'admin', 'Zip code' ),
151
-	'order.base.address.city' => $this->translate( 'admin', 'City' ),
152
-	'order.base.address.state' => $this->translate( 'admin', 'State' ),
153
-	'order.base.address.countryid' => $this->translate( 'admin', 'Country' ),
154
-	'order.base.address.languageid' => $this->translate( 'admin', 'Language' ),
155
-	'order.base.address.telephone' => $this->translate( 'admin', 'Telephone' ),
156
-	'order.base.address.telefax' => $this->translate( 'admin', 'Facsimile' ),
157
-	'order.base.address.email' => $this->translate( 'admin', 'E-Mail' ),
158
-	'order.base.address.website' => $this->translate( 'admin', 'Web site' ),
159
-	'order.base.service.code' => $this->translate( 'admin', 'Service' ),
160
-	'order.base.service.name' => $this->translate( 'admin', 'Service name' ),
161
-	'order.base.service.price' => $this->translate( 'admin', 'Service price' ),
162
-	'order.base.service.costs' => $this->translate( 'admin', 'Service costs' ),
163
-	'order.base.service.rebate' => $this->translate( 'admin', 'Service rebate' ),
121
+	'order.id' => $this->translate('admin', 'Invoice'),
122
+	'order.type' => $this->translate('admin', 'Type'),
123
+	'order.statuspayment' => $this->translate('admin', 'Pay status'),
124
+	'order.datepayment' => $this->translate('admin', 'Pay date'),
125
+	'order.statusdelivery' => $this->translate('admin', 'Ship status'),
126
+	'order.datedelivery' => $this->translate('admin', 'Ship date'),
127
+	'order.relatedid' => $this->translate('admin', 'Related order'),
128
+	'order.ctime' => $this->translate('admin', 'Created'),
129
+	'order.mtime' => $this->translate('admin', 'Modified'),
130
+	'order.editor' => $this->translate('admin', 'Editor'),
131
+	'order.base.customerid' => $this->translate('admin', 'Customer ID'),
132
+	'order.base.sitecode' => $this->translate('admin', 'Site'),
133
+	'order.base.languageid' => $this->translate('admin', 'Language'),
134
+	'order.base.currencyid' => $this->translate('admin', 'Currency'),
135
+	'order.base.price' => $this->translate('admin', 'Price'),
136
+	'order.base.costs' => $this->translate('admin', 'Costs'),
137
+	'order.base.rebate' => $this->translate('admin', 'Rebate'),
138
+	'order.base.taxvalue' => $this->translate('admin', 'Tax'),
139
+	'order.base.taxflag' => $this->translate('admin', 'Incl. tax'),
140
+	'order.base.comment' => $this->translate('admin', 'Comment'),
141
+	'order.base.address.salutation' => $this->translate('admin', 'Salutation'),
142
+	'order.base.address.company' => $this->translate('admin', 'Company'),
143
+	'order.base.address.vatid' => $this->translate('admin', 'VAT ID'),
144
+	'order.base.address.title' => $this->translate('admin', 'Title'),
145
+	'order.base.address.firstname' => $this->translate('admin', 'First name'),
146
+	'order.base.address.lastname' => $this->translate('admin', 'Last name'),
147
+	'order.base.address.address1' => $this->translate('admin', 'Street'),
148
+	'order.base.address.address2' => $this->translate('admin', 'House number'),
149
+	'order.base.address.address3' => $this->translate('admin', 'Floor'),
150
+	'order.base.address.postal' => $this->translate('admin', 'Zip code'),
151
+	'order.base.address.city' => $this->translate('admin', 'City'),
152
+	'order.base.address.state' => $this->translate('admin', 'State'),
153
+	'order.base.address.countryid' => $this->translate('admin', 'Country'),
154
+	'order.base.address.languageid' => $this->translate('admin', 'Language'),
155
+	'order.base.address.telephone' => $this->translate('admin', 'Telephone'),
156
+	'order.base.address.telefax' => $this->translate('admin', 'Facsimile'),
157
+	'order.base.address.email' => $this->translate('admin', 'E-Mail'),
158
+	'order.base.address.website' => $this->translate('admin', 'Web site'),
159
+	'order.base.service.code' => $this->translate('admin', 'Service'),
160
+	'order.base.service.name' => $this->translate('admin', 'Service name'),
161
+	'order.base.service.price' => $this->translate('admin', 'Service price'),
162
+	'order.base.service.costs' => $this->translate('admin', 'Service costs'),
163
+	'order.base.service.rebate' => $this->translate('admin', 'Service rebate'),
164 164
 ];
165 165
 
166 166
 $paymentStatusList = [
167
-	'-1' => $this->translate( 'mshop/code', 'pay:-1' ),
168
-	'0' => $this->translate( 'mshop/code', 'pay:0' ),
169
-	'1' => $this->translate( 'mshop/code', 'pay:1' ),
170
-	'2' => $this->translate( 'mshop/code', 'pay:2' ),
171
-	'3' => $this->translate( 'mshop/code', 'pay:3' ),
172
-	'4' => $this->translate( 'mshop/code', 'pay:4' ),
173
-	'5' => $this->translate( 'mshop/code', 'pay:5' ),
174
-	'6' => $this->translate( 'mshop/code', 'pay:6' ),
167
+	'-1' => $this->translate('mshop/code', 'pay:-1'),
168
+	'0' => $this->translate('mshop/code', 'pay:0'),
169
+	'1' => $this->translate('mshop/code', 'pay:1'),
170
+	'2' => $this->translate('mshop/code', 'pay:2'),
171
+	'3' => $this->translate('mshop/code', 'pay:3'),
172
+	'4' => $this->translate('mshop/code', 'pay:4'),
173
+	'5' => $this->translate('mshop/code', 'pay:5'),
174
+	'6' => $this->translate('mshop/code', 'pay:6'),
175 175
 ];
176 176
 
177 177
 $deliveryStatusList = [
178
-	'-1' => $this->translate( 'mshop/code', 'stat:-1' ),
179
-	'0' => $this->translate( 'mshop/code', 'stat:0' ),
180
-	'1' => $this->translate( 'mshop/code', 'stat:1' ),
181
-	'2' => $this->translate( 'mshop/code', 'stat:2' ),
182
-	'3' => $this->translate( 'mshop/code', 'stat:3' ),
183
-	'4' => $this->translate( 'mshop/code', 'stat:4' ),
184
-	'5' => $this->translate( 'mshop/code', 'stat:5' ),
185
-	'6' => $this->translate( 'mshop/code', 'stat:6' ),
186
-	'7' => $this->translate( 'mshop/code', 'stat:7' ),
178
+	'-1' => $this->translate('mshop/code', 'stat:-1'),
179
+	'0' => $this->translate('mshop/code', 'stat:0'),
180
+	'1' => $this->translate('mshop/code', 'stat:1'),
181
+	'2' => $this->translate('mshop/code', 'stat:2'),
182
+	'3' => $this->translate('mshop/code', 'stat:3'),
183
+	'4' => $this->translate('mshop/code', 'stat:4'),
184
+	'5' => $this->translate('mshop/code', 'stat:5'),
185
+	'6' => $this->translate('mshop/code', 'stat:6'),
186
+	'7' => $this->translate('mshop/code', 'stat:7'),
187 187
 ];
188 188
 
189 189
 $statusList = [
190
-	0 => $this->translate( 'admin', 'no' ),
191
-	1 => $this->translate( 'admin', 'yes' ),
190
+	0 => $this->translate('admin', 'no'),
191
+	1 => $this->translate('admin', 'yes'),
192 192
 ];
193 193
 
194 194
 
195 195
 ?>
196
-<?php $this->block()->start( 'jqadm_content' ); ?>
196
+<?php $this->block()->start('jqadm_content'); ?>
197 197
 
198 198
 <nav class="main-navbar">
199 199
 
200 200
 	<span class="navbar-brand">
201
-		<?= $enc->html( $this->translate( 'admin', 'Order' ) ); ?>
202
-		<span class="navbar-secondary">(<?= $enc->html( $this->site()->label() ); ?>)</span>
201
+		<?= $enc->html($this->translate('admin', 'Order')); ?>
202
+		<span class="navbar-secondary">(<?= $enc->html($this->site()->label()); ?>)</span>
203 203
 	</span>
204 204
 
205 205
 	<?= $this->partial(
206
-		$this->config( 'admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard' ), [
207
-			'filter' => $this->session( 'aimeos/admin/jqadm/order/filter', [] ),
208
-			'filterAttributes' => $this->get( 'filterAttributes', [] ),
209
-			'filterOperators' => $this->get( 'filterOperators', [] ),
206
+		$this->config('admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard'), [
207
+			'filter' => $this->session('aimeos/admin/jqadm/order/filter', []),
208
+			'filterAttributes' => $this->get('filterAttributes', []),
209
+			'filterOperators' => $this->get('filterOperators', []),
210 210
 			'params' => $params,
211 211
 		]
212 212
 	); ?>
@@ -214,34 +214,34 @@  discard block
 block discarded – undo
214 214
 
215 215
 
216 216
 <?= $this->partial(
217
-		$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard' ),
218
-		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get( 'total' ),
219
-		'page' => $this->session( 'aimeos/admin/jqadm/order/page', [] )]
217
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard'),
218
+		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get('total'),
219
+		'page' => $this->session('aimeos/admin/jqadm/order/page', [])]
220 220
 	);
221 221
 ?>
222 222
 
223
-<?php $searchParam = $params; unset( $searchParam['filter'] ); ?>
224
-<form class="list list-order" method="POST" action="<?= $enc->attr( $this->url( $target, $controller, $action, $searchParams, [], $config ) ); ?>">
223
+<?php $searchParam = $params; unset($searchParam['filter']); ?>
224
+<form class="list list-order" method="POST" action="<?= $enc->attr($this->url($target, $controller, $action, $searchParams, [], $config)); ?>">
225 225
 	<?= $this->csrf()->formfield(); ?>
226 226
 
227 227
 	<table class="list-items table table-hover table-striped">
228 228
 		<thead class="list-header">
229 229
 			<tr>
230 230
 				<?= $this->partial(
231
-						$this->config( 'admin/jqadm/partial/listhead', 'common/partials/listhead-standard' ),
232
-						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session( 'aimeos/admin/jqadm/order/sort' )]
231
+						$this->config('admin/jqadm/partial/listhead', 'common/partials/listhead-standard'),
232
+						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session('aimeos/admin/jqadm/order/sort')]
233 233
 					);
234 234
 				?>
235 235
 
236 236
 				<th class="actions">
237 237
 					<a class="btn fa act-download" tabindex="1"
238
-						href="<?= $enc->attr( $this->url( $expTarget, $expCntl, $expAction, $params, [], $expConfig ) ); ?>"
239
-						title="<?= $enc->attr( $this->translate( 'admin', 'Download') ); ?>"
240
-						aria-label="<?= $enc->attr( $this->translate( 'admin', 'Download' ) ); ?>">
238
+						href="<?= $enc->attr($this->url($expTarget, $expCntl, $expAction, $params, [], $expConfig)); ?>"
239
+						title="<?= $enc->attr($this->translate('admin', 'Download')); ?>"
240
+						aria-label="<?= $enc->attr($this->translate('admin', 'Download')); ?>">
241 241
 					</a>
242 242
 
243 243
 					<?= $this->partial(
244
-							$this->config( 'admin/jqadm/partial/columns', 'common/partials/columns-standard' ),
244
+							$this->config('admin/jqadm/partial/columns', 'common/partials/columns-standard'),
245 245
 							['fields' => $fields, 'data' => $columnList]
246 246
 						);
247 247
 					?>
@@ -251,8 +251,8 @@  discard block
 block discarded – undo
251 251
 		<tbody>
252 252
 
253 253
 			<?= $this->partial(
254
-				$this->config( 'admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard' ), [
255
-					'fields' => $fields, 'filter' => $this->session( 'aimeos/admin/jqadm/order/filter', [] ),
254
+				$this->config('admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard'), [
255
+					'fields' => $fields, 'filter' => $this->session('aimeos/admin/jqadm/order/filter', []),
256 256
 					'data' => [
257 257
 						'order.id' => ['op' => '=='],
258 258
 						'order.type' => [],
@@ -303,186 +303,186 @@  discard block
 block discarded – undo
303 303
 				] );
304 304
 			?>
305 305
 
306
-			<?php foreach( $this->get( 'items', [] ) as $id => $item ) : ?>
307
-				<?php $url = $enc->attr( $this->url( $getTarget, $getCntl, $getAction, ['id' => $item->getBaseId()] + $params, [], $getConfig ) ); ?>
308
-				<tr class="list-item <?= $this->site()->readonly( $item->getSiteId() ); ?>">
309
-					<?php if( in_array( 'order.id', $fields ) ) : ?>
310
-						<td class="order-id"><a class="items-field" href="<?= $url; ?>" tabindex="1"><?= $enc->html( $item->getId() ); ?></a></td>
306
+			<?php foreach ($this->get('items', []) as $id => $item) : ?>
307
+				<?php $url = $enc->attr($this->url($getTarget, $getCntl, $getAction, ['id' => $item->getBaseId()] + $params, [], $getConfig)); ?>
308
+				<tr class="list-item <?= $this->site()->readonly($item->getSiteId()); ?>">
309
+					<?php if (in_array('order.id', $fields)) : ?>
310
+						<td class="order-id"><a class="items-field" href="<?= $url; ?>" tabindex="1"><?= $enc->html($item->getId()); ?></a></td>
311 311
 					<?php endif; ?>
312
-					<?php if( in_array( 'order.type', $fields ) ) : ?>
313
-						<td class="order-type"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getType() ); ?></a></td>
312
+					<?php if (in_array('order.type', $fields)) : ?>
313
+						<td class="order-type"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getType()); ?></a></td>
314 314
 					<?php endif; ?>
315
-					<?php if( in_array( 'order.statuspayment', $fields ) ) : ?>
316
-						<td class="order-statuspayment"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $paymentStatusList[$item->getPaymentStatus()] ); ?></a></td>
315
+					<?php if (in_array('order.statuspayment', $fields)) : ?>
316
+						<td class="order-statuspayment"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($paymentStatusList[$item->getPaymentStatus()]); ?></a></td>
317 317
 					<?php endif; ?>
318
-					<?php if( in_array( 'order.datepayment', $fields ) ) : ?>
319
-						<td class="order-datepayment"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getDatePayment() ); ?></a></td>
318
+					<?php if (in_array('order.datepayment', $fields)) : ?>
319
+						<td class="order-datepayment"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getDatePayment()); ?></a></td>
320 320
 					<?php endif; ?>
321
-					<?php if( in_array( 'order.statusdelivery', $fields ) ) : ?>
322
-						<td class="order-statusdelivery"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $deliveryStatusList[$item->getDeliveryStatus()] ); ?></a></td>
321
+					<?php if (in_array('order.statusdelivery', $fields)) : ?>
322
+						<td class="order-statusdelivery"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($deliveryStatusList[$item->getDeliveryStatus()]); ?></a></td>
323 323
 					<?php endif; ?>
324
-					<?php if( in_array( 'order.datedelivery', $fields ) ) : ?>
325
-						<td class="order-datedelivery"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getDateDelivery() ); ?></a></td>
324
+					<?php if (in_array('order.datedelivery', $fields)) : ?>
325
+						<td class="order-datedelivery"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getDateDelivery()); ?></a></td>
326 326
 					<?php endif; ?>
327
-					<?php if( in_array( 'order.relatedid', $fields ) ) : ?>
328
-						<td class="order-relatedid"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getRelatedId() ); ?></a></td>
327
+					<?php if (in_array('order.relatedid', $fields)) : ?>
328
+						<td class="order-relatedid"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getRelatedId()); ?></a></td>
329 329
 					<?php endif; ?>
330
-					<?php if( in_array( 'order.ctime', $fields ) ) : ?>
331
-						<td class="order-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeCreated() ); ?></a></td>
330
+					<?php if (in_array('order.ctime', $fields)) : ?>
331
+						<td class="order-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeCreated()); ?></a></td>
332 332
 					<?php endif; ?>
333
-					<?php if( in_array( 'order.mtime', $fields ) ) : ?>
334
-						<td class="order-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeModified() ); ?></a></td>
333
+					<?php if (in_array('order.mtime', $fields)) : ?>
334
+						<td class="order-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeModified()); ?></a></td>
335 335
 					<?php endif; ?>
336
-					<?php if( in_array( 'order.editor', $fields ) ) : ?>
337
-						<td class="order-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getEditor() ); ?></a></td>
336
+					<?php if (in_array('order.editor', $fields)) : ?>
337
+						<td class="order-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getEditor()); ?></a></td>
338 338
 					<?php endif; ?>
339 339
 
340
-					<?php $baseItem = ( isset( $baseItems[$item->getBaseId()] ) ? $baseItems[$item->getBaseId()] : null ); ?>
340
+					<?php $baseItem = (isset($baseItems[$item->getBaseId()]) ? $baseItems[$item->getBaseId()] : null); ?>
341 341
 
342
-					<?php if( in_array( 'order.base.customerid', $fields ) ) : ?>
343
-						<td class="order-base-customerid"><a class="items-field" href="<?= $url; ?>"><?= $baseItem ? $enc->html( $baseItem->getCustomerId() ) : ''; ?></a></td>
342
+					<?php if (in_array('order.base.customerid', $fields)) : ?>
343
+						<td class="order-base-customerid"><a class="items-field" href="<?= $url; ?>"><?= $baseItem ? $enc->html($baseItem->getCustomerId()) : ''; ?></a></td>
344 344
 					<?php endif; ?>
345
-					<?php if( in_array( 'order.base.sitecode', $fields ) ) : ?>
346
-						<td class="order-base-sitecode"><a class="items-field" href="<?= $url; ?>"><?= $baseItem ? $enc->html( $baseItem->getSiteCode() ) : ''; ?></a></td>
345
+					<?php if (in_array('order.base.sitecode', $fields)) : ?>
346
+						<td class="order-base-sitecode"><a class="items-field" href="<?= $url; ?>"><?= $baseItem ? $enc->html($baseItem->getSiteCode()) : ''; ?></a></td>
347 347
 					<?php endif; ?>
348
-					<?php if( in_array( 'order.base.languageid', $fields ) ) : ?>
349
-						<td class="order-base-languageid"><a class="items-field" href="<?= $url; ?>"><?= $baseItem ? $enc->html( $baseItem->getLocale()->getLanguageId() ) : ''; ?></a></td>
348
+					<?php if (in_array('order.base.languageid', $fields)) : ?>
349
+						<td class="order-base-languageid"><a class="items-field" href="<?= $url; ?>"><?= $baseItem ? $enc->html($baseItem->getLocale()->getLanguageId()) : ''; ?></a></td>
350 350
 					<?php endif; ?>
351
-					<?php if( in_array( 'order.base.currencyid', $fields ) ) : ?>
352
-						<td class="order-base-currencyid"><a class="items-field" href="<?= $url; ?>"><?= $baseItem ? $enc->html( $baseItem->getLocale()->getCurrencyId() ) : ''; ?></a></td>
351
+					<?php if (in_array('order.base.currencyid', $fields)) : ?>
352
+						<td class="order-base-currencyid"><a class="items-field" href="<?= $url; ?>"><?= $baseItem ? $enc->html($baseItem->getLocale()->getCurrencyId()) : ''; ?></a></td>
353 353
 					<?php endif; ?>
354
-					<?php if( in_array( 'order.base.price', $fields ) ) : ?>
355
-						<td class="order-base-price"><a class="items-field" href="<?= $url; ?>"><?= $baseItem ? $enc->html( $baseItem->getPrice()->getValue() ) : ''; ?></a></td>
354
+					<?php if (in_array('order.base.price', $fields)) : ?>
355
+						<td class="order-base-price"><a class="items-field" href="<?= $url; ?>"><?= $baseItem ? $enc->html($baseItem->getPrice()->getValue()) : ''; ?></a></td>
356 356
 					<?php endif; ?>
357
-					<?php if( in_array( 'order.base.costs', $fields ) ) : ?>
358
-						<td class="order-base-costs"><a class="items-field" href="<?= $url; ?>"><?= $baseItem ? $enc->html( $baseItem->getPrice()->getCosts() ) : ''; ?></a></td>
357
+					<?php if (in_array('order.base.costs', $fields)) : ?>
358
+						<td class="order-base-costs"><a class="items-field" href="<?= $url; ?>"><?= $baseItem ? $enc->html($baseItem->getPrice()->getCosts()) : ''; ?></a></td>
359 359
 					<?php endif; ?>
360
-					<?php if( in_array( 'order.base.rebate', $fields ) ) : ?>
361
-						<td class="order-base-rebate"><a class="items-field" href="<?= $url; ?>"><?= $baseItem ? $enc->html( $baseItem->getPrice()->getRebate() ) : ''; ?></a></td>
360
+					<?php if (in_array('order.base.rebate', $fields)) : ?>
361
+						<td class="order-base-rebate"><a class="items-field" href="<?= $url; ?>"><?= $baseItem ? $enc->html($baseItem->getPrice()->getRebate()) : ''; ?></a></td>
362 362
 					<?php endif; ?>
363
-					<?php if( in_array( 'order.base.taxvalue', $fields ) ) : ?>
364
-						<td class="order-base-taxvalue"><a class="items-field" href="<?= $url; ?>"><?= $baseItem ? $enc->html( $baseItem->getPrice()->getTaxValue() ) : ''; ?></a></td>
363
+					<?php if (in_array('order.base.taxvalue', $fields)) : ?>
364
+						<td class="order-base-taxvalue"><a class="items-field" href="<?= $url; ?>"><?= $baseItem ? $enc->html($baseItem->getPrice()->getTaxValue()) : ''; ?></a></td>
365 365
 					<?php endif; ?>
366
-					<?php if( in_array( 'order.base.taxflag', $fields ) ) : ?>
367
-						<td class="order-base-taxflag"><a class="items-field" href="<?= $url; ?>"><?= $baseItem ? $enc->html( $statusList[$baseItem->getPrice()->getTaxFlag()] ) : ''; ?></a></td>
366
+					<?php if (in_array('order.base.taxflag', $fields)) : ?>
367
+						<td class="order-base-taxflag"><a class="items-field" href="<?= $url; ?>"><?= $baseItem ? $enc->html($statusList[$baseItem->getPrice()->getTaxFlag()]) : ''; ?></a></td>
368 368
 					<?php endif; ?>
369
-					<?php if( in_array( 'order.base.comment', $fields ) ) : ?>
370
-						<td class="order-base-comment"><a class="items-field" href="<?= $url; ?>"><?= $baseItem ? $enc->html( $baseItem->getComment() ) : ''; ?></a></td>
369
+					<?php if (in_array('order.base.comment', $fields)) : ?>
370
+						<td class="order-base-comment"><a class="items-field" href="<?= $url; ?>"><?= $baseItem ? $enc->html($baseItem->getComment()) : ''; ?></a></td>
371 371
 					<?php endif; ?>
372 372
 
373 373
 					<?php $addrItem = null;
374
-						if( $baseItem && ( $addresses = $baseItem->getAddresses() ) && isset( $addresses[\Aimeos\MShop\Order\Item\Base\Address\Base::TYPE_PAYMENT] ) ) {
374
+						if ($baseItem && ($addresses = $baseItem->getAddresses()) && isset($addresses[\Aimeos\MShop\Order\Item\Base\Address\Base::TYPE_PAYMENT])) {
375 375
 							$addrItem = $addresses[\Aimeos\MShop\Order\Item\Base\Address\Base::TYPE_PAYMENT];
376 376
 						}
377 377
 					?>
378 378
 
379
-					<?php if( in_array( 'order.base.address.salutation', $fields ) ) : ?>
380
-						<td class="order-base-address-salutation"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html( $addrItem->getSalutation() ) : ''; ?></a></td>
379
+					<?php if (in_array('order.base.address.salutation', $fields)) : ?>
380
+						<td class="order-base-address-salutation"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html($addrItem->getSalutation()) : ''; ?></a></td>
381 381
 					<?php endif; ?>
382
-					<?php if( in_array( 'order.base.address.company', $fields ) ) : ?>
383
-						<td class="order-base-address-company"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html( $addrItem->getCompany() ) : ''; ?></a></td>
382
+					<?php if (in_array('order.base.address.company', $fields)) : ?>
383
+						<td class="order-base-address-company"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html($addrItem->getCompany()) : ''; ?></a></td>
384 384
 					<?php endif; ?>
385
-					<?php if( in_array( 'order.base.address.vatid', $fields ) ) : ?>
386
-						<td class="order-base-address-vatid"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html( $addrItem->getVatID() ) : ''; ?></a></td>
385
+					<?php if (in_array('order.base.address.vatid', $fields)) : ?>
386
+						<td class="order-base-address-vatid"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html($addrItem->getVatID()) : ''; ?></a></td>
387 387
 					<?php endif; ?>
388
-					<?php if( in_array( 'order.base.address.title', $fields ) ) : ?>
389
-						<td class="order-base-address-title"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html( $addrItem->getTitle() ) : ''; ?></a></td>
388
+					<?php if (in_array('order.base.address.title', $fields)) : ?>
389
+						<td class="order-base-address-title"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html($addrItem->getTitle()) : ''; ?></a></td>
390 390
 					<?php endif; ?>
391
-					<?php if( in_array( 'order.base.address.firstname', $fields ) ) : ?>
392
-						<td class="order-base-address-firstname"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html( $addrItem->getFirstname() ) : ''; ?></a></td>
391
+					<?php if (in_array('order.base.address.firstname', $fields)) : ?>
392
+						<td class="order-base-address-firstname"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html($addrItem->getFirstname()) : ''; ?></a></td>
393 393
 					<?php endif; ?>
394
-					<?php if( in_array( 'order.base.address.lastname', $fields ) ) : ?>
395
-						<td class="order-base-address-lastname"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html( $addrItem->getLastname() ) : ''; ?></a></td>
394
+					<?php if (in_array('order.base.address.lastname', $fields)) : ?>
395
+						<td class="order-base-address-lastname"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html($addrItem->getLastname()) : ''; ?></a></td>
396 396
 					<?php endif; ?>
397
-					<?php if( in_array( 'order.base.address.address1', $fields ) ) : ?>
398
-						<td class="order-base-address-address1"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html( $addrItem->getAddress1() ) : ''; ?></a></td>
397
+					<?php if (in_array('order.base.address.address1', $fields)) : ?>
398
+						<td class="order-base-address-address1"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html($addrItem->getAddress1()) : ''; ?></a></td>
399 399
 					<?php endif; ?>
400
-					<?php if( in_array( 'order.base.address.address2', $fields ) ) : ?>
401
-						<td class="order-base-address-address2"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html( $addrItem->getAddress2() ) : ''; ?></a></td>
400
+					<?php if (in_array('order.base.address.address2', $fields)) : ?>
401
+						<td class="order-base-address-address2"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html($addrItem->getAddress2()) : ''; ?></a></td>
402 402
 					<?php endif; ?>
403
-					<?php if( in_array( 'order.base.address.address3', $fields ) ) : ?>
404
-						<td class="order-base-address-address3"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html( $addrItem->getAddress3() ) : ''; ?></a></td>
403
+					<?php if (in_array('order.base.address.address3', $fields)) : ?>
404
+						<td class="order-base-address-address3"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html($addrItem->getAddress3()) : ''; ?></a></td>
405 405
 					<?php endif; ?>
406
-					<?php if( in_array( 'order.base.address.postal', $fields ) ) : ?>
407
-						<td class="order-base-address-postal"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html( $addrItem->getPostal() ) : ''; ?></a></td>
406
+					<?php if (in_array('order.base.address.postal', $fields)) : ?>
407
+						<td class="order-base-address-postal"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html($addrItem->getPostal()) : ''; ?></a></td>
408 408
 					<?php endif; ?>
409
-					<?php if( in_array( 'order.base.address.city', $fields ) ) : ?>
410
-						<td class="order-base-address-city"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html( $addrItem->getCity() ) : ''; ?></a></td>
409
+					<?php if (in_array('order.base.address.city', $fields)) : ?>
410
+						<td class="order-base-address-city"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html($addrItem->getCity()) : ''; ?></a></td>
411 411
 					<?php endif; ?>
412
-					<?php if( in_array( 'order.base.address.state', $fields ) ) : ?>
413
-						<td class="order-base-address-state"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html( $addrItem->getState() ) : ''; ?></a></td>
412
+					<?php if (in_array('order.base.address.state', $fields)) : ?>
413
+						<td class="order-base-address-state"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html($addrItem->getState()) : ''; ?></a></td>
414 414
 					<?php endif; ?>
415
-					<?php if( in_array( 'order.base.address.countryid', $fields ) ) : ?>
416
-						<td class="order-base-address-countryid"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html( $addrItem->getCountryId() ) : ''; ?></a></td>
415
+					<?php if (in_array('order.base.address.countryid', $fields)) : ?>
416
+						<td class="order-base-address-countryid"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html($addrItem->getCountryId()) : ''; ?></a></td>
417 417
 					<?php endif; ?>
418
-					<?php if( in_array( 'order.base.address.languageid', $fields ) ) : ?>
419
-						<td class="order-base-address-languageid"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html( $addrItem->getLanguageId() ) : ''; ?></a></td>
418
+					<?php if (in_array('order.base.address.languageid', $fields)) : ?>
419
+						<td class="order-base-address-languageid"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html($addrItem->getLanguageId()) : ''; ?></a></td>
420 420
 					<?php endif; ?>
421
-					<?php if( in_array( 'order.base.address.telephone', $fields ) ) : ?>
422
-						<td class="order-base-address-telephone"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html( $addrItem->getTelephone() ) : ''; ?></a></td>
421
+					<?php if (in_array('order.base.address.telephone', $fields)) : ?>
422
+						<td class="order-base-address-telephone"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html($addrItem->getTelephone()) : ''; ?></a></td>
423 423
 					<?php endif; ?>
424
-					<?php if( in_array( 'order.base.address.telefax', $fields ) ) : ?>
425
-						<td class="order-base-address-telefax"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html( $addrItem->getTelefax() ) : ''; ?></a></td>
424
+					<?php if (in_array('order.base.address.telefax', $fields)) : ?>
425
+						<td class="order-base-address-telefax"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html($addrItem->getTelefax()) : ''; ?></a></td>
426 426
 					<?php endif; ?>
427
-					<?php if( in_array( 'order.base.address.email', $fields ) ) : ?>
428
-						<td class="order-base-address-email"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html( $addrItem->getEmail() ) : ''; ?></a></td>
427
+					<?php if (in_array('order.base.address.email', $fields)) : ?>
428
+						<td class="order-base-address-email"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html($addrItem->getEmail()) : ''; ?></a></td>
429 429
 					<?php endif; ?>
430
-					<?php if( in_array( 'order.base.address.website', $fields ) ) : ?>
431
-						<td class="order-base-address-website"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html( $addrItem->getWebsite() ) : ''; ?></a></td>
430
+					<?php if (in_array('order.base.address.website', $fields)) : ?>
431
+						<td class="order-base-address-website"><a class="items-field" href="<?= $url; ?>"><?= $addrItem ? $enc->html($addrItem->getWebsite()) : ''; ?></a></td>
432 432
 					<?php endif; ?>
433 433
 
434
-					<?php $services = ( $baseItem ? $baseItem->getServices() : [] ); ?>
434
+					<?php $services = ($baseItem ? $baseItem->getServices() : []); ?>
435 435
 
436
-					<?php if( in_array( 'order.base.service.code', $fields ) ) : ?>
436
+					<?php if (in_array('order.base.service.code', $fields)) : ?>
437 437
 						<td class="order-base-service-code">
438 438
 							<a class="items-field" href="<?= $url; ?>">
439
-								<?php foreach( $services as $type => $list ) : ?>
440
-									<?php foreach( $list as $serviceItem ) : ?>
441
-										<span class="line"><?= $enc->html( $serviceItem->getCode() ); ?></span>
439
+								<?php foreach ($services as $type => $list) : ?>
440
+									<?php foreach ($list as $serviceItem) : ?>
441
+										<span class="line"><?= $enc->html($serviceItem->getCode()); ?></span>
442 442
 									<?php endforeach; ?>
443 443
 								<?php endforeach; ?>
444 444
 							</a>
445 445
 						</td>
446 446
 					<?php endif; ?>
447
-					<?php if( in_array( 'order.base.service.name', $fields ) ) : ?>
447
+					<?php if (in_array('order.base.service.name', $fields)) : ?>
448 448
 						<td class="order-base-service-name">
449 449
 							<a class="items-field" href="<?= $url; ?>">
450
-								<?php foreach( $services as $type => $list ) : ?>
451
-									<?php foreach( $list as $serviceItem ) : ?>
452
-										<span class="line"><?= $enc->html( $serviceItem->getName() ); ?></span>
450
+								<?php foreach ($services as $type => $list) : ?>
451
+									<?php foreach ($list as $serviceItem) : ?>
452
+										<span class="line"><?= $enc->html($serviceItem->getName()); ?></span>
453 453
 									<?php endforeach; ?>
454 454
 								<?php endforeach; ?>
455 455
 							</a>
456 456
 						</td>
457 457
 					<?php endif; ?>
458
-					<?php if( in_array( 'order.base.service.price', $fields ) ) : ?>
458
+					<?php if (in_array('order.base.service.price', $fields)) : ?>
459 459
 						<td class="order-base-service-price">
460 460
 							<a class="items-field" href="<?= $url; ?>">
461
-								<?php foreach( $services as $type => $list ) : ?>
462
-									<?php foreach( $list as $serviceItem ) : ?>
463
-										<span class="line"><?= $enc->html( $serviceItem->getPrice()->getValue() ); ?></span>
461
+								<?php foreach ($services as $type => $list) : ?>
462
+									<?php foreach ($list as $serviceItem) : ?>
463
+										<span class="line"><?= $enc->html($serviceItem->getPrice()->getValue()); ?></span>
464 464
 									<?php endforeach; ?>
465 465
 								<?php endforeach; ?>
466 466
 							</a>
467 467
 						</td>
468 468
 					<?php endif; ?>
469
-					<?php if( in_array( 'order.base.service.costs', $fields ) ) : ?>
469
+					<?php if (in_array('order.base.service.costs', $fields)) : ?>
470 470
 						<td class="order-base-service-costs">
471 471
 							<a class="items-field" href="<?= $url; ?>">
472
-								<?php foreach( $services as $type => $list ) : ?>
473
-									<?php foreach( $list as $serviceItem ) : ?>
474
-										<span class="line"><?= $enc->html( $serviceItem->getPrice()->getCosts() ); ?></span>
472
+								<?php foreach ($services as $type => $list) : ?>
473
+									<?php foreach ($list as $serviceItem) : ?>
474
+										<span class="line"><?= $enc->html($serviceItem->getPrice()->getCosts()); ?></span>
475 475
 									<?php endforeach; ?>
476 476
 								<?php endforeach; ?>
477 477
 							</a>
478 478
 						</td>
479 479
 					<?php endif; ?>
480
-					<?php if( in_array( 'order.base.service.rebate', $fields ) ) : ?>
480
+					<?php if (in_array('order.base.service.rebate', $fields)) : ?>
481 481
 						<td class="order-base-service-rebate">
482 482
 							<a class="items-field" href="<?= $url; ?>">
483
-								<?php foreach( $services as $type => $list ) : ?>
484
-									<?php foreach( $list as $serviceItem ) : ?>
485
-										<span class="line"><?= $enc->html( $serviceItem->getPrice()->getRebate() ); ?></span>
483
+								<?php foreach ($services as $type => $list) : ?>
484
+									<?php foreach ($list as $serviceItem) : ?>
485
+										<span class="line"><?= $enc->html($serviceItem->getPrice()->getRebate()); ?></span>
486 486
 									<?php endforeach; ?>
487 487
 								<?php endforeach; ?>
488 488
 							</a>
@@ -491,27 +491,27 @@  discard block
 block discarded – undo
491 491
 
492 492
 					<td class="actions">
493 493
 						<a class="btn act-copy fa"
494
-							href="<?= $enc->attr( $this->url( $copyTarget, $copyCntl, $copyAction, ['id' => $item->getBaseId()] + $params, [], $copyConfig ) ); ?>"
495
-							title="<?= $enc->attr( $this->translate( 'admin', 'Copy this entry') ); ?>"
496
-							aria-label="<?= $enc->attr( $this->translate( 'admin', 'Copy' ) ); ?>"></a>
494
+							href="<?= $enc->attr($this->url($copyTarget, $copyCntl, $copyAction, ['id' => $item->getBaseId()] + $params, [], $copyConfig)); ?>"
495
+							title="<?= $enc->attr($this->translate('admin', 'Copy this entry')); ?>"
496
+							aria-label="<?= $enc->attr($this->translate('admin', 'Copy')); ?>"></a>
497 497
 					</td>
498 498
 				</tr>
499 499
 			<?php endforeach; ?>
500 500
 		</tbody>
501 501
 	</table>
502 502
 
503
-	<?php if( $this->get( 'items', [] ) === [] ) : ?>
504
-		<?= $enc->html( sprintf( $this->translate( 'admin', 'No items found' ) ) ); ?>
503
+	<?php if ($this->get('items', []) === []) : ?>
504
+		<?= $enc->html(sprintf($this->translate('admin', 'No items found'))); ?>
505 505
 	<?php endif; ?>
506 506
 </form>
507 507
 
508 508
 <?= $this->partial(
509
-		$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard' ),
510
-		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get( 'total' ),
511
-		'page' => $this->session( 'aimeos/admin/jqadm/order/page', [] )]
509
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard'),
510
+		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get('total'),
511
+		'page' => $this->session('aimeos/admin/jqadm/order/page', [])]
512 512
 	);
513 513
 ?>
514 514
 
515 515
 <?php $this->block()->stop(); ?>
516 516
 
517
-<?= $this->render( $this->config( 'admin/jqadm/template/page', 'common/page-standard' ) ); ?>
517
+<?= $this->render($this->config('admin/jqadm/template/page', 'common/page-standard')); ?>
Please login to merge, or discard this patch.
admin/jqadm/templates/dashboard/list-standard.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -9,18 +9,18 @@
 block discarded – undo
9 9
 
10 10
 
11 11
 ?>
12
-<?php $this->block()->start( 'jqadm_content' ); ?>
12
+<?php $this->block()->start('jqadm_content'); ?>
13 13
 <nav class="main-navbar">
14 14
 	<span class="navbar-brand">
15
-		<?= $enc->html( $this->translate( 'admin', 'Dashboard' ) ); ?>
16
-		<span class="navbar-secondary">(<?= $enc->html( $this->site()->label() ); ?>)</span>
15
+		<?= $enc->html($this->translate('admin', 'Dashboard')); ?>
16
+		<span class="navbar-secondary">(<?= $enc->html($this->site()->label()); ?>)</span>
17 17
 	</span>
18 18
 	<div class="btn act-show fa" style="visibility: hidden"></div>
19 19
 </nav>
20 20
 
21 21
 <div class="dashboard">
22
-	<?= $this->get( 'listBody' ); ?>
22
+	<?= $this->get('listBody'); ?>
23 23
 </div>
24 24
 <?php $this->block()->stop(); ?>
25 25
 
26
-<?= $this->render( $this->config( 'admin/jqadm/template/page', 'common/page-standard' ) ); ?>
26
+<?= $this->render($this->config('admin/jqadm/template/page', 'common/page-standard')); ?>
Please login to merge, or discard this patch.
admin/jqadm/templates/locale/currency/item-standard.php 1 patch
Spacing   +50 added lines, -50 removed lines patch added patch discarded remove patch
@@ -5,37 +5,37 @@  discard block
 block discarded – undo
5 5
  * @copyright Aimeos (aimeos.org), 2017-2018
6 6
  */
7 7
 
8
-$selected = function( $key, $code ) {
9
-	return ( $key == $code ? 'selected="selected"' : '' );
8
+$selected = function($key, $code) {
9
+	return ($key == $code ? 'selected="selected"' : '');
10 10
 };
11 11
 
12 12
 $enc = $this->encoder();
13 13
 
14 14
 
15
-$target = $this->config( 'admin/jqadm/url/save/target' );
16
-$cntl = $this->config( 'admin/jqadm/url/save/controller', 'Jqadm' );
17
-$action = $this->config( 'admin/jqadm/url/save/action', 'save' );
18
-$config = $this->config( 'admin/jqadm/url/save/config', [] );
15
+$target = $this->config('admin/jqadm/url/save/target');
16
+$cntl = $this->config('admin/jqadm/url/save/controller', 'Jqadm');
17
+$action = $this->config('admin/jqadm/url/save/action', 'save');
18
+$config = $this->config('admin/jqadm/url/save/config', []);
19 19
 
20
-$params = $this->get( 'pageParams', [] );
20
+$params = $this->get('pageParams', []);
21 21
 
22 22
 
23 23
 ?>
24
-<?php $this->block()->start( 'jqadm_content' ); ?>
24
+<?php $this->block()->start('jqadm_content'); ?>
25 25
 
26
-<form class="item item-locale form-horizontal" method="POST" enctype="multipart/form-data" action="<?= $enc->attr( $this->url( $target, $cntl, $action, $params, [], $config ) ); ?>">
27
-	<input id="item-id" type="hidden" name="<?= $enc->attr( $this->formparam( array( 'item', 'locale.currency.id' ) ) ); ?>" value="<?= $enc->attr( $this->get( 'itemData/locale.currency.id' ) ); ?>" />
28
-	<input id="item-next" type="hidden" name="<?= $enc->attr( $this->formparam( array( 'next' ) ) ); ?>" value="get" />
26
+<form class="item item-locale form-horizontal" method="POST" enctype="multipart/form-data" action="<?= $enc->attr($this->url($target, $cntl, $action, $params, [], $config)); ?>">
27
+	<input id="item-id" type="hidden" name="<?= $enc->attr($this->formparam(array('item', 'locale.currency.id'))); ?>" value="<?= $enc->attr($this->get('itemData/locale.currency.id')); ?>" />
28
+	<input id="item-next" type="hidden" name="<?= $enc->attr($this->formparam(array('next'))); ?>" value="get" />
29 29
 	<?= $this->csrf()->formfield(); ?>
30 30
 
31 31
 	<nav class="main-navbar">
32 32
 		<span class="navbar-brand">
33
-			<?= $enc->html( $this->translate( 'admin', 'Currency' ) ); ?>:
34
-			<?= $enc->html( $this->get( 'itemData/locale.currency.id' ) ); ?> -
35
-			<?= $enc->html( $this->get( 'itemData/locale.currency.label', $this->translate( 'admin', 'New' ) ) ); ?>
33
+			<?= $enc->html($this->translate('admin', 'Currency')); ?>:
34
+			<?= $enc->html($this->get('itemData/locale.currency.id')); ?> -
35
+			<?= $enc->html($this->get('itemData/locale.currency.label', $this->translate('admin', 'New'))); ?>
36 36
 		</span>
37 37
 		<div class="item-actions">
38
-			<?= $this->partial( $this->config( 'admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard' ), ['params' => $params] ); ?>
38
+			<?= $this->partial($this->config('admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard'), ['params' => $params]); ?>
39 39
 		</div>
40 40
 	</nav>
41 41
 
@@ -46,14 +46,14 @@  discard block
 block discarded – undo
46 46
 
47 47
 				<li class="nav-item basic">
48 48
 					<a class="nav-link active" href="#basic" data-toggle="tab" role="tab" aria-expanded="true" aria-controls="basic">
49
-						<?= $enc->html( $this->translate( 'admin', 'Basic' ) ); ?>
49
+						<?= $enc->html($this->translate('admin', 'Basic')); ?>
50 50
 					</a>
51 51
 				</li>
52 52
 
53
-				<?php foreach( array_values( $this->get( 'itemSubparts', [] ) ) as $idx => $subpart ) : ?>
54
-					<li class="nav-item <?= $enc->attr( $subpart ); ?>">
55
-						<a class="nav-link" href="#<?= $enc->attr( $subpart ); ?>" data-toggle="tab" role="tab" tabindex="<?= ++$idx+1; ?>">
56
-							<?= $enc->html( $this->translate( 'admin', $subpart ) ); ?>
53
+				<?php foreach (array_values($this->get('itemSubparts', [])) as $idx => $subpart) : ?>
54
+					<li class="nav-item <?= $enc->attr($subpart); ?>">
55
+						<a class="nav-link" href="#<?= $enc->attr($subpart); ?>" data-toggle="tab" role="tab" tabindex="<?= ++$idx + 1; ?>">
56
+							<?= $enc->html($this->translate('admin', $subpart)); ?>
57 57
 						</a>
58 58
 					</li>
59 59
 				<?php endforeach; ?>
@@ -62,16 +62,16 @@  discard block
 block discarded – undo
62 62
 
63 63
 			<div class="item-meta text-muted">
64 64
 				<small>
65
-					<?= $enc->html( $this->translate( 'admin', 'Modified' ) ); ?>:
66
-					<span class="meta-value"><?= $enc->html( $this->get( 'itemData/locale.currency.mtime' ) ); ?></span>
65
+					<?= $enc->html($this->translate('admin', 'Modified')); ?>:
66
+					<span class="meta-value"><?= $enc->html($this->get('itemData/locale.currency.mtime')); ?></span>
67 67
 				</small>
68 68
 				<small>
69
-					<?= $enc->html( $this->translate( 'admin', 'Created' ) ); ?>:
70
-					<span class="meta-value"><?= $enc->html( $this->get( 'itemData/locale.currency.ctime' ) ); ?></span>
69
+					<?= $enc->html($this->translate('admin', 'Created')); ?>:
70
+					<span class="meta-value"><?= $enc->html($this->get('itemData/locale.currency.ctime')); ?></span>
71 71
 				</small>
72 72
 				<small>
73
-					<?= $enc->html( $this->translate( 'admin', 'Editor' ) ); ?>:
74
-					<span class="meta-value"><?= $enc->html( $this->get( 'itemData/locale.currency.editor' ) ); ?></span>
73
+					<?= $enc->html($this->translate('admin', 'Editor')); ?>:
74
+					<span class="meta-value"><?= $enc->html($this->get('itemData/locale.currency.editor')); ?></span>
75 75
 				</small>
76 76
 			</div>
77 77
 		</div>
@@ -81,62 +81,62 @@  discard block
 block discarded – undo
81 81
 
82 82
 				<div class="col-xl-6 content-block">
83 83
 					<div class="form-group row mandatory">
84
-						<label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Status' ) ); ?></label>
84
+						<label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'Status')); ?></label>
85 85
 						<div class="col-sm-8">
86 86
 							<select class="form-control custom-select item-status" required="required" tabindex="1"
87
-								name="<?= $enc->attr( $this->formparam( array( 'item', 'locale.currency.status' ) ) ); ?>" >
87
+								name="<?= $enc->attr($this->formparam(array('item', 'locale.currency.status'))); ?>" >
88 88
 								<option value="">
89
-									<?= $enc->attr( $this->translate( 'admin', 'Please select' ) ); ?>
89
+									<?= $enc->attr($this->translate('admin', 'Please select')); ?>
90 90
 								</option>
91
-								<option value="1" <?= $selected( $this->get( 'itemData/locale.currency.status', 1 ), 1 ); ?> >
92
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:1' ) ); ?>
91
+								<option value="1" <?= $selected($this->get('itemData/locale.currency.status', 1), 1); ?> >
92
+									<?= $enc->html($this->translate('mshop/code', 'status:1')); ?>
93 93
 								</option>
94
-								<option value="0" <?= $selected( $this->get( 'itemData/locale.currency.status', 1 ), 0 ); ?> >
95
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:0' ) ); ?>
94
+								<option value="0" <?= $selected($this->get('itemData/locale.currency.status', 1), 0); ?> >
95
+									<?= $enc->html($this->translate('mshop/code', 'status:0')); ?>
96 96
 								</option>
97
-								<option value="-1" <?= $selected( $this->get( 'itemData/locale.currency.status', 1 ), -1 ); ?> >
98
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:-1' ) ); ?>
97
+								<option value="-1" <?= $selected($this->get('itemData/locale.currency.status', 1), -1); ?> >
98
+									<?= $enc->html($this->translate('mshop/code', 'status:-1')); ?>
99 99
 								</option>
100
-								<option value="-2" <?= $selected( $this->get( 'itemData/locale.currency.status', 1 ), -2 ); ?> >
101
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:-2' ) ); ?>
100
+								<option value="-2" <?= $selected($this->get('itemData/locale.currency.status', 1), -2); ?> >
101
+									<?= $enc->html($this->translate('mshop/code', 'status:-2')); ?>
102 102
 								</option>
103 103
 							</select>
104 104
 						</div>
105 105
 					</div>
106 106
 					<div class="form-group row mandatory">
107
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Code' ) ); ?></label>
107
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Code')); ?></label>
108 108
 						<div class="col-sm-8">
109 109
 							<input class="form-control item-code" required="required" tabindex="1" autocomplete="off"
110
-								name="<?= $enc->attr( $this->formparam( array( 'item', 'locale.currency.code' ) ) ); ?>"
111
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'ISO currency code (required)' ) ); ?>"
112
-								value="<?= $enc->attr( $this->get( 'itemData/locale.currency.code' ) ); ?>" />
110
+								name="<?= $enc->attr($this->formparam(array('item', 'locale.currency.code'))); ?>"
111
+								placeholder="<?= $enc->attr($this->translate('admin', 'ISO currency code (required)')); ?>"
112
+								value="<?= $enc->attr($this->get('itemData/locale.currency.code')); ?>" />
113 113
 						</div>
114 114
 						<div class="col-sm-12 form-text text-muted help-text">
115
-							<?= $enc->html( $this->translate( 'admin', 'Three letter ISO currency code' ) ); ?>
115
+							<?= $enc->html($this->translate('admin', 'Three letter ISO currency code')); ?>
116 116
 						</div>
117 117
 					</div>
118 118
 					<div class="form-group row mandatory">
119
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Label' ) ); ?></label>
119
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Label')); ?></label>
120 120
 						<div class="col-sm-8">
121 121
 							<input class="form-control item-label" required="required" tabindex="1" autocomplete="off"
122
-								name="<?= $enc->attr( $this->formparam( array( 'item', 'locale.currency.label' ) ) ); ?>"
123
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'Label (required)' ) ); ?>"
124
-								value="<?= $enc->attr( $this->get( 'itemData/locale.currency.label' ) ); ?>" />
122
+								name="<?= $enc->attr($this->formparam(array('item', 'locale.currency.label'))); ?>"
123
+								placeholder="<?= $enc->attr($this->translate('admin', 'Label (required)')); ?>"
124
+								value="<?= $enc->attr($this->get('itemData/locale.currency.label')); ?>" />
125 125
 						</div>
126 126
 						<div class="col-sm-12 form-text text-muted help-text">
127
-							<?= $enc->html( $this->translate( 'admin', 'Descritive name of the currency' ) ); ?>
127
+							<?= $enc->html($this->translate('admin', 'Descritive name of the currency')); ?>
128 128
 						</div>
129 129
 					</div>
130 130
 				</div>
131 131
 
132 132
 			</div>
133 133
 
134
-			<?= $this->get( 'itemBody' ); ?>
134
+			<?= $this->get('itemBody'); ?>
135 135
 
136 136
 		</div>
137 137
 
138 138
 		<div class="item-actions">
139
-			<?= $this->partial( $this->config( 'admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard' ), ['params' => $params] ); ?>
139
+			<?= $this->partial($this->config('admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard'), ['params' => $params]); ?>
140 140
 		</div>
141 141
 	</div>
142 142
 </form>
@@ -144,4 +144,4 @@  discard block
 block discarded – undo
144 144
 <?php $this->block()->stop(); ?>
145 145
 
146 146
 
147
-<?= $this->render( $this->config( 'admin/jqadm/template/page', 'common/page-standard' ) ); ?>
147
+<?= $this->render($this->config('admin/jqadm/template/page', 'common/page-standard')); ?>
Please login to merge, or discard this patch.