fbdb1f1c
Yarik
test
|
1
|
<?php
|
ad6304d6
Yarik
test
|
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
/**
* @var View $this
* @var TenderSearch $model
* @var ActiveDataProvider $dataProvider
* @var array $specialization
* @var array $currencies
* @var array $payments
*/
use common\models\TenderSearch;
use kartik\select2\Select2;
use yii\data\ActiveDataProvider;
use \yii\helpers\Html;
use yii\web\JsExpression;
use yii\web\View;
use yii\widgets\ActiveForm;
use yii\widgets\ListView;
|
fbdb1f1c
Yarik
test
|
18
|
|
ad6304d6
Yarik
test
|
19
|
$this->title = 'My Yii Application';
|
fbdb1f1c
Yarik
test
|
20
21
22
23
24
25
26
|
?>
<div class="section-box content">
<div class="section-box-22">
<div class="box-wr">
<div class="box-all">
<div class="left-search-work">
|
ad6304d6
Yarik
test
|
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
60
61
62
63
64
65
66
67
68
69
70
71
72
|
<?php
$form = ActiveForm::begin([
'method' => 'get',
'options' => [ 'class' => 'search-work-form' ],
'action' => [ '' ],
]);
echo $form->field($model, 'specialization')
->dropDownList($specialization, [ 'prompt' => 'Любая' ]);
echo $form->field($model, 'city')
->widget(Select2::classname(), [
'options' => [ 'placeholder' => 'Выбор города ...' ],
'pluginOptions' => [
'allowClear' => true,
'minimumInputLength' => 3,
'ajax' => [
'url' => \yii\helpers\Url::to([ 'site/city' ]),
'dataType' => 'json',
'data' => new JsExpression('function(params) { return {q:params.term}; }'),
],
'escapeMarkup' => new JsExpression('function (markup) { return markup; }'),
'templateResult' => new JsExpression('function(city) { return city.text; }'),
'templateSelection' => new JsExpression('function (city) { return city.text; }'),
],
]);
?>
<div class="blocks-check-list-wrapp">
<div class="blocks-check-title">Бюджет</div>
<div class="form-price-wr">
<?= $form->field($model, 'budget_from', [
'template' => "{input}\n{error}",
'options' => [ 'tag' => 'span' ],
])
->textInput([ 'placeholder' => $model->getAttributeLabel('budget_from') ]) ?>
<?= $form->field($model, 'budget_to', [
'template' => "{input}\n{error}",
'options' => [ 'tag' => 'span' ],
])
->textInput([ 'placeholder' => $model->getAttributeLabel('budget_to') ]) ?>
<?= $form->field($model, 'budget_currency', [
'template' => "{input}\n{error}",
'options' => [ 'class' => 'blocks-check-list-wrapp check-valuta' ],
])
->dropDownList($currencies) ?>
</div>
|
2261f70a
Yarik
test
|
73
74
75
76
77
|
<?= $form->field($model, 'contractual', [
'template' => "{input}\n{label}\n{hint}\n{error}",
'options' => [ 'class' => 'blocks-check-list' ],
])
->label("<span></span>{$model->getAttributeLabel('contractual')}", ['class' => ''])
|
be662d1f
Yarik
test
|
78
|
->checkbox([ ], false) ?>
|
ad6304d6
Yarik
test
|
79
80
81
82
|
<?= $form->field($model, 'payment', [ 'template' => "{input}\n{error}" ])
->checkboxList($payments, [
'item' => function($index, $label, $name, $checked, $value) {
$return = '<div class="blocks-check-list">';
|
2261f70a
Yarik
test
|
83
84
|
$return .= '<input type="checkbox" ' . ( $checked ? "checked" : "" ) . ' name="' . $name . '" class="check-search" value="' . $value . '" id="theme-' . $index . '">';
$return .= '<label for="theme-' . $index . '"><span></span>' . $label . '</label>';
|
ad6304d6
Yarik
test
|
85
86
|
$return .= '</div>';
return $return;
|
2261f70a
Yarik
test
|
87
|
},
|
ad6304d6
Yarik
test
|
88
89
90
91
92
93
94
95
96
97
98
|
]); ?>
</div>
<div class="blocks-check-list-submit">
<?php
echo Html::submitInput('Найти');
?>
</div>
<?php
$form->end();
/*
?>
|
fbdb1f1c
Yarik
test
|
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
|
<form action="" class="search-work-form">
<div class="blocks-check-list-wrapp">
<div class="blocks-check-title">Профиль</div>
<div class="blocks-check-list-wrapp">
<select>
<option selected disabled>Дизайн</option>
<option value="">Ландшафтный дизайн</option>
<option value="">Интерьерный дизайн</option>
</select>
</div>
<div class="blocks-check-list-wrapp">
<select>
<option selected disabled>Архитектура</option>
<option value="">Ландшафтный дизайн</option>
<option value="">Интерьерный дизайн</option>
</select>
</div>
<div class="blocks-check-list-wrapp">
<select>
<option selected disabled>Строительство</option>
<option value="">Ландшафтный дизайн</option>
<option value="">Интерьерный дизайн</option>
</select>
</div>
</div>
<div class="blocks-check-list-wrapp">
<div class="blocks-check-title">Регион</div>
<select>
<option selected value="">Все страны</option>
|
ad6304d6
Yarik
test
|
132
|
<option style="color: #000; font-weight: bold !important;" value="">Украина</option>
|
fbdb1f1c
Yarik
test
|
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
|
<option value="">Россия</option>
<option value="">Белорусь</option>
</select>
</div>
<div class="blocks-check-list-wrapp">
<select id="theme-1">
<option selected disabled>Город</option>
<option value="">Все</option>
<option value="">Киев</option>
<option value="">Житомир</option>
<option value="">Львов</option>
<option value="">Киев</option>
<option value="">Житомир</option>
<option value="">Львов</option>
</select>
</div>
<div class="blocks-check-list-wrapp">
<div class="blocks-check-title">Бюджет</div>
<div class="form-price-wr">
<input type="text" placeholder="от"/>
<input type="text" placeholder="до"/>
<div class="blocks-check-list-wrapp check-valuta">
<select>
<option selected>грн</option>
<option value="">$</option>
<option value="">eur</option>
</select>
</div>
</div>
<div class="blocks-check-list">
<input type="checkbox" name="group2" class="check-search" id="theme-4"><label for="theme-4"><span></span>Договорной</label>
</div>
|
eb7e82fb
Administrator
29.02.16
|
166
167
168
169
170
171
172
173
174
|
<div class="blocks-check-list">
<input type="checkbox" name="group2" class="check-search" id="theme-5"><label for="theme-5"><span></span>Компании</label>
</div>
<div class="blocks-check-list">
<input type="checkbox" name="group2" class="check-search" id="theme-6"><label for="theme-6"><span></span>Проектанты</label>
</div>
<div class="blocks-check-list">
<input checked type="checkbox" name="group2" class="check-search" id="theme-7"><label for="theme-7"><span></span>Все</label>
</div>
|
fbdb1f1c
Yarik
test
|
175
176
177
178
179
180
181
182
|
</div>
<a href="#" class="reset-filter">Сбросить фильтр</a>
<div class="blocks-check-list-submit">
<input type="submit" value="Найти"/>
</div>
</form>
|
2261f70a
Yarik
test
|
183
|
*/ ?>
|
fbdb1f1c
Yarik
test
|
184
185
|
</div>
<div class="right-search-work">
|
ad6304d6
Yarik
test
|
186
|
<div class="search-worker-title style">Сейчас <?= $dataProvider->totalCount ?> предложений</div>
|
fbdb1f1c
Yarik
test
|
187
|
<div class="search-profile-blocks-wr style">
|
ad6304d6
Yarik
test
|
188
189
190
191
192
|
<?= ListView::widget([
'dataProvider' => $dataProvider,
'itemView' => '_projects_list_view',
'layout' => "{items}\n<div class='navi-buttons-wr style navi-buttons-yet-wr'>{pager}</div>",
]); ?>
|
fbdb1f1c
Yarik
test
|
193
194
195
196
197
198
199
200
201
202
203
204
205
|
</div>
</div>
</div>
</div>
</div>
<div>
<div class="section-box" style="height: 720px; overflow: hidden">
<div class="map-settings-opacity"></div>
<div class="map-settings-wrapp">
<div class="min_markers-wrapp">
<ul class="min_markers">
|
ad6304d6
Yarik
test
|
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
|
<li class="active_m"><span></span>
<p>Все</p></li>
<li><span><img src="/images/markers/marker-min-1.png"/></span>
<p>Жилые</p></li>
<li><span><img src="/images/markers/marker-min-2.png"/></span>
<p>Офисные</p></li>
<li><span><img src="/images/markers/marker-min-3.png"/></span>
<p>Торговые</p></li>
<li><span><img src="/images/markers/marker-min-4.png"/></span>
<p>Мосты</p></li>
<li><span><img src="/images/markers/marker-min-5.png"/></span>
<p>Дороги</p></li>
<li><span><img src="/images/markers/marker-min-6.png"/></span>
<p>Сооружения</p></li>
<li><span><img src="/images/markers/marker-min-7.png"/></span>
<p>Склады</p></li>
<li><span><img src="/images/markers/marker-min-8.png"/></span>
<p>Заводы</p></li>
<li><span><img src="/images/markers/marker-min-9.png"/></span>
<p>Разное</p></li>
|
fbdb1f1c
Yarik
test
|
226
227
|
</ul>
<ul class="min_markers_two">
|
ad6304d6
Yarik
test
|
228
229
230
231
|
<li><span><img src="/images/markers/marker-min-10.png"/></span>
<p>проекты</p></li>
<li><span><img src="/images/markers/marker-min-11.png"/></span>
<p>подряды</p></li>
|
fbdb1f1c
Yarik
test
|
232
233
234
235
236
237
|
</ul>
</div>
</div>
<div class="slider-map"></div>
<div id="map_cloud" style="display: none;">
<script type="text/javascript">
|
ad6304d6
Yarik
test
|
238
239
|
function initialize()
{
|
fbdb1f1c
Yarik
test
|
240
241
|
var start_position = new google.maps.LatLng('56', '30');
var settings = {
|
ad6304d6
Yarik
test
|
242
243
244
245
246
247
248
249
|
zoom : 7, // scrollwheel: false,
center : start_position, mapTypeControl : false,
mapTypeControlOptions : {style : google.maps.MapTypeControlStyle.DROPDOWN_MENU},
navigationControl : false,
navigationControlOptions : {style : google.maps.NavigationControlStyle.SMALL},
scaleControl : false, streetViewControl : false, rotateControl : false,
zoomControl : false, mapTypeId : google.maps.MapTypeId.ROADMAP
};
|
fbdb1f1c
Yarik
test
|
250
251
|
var map = new google.maps.Map(document.getElementById("map_canvas"), settings);
|
ad6304d6
Yarik
test
|
252
253
|
var image1 = new google.maps.MarkerImage(
'/images/markers/marker-we-1.png', new google.maps.Size(21, 32), new google.maps.Point(0, 0), new google.maps.Point(16, 35)
|
fbdb1f1c
Yarik
test
|
254
|
);
|
ad6304d6
Yarik
test
|
255
256
|
var image2 = new google.maps.MarkerImage(
'/images/markers/marker-we-2.png', new google.maps.Size(21, 32), new google.maps.Point(0, 0), new google.maps.Point(16, 35)
|
fbdb1f1c
Yarik
test
|
257
|
);
|
ad6304d6
Yarik
test
|
258
259
|
var image3 = new google.maps.MarkerImage(
'/images/markers/marker-we-3.png', new google.maps.Size(21, 32), new google.maps.Point(0, 0), new google.maps.Point(16, 35)
|
fbdb1f1c
Yarik
test
|
260
|
);
|
ad6304d6
Yarik
test
|
261
262
|
var image4 = new google.maps.MarkerImage(
'/images/markers/marker-we-4.png', new google.maps.Size(21, 32), new google.maps.Point(0, 0), new google.maps.Point(16, 35)
|
fbdb1f1c
Yarik
test
|
263
|
);
|
ad6304d6
Yarik
test
|
264
265
|
var image5 = new google.maps.MarkerImage(
'/images/markers/marker-we-5.png', new google.maps.Size(21, 32), new google.maps.Point(0, 0), new google.maps.Point(16, 35)
|
fbdb1f1c
Yarik
test
|
266
|
);
|
ad6304d6
Yarik
test
|
267
268
|
var image6 = new google.maps.MarkerImage(
'/images/markers/marker-we-6.png', new google.maps.Size(21, 32), new google.maps.Point(0, 0), new google.maps.Point(16, 35)
|
fbdb1f1c
Yarik
test
|
269
|
);
|
ad6304d6
Yarik
test
|
270
271
|
var image7 = new google.maps.MarkerImage(
'/images/markers/marker-we-7.png', new google.maps.Size(21, 32), new google.maps.Point(0, 0), new google.maps.Point(16, 35)
|
fbdb1f1c
Yarik
test
|
272
|
);
|
ad6304d6
Yarik
test
|
273
274
|
var image8 = new google.maps.MarkerImage(
'/images/markers/marker-we-8.png', new google.maps.Size(21, 32), new google.maps.Point(0, 0), new google.maps.Point(16, 35)
|
fbdb1f1c
Yarik
test
|
275
|
);
|
ad6304d6
Yarik
test
|
276
277
|
var image9 = new google.maps.MarkerImage(
'/images/markers/marker-we-9.png', new google.maps.Size(21, 32), new google.maps.Point(0, 0), new google.maps.Point(16, 35)
|
fbdb1f1c
Yarik
test
|
278
|
);
|
ad6304d6
Yarik
test
|
279
280
|
var image10 = new google.maps.MarkerImage(
'/images/markers/marker-empl-1.png', new google.maps.Size(21, 32), new google.maps.Point(0, 0), new google.maps.Point(16, 35)
|
fbdb1f1c
Yarik
test
|
281
|
);
|
ad6304d6
Yarik
test
|
282
283
|
var image11 = new google.maps.MarkerImage(
'/images/markers/marker-empl-2.png', new google.maps.Size(21, 32), new google.maps.Point(0, 0), new google.maps.Point(16, 35)
|
fbdb1f1c
Yarik
test
|
284
|
);
|
ad6304d6
Yarik
test
|
285
286
|
var image12 = new google.maps.MarkerImage(
'/images/markers/marker-empl-3.png', new google.maps.Size(21, 32), new google.maps.Point(0, 0), new google.maps.Point(16, 35)
|
fbdb1f1c
Yarik
test
|
287
|
);
|
ad6304d6
Yarik
test
|
288
289
|
var image13 = new google.maps.MarkerImage(
'/images/markers/marker-empl-4.png', new google.maps.Size(21, 32), new google.maps.Point(0, 0), new google.maps.Point(16, 35)
|
fbdb1f1c
Yarik
test
|
290
|
);
|
ad6304d6
Yarik
test
|
291
292
|
var image14 = new google.maps.MarkerImage(
'/images/markers/marker-empl-5.png', new google.maps.Size(21, 32), new google.maps.Point(0, 0), new google.maps.Point(16, 35)
|
fbdb1f1c
Yarik
test
|
293
|
);
|
ad6304d6
Yarik
test
|
294
295
|
var image15 = new google.maps.MarkerImage(
'/images/markers/marker-empl-6.png', new google.maps.Size(21, 32), new google.maps.Point(0, 0), new google.maps.Point(16, 35)
|
fbdb1f1c
Yarik
test
|
296
|
);
|
ad6304d6
Yarik
test
|
297
298
|
var image16 = new google.maps.MarkerImage(
'/images/markers/marker-empl-7.png', new google.maps.Size(21, 32), new google.maps.Point(0, 0), new google.maps.Point(16, 35)
|
fbdb1f1c
Yarik
test
|
299
|
);
|
ad6304d6
Yarik
test
|
300
301
|
var image17 = new google.maps.MarkerImage(
'/images/markers/marker-empl-8.png', new google.maps.Size(21, 32), new google.maps.Point(0, 0), new google.maps.Point(16, 35)
|
fbdb1f1c
Yarik
test
|
302
|
);
|
ad6304d6
Yarik
test
|
303
304
|
var image18 = new google.maps.MarkerImage(
'/images/markers/marker-empl-9.png', new google.maps.Size(21, 32), new google.maps.Point(0, 0), new google.maps.Point(16, 35)
|
fbdb1f1c
Yarik
test
|
305
306
307
308
|
);
var markers = [];
|
ad6304d6
Yarik
test
|
309
310
311
312
313
314
|
var marker = new google.maps.Marker(
{
position : new google.maps.LatLng('56', '35.3'), map : map,
title : 'Marker Title2', icon : image1
}
);
|
fbdb1f1c
Yarik
test
|
315
316
|
markers.push(marker);
|
ad6304d6
Yarik
test
|
317
318
319
320
321
322
|
var marker = new google.maps.Marker(
{
position : new google.maps.LatLng('56', '36'), map : map,
title : 'Marker Title2', icon : image2
}
);
|
fbdb1f1c
Yarik
test
|
323
324
|
markers.push(marker);
|
ad6304d6
Yarik
test
|
325
326
327
328
329
330
|
var marker = new google.maps.Marker(
{
position : new google.maps.LatLng('56', '34.5'), map : map,
title : 'Marker Title3', icon : image18
}
);
|
fbdb1f1c
Yarik
test
|
331
332
|
markers.push(marker);
|
ad6304d6
Yarik
test
|
333
334
335
336
337
338
|
var marker = new google.maps.Marker(
{
position : new google.maps.LatLng('56', '35'), map : map,
title : 'Marker Title4', icon : image13
}
);
|
fbdb1f1c
Yarik
test
|
339
340
|
markers.push(marker);
|
fbdb1f1c
Yarik
test
|
341
342
|
var clusterStyles = [
{
|
ad6304d6
Yarik
test
|
343
|
url : '/images/markers/clasters.png', height : 36, width : 36
|
fbdb1f1c
Yarik
test
|
344
345
346
|
}
];
|
ad6304d6
Yarik
test
|
347
348
349
350
351
352
353
|
markerClusterer = new MarkerClusterer(
map, markers, {
maxZoom : 10, gridSize : 100, styles : clusterStyles
}
);
//балун
var infowindow = new google.maps.InfoWindow(
|
fbdb1f1c
Yarik
test
|
354
|
{
|
ad6304d6
Yarik
test
|
355
356
357
358
359
360
361
362
363
|
content : '<div style="width: 112px;"><a href="#" style="text-decoration: none; color: #333"><img style="width: 112px; height: 60px" src="/images/infowindow_marker_slider.jpg" alt=""/><p style="width: 100%; text-align: center; font-family: Ubuntu Bold; font-size: 11px;">Трц “Дарница”</p></a></div>'
}
);
google.maps.event.addListener(
marker, 'click', function()
{
infowindow.open(map, this);
}
);
|
fbdb1f1c
Yarik
test
|
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
|
}
</script>
</div>
<div id="map_canvas" style="width: 100%; height:100%;"></div>
<div class="slider_map-wr">
<div class="slider_map_overlay"></div>
<div class="slider_map">
<div id="demo5" class="scroll-img">
<ul>
<li>
<a href="#" class="slider_a">
<div class="slider-marker-bl">
<div class="slider-marker-bl-img">
<img src="/images/marker_slider.jpg" alt=""/>
</div>
<div class="slider-marker-bl-text">
<div class="slider-marker-bl-text-title">ТЦ «Дарница»</div>
<div class="slider-marker-bl-text-p">Киев, Днепровский район, проспект Воссоединения, 2/1 Район Днепровский</div>
</div>
</div>
</a>
</li>
<li>
<a href="#" class="slider_a">
<div class="slider-marker-bl">
<div class="slider-marker-bl-img">
<img src="/images/marker_slider.jpg" alt=""/>
</div>
<div class="slider-marker-bl-text">
<div class="slider-marker-bl-text-title">ТЦ «Дарница»</div>
<div class="slider-marker-bl-text-p">Киев, Днепровский район, проспект Воссоединения, 2/1 Район Днепровский</div>
</div>
</div>
</a>
</li>
<li>
<a href="#" class="slider_a">
<div class="slider-marker-bl">
<div class="slider-marker-bl-img">
<img src="/images/marker_slider.jpg" alt=""/>
</div>
<div class="slider-marker-bl-text">
<div class="slider-marker-bl-text-title">ТЦ «Дарница»</div>
<div class="slider-marker-bl-text-p">Киев, Днепровский район, проспект Воссоединения, 2/1 Район Днепровский</div>
</div>
</div>
</a>
</li>
<li>
<a href="#" class="slider_a">
<div class="slider-marker-bl">
<div class="slider-marker-bl-img">
<img src="/images/marker_slider.jpg" alt=""/>
</div>
<div class="slider-marker-bl-text">
<div class="slider-marker-bl-text-title">ТЦ «Дарница»</div>
<div class="slider-marker-bl-text-p">Киев, Днепровский район, проспект Воссоединения, 2/1 Район Днепровский</div>
</div>
</div>
</a>
</li>
<li>
<a href="#" class="slider_a">
<div class="slider-marker-bl">
<div class="slider-marker-bl-img">
<img src="/images/marker_slider.jpg" alt=""/>
</div>
<div class="slider-marker-bl-text">
<div class="slider-marker-bl-text-title">ТЦ «Дарница»</div>
<div class="slider-marker-bl-text-p">Киев, Днепровский район, проспект Воссоединения, 2/1 Район Днепровский</div>
</div>
</div>
</a>
</li>
<li>
<a href="#" class="slider_a">
<div class="slider-marker-bl">
<div class="slider-marker-bl-img">
<img src="/images/marker_slider.jpg" alt=""/>
</div>
<div class="slider-marker-bl-text">
<div class="slider-marker-bl-text-title">ТЦ «Дарница»</div>
<div class="slider-marker-bl-text-p">Киев, Днепровский район, проспект Воссоединения, 2/1 Район Днепровский</div>
</div>
</div>
</a>
</li>
</ul>
</div>
<div id="demo5-btn" class="text-center">
|
ad6304d6
Yarik
test
|
454
455
|
<a id="demo5-backward"></a>
<a id="demo5-forward"></a>
|
fbdb1f1c
Yarik
test
|
456
457
458
459
460
461
462
|
</div>
</div>
</div>
</div>
</div>
</div>
|