@@ -15,8 +15,7 @@ |
||
15 | 15 | $cntl = $this->config( 'client/html/catalog/tree/url/controller', 'catalog' ); |
16 | 16 | $action = $this->config( 'client/html/catalog/tree/url/action', 'tree' ); |
17 | 17 | $config = $this->config( 'client/html/catalog/tree/url/config', [] ); |
18 | -} |
|
19 | -else |
|
18 | +} else |
|
20 | 19 | { |
21 | 20 | $target = $this->config( 'client/html/catalog/lists/url/target' ); |
22 | 21 | $cntl = $this->config( 'client/html/catalog/lists/url/controller', 'catalog' ); |
@@ -37,14 +37,17 @@ |
||
37 | 37 | <span class="name"> |
38 | 38 | <?php if( $attribute->getName() != '' ) : ?> |
39 | 39 | <?= $enc->html( $attribute->getName() ) ?> |
40 | - <?php else : ?> |
|
40 | + <?php else { |
|
41 | + : ?> |
|
41 | 42 | <?= $enc->html( $this->translate( 'client/code', $attribute->getCode() ) ) ?> |
42 | 43 | <?php endif ?> |
43 | 44 | </span> |
44 | 45 | |
45 | 46 | <?php switch( $attribute->getValue() ) : case 'array': case 'object': ?> |
46 | 47 | <span class="value"><?= $enc->html( join( ', ', (array) $attribute->getValue() ) ) ?></span> |
47 | - <?php break; default: ?> |
|
48 | + <?php break; |
|
49 | +} |
|
50 | +default: ?> |
|
48 | 51 | <span class="value"><?= $enc->html( $attribute->getValue() ) ?></span> |
49 | 52 | <?php endswitch ?> |
50 | 53 |
@@ -122,7 +122,8 @@ discard block |
||
122 | 122 | |
123 | 123 | </ul> |
124 | 124 | |
125 | - <?php else : ?> |
|
125 | + <?php else { |
|
126 | + : ?> |
|
126 | 127 | |
127 | 128 | <input type="hidden" value="1" name="<?= $enc->attr( $this->formparam( ['b_prod', 0, 'attrconfid', 'qty', ''] ) ) ?>" /> |
128 | 129 | <select id="select-<?= $enc->attr( $code ) ?>" class="form-control select-list" |
@@ -172,7 +173,9 @@ discard block |
||
172 | 173 | value="<?= $enc->attr( $price->getValue() ) ?>" |
173 | 174 | <?php endif ?> |
174 | 175 | /> |
175 | - <?php break; case 'date': ?> |
|
176 | + <?php break; |
|
177 | +} |
|
178 | +case 'date': ?> |
|
176 | 179 | <input id="select-<?= $enc->attr( $key ) ?>" class="form-control" type="date" name="<?= $enc->attr( $this->formparam( ['b_prod', 0, 'attrcustid', $id] ) ) ?>" /> |
177 | 180 | <?php break; default: ?> |
178 | 181 | <input id="select-<?= $enc->attr( $key ) ?>" class="form-control" type="text" name="<?= $enc->attr( $this->formparam( ['b_prod', 0, 'attrcustid', $id] ) ) ?>" /> |