fbdb1f1c
Yarik
test
|
1
|
<?php
|
225c5168
Yarik
test
|
2
|
/**
|
76f36646
Yarik
test
|
3
4
|
* @var View $this
* @var User $company
|
225c5168
Yarik
test
|
5
6
7
8
9
10
11
|
* @var ActiveDataProvider $projectProvider
* @var ActiveDataProvider $blogProvider
* @var ActiveDataProvider $commentProvider
*/
use common\models\User;
use yii\data\ActiveDataProvider;
use yii\helpers\ArrayHelper;
|
110087c2
Yarik
test
|
12
|
use yii\helpers\Html;
|
225c5168
Yarik
test
|
13
14
15
16
17
|
use yii\web\View;
use yii\widgets\ListView;
$this->params[ 'company' ] = $company;
$this->title = 'My Yii Application';
|
fbdb1f1c
Yarik
test
|
18
|
?>
|
225c5168
Yarik
test
|
19
20
21
22
|
<div class="company-performer-title style">О компании</div>
<div class="company-performer-txt style">
<?= $company->userInfo->about ?>
</div>
|
fbdb1f1c
Yarik
test
|
23
24
|
<?php
/*====Blocks for layout====*/
|
225c5168
Yarik
test
|
25
26
27
|
/*
* Use $projectProvider to obtain models for this block
*/
|
fbdb1f1c
Yarik
test
|
28
29
30
31
32
|
$this->beginBlock('our_objects');
?>
<div class="section-box-18">
<div class="box-wr">
<div class="box-all">
|
225c5168
Yarik
test
|
33
|
<div class="company-performer-type-title style">Наши объекты (<?= $projectProvider->totalCount ?>)</div>
|
fbdb1f1c
Yarik
test
|
34
35
36
37
38
39
40
41
42
43
44
45
|
<div class="settings-map-ul">
<ul>
<li><a href="#" class="active"><span>Последний год</span></a></li>
<li><a href="#"><span>Последние пять лет</span></a></li>
<li><a href="#"><span>Весь период</span></a></li>
</ul>
</div>
<div class="company-performer-type-map style">
<div class="section-box-map">
<div class="shadow-map"></div>
<div id="map_cloud" style="display: none;">
<script type="text/javascript">
|
225c5168
Yarik
test
|
46
47
|
function initialize()
{
|
fbdb1f1c
Yarik
test
|
48
49
|
var start_position = new google.maps.LatLng('49', '33');
var settings = {
|
225c5168
Yarik
test
|
50
51
52
53
54
55
56
57
58
|
zoom : 7, scrollwheel : true, 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 : true,
mapTypeId : google.maps.MapTypeId.ROADMAP
};
|
fbdb1f1c
Yarik
test
|
59
60
|
var map = new google.maps.Map(document.getElementById("map_canvas"), settings);
|
225c5168
Yarik
test
|
61
62
|
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
|
63
|
);
|
225c5168
Yarik
test
|
64
65
|
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
|
66
|
);
|
225c5168
Yarik
test
|
67
68
|
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
|
69
|
);
|
225c5168
Yarik
test
|
70
71
|
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
|
72
|
);
|
225c5168
Yarik
test
|
73
74
|
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
|
75
|
);
|
225c5168
Yarik
test
|
76
77
|
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
|
78
|
);
|
225c5168
Yarik
test
|
79
80
|
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
|
81
|
);
|
225c5168
Yarik
test
|
82
83
|
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
|
84
|
);
|
225c5168
Yarik
test
|
85
86
|
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
|
87
|
);
|
225c5168
Yarik
test
|
88
89
|
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
|
90
|
);
|
225c5168
Yarik
test
|
91
92
|
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
|
93
|
);
|
225c5168
Yarik
test
|
94
95
|
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
|
96
|
);
|
225c5168
Yarik
test
|
97
98
|
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
|
99
|
);
|
225c5168
Yarik
test
|
100
101
|
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
|
102
|
);
|
225c5168
Yarik
test
|
103
104
|
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
|
105
|
);
|
225c5168
Yarik
test
|
106
107
|
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
|
108
|
);
|
225c5168
Yarik
test
|
109
110
|
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
|
111
|
);
|
225c5168
Yarik
test
|
112
113
|
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
|
114
115
116
117
|
);
var markers = [];
|
225c5168
Yarik
test
|
118
119
120
121
122
123
|
var marker = new google.maps.Marker(
{
position : new google.maps.LatLng('49', '32.3'),
map : map, title : 'Marker Title2', icon : image1
}
);
|
fbdb1f1c
Yarik
test
|
124
125
|
markers.push(marker);
|
225c5168
Yarik
test
|
126
127
128
129
130
131
|
var marker = new google.maps.Marker(
{
position : new google.maps.LatLng('49', '36'),
map : map, title : 'Marker Title2', icon : image2
}
);
|
fbdb1f1c
Yarik
test
|
132
133
|
markers.push(marker);
|
225c5168
Yarik
test
|
134
135
136
137
138
139
|
var marker = new google.maps.Marker(
{
position : new google.maps.LatLng('49', '34.5'),
map : map, title : 'Marker Title3', icon : image18
}
);
|
fbdb1f1c
Yarik
test
|
140
141
|
markers.push(marker);
|
225c5168
Yarik
test
|
142
143
144
145
146
147
|
var marker = new google.maps.Marker(
{
position : new google.maps.LatLng('49', '35'),
map : map, title : 'Marker Title4', icon : image15
}
);
|
fbdb1f1c
Yarik
test
|
148
149
|
markers.push(marker);
|
fbdb1f1c
Yarik
test
|
150
151
|
var clusterStyles = [
{
|
225c5168
Yarik
test
|
152
153
|
url : '/images/markers/clasters.png', height : 36,
width : 36
|
fbdb1f1c
Yarik
test
|
154
155
156
|
}
];
|
225c5168
Yarik
test
|
157
158
159
160
161
|
markerClusterer = new MarkerClusterer(
map, markers, {
maxZoom : 10, gridSize : 100, styles : clusterStyles
}
);
|
fbdb1f1c
Yarik
test
|
162
163
164
165
166
167
168
169
|
}
</script>
</div>
<div id="map_canvas" style="width: 100%; height:100%;"></div>
<div class="company-performer-map-menu">
<ul class="content-menu-first">
<li>
|
225c5168
Yarik
test
|
170
|
<span data-menu-bg="#bb0f3f" style="background: #bb0f3f"></span><a href="#">Жилые</a>
|
fbdb1f1c
Yarik
test
|
171
172
173
174
175
176
177
178
179
180
181
182
183
|
<ul>
<li><a href="#">Жилые дома</a></li>
<li><a href="#">Виллы</a></li>
<li><a href="#">Коттеджи</a></li>
<li><a href="#">Гостиницы</a></li>
<li><a href="#">Базы отдыха</a></li>
<li><a href="#">Таунхаусы</a></li>
<li><a href="#">Квартиры</a></li>
<li><a href="#">Квартиры</a></li>
<li><a href="#">Квартиры</a></li>
</ul>
</li>
<li>
|
225c5168
Yarik
test
|
184
|
<span data-menu-bg="#ea640b" style="background: #ea640b"></span><a href="#">Офисные</a>
|
fbdb1f1c
Yarik
test
|
185
186
187
188
189
190
|
<ul>
<li><a href="#">Коттеджи</a></li>
<li><a href="#">Гостиницы</a></li>
<li><a href="#">Базы отдыха</a></li>
</ul>
</li>
|
225c5168
Yarik
test
|
191
192
193
194
195
196
197
198
199
200
201
202
203
204
|
<li><span data-menu-bg="#f7a901" style="background: #f7a901"></span><a href="#">Торговые</a>
</li>
<li><span data-menu-bg="#53a827" style="background: #53a827"></span><a href="#">Мосты</a>
</li>
<li><span data-menu-bg="#018232" style="background: #018232"></span><a href="#">Дороги</a>
</li>
<li><span data-menu-bg="#02857d" style="background: #02857d"></span><a href="#">Сооружения</a>
</li>
<li><span data-menu-bg="#019abf" style="background: #019abf"></span><a href="#">Склады</a>
</li>
<li><span data-menu-bg="#116da8" style="background: #116da8"></span><a href="#">Заводы</a>
</li>
<li><span data-menu-bg="#413e7f" style="background: #413e7f"></span><a href="#">Разное</a>
</li>
|
fbdb1f1c
Yarik
test
|
205
206
207
208
209
210
211
212
213
214
215
|
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<?php
$this->endBlock();
$this->beginBlock('blog');
|
225c5168
Yarik
test
|
216
217
218
|
/**
* Use $blogProvider for this block
*/
|
fbdb1f1c
Yarik
test
|
219
220
221
222
|
?>
<div class="section-box-232">
<div class="box-wr">
<div class="box-all">
|
225c5168
Yarik
test
|
223
|
<?php
|
110087c2
Yarik
test
|
224
225
226
227
228
229
230
231
232
233
|
echo ListView::widget([
'dataProvider' => $blogProvider,
'options' => [
'class' => 'min-post-wr',
],
'itemView' => '_company_common_blog',
'itemOptions' => [
'class' => 'min-post-block',
],
'layout' => '{items}',
|
76f36646
Yarik
test
|
234
|
'viewParams' => [ 'parent_view' => $this ],
|
110087c2
Yarik
test
|
235
|
]);
|
225c5168
Yarik
test
|
236
|
?>
|
fbdb1f1c
Yarik
test
|
237
238
239
240
241
242
|
</div>
</div>
</div>
<?php
$this->endBlock();
$this->beginBlock('team');
|
225c5168
Yarik
test
|
243
244
245
|
/*
* User preloaded $company->teams models
*/
|
110087c2
Yarik
test
|
246
|
$teams = ArrayHelper::index($company->teams, 'team_id', 'department.name'); // Group team members according to their department
|
fbdb1f1c
Yarik
test
|
247
248
249
250
251
252
|
?>
<div class="section-box-233">
<div class="box-wr">
<div class="box-all">
<div class="table-team-title style">Состав команды</div>
<div class="table-team-wr style">
|
fbdb1f1c
Yarik
test
|
253
|
<div class="table-team-left">
|
110087c2
Yarik
test
|
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
|
<?php
for($i = 0; $i < count($teams); $i = $i + 2) {
?>
<div class="tb-team-wr">
<table class="title-table" cellspacing="0" cellpadding="0" border="0">
<tr>
<td width="337">
<?php
if(!empty( array_keys($teams)[ $i ] )) {
echo array_keys($teams)[ $i ];
} else {
echo 'Не определен';
}
?>
</td>
<td align="center"></td>
</tr>
</table>
<table class="all-table-first" cellspacing="0" cellpadding="0" border="0">
<tr>
<td align="center" width="32"></td>
<td align="center" width="323">Ф.И.О.</td>
<td align="center" width="91">Опыт, лет</td>
</tr>
</table>
<table class="all-table" cellspacing="0" cellpadding="0" border="0">
<?php
foreach($teams[ array_keys($teams)[ $i ] ] as $team) {
?>
<tr>
<td align="center" width="32">
<?= Html::img('/images/portfolio-project/flag-img-1.jpg') ?>
</td>
<td align="center" width="323"><?= $team->lastname . ' ' . $team->firstname ?></td>
<td align="center" width="91">
<?php
if(!empty( $team->experience_from )) {
echo date('Y') - $team->experience_from;
} else {
echo 'Не указан';
}
?>
</td>
</tr>
<?php
}
?>
</table>
</div>
<?php
}
?>
|
fbdb1f1c
Yarik
test
|
306
307
|
</div>
<div class="table-team-right">
|
110087c2
Yarik
test
|
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
|
<?php
for($i = 1; $i < count($teams); $i = $i + 2) {
?>
<div class="tb-team-wr">
<table class="title-table" cellspacing="0" cellpadding="0" border="0">
<tr>
<td width="337">
<?php
if(!empty( array_keys($teams)[ $i ] )) {
echo array_keys($teams)[ $i ];
} else {
echo 'Не определен';
}
?>
</td>
<td align="center"></td>
</tr>
</table>
<table class="all-table-first" cellspacing="0" cellpadding="0" border="0">
<tr>
<td align="center" width="32"></td>
<td align="center" width="323">Ф.И.О.</td>
<td align="center" width="91">Опыт, лет</td>
</tr>
</table>
<table class="all-table" cellspacing="0" cellpadding="0" border="0">
<?php
foreach($teams[ array_keys($teams)[ $i ] ] as $team) {
?>
<tr>
<td align="center" width="32">
<?= Html::img('/images/portfolio-project/flag-img-1.jpg') ?>
</td>
<td align="center" width="323"><?= $team->lastname . ' ' . $team->firstname ?></td>
<td align="center" width="91">
<?php
if(!empty( $team->experience_from )) {
echo date('Y') - $team->experience_from;
} else {
echo 'Не указан';
}
?>
</td>
</tr>
<?php
}
?>
</table>
</div>
<?php
}
?>
|
fbdb1f1c
Yarik
test
|
360
361
362
363
364
365
366
367
368
369
370
371
|
</div>
</div>
</div>
</div>
</div>
<?php
$this->endBlock();
$this->beginBlock('review');
?>
<div class="section-box-19">
<div class="box-wr">
<div class="box-all">
|
110087c2
Yarik
test
|
372
373
374
375
376
377
378
379
380
381
382
383
384
385
|
<div class="company-performer-comm-title style">Отзывов: <?= $commentProvider->totalCount ?></div>
<?php
echo ListView::widget([
'dataProvider' => $commentProvider,
'options' => [
'class' => 'company-performer-comments-wr style',
],
'itemView' => '_company_common_review',
'itemOptions' => [
'class' => 'company-performer-comments-bl',
],
'layout' => '{items}',
]);
?>
|
225c5168
Yarik
test
|
386
|
<div class="company-performer-comm-see-all-butt style">
|
110087c2
Yarik
test
|
387
388
389
|
<?= Html::a('Читать все отзывы', [
'company/review',
'company_id' => $company->id,
|
76f36646
Yarik
test
|
390
|
'type' => (!empty($this->params['type']))?$this->params['type']:null,
|
110087c2
Yarik
test
|
391
392
|
]) ?>
</div>
|
fbdb1f1c
Yarik
test
|
393
394
395
396
397
398
399
|
</div>
</div>
</div>
<?php
$this->endBlock();
/*====End blocks for layout====*/
?>
|