62dba7d8
Mihail
add goods control...
|
1
|
<?php
|
b1a1ffd5
Mihail
add params to goo...
|
2
3
4
5
6
|
use yii\data\Sort;
use \yii\helpers\Html;
$sort = new Sort([
'attributes' => [
|
8f02e664
Mihail
add multisort fun...
|
7
8
9
10
11
12
13
|
'box_or' => ['label' => 'Наличие'],
'delivery_or' => ['label' => 'Срок'],
'price_or' => [
'label' => 'Цена'],
'box_cross' => ['label' => 'Наличие'],
'delivery_cross' => ['label' => 'Срок'],
'price_cross' => [
|
b13c67c3
Mihail
output price in g...
|
14
|
'label' => 'Цена'],
|
b1a1ffd5
Mihail
add params to goo...
|
15
16
|
],
]);
|
62dba7d8
Mihail
add goods control...
|
17
|
$this->registerCssFile('/css/BC2_catalog_zapchasti.css');
|
5b5bfa85
Administrator
VItaliy 22.12.2015
|
18
|
$this->registerJsFile('/js/jquery.tablesorter.min.js');
|
b13c67c3
Mihail
output price in g...
|
19
|
$this->registerJsFile('/js/goods.js');
|
62dba7d8
Mihail
add goods control...
|
20
|
$this->params['breadcrumbs'][] = $this->title;
|
b1a1ffd5
Mihail
add params to goo...
|
21
|
\yii\widgets\Pjax::begin();
|
62dba7d8
Mihail
add goods control...
|
22
23
24
25
26
27
28
29
30
31
32
|
?>
<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...
|
33
|
<span>Аккумулятор<span class='detail_name'> <?= "{$detailsModel->name}: {$detailsModel->brand}"?></span></span>
|
62dba7d8
Mihail
add goods control...
|
34
|
|
b13c67c3
Mihail
output price in g...
|
35
|
<p class="vin_article"><?= "{$detailsModel->name}: {$detailsModel->brand}"?></p>
|
f0a8acb5
Mihail
add sort function...
|
36
37
|
<div class="tovar_card">
<div class="search_span zapchasti">
|
62dba7d8
Mihail
add goods control...
|
38
|
|
f0a8acb5
Mihail
add sort function...
|
39
40
41
42
43
|
<img src="/images/car1.png" id="zapchasti_car">
<p>Укажите свой автомобиль
и мы предложим вам
еще Аккумуляторы (АКБ)</p>
<div class="selectize_item2">
|
62dba7d8
Mihail
add goods control...
|
44
45
|
|
f0a8acb5
Mihail
add sort function...
|
46
47
48
49
50
51
52
|
<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...
|
53
|
|
f0a8acb5
Mihail
add sort function...
|
54
55
56
57
58
59
60
61
62
63
64
|
</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...
|
65
|
</div>
|
62dba7d8
Mihail
add goods control...
|
66
|
|
f0a8acb5
Mihail
add sort function...
|
67
68
69
|
<table class='detail'>
<tr>
<td>
|
b13c67c3
Mihail
output price in g...
|
70
71
72
73
|
<?php
// <img src="/images/acamulator_big.png">
// <img src="/images/small_plus.png">
?>
|
f0a8acb5
Mihail
add sort function...
|
74
|
</td>
|
62dba7d8
Mihail
add goods control...
|
75
|
|
62dba7d8
Mihail
add goods control...
|
76
|
|
f0a8acb5
Mihail
add sort function...
|
77
|
<td>
|
b13c67c3
Mihail
output price in g...
|
78
79
80
81
|
<p class='bold_line'><?= "{$detailsModel->name}: {$detailsModel->brand}"?></p>
<p class="thin_line"><?= "{$detailsModel->description}"?></p>
|
f0a8acb5
Mihail
add sort function...
|
82
83
84
|
</td>
</tr>
<tr class="galery">
|
b13c67c3
Mihail
output price in g...
|
85
86
87
88
|
<?php
// <td><img src="/images/acamulator_small_gallery.png"><img src="/images/acamulator_small_gallery.png"></td>
?>
|
f0a8acb5
Mihail
add sort function...
|
89
90
91
92
|
</tr>
</table>
<img src="/images/arrow_rounded.png" class='arrow_rounded'>
</div>
|
62dba7d8
Mihail
add goods control...
|
93
94
95
96
|
</div>
<div class="vin href">
|
f0a8acb5
Mihail
add sort function...
|
97
|
<p class="button_grey" id="button_grey_card">Скрыть карточку товара</p>
|
62dba7d8
Mihail
add goods control...
|
98
99
100
101
|
</div>
<div class="vin tables">
<div class="first_section">
|
b13c67c3
Mihail
output price in g...
|
102
103
104
105
|
<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>
|
62dba7d8
Mihail
add goods control...
|
106
107
108
109
110
111
|
<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>
|
8f02e664
Mihail
add multisort fun...
|
112
113
114
|
<td class="right_large row_name link_sort arrow_up"><?= $sort->link('box_or') ?></td>
<td class="right_small row_name link_sort arrow_up"><?= $sort->link('delivery_or') ?></td>
<td class="right_medium row_name link_sort arrow_up"><?= $sort->link('price_or') ?></td>
|
62dba7d8
Mihail
add goods control...
|
115
|
|
62dba7d8
Mihail
add goods control...
|
116
|
</tr>
|
b1a1ffd5
Mihail
add params to goo...
|
117
|
<?php
|
1412c23a
Mihail
add crocc search ...
|
118
119
120
121
122
123
|
echo \yii\widgets\ListView::widget([
'dataProvider' => $goods_data_provider,
'itemView' => 'one_item',
'summary' => '',
'layout' => "{items}"
]);
|
b1a1ffd5
Mihail
add params to goo...
|
124
|
?>
|
62dba7d8
Mihail
add goods control...
|
125
126
127
128
129
130
|
</tbody></table>
</div>
<div class="second_section">
|
f0a8acb5
Mihail
add sort function...
|
131
|
<p class="bold_line">Замены искомого производителя</p>
|
8f02e664
Mihail
add multisort fun...
|
132
|
<p </p>
|
62dba7d8
Mihail
add goods control...
|
133
|
<table class="tovar_table" cellspacing="0" cellpadding="0" border="0">
|
792c8a88
Mihail
work with goods o...
|
134
135
|
<tbody>
<tr class="name">
|
62dba7d8
Mihail
add goods control...
|
136
137
138
139
|
<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>
|
8f02e664
Mihail
add multisort fun...
|
140
141
142
|
<td class="right_large row_name link_sort arrow_up"><?= $sort->link('box_cross') ?></td>
<td class="right_small row_name link_sort arrow_up"><?= $sort->link('delivery_cross') ?></td>
<td class="right_medium row_name link_sort arrow_up"><?= $sort->link('price_cross') ?></td>
|
62dba7d8
Mihail
add goods control...
|
143
144
|
</tr>
|
1412c23a
Mihail
add crocc search ...
|
145
146
147
148
149
150
151
152
|
<?php
echo \yii\widgets\ListView::widget([
'dataProvider' => $crosses_data_provider,
'itemView' => 'one_item',
'summary' => '',
'layout' => "{items}"
]);
?>
|
62dba7d8
Mihail
add goods control...
|
153
154
155
156
157
158
159
|
</tbody></table>
<div class="yellow_stock">
<img src="/images/yellow_squere.jpg"><p>В наличии на центральном складе ItalAuto, в Киеве</p>
</div>
</div>
</div>
|
62dba7d8
Mihail
add goods control...
|
160
|
|
f0a8acb5
Mihail
add sort function...
|
161
|
</div>
|
5b5bfa85
Administrator
VItaliy 22.12.2015
|
162
|
|
f0a8acb5
Mihail
add sort function...
|
163
164
165
166
167
168
169
170
171
172
173
|
<script type="text/javascript">
function changeText() {
e = document.getElementById('button_grey_card');
e.innerHTML = e.innerHTML == "Скрыть карточку товара" ? "Открыть карточку товара" : "Скрыть карточку товара";
}
$('#button_grey_card').click(function(){
changeText();
$(this).toggleClass('change_b');
$('.tovar_card').toggleClass('tovar_card_visible');
$('.table').toggleClass('table_height');
});
|
9a153572
OlenaKl
V
|
174
|
$('.link_sort').click(function(){
|
14ab9e33
OlenaKl
V
|
175
|
|
5b5bfa85
Administrator
VItaliy 22.12.2015
|
176
|
$(this).find('.desc').toggleClass('arrow_downA');
|
9a153572
OlenaKl
V
|
177
178
|
})
|
b1a1ffd5
Mihail
add params to goo...
|
179
180
181
182
|
</script>
<?php
\yii\widgets\Pjax::end();
|
5b5bfa85
Administrator
VItaliy 22.12.2015
|
183
184
185
186
187
188
189
190
191
192
193
194
195
196
|
?>
<div class="modal fade" id="details_content_block" >
<div class="modal-dialog">
<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>
|