62dba7d8
Mihail
add goods control...
|
1
|
<?php
|
b1a1ffd5
Mihail
add params to goo...
|
2
3
|
use yii\data\Sort;
use \yii\helpers\Html;
|
36a8dd60
Mihail
add pjax to goods...
|
4
|
use \yii\widgets\Pjax;
|
b1a1ffd5
Mihail
add params to goo...
|
5
6
7
|
$sort = new Sort([
'attributes' => [
|
8f02e664
Mihail
add multisort fun...
|
8
9
10
|
'box_or' => ['label' => 'Наличие'],
'delivery_or' => ['label' => 'Срок'],
'price_or' => [
|
89640009
Mihail
add sort function...
|
11
|
'default' => SORT_DESC,
|
8f02e664
Mihail
add multisort fun...
|
12
13
14
15
|
'label' => 'Цена'],
'box_cross' => ['label' => 'Наличие'],
'delivery_cross' => ['label' => 'Срок'],
'price_cross' => [
|
89640009
Mihail
add sort function...
|
16
|
'default' => SORT_DESC,
|
b13c67c3
Mihail
output price in g...
|
17
|
'label' => 'Цена'],
|
b1a1ffd5
Mihail
add params to goo...
|
18
19
|
],
]);
|
62dba7d8
Mihail
add goods control...
|
20
|
$this->registerCssFile('/css/BC2_catalog_zapchasti.css');
|
5b5bfa85
Administrator
VItaliy 22.12.2015
|
21
|
$this->registerJsFile('/js/jquery.tablesorter.min.js');
|
b13c67c3
Mihail
output price in g...
|
22
|
$this->registerJsFile('/js/goods.js');
|
36a8dd60
Mihail
add pjax to goods...
|
23
|
|
62dba7d8
Mihail
add goods control...
|
24
|
$this->params['breadcrumbs'][] = $this->title;
|
89640009
Mihail
add sort function...
|
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
// определим направление сортировки, для отображения стрелочек
// для оригинальной таблицы
if( empty($sort_params_or['price']) ){
$price_or_class = '';
}else{
$price_or_class = ($sort_params_or['price'] == 4)? 'arrow_up': 'arrow_downA';
}
if( empty($sort_params_or['delivery']) ){
$delivery_or_class = '';
}else{
$delivery_or_class = ($sort_params_or['delivery'] == 4)? 'arrow_up': 'arrow_downA';
}
if( empty($sort_params_or['box']) ){
$box_or_class = '';
}else{
$box_or_class = ($sort_params_or['box'] == 4)? 'arrow_up': 'arrow_downA';
}
// для кросс таблицы
if( empty($sort_params_cross['price']) ){
$price_cross_class = '';
}else{
$price_cross_class = ($sort_params_cross['price'] == 4)? 'arrow_up': 'arrow_downA';
}
if( empty($sort_params_cross['delivery']) ){
$delivery_cross_class = '';
}else{
$delivery_cross_class = ($sort_params_cross['delivery'] == 4)? 'arrow_up': 'arrow_downA';
}
if( empty($sort_params_cross['box']) ){
$box_cross_class = '';
}else{
$box_cross_class = ($sort_params_cross['box'] == 4)? 'arrow_up': 'arrow_downA';
}
|
62dba7d8
Mihail
add goods control...
|
60
61
|
?>
|
321296b9
Administrator
VItaliy 22.12.2015
|
62
|
|
62dba7d8
Mihail
add goods control...
|
63
64
65
66
67
68
69
70
71
|
<div class='vin table '>
<a href="" class='navigation'>Италавто</a>
<img src="/images/arrow_dots.png">
<a href="" class='navigation'>Расходные материалы</a>
<img src="/images/arrow_dots.png">
<a href="" class='navigation'>Электрооборудование</a>
<img src="/images/arrow_dots.png">
<a href="" class='navigation'>Акамуляторы(АКБ)</a>
<img src="/images/arrow_dots.png">
|
b13c67c3
Mihail
output price in g...
|
72
|
<span>Аккумулятор<span class='detail_name'> <?= "{$detailsModel->name}: {$detailsModel->brand}"?></span></span>
|
62dba7d8
Mihail
add goods control...
|
73
|
|
b13c67c3
Mihail
output price in g...
|
74
|
<p class="vin_article"><?= "{$detailsModel->name}: {$detailsModel->brand}"?></p>
|
f0a8acb5
Mihail
add sort function...
|
75
76
|
<div class="tovar_card">
<div class="search_span zapchasti">
|
62dba7d8
Mihail
add goods control...
|
77
|
|
f0a8acb5
Mihail
add sort function...
|
78
79
80
81
82
|
<img src="/images/car1.png" id="zapchasti_car">
<p>Укажите свой автомобиль
и мы предложим вам
еще Аккумуляторы (АКБ)</p>
<div class="selectize_item2">
|
62dba7d8
Mihail
add goods control...
|
83
84
|
|
f0a8acb5
Mihail
add sort function...
|
85
86
87
88
89
90
91
|
<select class="area">
<option value="" disabled="" selected="">Марка</option>
<option value="2">Выбери меня!</option>
<option value="3">Выбери меня!</option>
<option value="5">Меня!</option>
<option value="4">Меня</option>
</select>
|
62dba7d8
Mihail
add goods control...
|
92
|
|
f0a8acb5
Mihail
add sort function...
|
93
94
95
96
97
98
99
100
101
102
103
|
</div>
<button class="purple">Есть еще?</button>
</div>
<div class='note'>
<span id="modal_close_tip"><img src="/images/close_form.png"></span>
<p>
У нас есть еще<br>
45 Аккумуляторы (АКБ)<br>
Возможно что-то вам<br>
подойдет
</p>
|
62dba7d8
Mihail
add goods control...
|
104
|
</div>
|
62dba7d8
Mihail
add goods control...
|
105
|
|
f0a8acb5
Mihail
add sort function...
|
106
107
108
|
<table class='detail'>
<tr>
<td>
|
b13c67c3
Mihail
output price in g...
|
109
110
111
112
|
<?php
// <img src="/images/acamulator_big.png">
// <img src="/images/small_plus.png">
?>
|
f0a8acb5
Mihail
add sort function...
|
113
|
</td>
|
62dba7d8
Mihail
add goods control...
|
114
|
|
62dba7d8
Mihail
add goods control...
|
115
|
|
f0a8acb5
Mihail
add sort function...
|
116
|
<td>
|
b13c67c3
Mihail
output price in g...
|
117
118
119
120
|
<p class='bold_line'><?= "{$detailsModel->name}: {$detailsModel->brand}"?></p>
<p class="thin_line"><?= "{$detailsModel->description}"?></p>
|
f0a8acb5
Mihail
add sort function...
|
121
122
123
|
</td>
</tr>
<tr class="galery">
|
b13c67c3
Mihail
output price in g...
|
124
125
126
127
|
<?php
// <td><img src="/images/acamulator_small_gallery.png"><img src="/images/acamulator_small_gallery.png"></td>
?>
|
f0a8acb5
Mihail
add sort function...
|
128
129
130
131
|
</tr>
</table>
<img src="/images/arrow_rounded.png" class='arrow_rounded'>
</div>
|
62dba7d8
Mihail
add goods control...
|
132
133
134
135
|
</div>
<div class="vin href">
|
f0a8acb5
Mihail
add sort function...
|
136
|
<p class="button_grey" id="button_grey_card">Скрыть карточку товара</p>
|
62dba7d8
Mihail
add goods control...
|
137
138
139
140
|
</div>
<div class="vin tables">
<div class="first_section">
|
b13c67c3
Mihail
output price in g...
|
141
142
143
144
|
<p class="bold_line"><?= "{$detailsModel->description} {$detailsModel->brand} {$detailsModel->name}"?></p>
<p class="currency opposite" id="grivna">UAH</p>
<p class="currency active_button_purple1" id="dollars">USD</p>
<p class="currency opposite" id="euro">EUR</p>
|
89640009
Mihail
add sort function...
|
145
|
<?php Pjax::begin(['id' => 'original']); ?>
|
62dba7d8
Mihail
add goods control...
|
146
147
148
149
150
151
|
<table class="tovar_table" cellspacing="0" cellpadding="0" border="0">
<tbody><tr class="name">
<td class="small_width row_name">Фирма</td>
<td class="medium_width row_name">Номер детали</td>
<td class="large_width row_name">Описание</td>
<td class="row_select1 row_name"></td>
|
89640009
Mihail
add sort function...
|
152
153
154
|
<td class="right_large row_name link_sort <?= $box_or_class ?>"><?= $sort->link('box_or') ?></td>
<td class="right_small row_name link_sort <?= $delivery_or_class ?>"><?= $sort->link('delivery_or') ?></td>
<td class="right_medium row_name link_sort <?= $price_or_class ?>"><?= $sort->link('price_or') ?></td>
|
62dba7d8
Mihail
add goods control...
|
155
|
</tr>
|
b1a1ffd5
Mihail
add params to goo...
|
156
|
<?php
|
1412c23a
Mihail
add crocc search ...
|
157
158
159
160
161
162
|
echo \yii\widgets\ListView::widget([
'dataProvider' => $goods_data_provider,
'itemView' => 'one_item',
'summary' => '',
'layout' => "{items}"
]);
|
b1a1ffd5
Mihail
add params to goo...
|
163
|
?>
|
62dba7d8
Mihail
add goods control...
|
164
165
|
</tbody></table>
|
89640009
Mihail
add sort function...
|
166
|
<?php Pjax::end();?>
|
62dba7d8
Mihail
add goods control...
|
167
168
|
</div>
|
89640009
Mihail
add sort function...
|
169
170
|
<?php Pjax::begin(['id' => 'cross']); ?>
|
62dba7d8
Mihail
add goods control...
|
171
|
<div class="second_section">
|
f0a8acb5
Mihail
add sort function...
|
172
|
<p class="bold_line">Замены искомого производителя</p>
|
8f02e664
Mihail
add multisort fun...
|
173
|
<p </p>
|
62dba7d8
Mihail
add goods control...
|
174
|
<table class="tovar_table" cellspacing="0" cellpadding="0" border="0">
|
792c8a88
Mihail
work with goods o...
|
175
176
|
<tbody>
<tr class="name">
|
62dba7d8
Mihail
add goods control...
|
177
178
179
180
|
<td class="small_width row_name">Фирма</td>
<td class="medium_width row_name">Номер детали</td>
<td class="large_width row_name">Описание</td>
<td class="row_select1 row_name"></td>
|
89640009
Mihail
add sort function...
|
181
182
183
|
<td class="right_large row_name link_sort <?= $box_cross_class ?>"><?= $sort->link('box_cross') ?></td>
<td class="right_small row_name link_sort <?= $delivery_cross_class ?>"><?= $sort->link('delivery_cross') ?></td>
<td class="right_medium row_name link_sort <?= $price_cross_class ?>"><?= $sort->link('price_cross') ?></td>
|
62dba7d8
Mihail
add goods control...
|
184
|
</tr>
|
1412c23a
Mihail
add crocc search ...
|
185
186
187
188
189
190
191
192
|
<?php
echo \yii\widgets\ListView::widget([
'dataProvider' => $crosses_data_provider,
'itemView' => 'one_item',
'summary' => '',
'layout' => "{items}"
]);
?>
|
62dba7d8
Mihail
add goods control...
|
193
194
195
196
197
198
|
</tbody></table>
<div class="yellow_stock">
<img src="/images/yellow_squere.jpg"><p>В наличии на центральном складе ItalAuto, в Киеве</p>
</div>
</div>
|
89640009
Mihail
add sort function...
|
199
|
<?php Pjax::end();?>
|
62dba7d8
Mihail
add goods control...
|
200
|
</div>
|
62dba7d8
Mihail
add goods control...
|
201
|
|
f0a8acb5
Mihail
add sort function...
|
202
|
</div>
|
89640009
Mihail
add sort function...
|
203
|
|
e0e82549
OlenaKl
table
|
204
|
|
b1a1ffd5
Mihail
add params to goo...
|
205
|
|
5b5bfa85
Administrator
VItaliy 22.12.2015
|
206
|
<div class="modal fade" id="details_content_block" >
|
36a8dd60
Mihail
add pjax to goods...
|
207
|
<div class="modal-dialog table_details">
|
5b5bfa85
Administrator
VItaliy 22.12.2015
|
208
209
210
211
212
213
214
215
216
217
|
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
</div>
<div id="details_content">
</div>
</div>
</div>
</div>
|