@@ -5,99 +5,99 @@ discard block |
||
5 | 5 | * @copyright Aimeos (aimeos.org), 2015 |
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 | -$target = $this->config( 'admin/jqadm/url/save/target' ); |
|
15 | -$cntl = $this->config( 'admin/jqadm/url/save/controller', 'Jqadm' ); |
|
16 | -$action = $this->config( 'admin/jqadm/url/save/action', 'save' ); |
|
17 | -$config = $this->config( 'admin/jqadm/url/save/config', array() ); |
|
14 | +$target = $this->config('admin/jqadm/url/save/target'); |
|
15 | +$cntl = $this->config('admin/jqadm/url/save/controller', 'Jqadm'); |
|
16 | +$action = $this->config('admin/jqadm/url/save/action', 'save'); |
|
17 | +$config = $this->config('admin/jqadm/url/save/config', array()); |
|
18 | 18 | |
19 | -$listTarget = $this->config( 'admin/jqadm/url/search/target' ); |
|
20 | -$listCntl = $this->config( 'admin/jqadm/url/search/controller', 'Jqadm' ); |
|
21 | -$listAction = $this->config( 'admin/jqadm/url/search/action', 'search' ); |
|
22 | -$listConfig = $this->config( 'admin/jqadm/url/search/config', array() ); |
|
19 | +$listTarget = $this->config('admin/jqadm/url/search/target'); |
|
20 | +$listCntl = $this->config('admin/jqadm/url/search/controller', 'Jqadm'); |
|
21 | +$listAction = $this->config('admin/jqadm/url/search/action', 'search'); |
|
22 | +$listConfig = $this->config('admin/jqadm/url/search/config', array()); |
|
23 | 23 | |
24 | -$params = $this->get( 'pageParams', array() ); |
|
25 | -$params['id'] = $this->param( 'id', '' ); |
|
24 | +$params = $this->get('pageParams', array()); |
|
25 | +$params['id'] = $this->param('id', ''); |
|
26 | 26 | |
27 | 27 | ?> |
28 | -<?php $this->block()->start( 'jqadm_content' ); ?> |
|
28 | +<?php $this->block()->start('jqadm_content'); ?> |
|
29 | 29 | |
30 | -<form class="item item-product form-horizontal" method="POST" enctype="multipart/form-data" action="<?php echo $enc->attr( $this->url( $target, $cntl, $action, $params, array(), $config ) ); ?>"> |
|
30 | +<form class="item item-product form-horizontal" method="POST" enctype="multipart/form-data" action="<?php echo $enc->attr($this->url($target, $cntl, $action, $params, array(), $config)); ?>"> |
|
31 | 31 | <?php echo $this->csrf()->formfield(); ?> |
32 | 32 | |
33 | 33 | <div id="accordion" role="tablist" aria-multiselectable="true"> |
34 | 34 | |
35 | 35 | <div class="product-item card panel"> |
36 | 36 | <div id="product-item" class="header card-header" role="tab" data-toggle="collapse" data-parent="#accordion" data-target="#product-item-data" aria-expanded="true" aria-controls="product-item-data"> |
37 | - <?php echo $enc->html( $this->translate( 'admin', 'Basic' ) ); ?> <span class="item-label"> - <?php echo $enc->html( $this->get( 'itemData/product.label' ) ); ?></span> |
|
37 | + <?php echo $enc->html($this->translate('admin', 'Basic')); ?> <span class="item-label"> - <?php echo $enc->html($this->get('itemData/product.label')); ?></span> |
|
38 | 38 | </div> |
39 | 39 | <div id="product-item-data" class="item-basic card-block panel-collapse collapse in" role="tabpanel" aria-labelledby="product-item"> |
40 | 40 | <div class="col-lg-6"> |
41 | 41 | <div class="form-group row"> |
42 | - <label class="col-sm-3 form-control-label"><?php echo $enc->html( $this->translate( 'admin', 'ID' ) ); ?></label> |
|
42 | + <label class="col-sm-3 form-control-label"><?php echo $enc->html($this->translate('admin', 'ID')); ?></label> |
|
43 | 43 | <div class="col-sm-9"> |
44 | - <input class="item-id" type="hidden" name="<?php echo $enc->attr( $this->formparam( array( 'item', 'product.id' ) ) ); ?>" value="<?php echo $enc->attr( $this->get( 'itemData/product.id' ) ); ?>" /> |
|
45 | - <p class="form-control-static item-id"><?php echo $enc->attr( $this->get( 'itemData/product.id' ) ); ?></p> |
|
44 | + <input class="item-id" type="hidden" name="<?php echo $enc->attr($this->formparam(array('item', 'product.id'))); ?>" value="<?php echo $enc->attr($this->get('itemData/product.id')); ?>" /> |
|
45 | + <p class="form-control-static item-id"><?php echo $enc->attr($this->get('itemData/product.id')); ?></p> |
|
46 | 46 | </div> |
47 | 47 | </div> |
48 | 48 | <div class="form-group row mandatory"> |
49 | - <label class="col-sm-3 form-control-label"><?php echo $enc->html( $this->translate( 'admin', 'Status' ) ); ?></label> |
|
49 | + <label class="col-sm-3 form-control-label"><?php echo $enc->html($this->translate('admin', 'Status')); ?></label> |
|
50 | 50 | <div class="col-sm-9"> |
51 | - <select class="form-control c-select item-status" name="<?php echo $enc->attr( $this->formparam( array( 'item', 'product.status' ) ) ); ?>"> |
|
52 | - <option value="1" <?php echo $selected( $this->get( 'itemData/product.status', 1 ), 1 ); ?>><?php echo $enc->html( $this->translate( 'admin', 'status:enabled' ) ); ?></option> |
|
53 | - <option value="0" <?php echo $selected( $this->get( 'itemData/product.status', 1 ), 0 ); ?>><?php echo $enc->html( $this->translate( 'admin', 'status:disabled' ) ); ?></option> |
|
54 | - <option value="-1" <?php echo $selected( $this->get( 'itemData/product.status', 1 ), -1 ); ?>><?php echo $enc->html( $this->translate( 'admin', 'status:review' ) ); ?></option> |
|
55 | - <option value="-2" <?php echo $selected( $this->get( 'itemData/product.status', 1 ), -2 ); ?>><?php echo $enc->html( $this->translate( 'admin', 'status:archive' ) ); ?></option> |
|
51 | + <select class="form-control c-select item-status" name="<?php echo $enc->attr($this->formparam(array('item', 'product.status'))); ?>"> |
|
52 | + <option value="1" <?php echo $selected($this->get('itemData/product.status', 1), 1); ?>><?php echo $enc->html($this->translate('admin', 'status:enabled')); ?></option> |
|
53 | + <option value="0" <?php echo $selected($this->get('itemData/product.status', 1), 0); ?>><?php echo $enc->html($this->translate('admin', 'status:disabled')); ?></option> |
|
54 | + <option value="-1" <?php echo $selected($this->get('itemData/product.status', 1), -1); ?>><?php echo $enc->html($this->translate('admin', 'status:review')); ?></option> |
|
55 | + <option value="-2" <?php echo $selected($this->get('itemData/product.status', 1), -2); ?>><?php echo $enc->html($this->translate('admin', 'status:archive')); ?></option> |
|
56 | 56 | </select> |
57 | 57 | </div> |
58 | 58 | </div> |
59 | 59 | <div class="form-group row mandatory"> |
60 | - <label class="col-sm-3 form-control-label"><?php echo $enc->html( $this->translate( 'admin', 'Type' ) ); ?></label> |
|
60 | + <label class="col-sm-3 form-control-label"><?php echo $enc->html($this->translate('admin', 'Type')); ?></label> |
|
61 | 61 | <div class="col-sm-9"> |
62 | - <select class="form-control c-select item-typeid" name="<?php echo $enc->attr( $this->formparam( array( 'item', 'product.typeid' ) ) ); ?>"> |
|
63 | -<?php foreach( $this->get( 'itemTypes', array() ) as $id => $typeItem ) : ?> |
|
64 | - <option value="<?php echo $enc->attr( $id ); ?>" data-code="<?php echo $enc->attr( $typeItem->getCode() ); ?>" <?php echo $selected( $this->get( 'itemData/product.typeid' ), $id ); ?>><?php echo $enc->html( $typeItem->getLabel() ); ?></option> |
|
62 | + <select class="form-control c-select item-typeid" name="<?php echo $enc->attr($this->formparam(array('item', 'product.typeid'))); ?>"> |
|
63 | +<?php foreach ($this->get('itemTypes', array()) as $id => $typeItem) : ?> |
|
64 | + <option value="<?php echo $enc->attr($id); ?>" data-code="<?php echo $enc->attr($typeItem->getCode()); ?>" <?php echo $selected($this->get('itemData/product.typeid'), $id); ?>><?php echo $enc->html($typeItem->getLabel()); ?></option> |
|
65 | 65 | <?php endforeach; ?> |
66 | 66 | </select> |
67 | 67 | </div> |
68 | 68 | </div> |
69 | 69 | <div class="form-group row mandatory"> |
70 | - <label class="col-sm-3 form-control-label"><?php echo $enc->html( $this->translate( 'admin', 'Code' ) ); ?></label> |
|
70 | + <label class="col-sm-3 form-control-label"><?php echo $enc->html($this->translate('admin', 'Code')); ?></label> |
|
71 | 71 | <div class="col-sm-9"> |
72 | - <input class="form-control item-code" type="text" name="<?php echo $enc->attr( $this->formparam( array( 'item', 'product.code' ) ) ); ?>" |
|
73 | - placeholder="<?php echo $enc->attr( $this->translate( 'admin', 'EAN, SKU or article number (required)' ) ); ?>" |
|
74 | - value="<?php echo $enc->attr( $this->get( 'itemData/product.code' ) ); ?>" /> |
|
72 | + <input class="form-control item-code" type="text" name="<?php echo $enc->attr($this->formparam(array('item', 'product.code'))); ?>" |
|
73 | + placeholder="<?php echo $enc->attr($this->translate('admin', 'EAN, SKU or article number (required)')); ?>" |
|
74 | + value="<?php echo $enc->attr($this->get('itemData/product.code')); ?>" /> |
|
75 | 75 | </div> |
76 | 76 | </div> |
77 | 77 | <div class="form-group row mandatory"> |
78 | - <label class="col-sm-3 form-control-label"><?php echo $enc->html( $this->translate( 'admin', 'Label' ) ); ?></label> |
|
78 | + <label class="col-sm-3 form-control-label"><?php echo $enc->html($this->translate('admin', 'Label')); ?></label> |
|
79 | 79 | <div class="col-sm-9"> |
80 | - <input class="form-control item-label" type="text" name="<?php echo $this->formparam( array( 'item', 'product.label' ) ); ?>" |
|
81 | - placeholder="<?php echo $enc->attr( $this->translate( 'admin', 'Internal name (required)' ) ); ?>" |
|
82 | - value="<?php echo $enc->attr( $this->get( 'itemData/product.label' ) ); ?>" /> |
|
80 | + <input class="form-control item-label" type="text" name="<?php echo $this->formparam(array('item', 'product.label')); ?>" |
|
81 | + placeholder="<?php echo $enc->attr($this->translate('admin', 'Internal name (required)')); ?>" |
|
82 | + value="<?php echo $enc->attr($this->get('itemData/product.label')); ?>" /> |
|
83 | 83 | </div> |
84 | 84 | </div> |
85 | 85 | <div class="form-group row optional"> |
86 | - <label class="col-sm-3 form-control-label"><?php echo $enc->html( $this->translate( 'admin', 'Start date' ) ); ?></label> |
|
86 | + <label class="col-sm-3 form-control-label"><?php echo $enc->html($this->translate('admin', 'Start date')); ?></label> |
|
87 | 87 | <div class="col-sm-9"> |
88 | - <input class="form-control item-datestart date" type="text" name="<?php echo $enc->attr( $this->formparam( array( 'item', 'product.datestart' ) ) ); ?>" |
|
89 | - placeholder="<?php echo $enc->attr( $this->translate( 'admin', 'YYYY-MM-DD hh:mm:ss (optional)' ) ); ?>" |
|
90 | - value="<?php echo $enc->attr( $this->get( 'itemData/product.datestart' ) ); ?>" |
|
91 | - data-format="<?php echo $this->translate( 'admin', 'yy-mm-dd' ); ?>" /> |
|
88 | + <input class="form-control item-datestart date" type="text" name="<?php echo $enc->attr($this->formparam(array('item', 'product.datestart'))); ?>" |
|
89 | + placeholder="<?php echo $enc->attr($this->translate('admin', 'YYYY-MM-DD hh:mm:ss (optional)')); ?>" |
|
90 | + value="<?php echo $enc->attr($this->get('itemData/product.datestart')); ?>" |
|
91 | + data-format="<?php echo $this->translate('admin', 'yy-mm-dd'); ?>" /> |
|
92 | 92 | </div> |
93 | 93 | </div> |
94 | 94 | <div class="form-group row optional"> |
95 | - <label class="col-sm-3 control-label"><?php echo $enc->html( $this->translate( 'admin', 'End date' ) ); ?></label> |
|
95 | + <label class="col-sm-3 control-label"><?php echo $enc->html($this->translate('admin', 'End date')); ?></label> |
|
96 | 96 | <div class="col-sm-9"> |
97 | - <input class="form-control item-dateend date" type="text" name="<?php echo $enc->attr( $this->formparam( array( 'item', 'product.dateend' ) ) ); ?>" |
|
98 | - placeholder="<?php echo $enc->attr( $this->translate( 'admin', 'YYYY-MM-DD hh:mm:ss (optional)' ) ); ?>" |
|
99 | - value="<?php echo $enc->attr( $this->get( 'itemData/product.dateend' ) ); ?>" |
|
100 | - data-format="<?php echo $this->translate( 'admin', 'yy-mm-dd' ); ?>" /> |
|
97 | + <input class="form-control item-dateend date" type="text" name="<?php echo $enc->attr($this->formparam(array('item', 'product.dateend'))); ?>" |
|
98 | + placeholder="<?php echo $enc->attr($this->translate('admin', 'YYYY-MM-DD hh:mm:ss (optional)')); ?>" |
|
99 | + value="<?php echo $enc->attr($this->get('itemData/product.dateend')); ?>" |
|
100 | + data-format="<?php echo $this->translate('admin', 'yy-mm-dd'); ?>" /> |
|
101 | 101 | </div> |
102 | 102 | </div> |
103 | 103 | </div> |
@@ -105,22 +105,22 @@ discard block |
||
105 | 105 | <table class="item-config table table-striped"> |
106 | 106 | <thead> |
107 | 107 | <tr> |
108 | - <th><?php echo $enc->html( $this->translate( 'admin', 'Option' ) ); ?></th> |
|
109 | - <th><?php echo $enc->html( $this->translate( 'admin', 'Value' ) ); ?></th> |
|
108 | + <th><?php echo $enc->html($this->translate('admin', 'Option')); ?></th> |
|
109 | + <th><?php echo $enc->html($this->translate('admin', 'Value')); ?></th> |
|
110 | 110 | <th class="actions"><div class="btn btn-primary fa fa-plus"></div></th> |
111 | 111 | </tr> |
112 | 112 | </thead> |
113 | 113 | <tbody> |
114 | -<?php foreach( (array) $this->get( 'itemData/config/key', array() ) as $idx => $key ) : ?> |
|
114 | +<?php foreach ((array) $this->get('itemData/config/key', array()) as $idx => $key) : ?> |
|
115 | 115 | <tr class="config-item"> |
116 | - <td><input type="text" class="config-key form-control" name="<?php echo $enc->attr( $this->formparam( array( 'item', 'config', 'key', '' ) ) ); ?>" value="<?php echo $enc->attr( $this->get( 'itemData/config/key/' . $idx, $key ) ); ?>" /></td> |
|
117 | - <td><input type="text" class="config-value form-control" name="<?php echo $enc->attr( $this->formparam( array( 'item', 'config', 'val', '' ) ) ); ?>" value="<?php echo $enc->attr( $this->get( 'itemData/config/val/' . $idx ) ); ?>" /></td> |
|
116 | + <td><input type="text" class="config-key form-control" name="<?php echo $enc->attr($this->formparam(array('item', 'config', 'key', ''))); ?>" value="<?php echo $enc->attr($this->get('itemData/config/key/' . $idx, $key)); ?>" /></td> |
|
117 | + <td><input type="text" class="config-value form-control" name="<?php echo $enc->attr($this->formparam(array('item', 'config', 'val', ''))); ?>" value="<?php echo $enc->attr($this->get('itemData/config/val/' . $idx)); ?>" /></td> |
|
118 | 118 | <td class="actions"><div class="btn btn-danger fa fa-trash"></div></td> |
119 | 119 | </tr> |
120 | 120 | <?php endforeach; ?> |
121 | 121 | <tr class="prototype"> |
122 | - <td><input type="text" class="config-key form-control" name="<?php echo $enc->attr( $this->formparam( array( 'item', 'config', 'key', '' ) ) ); ?>" value="" disabled="disabled" /></td> |
|
123 | - <td><input type="text" class="config-value form-control" name="<?php echo $enc->attr( $this->formparam( array( 'item', 'config', 'val', '' ) ) ); ?>" value="" disabled="disabled" /></td> |
|
122 | + <td><input type="text" class="config-key form-control" name="<?php echo $enc->attr($this->formparam(array('item', 'config', 'key', ''))); ?>" value="" disabled="disabled" /></td> |
|
123 | + <td><input type="text" class="config-value form-control" name="<?php echo $enc->attr($this->formparam(array('item', 'config', 'val', ''))); ?>" value="" disabled="disabled" /></td> |
|
124 | 124 | <td class="actions"><div class="btn btn-danger fa fa-trash"></div></td> |
125 | 125 | </tr> |
126 | 126 | </tbody> |
@@ -129,16 +129,16 @@ discard block |
||
129 | 129 | </div> |
130 | 130 | </div> |
131 | 131 | |
132 | -<?php echo $this->get( 'itemBody' ); ?> |
|
132 | +<?php echo $this->get('itemBody'); ?> |
|
133 | 133 | |
134 | 134 | </div> |
135 | 135 | |
136 | 136 | <div class="actions-group"> |
137 | 137 | <button class="btn btn-primary"> |
138 | - <?php echo $enc->html( $this->translate( 'admin', 'Save' ) ); ?> |
|
138 | + <?php echo $enc->html($this->translate('admin', 'Save')); ?> |
|
139 | 139 | </button> |
140 | - <a class="btn btn-warning" href="<?php echo $enc->attr( $this->url( $listTarget, $listCntl, $listAction, $params, array(), $listConfig ) ); ?>"> |
|
141 | - <?php echo $enc->html( $this->translate( 'admin', 'Cancel' ) ); ?> |
|
140 | + <a class="btn btn-warning" href="<?php echo $enc->attr($this->url($listTarget, $listCntl, $listAction, $params, array(), $listConfig)); ?>"> |
|
141 | + <?php echo $enc->html($this->translate('admin', 'Cancel')); ?> |
|
142 | 142 | </a> |
143 | 143 | </div> |
144 | 144 | </form> |
@@ -146,4 +146,4 @@ discard block |
||
146 | 146 | <?php $this->block()->stop(); ?> |
147 | 147 | |
148 | 148 | |
149 | -<?php echo $this->render( $this->config( 'admin/jqadm/template/page', 'common/page-default.php' ) ); ?> |
|
149 | +<?php echo $this->render($this->config('admin/jqadm/template/page', 'common/page-default.php')); ?> |
@@ -10,31 +10,31 @@ discard block |
||
10 | 10 | ?> |
11 | 11 | <div class="product-item-category card panel"> |
12 | 12 | <div id="product-item-category" class="header card-header collapsed" role="tab" data-toggle="collapse" data-parent="#accordion" data-target="#product-item-category-data" aria-expanded="false" aria-controls="product-item-category-data"> |
13 | - <?php echo $enc->html( $this->translate( 'admin', 'Categories' ) ); ?> |
|
13 | + <?php echo $enc->html($this->translate('admin', 'Categories')); ?> |
|
14 | 14 | </div> |
15 | 15 | <div id="product-item-category-data" class="item-category card-block panel-collapse collapse" role="tabpanel" aria-labelledby="product-item-category"> |
16 | 16 | <div class="col-lg-6"> |
17 | 17 | <table class="category-list table table-default"> |
18 | 18 | <thead> |
19 | 19 | <tr> |
20 | - <th><?php echo $enc->html( $this->translate( 'admin', 'Default' ) ); ?></th> |
|
20 | + <th><?php echo $enc->html($this->translate('admin', 'Default')); ?></th> |
|
21 | 21 | <th class="actions"><div class="btn btn-primary fa fa-plus"></div></th> |
22 | 22 | </tr> |
23 | 23 | </thead> |
24 | 24 | <tbody> |
25 | -<?php $listTypeId = $this->get( 'categoryListTypes/default' ); ?> |
|
26 | -<?php foreach( $this->get( 'categoryData/catalog.lists.id', array() ) as $idx => $id ) : ?> |
|
27 | -<?php if( $this->get( 'categoryData/catalog.lists.typeid/' . $idx ) == $listTypeId ) : ?> |
|
25 | +<?php $listTypeId = $this->get('categoryListTypes/default'); ?> |
|
26 | +<?php foreach ($this->get('categoryData/catalog.lists.id', array()) as $idx => $id) : ?> |
|
27 | +<?php if ($this->get('categoryData/catalog.lists.typeid/' . $idx) == $listTypeId) : ?> |
|
28 | 28 | <tr> |
29 | 29 | <td> |
30 | - <input class="item-listtypeid" type="hidden" name="<?php echo $enc->attr( $this->formparam( array( 'category', 'catalog.lists.typeid', '' ) ) ); ?>" |
|
31 | - value="<?php echo $enc->attr( $listTypeId ); ?>" /> |
|
32 | - <input class="item-listid" type="hidden" name="<?php echo $enc->attr( $this->formparam( array( 'category', 'catalog.lists.id', '' ) ) ); ?>" |
|
33 | - value="<?php echo $enc->attr( $id ); ?>" /> |
|
34 | - <input class="item-label" type="hidden" name="<?php echo $enc->attr( $this->formparam( array( 'category', 'catalog.label', '' ) ) ); ?>" |
|
35 | - value="<?php echo $enc->attr( $this->get( 'categoryData/catalog.label/' . $idx ) ); ?>" /> |
|
36 | - <select class="combobox item-id" name="<?php echo $enc->attr( $this->formparam( array( 'category', 'catalog.id', '' ) ) ); ?>"> |
|
37 | - <option value="<?php echo $enc->attr( $this->get( 'categoryData/catalog.id/' . $idx ) ); ?>" ><?php echo $enc->html( $this->get( 'categoryData/catalog.label/' . $idx ) ); ?></option> |
|
30 | + <input class="item-listtypeid" type="hidden" name="<?php echo $enc->attr($this->formparam(array('category', 'catalog.lists.typeid', ''))); ?>" |
|
31 | + value="<?php echo $enc->attr($listTypeId); ?>" /> |
|
32 | + <input class="item-listid" type="hidden" name="<?php echo $enc->attr($this->formparam(array('category', 'catalog.lists.id', ''))); ?>" |
|
33 | + value="<?php echo $enc->attr($id); ?>" /> |
|
34 | + <input class="item-label" type="hidden" name="<?php echo $enc->attr($this->formparam(array('category', 'catalog.label', ''))); ?>" |
|
35 | + value="<?php echo $enc->attr($this->get('categoryData/catalog.label/' . $idx)); ?>" /> |
|
36 | + <select class="combobox item-id" name="<?php echo $enc->attr($this->formparam(array('category', 'catalog.id', ''))); ?>"> |
|
37 | + <option value="<?php echo $enc->attr($this->get('categoryData/catalog.id/' . $idx)); ?>" ><?php echo $enc->html($this->get('categoryData/catalog.label/' . $idx)); ?></option> |
|
38 | 38 | </select> |
39 | 39 | </td> |
40 | 40 | <td class="actions"><div class="btn btn-danger fa fa-trash"></div></td> |
@@ -43,10 +43,10 @@ discard block |
||
43 | 43 | <?php endforeach; ?> |
44 | 44 | <tr class="prototype"> |
45 | 45 | <td> |
46 | - <input class="item-listtypeid" type="hidden" name="<?php echo $enc->attr( $this->formparam( array( 'category', 'catalog.lists.typeid', '' ) ) ); ?>" value="<?php echo $enc->attr( $listTypeId ); ?>" disabled="disabled" /> |
|
47 | - <input class="item-listid" type="hidden" name="<?php echo $enc->attr( $this->formparam( array( 'category', 'catalog.lists.id', '' ) ) ); ?>" value="" disabled="disabled" /> |
|
48 | - <input class="item-label" type="hidden" name="<?php echo $enc->attr( $this->formparam( array( 'category', 'catalog.label', '' ) ) ); ?>" value="" disabled="disabled" /> |
|
49 | - <select class="combobox-prototype item-id" name="<?php echo $enc->attr( $this->formparam( array( 'category', 'catalog.id', '' ) ) ); ?>" disabled="disabled"> |
|
46 | + <input class="item-listtypeid" type="hidden" name="<?php echo $enc->attr($this->formparam(array('category', 'catalog.lists.typeid', ''))); ?>" value="<?php echo $enc->attr($listTypeId); ?>" disabled="disabled" /> |
|
47 | + <input class="item-listid" type="hidden" name="<?php echo $enc->attr($this->formparam(array('category', 'catalog.lists.id', ''))); ?>" value="" disabled="disabled" /> |
|
48 | + <input class="item-label" type="hidden" name="<?php echo $enc->attr($this->formparam(array('category', 'catalog.label', ''))); ?>" value="" disabled="disabled" /> |
|
49 | + <select class="combobox-prototype item-id" name="<?php echo $enc->attr($this->formparam(array('category', 'catalog.id', ''))); ?>" disabled="disabled"> |
|
50 | 50 | </select> |
51 | 51 | </td> |
52 | 52 | <td class="actions"><div class="btn btn-danger fa fa-trash"></div></td> |
@@ -58,24 +58,24 @@ discard block |
||
58 | 58 | <table class="category-list table table-default"> |
59 | 59 | <thead> |
60 | 60 | <tr> |
61 | - <th><?php echo $enc->html( $this->translate( 'admin', 'Promotion' ) ); ?></th> |
|
61 | + <th><?php echo $enc->html($this->translate('admin', 'Promotion')); ?></th> |
|
62 | 62 | <th class="actions"><div class="btn btn-primary fa fa-plus"></div></th> |
63 | 63 | </tr> |
64 | 64 | </thead> |
65 | 65 | <tbody> |
66 | -<?php $listTypeId = $this->get( 'categoryListTypes/promotion' ); ?> |
|
67 | -<?php foreach( $this->get( 'categoryData/catalog.lists.id', array() ) as $idx => $id ) : ?> |
|
68 | -<?php if( $this->get( 'categoryData/catalog.lists.typeid/' . $idx ) == $listTypeId ) : ?> |
|
66 | +<?php $listTypeId = $this->get('categoryListTypes/promotion'); ?> |
|
67 | +<?php foreach ($this->get('categoryData/catalog.lists.id', array()) as $idx => $id) : ?> |
|
68 | +<?php if ($this->get('categoryData/catalog.lists.typeid/' . $idx) == $listTypeId) : ?> |
|
69 | 69 | <tr> |
70 | 70 | <td> |
71 | - <input class="item-listtypeid" type="hidden" name="<?php echo $enc->attr( $this->formparam( array( 'category', 'catalog.lists.typeid', '' ) ) ); ?>" |
|
72 | - value="<?php echo $enc->attr( $listTypeId ); ?>" /> |
|
73 | - <input class="item-listid" type="hidden" name="<?php echo $enc->attr( $this->formparam( array( 'category', 'catalog.lists.id', '' ) ) ); ?>" |
|
74 | - value="<?php echo $enc->attr( $id ); ?>" /> |
|
75 | - <input class="item-label" type="hidden" name="<?php echo $enc->attr( $this->formparam( array( 'category', 'catalog.label', '' ) ) ); ?>" |
|
76 | - value="<?php echo $enc->attr( $this->get( 'categoryData/catalog.label/' . $idx ) ); ?>" /> |
|
77 | - <select class="combobox item-id" name="<?php echo $enc->attr( $this->formparam( array( 'category', 'catalog.id', '' ) ) ); ?>"> |
|
78 | - <option value="<?php echo $enc->attr( $this->get( 'categoryData/catalog.id/' . $idx ) ); ?>" ><?php echo $enc->html( $this->get( 'categoryData/catalog.label/' . $idx ) ); ?></option> |
|
71 | + <input class="item-listtypeid" type="hidden" name="<?php echo $enc->attr($this->formparam(array('category', 'catalog.lists.typeid', ''))); ?>" |
|
72 | + value="<?php echo $enc->attr($listTypeId); ?>" /> |
|
73 | + <input class="item-listid" type="hidden" name="<?php echo $enc->attr($this->formparam(array('category', 'catalog.lists.id', ''))); ?>" |
|
74 | + value="<?php echo $enc->attr($id); ?>" /> |
|
75 | + <input class="item-label" type="hidden" name="<?php echo $enc->attr($this->formparam(array('category', 'catalog.label', ''))); ?>" |
|
76 | + value="<?php echo $enc->attr($this->get('categoryData/catalog.label/' . $idx)); ?>" /> |
|
77 | + <select class="combobox item-id" name="<?php echo $enc->attr($this->formparam(array('category', 'catalog.id', ''))); ?>"> |
|
78 | + <option value="<?php echo $enc->attr($this->get('categoryData/catalog.id/' . $idx)); ?>" ><?php echo $enc->html($this->get('categoryData/catalog.label/' . $idx)); ?></option> |
|
79 | 79 | </select> |
80 | 80 | </td> |
81 | 81 | <td class="actions"><div class="btn btn-danger fa fa-trash"></div></td> |
@@ -84,10 +84,10 @@ discard block |
||
84 | 84 | <?php endforeach; ?> |
85 | 85 | <tr class="prototype"> |
86 | 86 | <td> |
87 | - <input class="item-listtypeid" type="hidden" name="<?php echo $enc->attr( $this->formparam( array( 'category', 'catalog.lists.typeid', '' ) ) ); ?>" value="<?php echo $enc->attr( $listTypeId ); ?>" disabled="disabled" /> |
|
88 | - <input class="item-listid" type="hidden" name="<?php echo $enc->attr( $this->formparam( array( 'category', 'catalog.lists.id', '' ) ) ); ?>" value="" disabled="disabled" /> |
|
89 | - <input class="item-label" type="hidden" name="<?php echo $enc->attr( $this->formparam( array( 'category', 'catalog.label', '' ) ) ); ?>" value="" disabled="disabled" /> |
|
90 | - <select class="combobox-prototype item-id" name="<?php echo $enc->attr( $this->formparam( array( 'category', 'catalog.id', '' ) ) ); ?>" disabled="disabled"> |
|
87 | + <input class="item-listtypeid" type="hidden" name="<?php echo $enc->attr($this->formparam(array('category', 'catalog.lists.typeid', ''))); ?>" value="<?php echo $enc->attr($listTypeId); ?>" disabled="disabled" /> |
|
88 | + <input class="item-listid" type="hidden" name="<?php echo $enc->attr($this->formparam(array('category', 'catalog.lists.id', ''))); ?>" value="" disabled="disabled" /> |
|
89 | + <input class="item-label" type="hidden" name="<?php echo $enc->attr($this->formparam(array('category', 'catalog.label', ''))); ?>" value="" disabled="disabled" /> |
|
90 | + <select class="combobox-prototype item-id" name="<?php echo $enc->attr($this->formparam(array('category', 'catalog.id', ''))); ?>" disabled="disabled"> |
|
91 | 91 | </select> |
92 | 92 | </td> |
93 | 93 | <td class="actions"><div class="btn btn-danger fa fa-trash"></div></td> |
@@ -95,6 +95,6 @@ discard block |
||
95 | 95 | </tbody> |
96 | 96 | </table> |
97 | 97 | </div> |
98 | - <?php echo $this->get( 'categoryBody' ); ?> |
|
98 | + <?php echo $this->get('categoryBody'); ?> |
|
99 | 99 | </div> |
100 | 100 | </div> |
@@ -10,25 +10,25 @@ discard block |
||
10 | 10 | ?> |
11 | 11 | <div class="product-item-bundle card panel"> |
12 | 12 | <div id="product-item-bundle" class="header card-header collapsed" role="tab" data-toggle="collapse" data-parent="#accordion" data-target="#product-item-bundle-data" aria-expanded="false" aria-controls="product-item-bundle-data"> |
13 | - <?php echo $enc->html( $this->translate( 'admin', 'Bundles' ) ); ?> |
|
13 | + <?php echo $enc->html($this->translate('admin', 'Bundles')); ?> |
|
14 | 14 | </div> |
15 | 15 | <div id="product-item-bundle-data" class="item-bundle card-block panel-collapse collapse" role="tabpanel" aria-labelledby="product-item-bundle"> |
16 | 16 | <div class="col-lg-6"> |
17 | 17 | <table class="bundle-list table table-default"> |
18 | 18 | <thead> |
19 | 19 | <tr> |
20 | - <th><?php echo $enc->html( $this->translate( 'admin', 'Products' ) ); ?></th> |
|
20 | + <th><?php echo $enc->html($this->translate('admin', 'Products')); ?></th> |
|
21 | 21 | <th class="actions"><div class="btn btn-primary fa fa-plus"></div></th> |
22 | 22 | </tr> |
23 | 23 | </thead> |
24 | 24 | <tbody> |
25 | -<?php foreach( $this->get( 'bundleData/product.lists.id', array() ) as $idx => $id ) : ?> |
|
25 | +<?php foreach ($this->get('bundleData/product.lists.id', array()) as $idx => $id) : ?> |
|
26 | 26 | <tr> |
27 | 27 | <td> |
28 | - <input class="item-listid" type="hidden" name="<?php echo $enc->attr( $this->formparam( array( 'bundle', 'product.lists.id', '' ) ) ); ?>" value="<?php echo $enc->attr( $id ); ?>" /> |
|
29 | - <input class="item-label" type="hidden" name="<?php echo $enc->attr( $this->formparam( array( 'bundle', 'product.label', '' ) ) ); ?>" value="<?php echo $enc->attr( $this->get( 'bundleData/product.label/' . $idx ) ); ?>" /> |
|
30 | - <select class="combobox item-refid" name="<?php echo $enc->attr( $this->formparam( array( 'bundle', 'product.lists.refid', '' ) ) ); ?>"> |
|
31 | - <option value="<?php echo $enc->attr( $this->get( 'bundleData/product.lists.refid/' . $idx ) ); ?>" ><?php echo $enc->html( $this->get( 'bundleData/product.label/' . $idx ) ); ?></option> |
|
28 | + <input class="item-listid" type="hidden" name="<?php echo $enc->attr($this->formparam(array('bundle', 'product.lists.id', ''))); ?>" value="<?php echo $enc->attr($id); ?>" /> |
|
29 | + <input class="item-label" type="hidden" name="<?php echo $enc->attr($this->formparam(array('bundle', 'product.label', ''))); ?>" value="<?php echo $enc->attr($this->get('bundleData/product.label/' . $idx)); ?>" /> |
|
30 | + <select class="combobox item-refid" name="<?php echo $enc->attr($this->formparam(array('bundle', 'product.lists.refid', ''))); ?>"> |
|
31 | + <option value="<?php echo $enc->attr($this->get('bundleData/product.lists.refid/' . $idx)); ?>" ><?php echo $enc->html($this->get('bundleData/product.label/' . $idx)); ?></option> |
|
32 | 32 | </select> |
33 | 33 | </td> |
34 | 34 | <td class="actions"><div class="btn btn-danger fa fa-trash"></div></td> |
@@ -36,9 +36,9 @@ discard block |
||
36 | 36 | <?php endforeach; ?> |
37 | 37 | <tr class="prototype"> |
38 | 38 | <td> |
39 | - <input class="item-listid" type="hidden" name="<?php echo $enc->attr( $this->formparam( array( 'bundle', 'product.lists.id', '' ) ) ); ?>" value="" disabled="disabled" /> |
|
40 | - <input class="item-label" type="hidden" name="<?php echo $enc->attr( $this->formparam( array( 'bundle', 'product.label', '' ) ) ); ?>" value="" disabled="disabled" /> |
|
41 | - <select class="combobox-prototype item-refid" name="<?php echo $enc->attr( $this->formparam( array( 'bundle', 'product.lists.refid', '' ) ) ); ?>" disabled="disabled"> |
|
39 | + <input class="item-listid" type="hidden" name="<?php echo $enc->attr($this->formparam(array('bundle', 'product.lists.id', ''))); ?>" value="" disabled="disabled" /> |
|
40 | + <input class="item-label" type="hidden" name="<?php echo $enc->attr($this->formparam(array('bundle', 'product.label', ''))); ?>" value="" disabled="disabled" /> |
|
41 | + <select class="combobox-prototype item-refid" name="<?php echo $enc->attr($this->formparam(array('bundle', 'product.lists.refid', ''))); ?>" disabled="disabled"> |
|
42 | 42 | </select> |
43 | 43 | </td> |
44 | 44 | <td class="actions"><div class="btn btn-danger fa fa-trash"></div></td> |
@@ -46,6 +46,6 @@ discard block |
||
46 | 46 | </tbody> |
47 | 47 | </table> |
48 | 48 | </div> |
49 | -<?php echo $this->get( 'bundleBody' ); ?> |
|
49 | +<?php echo $this->get('bundleBody'); ?> |
|
50 | 50 | </div> |
51 | 51 | </div> |
@@ -10,34 +10,34 @@ discard block |
||
10 | 10 | ?> |
11 | 11 | <div class="product-item-image card panel"> |
12 | 12 | <div id="product-item-image" class="header card-header" role="tab" data-toggle="collapse" data-parent="#accordion" data-target="#product-item-image-data" aria-expanded="true" aria-controls="product-item-image-data"> |
13 | - <?php echo $enc->html( $this->translate( 'admin', 'Images' ) ); ?> |
|
13 | + <?php echo $enc->html($this->translate('admin', 'Images')); ?> |
|
14 | 14 | </div> |
15 | 15 | <div id="product-item-image-data" class="item-image card-block panel-collapse collapse table-responsive" role="tabpanel" aria-labelledby="product-item-image"> |
16 | 16 | <table class="image-list table table-default"> |
17 | 17 | <thead> |
18 | 18 | <tr> |
19 | - <th class="image-preview"><?php echo $enc->html( $this->translate( 'admin', 'Preview' ) ); ?></th> |
|
20 | - <th class="image-language"><?php echo $enc->html( $this->translate( 'admin', 'Language' ) ); ?></th> |
|
21 | - <th class="image-label"><?php echo $enc->html( $this->translate( 'admin', 'Title' ) ); ?></th> |
|
19 | + <th class="image-preview"><?php echo $enc->html($this->translate('admin', 'Preview')); ?></th> |
|
20 | + <th class="image-language"><?php echo $enc->html($this->translate('admin', 'Language')); ?></th> |
|
21 | + <th class="image-label"><?php echo $enc->html($this->translate('admin', 'Title')); ?></th> |
|
22 | 22 | <th class="actions"><div class="btn btn-primary fa fa-plus"><input class="fileupload" type="file" name="image[files][]" multiple /></div></th> |
23 | 23 | </tr> |
24 | 24 | </thead> |
25 | 25 | <tbody> |
26 | -<?php foreach( $this->get( 'imageData/product.lists.id', array() ) as $idx => $id ) : ?> |
|
26 | +<?php foreach ($this->get('imageData/product.lists.id', array()) as $idx => $id) : ?> |
|
27 | 27 | <tr> |
28 | 28 | <td class="image-preview"> |
29 | - <input class="item-listid" type="hidden" name="<?php echo $enc->attr( $this->formparam( array( 'image', 'product.lists.id', '' ) ) ); ?>" value="<?php echo $enc->attr( $id ); ?>" /> |
|
30 | - <input class="item-id" type="hidden" name="<?php echo $enc->attr( $this->formparam( array( 'image', 'media.id', '' ) ) ); ?>" value="<?php echo $enc->attr( $this->get( 'imageData/media.id/' . $idx ) ); ?>" /> |
|
31 | - <input class="item-preview" type="hidden" name="<?php echo $enc->attr( $this->formparam( array( 'image', 'media.preview', '' ) ) ); ?>" value="<?php echo $enc->attr( $this->get( 'imageData/media.preview/' . $idx ) ); ?>" /> |
|
32 | - <img class="item-preview" src="<?php echo $this->content( $this->get( 'imageData/media.preview/' . $idx ) ); ?>" alt="<?php echo $enc->html( $this->translate( 'admin', 'Preview' ) ); ?>" /> |
|
29 | + <input class="item-listid" type="hidden" name="<?php echo $enc->attr($this->formparam(array('image', 'product.lists.id', ''))); ?>" value="<?php echo $enc->attr($id); ?>" /> |
|
30 | + <input class="item-id" type="hidden" name="<?php echo $enc->attr($this->formparam(array('image', 'media.id', ''))); ?>" value="<?php echo $enc->attr($this->get('imageData/media.id/' . $idx)); ?>" /> |
|
31 | + <input class="item-preview" type="hidden" name="<?php echo $enc->attr($this->formparam(array('image', 'media.preview', ''))); ?>" value="<?php echo $enc->attr($this->get('imageData/media.preview/' . $idx)); ?>" /> |
|
32 | + <img class="item-preview" src="<?php echo $this->content($this->get('imageData/media.preview/' . $idx)); ?>" alt="<?php echo $enc->html($this->translate('admin', 'Preview')); ?>" /> |
|
33 | 33 | </td> |
34 | 34 | <td class="image-language"> |
35 | - <select class="combobox item-languageid" name="<?php echo $enc->attr( $this->formparam( array( 'image', 'media.languageid', '' ) ) ); ?>"> |
|
36 | - <option value="<?php echo $enc->attr( $this->get( 'imageData/media.languageid/' . $idx ) ); ?>" selected="selected"><?php echo $enc->html( $this->get( 'imageData/media.languageid/' . $idx, $this->translate( 'admin', 'All' ) ) ) ?></option> |
|
35 | + <select class="combobox item-languageid" name="<?php echo $enc->attr($this->formparam(array('image', 'media.languageid', ''))); ?>"> |
|
36 | + <option value="<?php echo $enc->attr($this->get('imageData/media.languageid/' . $idx)); ?>" selected="selected"><?php echo $enc->html($this->get('imageData/media.languageid/' . $idx, $this->translate('admin', 'All'))) ?></option> |
|
37 | 37 | </select> |
38 | 38 | </td> |
39 | 39 | <td class="image-label"> |
40 | - <input class="form-control item-label" type="text" name="<?php echo $enc->attr( $this->formparam( array( 'image', 'media.label', '' ) ) ); ?>" required="required" value="<?php echo $enc->attr( $this->get( 'imageData/media.label/' . $idx ) ); ?>" /> |
|
40 | + <input class="form-control item-label" type="text" name="<?php echo $enc->attr($this->formparam(array('image', 'media.label', ''))); ?>" required="required" value="<?php echo $enc->attr($this->get('imageData/media.label/' . $idx)); ?>" /> |
|
41 | 41 | </td> |
42 | 42 | <td class="actions"><div class="btn btn-danger fa fa-trash"></div></td> |
43 | 43 | </tr> |
@@ -45,16 +45,16 @@ discard block |
||
45 | 45 | <tr class="prototype"> |
46 | 46 | <td class="image-preview"></td> |
47 | 47 | <td class="image-language"> |
48 | - <input class="item-listid" type="hidden" name="<?php echo $enc->attr( $this->formparam( array( 'image', 'product.lists.id', '' ) ) ); ?>" value="" disabled="disabled" /> |
|
49 | - <select class="combobox-prototype item-languageid" name="<?php echo $enc->attr( $this->formparam( array( 'image', 'media.languageid', '' ) ) ); ?>" disabled="disabled"> |
|
50 | - <option value="" selected="selected"><?php echo $enc->html( $this->translate( 'admin', 'All' ) ); ?></option> |
|
48 | + <input class="item-listid" type="hidden" name="<?php echo $enc->attr($this->formparam(array('image', 'product.lists.id', ''))); ?>" value="" disabled="disabled" /> |
|
49 | + <select class="combobox-prototype item-languageid" name="<?php echo $enc->attr($this->formparam(array('image', 'media.languageid', ''))); ?>" disabled="disabled"> |
|
50 | + <option value="" selected="selected"><?php echo $enc->html($this->translate('admin', 'All')); ?></option> |
|
51 | 51 | </select> |
52 | 52 | </td> |
53 | - <td class="image-label"><input class="form-control item-label" type="text" name="<?php echo $enc->attr( $this->formparam( array( 'image', 'media.label', '' ) ) ); ?>" value="" disabled="disabled" /></td> |
|
53 | + <td class="image-label"><input class="form-control item-label" type="text" name="<?php echo $enc->attr($this->formparam(array('image', 'media.label', ''))); ?>" value="" disabled="disabled" /></td> |
|
54 | 54 | <td class="actions"><div class="btn btn-danger fa fa-trash"></div></td> |
55 | 55 | </tr> |
56 | 56 | </tbody> |
57 | 57 | </table> |
58 | -<?php echo $this->get( 'imageBody' ); ?> |
|
58 | +<?php echo $this->get('imageBody'); ?> |
|
59 | 59 | </div> |
60 | 60 | </div> |
@@ -12,67 +12,67 @@ |
||
12 | 12 | <div id="product-item-stock" class="header card-header" role="tab" |
13 | 13 | data-toggle="collapse" data-parent="#accordion" data-target="#product-item-stock-data" |
14 | 14 | aria-expanded="true" aria-controls="product-item-stock-data"> |
15 | - <?php echo $enc->html( $this->translate( 'admin', 'Stock level' ) ); ?> |
|
15 | + <?php echo $enc->html($this->translate('admin', 'Stock level')); ?> |
|
16 | 16 | </div> |
17 | 17 | <div id="product-item-stock-data" class="item-stock card-block panel-collapse collapse table-responsive" role="tabpanel" aria-labelledby="product-item-stock"> |
18 | 18 | <table class="stock-list table table-default"> |
19 | 19 | <thead> |
20 | 20 | <tr> |
21 | - <th class="stock-warehouse"><?php echo $enc->html( $this->translate( 'admin', 'Warehouse' ) ); ?></th> |
|
22 | - <th class="stock-stocklevel"><?php echo $enc->html( $this->translate( 'admin', 'Stock level' ) ); ?></th> |
|
23 | - <th class="stock-databack"><?php echo $enc->html( $this->translate( 'admin', 'Back in stock' ) ); ?></th> |
|
21 | + <th class="stock-warehouse"><?php echo $enc->html($this->translate('admin', 'Warehouse')); ?></th> |
|
22 | + <th class="stock-stocklevel"><?php echo $enc->html($this->translate('admin', 'Stock level')); ?></th> |
|
23 | + <th class="stock-databack"><?php echo $enc->html($this->translate('admin', 'Back in stock')); ?></th> |
|
24 | 24 | <th class="actions"><div class="btn btn-primary fa fa-plus"></div></th> |
25 | 25 | </tr> |
26 | 26 | </thead> |
27 | 27 | <tbody> |
28 | -<?php foreach( $this->get( 'stockData/product.stock.id', array() ) as $idx => $id ) : ?> |
|
28 | +<?php foreach ($this->get('stockData/product.stock.id', array()) as $idx => $id) : ?> |
|
29 | 29 | <tr> |
30 | 30 | <td class="stock-warehouse"> |
31 | - <input class="item-id" type="hidden" name="<?php echo $enc->attr( $this->formparam( array( 'stock', 'product.stock.id', '' ) ) ); ?>" value="<?php echo $enc->attr( $id ); ?>" /> |
|
32 | - <select class="form-control c-select item-warehouseid" name="<?php echo $enc->attr( $this->formparam( array( 'stock', 'product.stock.warehouseid', '' ) ) ); ?>"> |
|
33 | -<?php foreach( $this->get( 'stockWarehouses', array() ) as $whid => $warehouse ) : ?> |
|
34 | -<?php if( $whid == $this->get( 'stockData/product.stock.warehouseid/' . $idx ) ) : ?> |
|
35 | - <option value="<?php echo $enc->attr( $whid ); ?>" selected="selected"><?php echo $enc->html( $warehouse->getLabel() ) ?></option> |
|
31 | + <input class="item-id" type="hidden" name="<?php echo $enc->attr($this->formparam(array('stock', 'product.stock.id', ''))); ?>" value="<?php echo $enc->attr($id); ?>" /> |
|
32 | + <select class="form-control c-select item-warehouseid" name="<?php echo $enc->attr($this->formparam(array('stock', 'product.stock.warehouseid', ''))); ?>"> |
|
33 | +<?php foreach ($this->get('stockWarehouses', array()) as $whid => $warehouse) : ?> |
|
34 | +<?php if ($whid == $this->get('stockData/product.stock.warehouseid/' . $idx)) : ?> |
|
35 | + <option value="<?php echo $enc->attr($whid); ?>" selected="selected"><?php echo $enc->html($warehouse->getLabel()) ?></option> |
|
36 | 36 | <?php else : ?> |
37 | - <option value="<?php echo $enc->attr( $whid ); ?>"><?php echo $enc->html( $warehouse->getLabel() ) ?></option> |
|
37 | + <option value="<?php echo $enc->attr($whid); ?>"><?php echo $enc->html($warehouse->getLabel()) ?></option> |
|
38 | 38 | <?php endif; ?> |
39 | 39 | <?php endforeach; ?> |
40 | 40 | </select> |
41 | 41 | </td> |
42 | 42 | <td class="stock-stocklevel"> |
43 | - <input class="form-control item-stocklevel" type="text" name="<?php echo $enc->attr( $this->formparam( array( 'stock', 'product.stock.stocklevel', '' ) ) ); ?>" |
|
44 | - value="<?php echo $enc->attr( $this->get( 'stockData/product.stock.stocklevel/' . $idx ) ); ?>" /> |
|
43 | + <input class="form-control item-stocklevel" type="text" name="<?php echo $enc->attr($this->formparam(array('stock', 'product.stock.stocklevel', ''))); ?>" |
|
44 | + value="<?php echo $enc->attr($this->get('stockData/product.stock.stocklevel/' . $idx)); ?>" /> |
|
45 | 45 | </td> |
46 | 46 | <td class="stock-databack"> |
47 | - <input class="form-control item-dateback date" type="text" name="<?php echo $enc->attr( $this->formparam( array( 'stock', 'product.stock.dateback', '' ) ) ); ?>" |
|
48 | - value="<?php echo $enc->attr( $this->get( 'stockData/product.stock.dateback/' . $idx ) ); ?>" |
|
49 | - placeholder="<?php echo $enc->attr( $this->translate( 'admin', 'YYYY-MM-DD hh:mm:ss (optional)' ) ); ?>" |
|
50 | - data-format="<?php echo $this->translate( 'admin', 'yy-mm-dd' ); ?>" /> |
|
47 | + <input class="form-control item-dateback date" type="text" name="<?php echo $enc->attr($this->formparam(array('stock', 'product.stock.dateback', ''))); ?>" |
|
48 | + value="<?php echo $enc->attr($this->get('stockData/product.stock.dateback/' . $idx)); ?>" |
|
49 | + placeholder="<?php echo $enc->attr($this->translate('admin', 'YYYY-MM-DD hh:mm:ss (optional)')); ?>" |
|
50 | + data-format="<?php echo $this->translate('admin', 'yy-mm-dd'); ?>" /> |
|
51 | 51 | </td> |
52 | 52 | <td class="actions"><div class="btn btn-danger fa fa-trash"></div></td> |
53 | 53 | </tr> |
54 | 54 | <?php endforeach; ?> |
55 | 55 | <tr class="prototype"> |
56 | 56 | <td class="stock-warehouse"> |
57 | - <input class="item-id" type="hidden" name="<?php echo $enc->attr( $this->formparam( array( 'stock', 'product.stock.id', '' ) ) ); ?>" value="" disabled="disabled" /> |
|
58 | - <select class="form-control c-select item-warehouseid" name="<?php echo $enc->attr( $this->formparam( array( 'stock', 'product.stock.warehouseid', '' ) ) ); ?>" disabled="disabled"> |
|
59 | -<?php foreach( $this->get( 'stockWarehouses', array() ) as $whid => $warehouse ) : ?> |
|
60 | - <option value="<?php echo $enc->attr( $whid ); ?>"><?php echo $enc->html( $warehouse->getLabel() ) ?></option> |
|
57 | + <input class="item-id" type="hidden" name="<?php echo $enc->attr($this->formparam(array('stock', 'product.stock.id', ''))); ?>" value="" disabled="disabled" /> |
|
58 | + <select class="form-control c-select item-warehouseid" name="<?php echo $enc->attr($this->formparam(array('stock', 'product.stock.warehouseid', ''))); ?>" disabled="disabled"> |
|
59 | +<?php foreach ($this->get('stockWarehouses', array()) as $whid => $warehouse) : ?> |
|
60 | + <option value="<?php echo $enc->attr($whid); ?>"><?php echo $enc->html($warehouse->getLabel()) ?></option> |
|
61 | 61 | <?php endforeach; ?> |
62 | 62 | </select> |
63 | 63 | </td> |
64 | 64 | <td class="stock-stocklevel"> |
65 | - <input class="form-control item-stocklevel" type="text" name="<?php echo $enc->attr( $this->formparam( array( 'stock', 'product.stock.stocklevel', '' ) ) ); ?>" disabled="disabled" /> |
|
65 | + <input class="form-control item-stocklevel" type="text" name="<?php echo $enc->attr($this->formparam(array('stock', 'product.stock.stocklevel', ''))); ?>" disabled="disabled" /> |
|
66 | 66 | </td> |
67 | 67 | <td class="stock-databack"> |
68 | - <input class="form-control date-prototype item-dateback" type="text" name="<?php echo $enc->attr( $this->formparam( array( 'stock', 'product.stock.dateback', '' ) ) ); ?>" disabled="disabled" |
|
69 | - placeholder="<?php echo $enc->attr( $this->translate( 'admin', 'YYYY-MM-DD hh:mm:ss (optional)' ) ); ?>" |
|
70 | - data-format="<?php echo $this->translate( 'admin', 'yy-mm-dd' ); ?>" /> |
|
68 | + <input class="form-control date-prototype item-dateback" type="text" name="<?php echo $enc->attr($this->formparam(array('stock', 'product.stock.dateback', ''))); ?>" disabled="disabled" |
|
69 | + placeholder="<?php echo $enc->attr($this->translate('admin', 'YYYY-MM-DD hh:mm:ss (optional)')); ?>" |
|
70 | + data-format="<?php echo $this->translate('admin', 'yy-mm-dd'); ?>" /> |
|
71 | 71 | </td> |
72 | 72 | <td class="actions"><div class="btn btn-danger fa fa-trash"></div></td> |
73 | 73 | </tr> |
74 | 74 | </tbody> |
75 | 75 | </table> |
76 | -<?php echo $this->get( 'stockBody' ); ?> |
|
76 | +<?php echo $this->get('stockBody'); ?> |
|
77 | 77 | </div> |
78 | 78 | </div> |
@@ -33,8 +33,11 @@ |
||
33 | 33 | <?php foreach( $this->get( 'stockWarehouses', array() ) as $whid => $warehouse ) : ?> |
34 | 34 | <?php if( $whid == $this->get( 'stockData/product.stock.warehouseid/' . $idx ) ) : ?> |
35 | 35 | <option value="<?php echo $enc->attr( $whid ); ?>" selected="selected"><?php echo $enc->html( $warehouse->getLabel() ) ?></option> |
36 | -<?php else : ?> |
|
37 | - <option value="<?php echo $enc->attr( $whid ); ?>"><?php echo $enc->html( $warehouse->getLabel() ) ?></option> |
|
36 | +<?php else { |
|
37 | + : ?> |
|
38 | + <option value="<?php echo $enc->attr( $whid ); |
|
39 | +} |
|
40 | +?>"><?php echo $enc->html( $warehouse->getLabel() ) ?></option> |
|
38 | 41 | <?php endif; ?> |
39 | 42 | <?php endforeach; ?> |
40 | 43 | </select> |
@@ -5,215 +5,215 @@ discard block |
||
5 | 5 | * @copyright Aimeos (aimeos.org), 2015 |
6 | 6 | */ |
7 | 7 | |
8 | -$checked = function( array $list, $code ) { |
|
9 | - return ( in_array( $code, $list ) ? 'checked="checked"' : '' ); |
|
8 | +$checked = function(array $list, $code) { |
|
9 | + return (in_array($code, $list) ? 'checked="checked"' : ''); |
|
10 | 10 | }; |
11 | 11 | |
12 | -$sort = function( $sortcode, $code ) { |
|
13 | - return ( $sortcode === $code ? '-' . $code : $code ); |
|
12 | +$sort = function($sortcode, $code) { |
|
13 | + return ($sortcode === $code ? '-' . $code : $code); |
|
14 | 14 | }; |
15 | 15 | |
16 | 16 | $enc = $this->encoder(); |
17 | 17 | |
18 | -$target = $this->config( 'admin/jqadm/url/search/target' ); |
|
19 | -$controller = $this->config( 'admin/jqadm/url/search/controller', 'Jqadm' ); |
|
20 | -$action = $this->config( 'admin/jqadm/url/search/action', 'search' ); |
|
21 | -$config = $this->config( 'admin/jqadm/url/search/config', array() ); |
|
18 | +$target = $this->config('admin/jqadm/url/search/target'); |
|
19 | +$controller = $this->config('admin/jqadm/url/search/controller', 'Jqadm'); |
|
20 | +$action = $this->config('admin/jqadm/url/search/action', 'search'); |
|
21 | +$config = $this->config('admin/jqadm/url/search/config', array()); |
|
22 | 22 | |
23 | -$newTarget = $this->config( 'admin/jqadm/url/create/target' ); |
|
24 | -$newCntl = $this->config( 'admin/jqadm/url/create/controller', 'Jqadm' ); |
|
25 | -$newAction = $this->config( 'admin/jqadm/url/create/action', 'create' ); |
|
26 | -$newConfig = $this->config( 'admin/jqadm/url/create/config', array() ); |
|
23 | +$newTarget = $this->config('admin/jqadm/url/create/target'); |
|
24 | +$newCntl = $this->config('admin/jqadm/url/create/controller', 'Jqadm'); |
|
25 | +$newAction = $this->config('admin/jqadm/url/create/action', 'create'); |
|
26 | +$newConfig = $this->config('admin/jqadm/url/create/config', array()); |
|
27 | 27 | |
28 | -$getTarget = $this->config( 'admin/jqadm/url/get/target' ); |
|
29 | -$getCntl = $this->config( 'admin/jqadm/url/get/controller', 'Jqadm' ); |
|
30 | -$getAction = $this->config( 'admin/jqadm/url/get/action', 'get' ); |
|
31 | -$getConfig = $this->config( 'admin/jqadm/url/get/config', array() ); |
|
28 | +$getTarget = $this->config('admin/jqadm/url/get/target'); |
|
29 | +$getCntl = $this->config('admin/jqadm/url/get/controller', 'Jqadm'); |
|
30 | +$getAction = $this->config('admin/jqadm/url/get/action', 'get'); |
|
31 | +$getConfig = $this->config('admin/jqadm/url/get/config', array()); |
|
32 | 32 | |
33 | -$copyTarget = $this->config( 'admin/jqadm/url/copy/target' ); |
|
34 | -$copyCntl = $this->config( 'admin/jqadm/url/copy/controller', 'Jqadm' ); |
|
35 | -$copyAction = $this->config( 'admin/jqadm/url/copy/action', 'copy' ); |
|
36 | -$copyConfig = $this->config( 'admin/jqadm/url/copy/config', array() ); |
|
33 | +$copyTarget = $this->config('admin/jqadm/url/copy/target'); |
|
34 | +$copyCntl = $this->config('admin/jqadm/url/copy/controller', 'Jqadm'); |
|
35 | +$copyAction = $this->config('admin/jqadm/url/copy/action', 'copy'); |
|
36 | +$copyConfig = $this->config('admin/jqadm/url/copy/config', array()); |
|
37 | 37 | |
38 | -$delTarget = $this->config( 'admin/jqadm/url/delete/target' ); |
|
39 | -$delCntl = $this->config( 'admin/jqadm/url/delete/controller', 'Jqadm' ); |
|
40 | -$delAction = $this->config( 'admin/jqadm/url/delete/action', 'delete' ); |
|
41 | -$delConfig = $this->config( 'admin/jqadm/url/delete/config', array() ); |
|
38 | +$delTarget = $this->config('admin/jqadm/url/delete/target'); |
|
39 | +$delCntl = $this->config('admin/jqadm/url/delete/controller', 'Jqadm'); |
|
40 | +$delAction = $this->config('admin/jqadm/url/delete/action', 'delete'); |
|
41 | +$delConfig = $this->config('admin/jqadm/url/delete/config', array()); |
|
42 | 42 | |
43 | -$formparams = $params = $this->get( 'pageParams', array() ); |
|
44 | -unset( $formparams['fields'], $formparams['filter'], $formparams['page'] ); |
|
43 | +$formparams = $params = $this->get('pageParams', array()); |
|
44 | +unset($formparams['fields'], $formparams['filter'], $formparams['page']); |
|
45 | 45 | |
46 | 46 | $filterParams = array( |
47 | - 'operators' => $this->get( 'filterOperators', array() ), |
|
47 | + 'operators' => $this->get('filterOperators', array()), |
|
48 | 48 | 'default' => 'product.label', |
49 | 49 | ); |
50 | 50 | |
51 | -$default = $this->config( 'admin/jqadm/product/fields', array( 'product.id', 'product.status', 'product.typeid', 'product.code', 'product.label' ) ); |
|
52 | -$fields = $this->param( 'fields', $default ); |
|
51 | +$default = $this->config('admin/jqadm/product/fields', array('product.id', 'product.status', 'product.typeid', 'product.code', 'product.label')); |
|
52 | +$fields = $this->param('fields', $default); |
|
53 | 53 | |
54 | -$pageParams = array( 'total' => $this->get( 'total', 0 ), 'pageParams' => $params ); |
|
55 | -$sortcode = $this->param( 'sort' ); |
|
54 | +$pageParams = array('total' => $this->get('total', 0), 'pageParams' => $params); |
|
55 | +$sortcode = $this->param('sort'); |
|
56 | 56 | |
57 | 57 | ?> |
58 | -<?php $this->block()->start( 'jqadm_content' ); ?> |
|
58 | +<?php $this->block()->start('jqadm_content'); ?> |
|
59 | 59 | |
60 | -<form class="list-search" method="POST" action="<?php echo $enc->attr( $this->url( $target, $controller, $action, $formparams, array(), $config ) ); ?>"> |
|
60 | +<form class="list-search" method="POST" action="<?php echo $enc->attr($this->url($target, $controller, $action, $formparams, array(), $config)); ?>"> |
|
61 | 61 | <?php echo $this->csrf()->formfield(); ?> |
62 | 62 | |
63 | 63 | <div class="list-fields"> |
64 | - <span class="label label-primary label-pill action action-open fa"><?php echo $enc->html( $this->translate( 'admin', 'Columns' ) ); ?></span> |
|
64 | + <span class="label label-primary label-pill action action-open fa"><?php echo $enc->html($this->translate('admin', 'Columns')); ?></span> |
|
65 | 65 | <ul class="fields-items search-item"> |
66 | - <li class="fields-item"><label><input type="checkbox" name="<?php echo $enc->attr( $this->formparam( array( 'fields', '' ) ) ); ?>" value="product.id" <?php echo $checked( $fields, 'product.id' ); ?>> <?php echo $enc->html( $this->translate( 'admin', 'ID' ) ); ?></label></li> |
|
67 | - <li class="fields-item"><label><input type="checkbox" name="<?php echo $enc->attr( $this->formparam( array( 'fields', '' ) ) ); ?>" value="product.status" <?php echo $checked( $fields, 'product.status' ); ?>> <?php echo $enc->html( $this->translate( 'admin', 'Status' ) ); ?></label></li> |
|
68 | - <li class="fields-item"><label><input type="checkbox" name="<?php echo $enc->attr( $this->formparam( array( 'fields', '' ) ) ); ?>" value="product.typeid" <?php echo $checked( $fields, 'product.typeid' ); ?>> <?php echo $enc->html( $this->translate( 'admin', 'Type' ) ); ?></label></li> |
|
69 | - <li class="fields-item"><label><input type="checkbox" name="<?php echo $enc->attr( $this->formparam( array( 'fields', '' ) ) ); ?>" value="product.code" <?php echo $checked( $fields, 'product.code' ); ?>> <?php echo $enc->html( $this->translate( 'admin', 'Code' ) ); ?></label></li> |
|
70 | - <li class="fields-item"><label><input type="checkbox" name="<?php echo $enc->attr( $this->formparam( array( 'fields', '' ) ) ); ?>" value="product.label" <?php echo $checked( $fields, 'product.label' ); ?>> <?php echo $enc->html( $this->translate( 'admin', 'Label' ) ); ?></label></li> |
|
71 | - <li class="fields-item"><label><input type="checkbox" name="<?php echo $enc->attr( $this->formparam( array( 'fields', '' ) ) ); ?>" value="product.datestart" <?php echo $checked( $fields, 'product.datestart' ); ?>> <?php echo $enc->html( $this->translate( 'admin', 'Start date' ) ); ?></label></li> |
|
72 | - <li class="fields-item"><label><input type="checkbox" name="<?php echo $enc->attr( $this->formparam( array( 'fields', '' ) ) ); ?>" value="product.dateend" <?php echo $checked( $fields, 'product.dateend' ); ?>> <?php echo $enc->html( $this->translate( 'admin', 'End date' ) ); ?></label></li> |
|
73 | - <li class="fields-item"><label><input type="checkbox" name="<?php echo $enc->attr( $this->formparam( array( 'fields', '' ) ) ); ?>" value="product.ctime" <?php echo $checked( $fields, 'product.ctime' ); ?>> <?php echo $enc->html( $this->translate( 'admin', 'Created' ) ); ?></label></li> |
|
74 | - <li class="fields-item"><label><input type="checkbox" name="<?php echo $enc->attr( $this->formparam( array( 'fields', '' ) ) ); ?>" value="product.mtime" <?php echo $checked( $fields, 'product.mtime' ); ?>> <?php echo $enc->html( $this->translate( 'admin', 'Last modified' ) ); ?></label></li> |
|
75 | - <li class="fields-item"><label><input type="checkbox" name="<?php echo $enc->attr( $this->formparam( array( 'fields', '' ) ) ); ?>" value="product.editor" <?php echo $checked( $fields, 'product.editor' ); ?>> <?php echo $enc->html( $this->translate( 'admin', 'Editor' ) ); ?></label></li> |
|
66 | + <li class="fields-item"><label><input type="checkbox" name="<?php echo $enc->attr($this->formparam(array('fields', ''))); ?>" value="product.id" <?php echo $checked($fields, 'product.id'); ?>> <?php echo $enc->html($this->translate('admin', 'ID')); ?></label></li> |
|
67 | + <li class="fields-item"><label><input type="checkbox" name="<?php echo $enc->attr($this->formparam(array('fields', ''))); ?>" value="product.status" <?php echo $checked($fields, 'product.status'); ?>> <?php echo $enc->html($this->translate('admin', 'Status')); ?></label></li> |
|
68 | + <li class="fields-item"><label><input type="checkbox" name="<?php echo $enc->attr($this->formparam(array('fields', ''))); ?>" value="product.typeid" <?php echo $checked($fields, 'product.typeid'); ?>> <?php echo $enc->html($this->translate('admin', 'Type')); ?></label></li> |
|
69 | + <li class="fields-item"><label><input type="checkbox" name="<?php echo $enc->attr($this->formparam(array('fields', ''))); ?>" value="product.code" <?php echo $checked($fields, 'product.code'); ?>> <?php echo $enc->html($this->translate('admin', 'Code')); ?></label></li> |
|
70 | + <li class="fields-item"><label><input type="checkbox" name="<?php echo $enc->attr($this->formparam(array('fields', ''))); ?>" value="product.label" <?php echo $checked($fields, 'product.label'); ?>> <?php echo $enc->html($this->translate('admin', 'Label')); ?></label></li> |
|
71 | + <li class="fields-item"><label><input type="checkbox" name="<?php echo $enc->attr($this->formparam(array('fields', ''))); ?>" value="product.datestart" <?php echo $checked($fields, 'product.datestart'); ?>> <?php echo $enc->html($this->translate('admin', 'Start date')); ?></label></li> |
|
72 | + <li class="fields-item"><label><input type="checkbox" name="<?php echo $enc->attr($this->formparam(array('fields', ''))); ?>" value="product.dateend" <?php echo $checked($fields, 'product.dateend'); ?>> <?php echo $enc->html($this->translate('admin', 'End date')); ?></label></li> |
|
73 | + <li class="fields-item"><label><input type="checkbox" name="<?php echo $enc->attr($this->formparam(array('fields', ''))); ?>" value="product.ctime" <?php echo $checked($fields, 'product.ctime'); ?>> <?php echo $enc->html($this->translate('admin', 'Created')); ?></label></li> |
|
74 | + <li class="fields-item"><label><input type="checkbox" name="<?php echo $enc->attr($this->formparam(array('fields', ''))); ?>" value="product.mtime" <?php echo $checked($fields, 'product.mtime'); ?>> <?php echo $enc->html($this->translate('admin', 'Last modified')); ?></label></li> |
|
75 | + <li class="fields-item"><label><input type="checkbox" name="<?php echo $enc->attr($this->formparam(array('fields', ''))); ?>" value="product.editor" <?php echo $checked($fields, 'product.editor'); ?>> <?php echo $enc->html($this->translate('admin', 'Editor')); ?></label></li> |
|
76 | 76 | </ul> |
77 | 77 | </div> |
78 | 78 | |
79 | 79 | <div class="list-filter"> |
80 | - <span class="label label-primary label-pill action action-open fa"><?php echo $enc->html( $this->translate( 'admin', 'Filter' ) ); ?></span> |
|
81 | -<?php echo $this->partial( $this->config( 'admin/jqadm/partial/filter', 'common/partials/filter-default.php' ), $filterParams ); ?> |
|
80 | + <span class="label label-primary label-pill action action-open fa"><?php echo $enc->html($this->translate('admin', 'Filter')); ?></span> |
|
81 | +<?php echo $this->partial($this->config('admin/jqadm/partial/filter', 'common/partials/filter-default.php'), $filterParams); ?> |
|
82 | 82 | </div> |
83 | 83 | |
84 | 84 | <div class="actions-group"> |
85 | - <button class="btn btn-primary"><?php echo $this->translate( 'admin', 'Search' ); ?></button> |
|
86 | - <a class="btn btn-warning" href="<?php echo $enc->attr( $this->url( $target, $controller, $action, array( 'resource' => 'product', 'lang' => $this->param( 'lang' ) ), array(), $config ) ); ?>"><?php echo $this->translate( 'admin', 'Clear' ); ?></a> |
|
85 | + <button class="btn btn-primary"><?php echo $this->translate('admin', 'Search'); ?></button> |
|
86 | + <a class="btn btn-warning" href="<?php echo $enc->attr($this->url($target, $controller, $action, array('resource' => 'product', 'lang' => $this->param('lang')), array(), $config)); ?>"><?php echo $this->translate('admin', 'Clear'); ?></a> |
|
87 | 87 | </div> |
88 | 88 | </form> |
89 | 89 | |
90 | -<?php echo $this->partial( $this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-default.php' ), $pageParams + array( 'pos' => 'top' ) ); ?> |
|
90 | +<?php echo $this->partial($this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-default.php'), $pageParams + array('pos' => 'top')); ?> |
|
91 | 91 | |
92 | 92 | <div class="table-responsive"> |
93 | 93 | <table class="list-items table table-hover"> |
94 | 94 | <thead class="header"> |
95 | 95 | <tr> |
96 | -<?php if( in_array( 'product.id', $fields ) ) : ?> |
|
96 | +<?php if (in_array('product.id', $fields)) : ?> |
|
97 | 97 | <th class="product.id"> |
98 | - <a href="<?php echo $enc->attr( $this->url( $target, $controller, $action, array( 'sort' => $sort( $sortcode, 'product.id' ) ) + $params, array(), $config ) ); ?>"> |
|
99 | - <?php echo $enc->html( $this->translate( 'admin', 'ID' ) ); ?> |
|
98 | + <a href="<?php echo $enc->attr($this->url($target, $controller, $action, array('sort' => $sort($sortcode, 'product.id')) + $params, array(), $config)); ?>"> |
|
99 | + <?php echo $enc->html($this->translate('admin', 'ID')); ?> |
|
100 | 100 | </a> |
101 | 101 | </th> |
102 | 102 | <?php endif; ?> |
103 | -<?php if( in_array( 'product.status', $fields ) ) : ?> |
|
103 | +<?php if (in_array('product.status', $fields)) : ?> |
|
104 | 104 | <th class="product.status"> |
105 | - <a href="<?php echo $enc->attr( $this->url( $target, $controller, $action, array( 'sort' => $sort( $sortcode, 'product.status' ) ) + $params, array(), $config ) ); ?>"> |
|
106 | - <?php echo $enc->html( $this->translate( 'admin', 'Status' ) ); ?> |
|
105 | + <a href="<?php echo $enc->attr($this->url($target, $controller, $action, array('sort' => $sort($sortcode, 'product.status')) + $params, array(), $config)); ?>"> |
|
106 | + <?php echo $enc->html($this->translate('admin', 'Status')); ?> |
|
107 | 107 | </a> |
108 | 108 | </th> |
109 | 109 | <?php endif; ?> |
110 | -<?php if( in_array( 'product.typeid', $fields ) ) : ?> |
|
110 | +<?php if (in_array('product.typeid', $fields)) : ?> |
|
111 | 111 | <th class="product.type"> |
112 | - <a href="<?php echo $enc->attr( $this->url( $target, $controller, $action, array( 'sort' => $sort( $sortcode, 'product.typeid' ) ) + $params, array(), $config ) ); ?>"> |
|
113 | - <?php echo $enc->html( $this->translate( 'admin', 'Type' ) ); ?> |
|
112 | + <a href="<?php echo $enc->attr($this->url($target, $controller, $action, array('sort' => $sort($sortcode, 'product.typeid')) + $params, array(), $config)); ?>"> |
|
113 | + <?php echo $enc->html($this->translate('admin', 'Type')); ?> |
|
114 | 114 | </a> |
115 | 115 | </th> |
116 | 116 | <?php endif; ?> |
117 | -<?php if( in_array( 'product.code', $fields ) ) : ?> |
|
117 | +<?php if (in_array('product.code', $fields)) : ?> |
|
118 | 118 | <th class="product.code"> |
119 | - <a href="<?php echo $enc->attr( $this->url( $target, $controller, $action, array( 'sort' => $sort( $sortcode, 'product.code' ) ) + $params, array(), $config ) ); ?>"> |
|
120 | - <?php echo $enc->html( $this->translate( 'admin', 'Code' ) ); ?> |
|
119 | + <a href="<?php echo $enc->attr($this->url($target, $controller, $action, array('sort' => $sort($sortcode, 'product.code')) + $params, array(), $config)); ?>"> |
|
120 | + <?php echo $enc->html($this->translate('admin', 'Code')); ?> |
|
121 | 121 | </a> |
122 | 122 | </th> |
123 | 123 | <?php endif; ?> |
124 | -<?php if( in_array( 'product.label', $fields ) ) : ?> |
|
124 | +<?php if (in_array('product.label', $fields)) : ?> |
|
125 | 125 | <th class="product.label"> |
126 | - <a href="<?php echo $enc->attr( $this->url( $target, $controller, $action, array( 'sort' => $sort( $sortcode, 'product.label' ) ) + $params, array(), $config ) ); ?>"> |
|
127 | - <?php echo $enc->html( $this->translate( 'admin', 'Label' ) ); ?> |
|
126 | + <a href="<?php echo $enc->attr($this->url($target, $controller, $action, array('sort' => $sort($sortcode, 'product.label')) + $params, array(), $config)); ?>"> |
|
127 | + <?php echo $enc->html($this->translate('admin', 'Label')); ?> |
|
128 | 128 | </a> |
129 | 129 | </th> |
130 | 130 | <?php endif; ?> |
131 | -<?php if( in_array( 'product.datestart', $fields ) ) : ?> |
|
131 | +<?php if (in_array('product.datestart', $fields)) : ?> |
|
132 | 132 | <th class="product.datestart"> |
133 | - <a href="<?php echo $enc->attr( $this->url( $target, $controller, $action, array( 'sort' => $sort( $sortcode, 'product.datestart' ) ) + $params, array(), $config ) ); ?>"> |
|
134 | - <?php echo $enc->html( $this->translate( 'admin', 'Start date' ) ); ?> |
|
133 | + <a href="<?php echo $enc->attr($this->url($target, $controller, $action, array('sort' => $sort($sortcode, 'product.datestart')) + $params, array(), $config)); ?>"> |
|
134 | + <?php echo $enc->html($this->translate('admin', 'Start date')); ?> |
|
135 | 135 | </a> |
136 | 136 | </th> |
137 | 137 | <?php endif; ?> |
138 | -<?php if( in_array( 'product.dateend', $fields ) ) : ?> |
|
138 | +<?php if (in_array('product.dateend', $fields)) : ?> |
|
139 | 139 | <th class="product.dateend"> |
140 | - <a href="<?php echo $enc->attr( $this->url( $target, $controller, $action, array( 'sort' => $sort( $sortcode, 'product.dateend' ) ) + $params, array(), $config ) ); ?>"> |
|
141 | - <?php echo $enc->html( $this->translate( 'admin', 'End date' ) ); ?> |
|
140 | + <a href="<?php echo $enc->attr($this->url($target, $controller, $action, array('sort' => $sort($sortcode, 'product.dateend')) + $params, array(), $config)); ?>"> |
|
141 | + <?php echo $enc->html($this->translate('admin', 'End date')); ?> |
|
142 | 142 | </a> |
143 | 143 | </th> |
144 | 144 | <?php endif; ?> |
145 | -<?php if( in_array( 'product.ctime', $fields ) ) : ?> |
|
145 | +<?php if (in_array('product.ctime', $fields)) : ?> |
|
146 | 146 | <th class="product.ctime"> |
147 | - <a href="<?php echo $enc->attr( $this->url( $target, $controller, $action, array( 'sort' => $sort( $sortcode, 'product.ctime' ) ) + $params, array(), $config ) ); ?>"> |
|
148 | - <?php echo $enc->html( $this->translate( 'admin', 'Created' ) ); ?> |
|
147 | + <a href="<?php echo $enc->attr($this->url($target, $controller, $action, array('sort' => $sort($sortcode, 'product.ctime')) + $params, array(), $config)); ?>"> |
|
148 | + <?php echo $enc->html($this->translate('admin', 'Created')); ?> |
|
149 | 149 | </a> |
150 | 150 | </th> |
151 | 151 | <?php endif; ?> |
152 | -<?php if( in_array( 'product.mtime', $fields ) ) : ?> |
|
152 | +<?php if (in_array('product.mtime', $fields)) : ?> |
|
153 | 153 | <th class="product.mtime"> |
154 | - <a href="<?php echo $enc->attr( $this->url( $target, $controller, $action, array( 'sort' => $sort( $sortcode, 'product.mtime' ) ) + $params, array(), $config ) ); ?>"> |
|
155 | - <?php echo $enc->html( $this->translate( 'admin', 'Last modified' ) ); ?> |
|
154 | + <a href="<?php echo $enc->attr($this->url($target, $controller, $action, array('sort' => $sort($sortcode, 'product.mtime')) + $params, array(), $config)); ?>"> |
|
155 | + <?php echo $enc->html($this->translate('admin', 'Last modified')); ?> |
|
156 | 156 | </a> |
157 | 157 | </th> |
158 | 158 | <?php endif; ?> |
159 | -<?php if( in_array( 'product.editor', $fields ) ) : ?> |
|
159 | +<?php if (in_array('product.editor', $fields)) : ?> |
|
160 | 160 | <th class="product.editor"> |
161 | - <a href="<?php echo $enc->attr( $this->url( $target, $controller, $action, array( 'sort' => $sort( $sortcode, 'product.editor' ) ) + $params, array(), $config ) ); ?>"> |
|
162 | - <?php echo $enc->html( $this->translate( 'admin', 'Editor' ) ); ?> |
|
161 | + <a href="<?php echo $enc->attr($this->url($target, $controller, $action, array('sort' => $sort($sortcode, 'product.editor')) + $params, array(), $config)); ?>"> |
|
162 | + <?php echo $enc->html($this->translate('admin', 'Editor')); ?> |
|
163 | 163 | </a> |
164 | 164 | </th> |
165 | 165 | <?php endif; ?> |
166 | 166 | <th class="actions"> |
167 | 167 | <a class="btn btn-primary fa fa-plus" |
168 | - href="<?php echo $enc->attr( $this->url( $newTarget, $newCntl, $newAction, $params, array(), $newConfig ) ); ?>" |
|
169 | - aria-label="<?php echo $enc->attr( $this->translate( 'admin', 'Add' ) ); ?>"> |
|
168 | + href="<?php echo $enc->attr($this->url($newTarget, $newCntl, $newAction, $params, array(), $newConfig)); ?>" |
|
169 | + aria-label="<?php echo $enc->attr($this->translate('admin', 'Add')); ?>"> |
|
170 | 170 | </a> |
171 | 171 | </th> |
172 | 172 | </tr> |
173 | 173 | </thead> |
174 | 174 | <tbody> |
175 | -<?php foreach( $this->get( 'items', array() ) as $id => $item ) : ?> |
|
176 | -<?php $url = $enc->attr( $this->url( $getTarget, $getCntl, $getAction, array( 'id' => $id ) + $params, array(), $getConfig ) ); ?> |
|
175 | +<?php foreach ($this->get('items', array()) as $id => $item) : ?> |
|
176 | +<?php $url = $enc->attr($this->url($getTarget, $getCntl, $getAction, array('id' => $id) + $params, array(), $getConfig)); ?> |
|
177 | 177 | <tr> |
178 | -<?php if( in_array( 'product.id', $fields ) ) : ?> |
|
179 | - <td class="product.id"><a class="items-field" href="<?php echo $url; ?>"><?php echo $enc->html( $item->getId() ); ?></a></td> |
|
178 | +<?php if (in_array('product.id', $fields)) : ?> |
|
179 | + <td class="product.id"><a class="items-field" href="<?php echo $url; ?>"><?php echo $enc->html($item->getId()); ?></a></td> |
|
180 | 180 | <?php endif; ?> |
181 | -<?php if( in_array( 'product.status', $fields ) ) : ?> |
|
182 | - <td class="product.status"><a class="items-field" href="<?php echo $url; ?>"><div class="fa status-<?php echo $enc->attr( $item->getStatus() ); ?>"></div></a></td> |
|
181 | +<?php if (in_array('product.status', $fields)) : ?> |
|
182 | + <td class="product.status"><a class="items-field" href="<?php echo $url; ?>"><div class="fa status-<?php echo $enc->attr($item->getStatus()); ?>"></div></a></td> |
|
183 | 183 | <?php endif; ?> |
184 | -<?php if( in_array( 'product.typeid', $fields ) ) : ?> |
|
185 | - <td class="product.type"><a class="items-field" href="<?php echo $url; ?>"><?php echo $enc->html( $item->getType() ); ?></a></td> |
|
184 | +<?php if (in_array('product.typeid', $fields)) : ?> |
|
185 | + <td class="product.type"><a class="items-field" href="<?php echo $url; ?>"><?php echo $enc->html($item->getType()); ?></a></td> |
|
186 | 186 | <?php endif; ?> |
187 | -<?php if( in_array( 'product.code', $fields ) ) : ?> |
|
188 | - <td class="product.code"><a class="items-field" href="<?php echo $url; ?>"><?php echo $enc->html( $item->getCode() ); ?></a></td> |
|
187 | +<?php if (in_array('product.code', $fields)) : ?> |
|
188 | + <td class="product.code"><a class="items-field" href="<?php echo $url; ?>"><?php echo $enc->html($item->getCode()); ?></a></td> |
|
189 | 189 | <?php endif; ?> |
190 | -<?php if( in_array( 'product.label', $fields ) ) : ?> |
|
191 | - <td class="product.label"><a class="items-field" href="<?php echo $url; ?>"><?php echo $enc->html( $item->getLabel() ); ?></a></td> |
|
190 | +<?php if (in_array('product.label', $fields)) : ?> |
|
191 | + <td class="product.label"><a class="items-field" href="<?php echo $url; ?>"><?php echo $enc->html($item->getLabel()); ?></a></td> |
|
192 | 192 | <?php endif; ?> |
193 | -<?php if( in_array( 'product.datestart', $fields ) ) : ?> |
|
194 | - <td class="product.datestart"><a class="items-field" href="<?php echo $url; ?>"><?php echo $enc->html( $item->getDateStart() ); ?></a></td> |
|
193 | +<?php if (in_array('product.datestart', $fields)) : ?> |
|
194 | + <td class="product.datestart"><a class="items-field" href="<?php echo $url; ?>"><?php echo $enc->html($item->getDateStart()); ?></a></td> |
|
195 | 195 | <?php endif; ?> |
196 | -<?php if( in_array( 'product.dateend', $fields ) ) : ?> |
|
197 | - <td class="product.dateend"><a class="items-field" href="<?php echo $url; ?>"><?php echo $enc->html( $item->getDateEnd() ); ?></a></td> |
|
196 | +<?php if (in_array('product.dateend', $fields)) : ?> |
|
197 | + <td class="product.dateend"><a class="items-field" href="<?php echo $url; ?>"><?php echo $enc->html($item->getDateEnd()); ?></a></td> |
|
198 | 198 | <?php endif; ?> |
199 | -<?php if( in_array( 'product.ctime', $fields ) ) : ?> |
|
200 | - <td class="product.ctime"><a class="items-field" href="<?php echo $url; ?>"><?php echo $enc->html( $item->getTimeCreated() ); ?></a></td> |
|
199 | +<?php if (in_array('product.ctime', $fields)) : ?> |
|
200 | + <td class="product.ctime"><a class="items-field" href="<?php echo $url; ?>"><?php echo $enc->html($item->getTimeCreated()); ?></a></td> |
|
201 | 201 | <?php endif; ?> |
202 | -<?php if( in_array( 'product.mtime', $fields ) ) : ?> |
|
203 | - <td class="product.mtime"><a class="items-field" href="<?php echo $url; ?>"><?php echo $enc->html( $item->getTimeModified() ); ?></a></td> |
|
202 | +<?php if (in_array('product.mtime', $fields)) : ?> |
|
203 | + <td class="product.mtime"><a class="items-field" href="<?php echo $url; ?>"><?php echo $enc->html($item->getTimeModified()); ?></a></td> |
|
204 | 204 | <?php endif; ?> |
205 | -<?php if( in_array( 'product.editor', $fields ) ) : ?> |
|
206 | - <td class="product.editor"><a class="items-field" href="<?php echo $url; ?>"><?php echo $enc->html( $item->getEditor() ); ?></a></td> |
|
205 | +<?php if (in_array('product.editor', $fields)) : ?> |
|
206 | + <td class="product.editor"><a class="items-field" href="<?php echo $url; ?>"><?php echo $enc->html($item->getEditor()); ?></a></td> |
|
207 | 207 | <?php endif; ?> |
208 | 208 | <td class="actions"><!-- |
209 | 209 | --><a class="btn btn-secondary fa fa-files-o" |
210 | - href="<?php echo $enc->attr( $this->url( $copyTarget, $copyCntl, $copyAction, array( 'id' => $id ) + $params, array(), $copyConfig ) ); ?>" |
|
211 | - aria-label="<?php echo $enc->attr( $this->translate( 'admin', 'Copy' ) ); ?>"></a><!-- |
|
212 | - --><form class="delete" action="<?php echo $enc->attr( $this->url( $delTarget, $delCntl, $delAction, array( 'id' => $id ) + $params, array(), $delConfig ) ); ?>" method="POST"><!-- |
|
210 | + href="<?php echo $enc->attr($this->url($copyTarget, $copyCntl, $copyAction, array('id' => $id) + $params, array(), $copyConfig)); ?>" |
|
211 | + aria-label="<?php echo $enc->attr($this->translate('admin', 'Copy')); ?>"></a><!-- |
|
212 | + --><form class="delete" action="<?php echo $enc->attr($this->url($delTarget, $delCntl, $delAction, array('id' => $id) + $params, array(), $delConfig)); ?>" method="POST"><!-- |
|
213 | 213 | --><?php echo $this->csrf()->formfield(); ?><!-- |
214 | - --><input type="hidden" name="<?php echo $enc->attr( $this->formparam( array( 'resource' ) ) ); ?>" value="product" /><!-- |
|
215 | - --><input type="hidden" name="<?php echo $enc->attr( $this->formparam( array( 'id' ) ) ); ?>" value="<?php echo $enc->attr( $id ); ?>" /><!-- |
|
216 | - --><button class="btn btn-danger fa fa-trash" aria-label="<?php echo $enc->attr( $this->translate( 'admin', 'Delete' ) ); ?>"></button><!-- |
|
214 | + --><input type="hidden" name="<?php echo $enc->attr($this->formparam(array('resource'))); ?>" value="product" /><!-- |
|
215 | + --><input type="hidden" name="<?php echo $enc->attr($this->formparam(array('id'))); ?>" value="<?php echo $enc->attr($id); ?>" /><!-- |
|
216 | + --><button class="btn btn-danger fa fa-trash" aria-label="<?php echo $enc->attr($this->translate('admin', 'Delete')); ?>"></button><!-- |
|
217 | 217 | --></form><!-- |
218 | 218 | --></td> |
219 | 219 | </tr> |
@@ -222,8 +222,8 @@ discard block |
||
222 | 222 | </table> |
223 | 223 | </div> |
224 | 224 | |
225 | -<?php echo $this->partial( $this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-default.php' ), $pageParams + array( 'pos' => 'bottom' ) ); ?> |
|
225 | +<?php echo $this->partial($this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-default.php'), $pageParams + array('pos' => 'bottom')); ?> |
|
226 | 226 | |
227 | 227 | <?php $this->block()->stop(); ?> |
228 | 228 | |
229 | -<?php echo $this->render( $this->config( 'admin/jqadm/template/page', 'common/page-default.php' ) ); ?> |
|
229 | +<?php echo $this->render($this->config('admin/jqadm/template/page', 'common/page-default.php')); ?> |
@@ -5,8 +5,8 @@ discard block |
||
5 | 5 | * @copyright Aimeos (aimeos.org), 2016 |
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,70 +14,70 @@ discard block |
||
14 | 14 | ?> |
15 | 15 | <div class="product-item-download card panel"> |
16 | 16 | <div id="product-item-download" class="header card-header" role="tab" data-toggle="collapse" data-parent="#accordion" data-target="#product-item-download-data" aria-expanded="true" aria-controls="product-item-download-data"> |
17 | - <?php echo $enc->html( $this->translate( 'admin', 'Download' ) ); ?> |
|
17 | + <?php echo $enc->html($this->translate('admin', 'Download')); ?> |
|
18 | 18 | </div> |
19 | 19 | <div id="product-item-download-data" class="item-download card-block panel-collapse collapse table-responsive" role="tabpanel" aria-labelledby="product-item-download"> |
20 | 20 | <div class="col-lg-6"> |
21 | 21 | <div class="form-group row optional"> |
22 | - <label class="col-sm-3 form-control-label"><?php echo $enc->html( $this->translate( 'admin', 'File' ) ); ?></label> |
|
22 | + <label class="col-sm-3 form-control-label"><?php echo $enc->html($this->translate('admin', 'File')); ?></label> |
|
23 | 23 | <div class="col-sm-9"> |
24 | - <input class="item-listid" type="hidden" name="<?php echo $enc->attr( $this->formparam( array( 'download', 'product.lists.id' ) ) ); ?>" |
|
25 | - value="<?php echo $enc->attr( $this->get( 'downloadData/product.lists.id' ) ); ?>" /> |
|
26 | - <input class="item-id" type="hidden" name="<?php echo $enc->attr( $this->formparam( array( 'download', 'attribute.id' ) ) ); ?>" |
|
27 | - value="<?php echo $enc->attr( $this->get( 'downloadData/attribute.id' ) ); ?>" /> |
|
24 | + <input class="item-listid" type="hidden" name="<?php echo $enc->attr($this->formparam(array('download', 'product.lists.id'))); ?>" |
|
25 | + value="<?php echo $enc->attr($this->get('downloadData/product.lists.id')); ?>" /> |
|
26 | + <input class="item-id" type="hidden" name="<?php echo $enc->attr($this->formparam(array('download', 'attribute.id'))); ?>" |
|
27 | + value="<?php echo $enc->attr($this->get('downloadData/attribute.id')); ?>" /> |
|
28 | 28 | <input class="fileupload" type="file" name="download[file]" /> |
29 | 29 | </div> |
30 | 30 | </div> |
31 | 31 | <div class="form-group row optional"> |
32 | - <label class="col-sm-3 form-control-label"><?php echo $enc->html( $this->translate( 'admin', 'Status' ) ); ?></label> |
|
32 | + <label class="col-sm-3 form-control-label"><?php echo $enc->html($this->translate('admin', 'Status')); ?></label> |
|
33 | 33 | <div class="col-sm-9"> |
34 | - <select class="form-control c-select item-status" name="<?php echo $enc->attr( $this->formparam( array( 'download', 'product.lists.status' ) ) ); ?>"> |
|
35 | - <option value="1" <?php echo $selected( $this->get( 'downloadData/product.lists.status', 1 ), 1 ); ?>><?php echo $enc->html( $this->translate( 'admin', 'status:enabled' ) ); ?></option> |
|
36 | - <option value="0" <?php echo $selected( $this->get( 'downloadData/product.lists.status', 1 ), 0 ); ?>><?php echo $enc->html( $this->translate( 'admin', 'status:disabled' ) ); ?></option> |
|
37 | - <option value="-1" <?php echo $selected( $this->get( 'downloadData/product.lists.status', 1 ), -1 ); ?>><?php echo $enc->html( $this->translate( 'admin', 'status:review' ) ); ?></option> |
|
38 | - <option value="-2" <?php echo $selected( $this->get( 'downloadData/product.lists.status', 1 ), -2 ); ?>><?php echo $enc->html( $this->translate( 'admin', 'status:archive' ) ); ?></option> |
|
34 | + <select class="form-control c-select item-status" name="<?php echo $enc->attr($this->formparam(array('download', 'product.lists.status'))); ?>"> |
|
35 | + <option value="1" <?php echo $selected($this->get('downloadData/product.lists.status', 1), 1); ?>><?php echo $enc->html($this->translate('admin', 'status:enabled')); ?></option> |
|
36 | + <option value="0" <?php echo $selected($this->get('downloadData/product.lists.status', 1), 0); ?>><?php echo $enc->html($this->translate('admin', 'status:disabled')); ?></option> |
|
37 | + <option value="-1" <?php echo $selected($this->get('downloadData/product.lists.status', 1), -1); ?>><?php echo $enc->html($this->translate('admin', 'status:review')); ?></option> |
|
38 | + <option value="-2" <?php echo $selected($this->get('downloadData/product.lists.status', 1), -2); ?>><?php echo $enc->html($this->translate('admin', 'status:archive')); ?></option> |
|
39 | 39 | </select> |
40 | 40 | </div> |
41 | 41 | </div> |
42 | 42 | <div class="form-group row optional"> |
43 | - <label class="col-sm-3 form-control-label"><?php echo $enc->html( $this->translate( 'admin', 'Name' ) ); ?></label> |
|
43 | + <label class="col-sm-3 form-control-label"><?php echo $enc->html($this->translate('admin', 'Name')); ?></label> |
|
44 | 44 | <div class="col-sm-9"> |
45 | 45 | <input class="form-control item-label" type="text" |
46 | - name="<?php echo $enc->attr( $this->formparam( array( 'download', 'attribute.label' ) ) ); ?>" |
|
47 | - value="<?php echo $enc->attr( $this->get( 'downloadData/attribute.label' ) ); ?>" /> |
|
46 | + name="<?php echo $enc->attr($this->formparam(array('download', 'attribute.label'))); ?>" |
|
47 | + value="<?php echo $enc->attr($this->get('downloadData/attribute.label')); ?>" /> |
|
48 | 48 | </div> |
49 | 49 | </div> |
50 | 50 | <div class="form-group row optional"> |
51 | - <label class="col-sm-3 form-control-label"><?php echo $enc->html( $this->translate( 'admin', 'Replace file' ) ); ?></label> |
|
51 | + <label class="col-sm-3 form-control-label"><?php echo $enc->html($this->translate('admin', 'Replace file')); ?></label> |
|
52 | 52 | <div class="col-sm-9"> |
53 | 53 | <input class="form-control item-overwrite" type="checkbox" |
54 | - name="<?php echo $enc->attr( $this->formparam( array( 'download', 'overwrite' ) ) ); ?>" value="1" |
|
55 | - <?php echo $selected( $this->get( 'downloadData/overwrite' ), 1 ); ?> /> |
|
54 | + name="<?php echo $enc->attr($this->formparam(array('download', 'overwrite'))); ?>" value="1" |
|
55 | + <?php echo $selected($this->get('downloadData/overwrite'), 1); ?> /> |
|
56 | 56 | </div> |
57 | 57 | </div> |
58 | 58 | </div> |
59 | 59 | <div class="col-lg-6"> |
60 | -<?php if( $this->get( 'downloadData/path' ) != '' ) : ?> |
|
60 | +<?php if ($this->get('downloadData/path') != '') : ?> |
|
61 | 61 | <div class="form-group row"> |
62 | - <label class="col-sm-3 form-control-label"><?php echo $enc->html( $this->translate( 'admin', 'Path' ) ); ?></label> |
|
62 | + <label class="col-sm-3 form-control-label"><?php echo $enc->html($this->translate('admin', 'Path')); ?></label> |
|
63 | 63 | <div class="col-sm-9"> |
64 | - <p class="form-control-static item-file"><?php echo $enc->html( $this->get( 'downloadData/path' ) ); ?></p> |
|
64 | + <p class="form-control-static item-file"><?php echo $enc->html($this->get('downloadData/path')); ?></p> |
|
65 | 65 | </div> |
66 | 66 | </div> |
67 | 67 | <div class="form-group row"> |
68 | - <label class="col-sm-3 form-control-label"><?php echo $enc->html( $this->translate( 'admin', 'Size' ) ); ?></label> |
|
68 | + <label class="col-sm-3 form-control-label"><?php echo $enc->html($this->translate('admin', 'Size')); ?></label> |
|
69 | 69 | <div class="col-sm-9"> |
70 | - <p class="form-control-static item-file"><?php echo $enc->html( number_format( $this->get( 'downloadData/size' ) / 1024, 0, '.', ' ' ) ); ?> KB</p> |
|
70 | + <p class="form-control-static item-file"><?php echo $enc->html(number_format($this->get('downloadData/size') / 1024, 0, '.', ' ')); ?> KB</p> |
|
71 | 71 | </div> |
72 | 72 | </div> |
73 | 73 | <div class="form-group row"> |
74 | - <label class="col-sm-3 form-control-label"><?php echo $enc->html( $this->translate( 'admin', 'Uploaded' ) ); ?></label> |
|
74 | + <label class="col-sm-3 form-control-label"><?php echo $enc->html($this->translate('admin', 'Uploaded')); ?></label> |
|
75 | 75 | <div class="col-sm-9"> |
76 | - <p class="form-control-static item-file"><?php echo $enc->html( date( 'Y-m-d H:i:s', $this->get( 'downloadData/time' ) ) ); ?></p> |
|
76 | + <p class="form-control-static item-file"><?php echo $enc->html(date('Y-m-d H:i:s', $this->get('downloadData/time'))); ?></p> |
|
77 | 77 | </div> |
78 | 78 | </div> |
79 | 79 | <?php endif; ?> |
80 | 80 | </div> |
81 | -<?php echo $this->get( 'downloadBody' ); ?> |
|
81 | +<?php echo $this->get('downloadBody'); ?> |
|
82 | 82 | </div> |
83 | 83 | </div> |
@@ -12,18 +12,18 @@ discard block |
||
12 | 12 | <table class="attribute-list table table-default"> |
13 | 13 | <thead> |
14 | 14 | <tr> |
15 | - <th><?php echo $enc->html( $this->translate( 'admin', 'Attributes' ) ); ?></th> |
|
15 | + <th><?php echo $enc->html($this->translate('admin', 'Attributes')); ?></th> |
|
16 | 16 | <th class="actions"><div class="btn btn-primary fa fa-plus"></div></th> |
17 | 17 | </tr> |
18 | 18 | </thead> |
19 | 19 | <tbody> |
20 | -<?php foreach( $this->get( 'attributeData/product.lists.id', array() ) as $idx => $id ) : ?> |
|
20 | +<?php foreach ($this->get('attributeData/product.lists.id', array()) as $idx => $id) : ?> |
|
21 | 21 | <tr> |
22 | 22 | <td> |
23 | - <input class="item-listid" type="hidden" name="<?php echo $enc->attr( $this->formparam( array( 'characteristic', 'attribute', 'product.lists.id', '' ) ) ); ?>" value="<?php echo $enc->attr( $id ); ?>" /> |
|
24 | - <input class="item-label" type="hidden" name="<?php echo $enc->attr( $this->formparam( array( 'characteristic', 'attribute', 'attribute.label', '' ) ) ); ?>" value="<?php echo $enc->attr( $this->get( 'attributeData/attribute.label/' . $idx ) ); ?>" /> |
|
25 | - <select class="combobox item-refid" name="<?php echo $enc->attr( $this->formparam( array( 'characteristic', 'attribute', 'product.lists.refid', '' ) ) ); ?>"> |
|
26 | - <option value="<?php echo $enc->attr( $this->get( 'attributeData/product.lists.refid/' . $idx ) ); ?>" ><?php echo $enc->html( $this->get( 'attributeData/attribute.label/' . $idx ) ); ?></option> |
|
23 | + <input class="item-listid" type="hidden" name="<?php echo $enc->attr($this->formparam(array('characteristic', 'attribute', 'product.lists.id', ''))); ?>" value="<?php echo $enc->attr($id); ?>" /> |
|
24 | + <input class="item-label" type="hidden" name="<?php echo $enc->attr($this->formparam(array('characteristic', 'attribute', 'attribute.label', ''))); ?>" value="<?php echo $enc->attr($this->get('attributeData/attribute.label/' . $idx)); ?>" /> |
|
25 | + <select class="combobox item-refid" name="<?php echo $enc->attr($this->formparam(array('characteristic', 'attribute', 'product.lists.refid', ''))); ?>"> |
|
26 | + <option value="<?php echo $enc->attr($this->get('attributeData/product.lists.refid/' . $idx)); ?>" ><?php echo $enc->html($this->get('attributeData/attribute.label/' . $idx)); ?></option> |
|
27 | 27 | </select> |
28 | 28 | </td> |
29 | 29 | <td class="actions"><div class="btn btn-danger fa fa-trash"></div></td> |
@@ -31,14 +31,14 @@ discard block |
||
31 | 31 | <?php endforeach; ?> |
32 | 32 | <tr class="prototype"> |
33 | 33 | <td> |
34 | - <input class="item-listid" type="hidden" name="<?php echo $enc->attr( $this->formparam( array( 'characteristic', 'attribute', 'product.lists.id', '' ) ) ); ?>" value="" disabled="disabled" /> |
|
35 | - <input class="item-label" type="hidden" name="<?php echo $enc->attr( $this->formparam( array( 'characteristic', 'attribute', 'attribute.label', '' ) ) ); ?>" value="" disabled="disabled" /> |
|
36 | - <select class="combobox-prototype item-refid" name="<?php echo $enc->attr( $this->formparam( array( 'characteristic', 'attribute', 'product.lists.refid', '' ) ) ); ?>" disabled="disabled"> |
|
34 | + <input class="item-listid" type="hidden" name="<?php echo $enc->attr($this->formparam(array('characteristic', 'attribute', 'product.lists.id', ''))); ?>" value="" disabled="disabled" /> |
|
35 | + <input class="item-label" type="hidden" name="<?php echo $enc->attr($this->formparam(array('characteristic', 'attribute', 'attribute.label', ''))); ?>" value="" disabled="disabled" /> |
|
36 | + <select class="combobox-prototype item-refid" name="<?php echo $enc->attr($this->formparam(array('characteristic', 'attribute', 'product.lists.refid', ''))); ?>" disabled="disabled"> |
|
37 | 37 | </select> |
38 | 38 | </td> |
39 | 39 | <td class="actions"><div class="btn btn-danger fa fa-trash"></div></td> |
40 | 40 | </tr> |
41 | 41 | </tbody> |
42 | 42 | </table> |
43 | -<?php echo $this->get( 'attributeBody' ); ?> |
|
43 | +<?php echo $this->get('attributeBody'); ?> |
|
44 | 44 | </div> |
@@ -12,83 +12,83 @@ discard block |
||
12 | 12 | <div id="product-item-text" class="header card-header collapsed" role="tab" |
13 | 13 | data-toggle="collapse" data-parent="#accordion" data-target="#product-item-text-data" |
14 | 14 | aria-expanded="false" aria-controls="product-item-text-data"> |
15 | - <?php echo $enc->html( $this->translate( 'admin', 'Texts' ) ); ?> |
|
15 | + <?php echo $enc->html($this->translate('admin', 'Texts')); ?> |
|
16 | 16 | </div> |
17 | 17 | <div id="product-item-text-data" class="item-text card-block panel-collapse collapse" role="tabpanel" aria-labelledby="product-item-text"> |
18 | 18 | <div id="product-item-text-group" role="tablist" aria-multiselectable="true"> |
19 | 19 | |
20 | -<?php foreach( (array) $this->get( 'textData/langid', array() ) as $idx => $langid ) : ?> |
|
20 | +<?php foreach ((array) $this->get('textData/langid', array()) as $idx => $langid) : ?> |
|
21 | 21 | |
22 | 22 | <div class="group-item card panel"> |
23 | - <div id="product-item-text-group-item-<?php echo $enc->attr( $idx ); ?>" class="card-header header collapsed" role="tab" |
|
24 | - data-toggle="collapse" data-target="#product-item-text-group-data-<?php echo $enc->attr( $idx ); ?>" |
|
25 | - aria-expanded="false" aria-controls="product-item-text-group-data-<?php echo $enc->attr( $idx ); ?>"> |
|
26 | - <select class="combobox text-langid" name="<?php echo $enc->attr( $this->formparam( array( 'text', 'langid', '' ) ) ); ?>"> |
|
27 | - <option value="<?php echo $enc->attr( $langid ); ?>"><?php echo $enc->html( $langid ); ?></option> |
|
23 | + <div id="product-item-text-group-item-<?php echo $enc->attr($idx); ?>" class="card-header header collapsed" role="tab" |
|
24 | + data-toggle="collapse" data-target="#product-item-text-group-data-<?php echo $enc->attr($idx); ?>" |
|
25 | + aria-expanded="false" aria-controls="product-item-text-group-data-<?php echo $enc->attr($idx); ?>"> |
|
26 | + <select class="combobox text-langid" name="<?php echo $enc->attr($this->formparam(array('text', 'langid', ''))); ?>"> |
|
27 | + <option value="<?php echo $enc->attr($langid); ?>"><?php echo $enc->html($langid); ?></option> |
|
28 | 28 | </select> |
29 | 29 | <div class="btn btn-secondary fa fa-plus"></div> |
30 | 30 | <div class="btn btn-danger fa fa-trash"></div> |
31 | - <span class="item-name-content header-label"><?php echo $enc->html( $this->get( 'textData/name/content/' . $idx ) ); ?></span> |
|
31 | + <span class="item-name-content header-label"><?php echo $enc->html($this->get('textData/name/content/' . $idx)); ?></span> |
|
32 | 32 | </div> |
33 | - <div id="product-item-text-group-data-<?php echo $enc->attr( $idx ); ?>" class="card-block panel-collapse collapse" |
|
34 | - role="tabpanel" aria-labelledby="product-item-text-group-item-<?php echo $enc->attr( $idx ); ?>"> |
|
33 | + <div id="product-item-text-group-data-<?php echo $enc->attr($idx); ?>" class="card-block panel-collapse collapse" |
|
34 | + role="tabpanel" aria-labelledby="product-item-text-group-item-<?php echo $enc->attr($idx); ?>"> |
|
35 | 35 | <div class="col-lg-6"> |
36 | 36 | <div class="form-group row optional"> |
37 | - <label class="col-lg-3 form-control-label"><?php echo $enc->html( $this->translate( 'admin', 'Product name' ) ); ?></label> |
|
37 | + <label class="col-lg-3 form-control-label"><?php echo $enc->html($this->translate('admin', 'Product name')); ?></label> |
|
38 | 38 | <div class="col-lg-9"> |
39 | - <input class="item-name-listid" type="hidden" name="<?php echo $enc->attr( $this->formparam( array( 'text', 'name', 'listid', '' ) ) ); ?>" |
|
40 | - value="<?php echo $enc->attr( $this->get( 'textData/name/listid/' . $idx ) ); ?>" /> |
|
41 | - <input class="form-control item-name-content" type="text" name="<?php echo $enc->attr( $this->formparam( array( 'text', 'name', 'content', '' ) ) ); ?>" |
|
42 | - placeholder="<?php echo $enc->attr( $this->translate( 'admin', 'Product name' ) ); ?>" |
|
43 | - value="<?php echo $enc->attr( $this->get( 'textData/name/content/' . $idx ) ); ?>" /> |
|
39 | + <input class="item-name-listid" type="hidden" name="<?php echo $enc->attr($this->formparam(array('text', 'name', 'listid', ''))); ?>" |
|
40 | + value="<?php echo $enc->attr($this->get('textData/name/listid/' . $idx)); ?>" /> |
|
41 | + <input class="form-control item-name-content" type="text" name="<?php echo $enc->attr($this->formparam(array('text', 'name', 'content', ''))); ?>" |
|
42 | + placeholder="<?php echo $enc->attr($this->translate('admin', 'Product name')); ?>" |
|
43 | + value="<?php echo $enc->attr($this->get('textData/name/content/' . $idx)); ?>" /> |
|
44 | 44 | </div> |
45 | 45 | </div> |
46 | 46 | <div class="form-group row optional"> |
47 | - <label class="col-lg-3 form-control-label"><?php echo $enc->html( $this->translate( 'admin', 'Short description' ) ); ?></label> |
|
47 | + <label class="col-lg-3 form-control-label"><?php echo $enc->html($this->translate('admin', 'Short description')); ?></label> |
|
48 | 48 | <div class="col-lg-9"> |
49 | - <input class="item-short-listid" type="hidden" name="<?php echo $enc->attr( $this->formparam( array( 'text', 'short', 'listid', '' ) ) ); ?>" |
|
50 | - value="<?php echo $enc->attr( $this->get( 'textData/short/listid/' . $idx ) ); ?>" /> |
|
51 | - <textarea class="form-control item-short-content" rows="2" name="<?php echo $enc->attr( $this->formparam( array( 'text', 'short', 'content', '' ) ) ); ?>" |
|
52 | - placeholder="<?php echo $enc->attr( $this->translate( 'admin', 'Short description' ) ); ?>" ><?php echo $enc->attr( $this->get( 'textData/short/content/' . $idx ) ); ?></textarea> |
|
49 | + <input class="item-short-listid" type="hidden" name="<?php echo $enc->attr($this->formparam(array('text', 'short', 'listid', ''))); ?>" |
|
50 | + value="<?php echo $enc->attr($this->get('textData/short/listid/' . $idx)); ?>" /> |
|
51 | + <textarea class="form-control item-short-content" rows="2" name="<?php echo $enc->attr($this->formparam(array('text', 'short', 'content', ''))); ?>" |
|
52 | + placeholder="<?php echo $enc->attr($this->translate('admin', 'Short description')); ?>" ><?php echo $enc->attr($this->get('textData/short/content/' . $idx)); ?></textarea> |
|
53 | 53 | </div> |
54 | 54 | </div> |
55 | 55 | <div class="form-group row optional"> |
56 | - <label class="col-lg-3 form-control-label"><?php echo $enc->html( $this->translate( 'admin', 'Long description' ) ); ?></label> |
|
56 | + <label class="col-lg-3 form-control-label"><?php echo $enc->html($this->translate('admin', 'Long description')); ?></label> |
|
57 | 57 | <div class="col-lg-9"> |
58 | - <input class="item-long-listid" type="hidden" name="<?php echo $enc->attr( $this->formparam( array( 'text', 'long', 'listid', '' ) ) ); ?>" |
|
59 | - value="<?php echo $enc->attr( $this->get( 'textData/long/listid/' . $idx ) ); ?>" /> |
|
60 | - <textarea class="form-control htmleditor item-long-content" rows="6" name="<?php echo $enc->attr( $this->formparam( array( 'text', 'long', 'content', '' ) ) ); ?>" |
|
61 | - placeholder="<?php echo $enc->attr( $this->translate( 'admin', 'Long description' ) ); ?>" ><?php echo $enc->attr( $this->get( 'textData/long/content/' . $idx ) ); ?></textarea> |
|
58 | + <input class="item-long-listid" type="hidden" name="<?php echo $enc->attr($this->formparam(array('text', 'long', 'listid', ''))); ?>" |
|
59 | + value="<?php echo $enc->attr($this->get('textData/long/listid/' . $idx)); ?>" /> |
|
60 | + <textarea class="form-control htmleditor item-long-content" rows="6" name="<?php echo $enc->attr($this->formparam(array('text', 'long', 'content', ''))); ?>" |
|
61 | + placeholder="<?php echo $enc->attr($this->translate('admin', 'Long description')); ?>" ><?php echo $enc->attr($this->get('textData/long/content/' . $idx)); ?></textarea> |
|
62 | 62 | </div> |
63 | 63 | </div> |
64 | 64 | </div> |
65 | 65 | <div class="col-lg-6"> |
66 | 66 | <div class="form-group row optional"> |
67 | - <label class="col-lg-3 form-control-label"><?php echo $enc->html( $this->translate( 'admin', 'URL segment' ) ); ?></label> |
|
67 | + <label class="col-lg-3 form-control-label"><?php echo $enc->html($this->translate('admin', 'URL segment')); ?></label> |
|
68 | 68 | <div class="col-lg-9"> |
69 | - <input class="item-url-listid" type="hidden" name="<?php echo $enc->attr( $this->formparam( array( 'text', 'url', 'listid', '' ) ) ); ?>" |
|
70 | - value="<?php echo $enc->attr( $this->get( 'textData/url/listid/' . $idx ) ); ?>" /> |
|
71 | - <input class="form-control item-url-content" type="text" name="<?php echo $enc->attr( $this->formparam( array( 'text', 'url', 'content', '' ) ) ); ?>" |
|
72 | - placeholder="<?php echo $enc->attr( $this->translate( 'admin', 'URL segment' ) ); ?>" |
|
73 | - value="<?php echo $enc->attr( $this->get( 'textData/url/content/' . $idx ) ); ?>" /> |
|
69 | + <input class="item-url-listid" type="hidden" name="<?php echo $enc->attr($this->formparam(array('text', 'url', 'listid', ''))); ?>" |
|
70 | + value="<?php echo $enc->attr($this->get('textData/url/listid/' . $idx)); ?>" /> |
|
71 | + <input class="form-control item-url-content" type="text" name="<?php echo $enc->attr($this->formparam(array('text', 'url', 'content', ''))); ?>" |
|
72 | + placeholder="<?php echo $enc->attr($this->translate('admin', 'URL segment')); ?>" |
|
73 | + value="<?php echo $enc->attr($this->get('textData/url/content/' . $idx)); ?>" /> |
|
74 | 74 | </div> |
75 | 75 | </div> |
76 | 76 | <div class="form-group row optional"> |
77 | - <label class="col-lg-3 form-control-label"><?php echo $enc->html( $this->translate( 'admin', 'Meta keywords' ) ); ?></label> |
|
77 | + <label class="col-lg-3 form-control-label"><?php echo $enc->html($this->translate('admin', 'Meta keywords')); ?></label> |
|
78 | 78 | <div class="col-lg-9"> |
79 | - <input class="item-meta-keyword-listid" type="hidden" name="<?php echo $enc->attr( $this->formparam( array( 'text', 'meta-keyword', 'listid', '' ) ) ); ?>" |
|
80 | - value="<?php echo $enc->attr( $this->get( 'textData/meta-keyword/listid/' . $idx ) ); ?>" /> |
|
81 | - <textarea class="form-control item-meta-keyword-content" rows="2" name="<?php echo $enc->attr( $this->formparam( array( 'text', 'meta-keyword', 'content', '' ) ) ); ?>" |
|
82 | - placeholder="<?php echo $enc->attr( $this->translate( 'admin', 'Meta keywords' ) ); ?>" ><?php echo $enc->attr( $this->get( 'textData/meta-keyword/content/' . $idx ) ); ?></textarea> |
|
79 | + <input class="item-meta-keyword-listid" type="hidden" name="<?php echo $enc->attr($this->formparam(array('text', 'meta-keyword', 'listid', ''))); ?>" |
|
80 | + value="<?php echo $enc->attr($this->get('textData/meta-keyword/listid/' . $idx)); ?>" /> |
|
81 | + <textarea class="form-control item-meta-keyword-content" rows="2" name="<?php echo $enc->attr($this->formparam(array('text', 'meta-keyword', 'content', ''))); ?>" |
|
82 | + placeholder="<?php echo $enc->attr($this->translate('admin', 'Meta keywords')); ?>" ><?php echo $enc->attr($this->get('textData/meta-keyword/content/' . $idx)); ?></textarea> |
|
83 | 83 | </div> |
84 | 84 | </div> |
85 | 85 | <div class="form-group row optional"> |
86 | - <label class="col-lg-3 form-control-label"><?php echo $enc->html( $this->translate( 'admin', 'Meta description' ) ); ?></label> |
|
86 | + <label class="col-lg-3 form-control-label"><?php echo $enc->html($this->translate('admin', 'Meta description')); ?></label> |
|
87 | 87 | <div class="col-lg-9"> |
88 | - <input class="item-meta-description-listid" type="hidden" name="<?php echo $enc->attr( $this->formparam( array( 'text', 'meta-description', 'listid', '' ) ) ); ?>" |
|
89 | - value="<?php echo $enc->attr( $this->get( 'textData/meta-description/listid/' . $idx ) ); ?>" /> |
|
90 | - <textarea class="form-control item-meta-description-content" rows="6" name="<?php echo $enc->attr( $this->formparam( array( 'text', 'meta-description', 'content', '' ) ) ); ?>" |
|
91 | - placeholder="<?php echo $enc->attr( $this->translate( 'admin', 'Meta description' ) ); ?>"><?php echo $enc->attr( $this->get( 'textData/meta-description/content/' . $idx ) ); ?></textarea> |
|
88 | + <input class="item-meta-description-listid" type="hidden" name="<?php echo $enc->attr($this->formparam(array('text', 'meta-description', 'listid', ''))); ?>" |
|
89 | + value="<?php echo $enc->attr($this->get('textData/meta-description/listid/' . $idx)); ?>" /> |
|
90 | + <textarea class="form-control item-meta-description-content" rows="6" name="<?php echo $enc->attr($this->formparam(array('text', 'meta-description', 'content', ''))); ?>" |
|
91 | + placeholder="<?php echo $enc->attr($this->translate('admin', 'Meta description')); ?>"><?php echo $enc->attr($this->get('textData/meta-description/content/' . $idx)); ?></textarea> |
|
92 | 92 | </div> |
93 | 93 | </div> |
94 | 94 | </div> |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | |
100 | 100 | <div class="group-item card panel prototype"> |
101 | 101 | <div class="card-header header collapsed" role="tab" data-toggle="collapse" aria-expanded="false"> |
102 | - <select class="combobox-prototype text-langid" name="<?php echo $enc->attr( $this->formparam( array( 'text', 'langid', '' ) ) ); ?>"> |
|
102 | + <select class="combobox-prototype text-langid" name="<?php echo $enc->attr($this->formparam(array('text', 'langid', ''))); ?>"> |
|
103 | 103 | </select> |
104 | 104 | <div class="btn btn-secondary fa fa-plus"></div> |
105 | 105 | <div class="btn btn-danger fa fa-trash"></div> |
@@ -108,53 +108,53 @@ discard block |
||
108 | 108 | <div class="card-block panel-collapse collapse" role="tabpanel"> |
109 | 109 | <div class="col-lg-6"> |
110 | 110 | <div class="form-group row optional"> |
111 | - <label class="col-lg-3 form-control-label"><?php echo $enc->html( $this->translate( 'admin', 'Product name' ) ); ?></label> |
|
111 | + <label class="col-lg-3 form-control-label"><?php echo $enc->html($this->translate('admin', 'Product name')); ?></label> |
|
112 | 112 | <div class="col-lg-9"> |
113 | - <input class="item-name-listid" type="hidden" name="<?php echo $enc->attr( $this->formparam( array( 'text', 'name', 'listid', '' ) ) ); ?>" value="" /> |
|
114 | - <input class="form-control item-name-content" type="text" name="<?php echo $enc->attr( $this->formparam( array( 'text', 'name', 'content', '' ) ) ); ?>" |
|
115 | - placeholder="<?php echo $enc->attr( $this->translate( 'admin', 'Product name' ) ); ?>" value="" /> |
|
113 | + <input class="item-name-listid" type="hidden" name="<?php echo $enc->attr($this->formparam(array('text', 'name', 'listid', ''))); ?>" value="" /> |
|
114 | + <input class="form-control item-name-content" type="text" name="<?php echo $enc->attr($this->formparam(array('text', 'name', 'content', ''))); ?>" |
|
115 | + placeholder="<?php echo $enc->attr($this->translate('admin', 'Product name')); ?>" value="" /> |
|
116 | 116 | </div> |
117 | 117 | </div> |
118 | 118 | <div class="form-group row optional"> |
119 | - <label class="col-lg-3 form-control-label"><?php echo $enc->html( $this->translate( 'admin', 'Short description' ) ); ?></label> |
|
119 | + <label class="col-lg-3 form-control-label"><?php echo $enc->html($this->translate('admin', 'Short description')); ?></label> |
|
120 | 120 | <div class="col-lg-9"> |
121 | - <input class="item-short-listid" type="hidden" name="<?php echo $enc->attr( $this->formparam( array( 'text', 'short', 'listid', '' ) ) ); ?>" value="" /> |
|
122 | - <textarea class="form-control item-short-content" rows="2" name="<?php echo $enc->attr( $this->formparam( array( 'text', 'short', 'content', '' ) ) ); ?>" |
|
123 | - placeholder="<?php echo $enc->attr( $this->translate( 'admin', 'Short description' ) ); ?>" ></textarea> |
|
121 | + <input class="item-short-listid" type="hidden" name="<?php echo $enc->attr($this->formparam(array('text', 'short', 'listid', ''))); ?>" value="" /> |
|
122 | + <textarea class="form-control item-short-content" rows="2" name="<?php echo $enc->attr($this->formparam(array('text', 'short', 'content', ''))); ?>" |
|
123 | + placeholder="<?php echo $enc->attr($this->translate('admin', 'Short description')); ?>" ></textarea> |
|
124 | 124 | </div> |
125 | 125 | </div> |
126 | 126 | <div class="form-group row optional"> |
127 | - <label class="col-lg-3 form-control-label"><?php echo $enc->html( $this->translate( 'admin', 'Long description' ) ); ?></label> |
|
127 | + <label class="col-lg-3 form-control-label"><?php echo $enc->html($this->translate('admin', 'Long description')); ?></label> |
|
128 | 128 | <div class="col-lg-9"> |
129 | - <input class="item-long-listid" type="hidden" name="<?php echo $enc->attr( $this->formparam( array( 'text', 'long', 'listid', '' ) ) ); ?>" value="" /> |
|
130 | - <textarea class="form-control htmleditor-prototype item-long-content" rows="6" name="<?php echo $enc->attr( $this->formparam( array( 'text', 'long', 'content', '' ) ) ); ?>" |
|
131 | - placeholder="<?php echo $enc->attr( $this->translate( 'admin', 'Long description' ) ); ?>" ></textarea> |
|
129 | + <input class="item-long-listid" type="hidden" name="<?php echo $enc->attr($this->formparam(array('text', 'long', 'listid', ''))); ?>" value="" /> |
|
130 | + <textarea class="form-control htmleditor-prototype item-long-content" rows="6" name="<?php echo $enc->attr($this->formparam(array('text', 'long', 'content', ''))); ?>" |
|
131 | + placeholder="<?php echo $enc->attr($this->translate('admin', 'Long description')); ?>" ></textarea> |
|
132 | 132 | </div> |
133 | 133 | </div> |
134 | 134 | </div> |
135 | 135 | <div class="col-lg-6"> |
136 | 136 | <div class="form-group row optional"> |
137 | - <label class="col-lg-3 form-control-label"><?php echo $enc->html( $this->translate( 'admin', 'URL segment' ) ); ?></label> |
|
137 | + <label class="col-lg-3 form-control-label"><?php echo $enc->html($this->translate('admin', 'URL segment')); ?></label> |
|
138 | 138 | <div class="col-lg-9"> |
139 | - <input class="item-url-listid" type="hidden" name="<?php echo $enc->attr( $this->formparam( array( 'text', 'url', 'listid', '' ) ) ); ?>" value="" /> |
|
140 | - <input class="form-control item-url-content" type="text" name="<?php echo $enc->attr( $this->formparam( array( 'text', 'url', 'content', '' ) ) ); ?>" |
|
141 | - placeholder="<?php echo $enc->attr( $this->translate( 'admin', 'URL segment' ) ); ?>" value="" /> |
|
139 | + <input class="item-url-listid" type="hidden" name="<?php echo $enc->attr($this->formparam(array('text', 'url', 'listid', ''))); ?>" value="" /> |
|
140 | + <input class="form-control item-url-content" type="text" name="<?php echo $enc->attr($this->formparam(array('text', 'url', 'content', ''))); ?>" |
|
141 | + placeholder="<?php echo $enc->attr($this->translate('admin', 'URL segment')); ?>" value="" /> |
|
142 | 142 | </div> |
143 | 143 | </div> |
144 | 144 | <div class="form-group row optional"> |
145 | - <label class="col-lg-3 form-control-label"><?php echo $enc->html( $this->translate( 'admin', 'Meta keywords' ) ); ?></label> |
|
145 | + <label class="col-lg-3 form-control-label"><?php echo $enc->html($this->translate('admin', 'Meta keywords')); ?></label> |
|
146 | 146 | <div class="col-lg-9"> |
147 | - <input class="item-meta-keyword-listid" type="hidden" name="<?php echo $enc->attr( $this->formparam( array( 'text', 'meta-keyword', 'listid', '' ) ) ); ?>" value="" /> |
|
148 | - <textarea class="form-control item-meta-keyword-content" rows="2" name="<?php echo $enc->attr( $this->formparam( array( 'text', 'meta-keyword', 'content', '' ) ) ); ?>" |
|
149 | - placeholder="<?php echo $enc->attr( $this->translate( 'admin', 'Meta keywords' ) ); ?>" ></textarea> |
|
147 | + <input class="item-meta-keyword-listid" type="hidden" name="<?php echo $enc->attr($this->formparam(array('text', 'meta-keyword', 'listid', ''))); ?>" value="" /> |
|
148 | + <textarea class="form-control item-meta-keyword-content" rows="2" name="<?php echo $enc->attr($this->formparam(array('text', 'meta-keyword', 'content', ''))); ?>" |
|
149 | + placeholder="<?php echo $enc->attr($this->translate('admin', 'Meta keywords')); ?>" ></textarea> |
|
150 | 150 | </div> |
151 | 151 | </div> |
152 | 152 | <div class="form-group row optional"> |
153 | - <label class="col-lg-3 form-control-label"><?php echo $enc->html( $this->translate( 'admin', 'Meta description' ) ); ?></label> |
|
153 | + <label class="col-lg-3 form-control-label"><?php echo $enc->html($this->translate('admin', 'Meta description')); ?></label> |
|
154 | 154 | <div class="col-lg-9"> |
155 | - <input class="item-meta-description-listid" type="hidden" name="<?php echo $enc->attr( $this->formparam( array( 'text', 'meta-description', 'listid', '' ) ) ); ?>" value="" /> |
|
156 | - <textarea class="form-control item-meta-description-content" rows="6" name="<?php echo $enc->attr( $this->formparam( array( 'text', 'meta-description', 'content', '' ) ) ); ?>" |
|
157 | - placeholder="<?php echo $enc->attr( $this->translate( 'admin', 'Meta description' ) ); ?>"></textarea> |
|
155 | + <input class="item-meta-description-listid" type="hidden" name="<?php echo $enc->attr($this->formparam(array('text', 'meta-description', 'listid', ''))); ?>" value="" /> |
|
156 | + <textarea class="form-control item-meta-description-content" rows="6" name="<?php echo $enc->attr($this->formparam(array('text', 'meta-description', 'content', ''))); ?>" |
|
157 | + placeholder="<?php echo $enc->attr($this->translate('admin', 'Meta description')); ?>"></textarea> |
|
158 | 158 | </div> |
159 | 159 | </div> |
160 | 160 | </div> |
@@ -162,6 +162,6 @@ discard block |
||
162 | 162 | </div> |
163 | 163 | |
164 | 164 | </div> |
165 | -<?php echo $this->get( 'textBody' ); ?> |
|
165 | +<?php echo $this->get('textBody'); ?> |
|
166 | 166 | </div> |
167 | 167 | </div> |