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
|
<div class="company-performer-title style">О компании</div>
<div class="company-performer-txt style">
|
0eb4e7fc
Yarik
test
|
21
22
23
24
25
26
27
|
<?php
if(!empty( $company->userInfo->about )) {
echo $company->userInfo->about;
} else {
echo Yii::t('app', 'Not found');
}
?>
|
225c5168
Yarik
test
|
28
|
</div>
|
fbdb1f1c
Yarik
test
|
29
30
|
<?php
/*====Blocks for layout====*/
|
225c5168
Yarik
test
|
31
32
33
|
/*
* Use $projectProvider to obtain models for this block
*/
|
fbdb1f1c
Yarik
test
|
34
35
36
37
38
|
$this->beginBlock('our_objects');
?>
<div class="section-box-18">
<div class="box-wr">
<div class="box-all">
|
225c5168
Yarik
test
|
39
|
<div class="company-performer-type-title style">Наши объекты (<?= $projectProvider->totalCount ?>)</div>
|
fbdb1f1c
Yarik
test
|
40
41
42
43
44
45
46
47
48
49
50
51
|
<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
|
52
53
|
function initialize()
{
|
fbdb1f1c
Yarik
test
|
54
55
|
var start_position = new google.maps.LatLng('49', '33');
var settings = {
|
225c5168
Yarik
test
|
56
57
58
59
60
61
62
63
64
|
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
|
65
66
|
var map = new google.maps.Map(document.getElementById("map_canvas"), settings);
|
225c5168
Yarik
test
|
67
68
|
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
|
69
|
);
|
225c5168
Yarik
test
|
70
71
|
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
|
72
|
);
|
225c5168
Yarik
test
|
73
74
|
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
|
75
|
);
|
225c5168
Yarik
test
|
76
77
|
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
|
78
|
);
|
225c5168
Yarik
test
|
79
80
|
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
|
81
|
);
|
225c5168
Yarik
test
|
82
83
|
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
|
84
|
);
|
225c5168
Yarik
test
|
85
86
|
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
|
87
|
);
|
225c5168
Yarik
test
|
88
89
|
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
|
90
|
);
|
225c5168
Yarik
test
|
91
92
|
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
|
93
|
);
|
225c5168
Yarik
test
|
94
95
|
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
|
96
|
);
|
225c5168
Yarik
test
|
97
98
|
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
|
99
|
);
|
225c5168
Yarik
test
|
100
101
|
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
|
102
|
);
|
225c5168
Yarik
test
|
103
104
|
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
|
105
|
);
|
225c5168
Yarik
test
|
106
107
|
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
|
108
|
);
|
225c5168
Yarik
test
|
109
110
|
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
|
111
|
);
|
225c5168
Yarik
test
|
112
113
|
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
|
114
|
);
|
225c5168
Yarik
test
|
115
116
|
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
|
117
|
);
|
225c5168
Yarik
test
|
118
119
|
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
|
120
121
122
123
|
);
var markers = [];
|
225c5168
Yarik
test
|
124
125
126
127
128
129
|
var marker = new google.maps.Marker(
{
position : new google.maps.LatLng('49', '32.3'),
map : map, title : 'Marker Title2', icon : image1
}
);
|
fbdb1f1c
Yarik
test
|
130
131
|
markers.push(marker);
|
225c5168
Yarik
test
|
132
133
134
135
136
137
|
var marker = new google.maps.Marker(
{
position : new google.maps.LatLng('49', '36'),
map : map, title : 'Marker Title2', icon : image2
}
);
|
fbdb1f1c
Yarik
test
|
138
139
|
markers.push(marker);
|
225c5168
Yarik
test
|
140
141
142
143
144
145
|
var marker = new google.maps.Marker(
{
position : new google.maps.LatLng('49', '34.5'),
map : map, title : 'Marker Title3', icon : image18
}
);
|
fbdb1f1c
Yarik
test
|
146
147
|
markers.push(marker);
|
225c5168
Yarik
test
|
148
149
150
151
152
153
|
var marker = new google.maps.Marker(
{
position : new google.maps.LatLng('49', '35'),
map : map, title : 'Marker Title4', icon : image15
}
);
|
fbdb1f1c
Yarik
test
|
154
155
|
markers.push(marker);
|
fbdb1f1c
Yarik
test
|
156
157
|
var clusterStyles = [
{
|
225c5168
Yarik
test
|
158
159
|
url : '/images/markers/clasters.png', height : 36,
width : 36
|
fbdb1f1c
Yarik
test
|
160
161
162
|
}
];
|
225c5168
Yarik
test
|
163
164
165
166
167
|
markerClusterer = new MarkerClusterer(
map, markers, {
maxZoom : 10, gridSize : 100, styles : clusterStyles
}
);
|
fbdb1f1c
Yarik
test
|
168
169
170
171
172
173
174
175
|
}
</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
|
176
|
<span data-menu-bg="#bb0f3f" style="background: #bb0f3f"></span><a href="#">Жилые</a>
|
fbdb1f1c
Yarik
test
|
177
178
179
180
181
182
183
184
185
186
187
188
189
|
<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
|
190
|
<span data-menu-bg="#ea640b" style="background: #ea640b"></span><a href="#">Офисные</a>
|
fbdb1f1c
Yarik
test
|
191
192
193
194
195
196
|
<ul>
<li><a href="#">Коттеджи</a></li>
<li><a href="#">Гостиницы</a></li>
<li><a href="#">Базы отдыха</a></li>
</ul>
</li>
|
225c5168
Yarik
test
|
197
198
199
200
201
202
203
204
205
206
207
208
209
210
|
<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
|
211
212
213
214
215
216
217
218
219
220
221
|
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<?php
$this->endBlock();
$this->beginBlock('blog');
|
225c5168
Yarik
test
|
222
223
224
|
/**
* Use $blogProvider for this block
*/
|
0eb4e7fc
Yarik
test
|
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
|
if(!empty( $blogProvider->models )) {
?>
<div class="section-box-232">
<div class="box-wr">
<div class="box-all">
<?php
echo ListView::widget([
'dataProvider' => $blogProvider,
'options' => [
'class' => 'min-post-wr',
],
'itemView' => '_company_common_blog',
'itemOptions' => [
'class' => 'min-post-block',
],
'layout' => '{items}',
'viewParams' => [ 'parent_view' => $this ],
]);
?>
</div>
|
fbdb1f1c
Yarik
test
|
245
246
|
</div>
</div>
|
0eb4e7fc
Yarik
test
|
247
248
|
<?php
}
|
fbdb1f1c
Yarik
test
|
249
250
|
$this->endBlock();
$this->beginBlock('team');
|
225c5168
Yarik
test
|
251
252
253
|
/*
* User preloaded $company->teams models
*/
|
110087c2
Yarik
test
|
254
|
$teams = ArrayHelper::index($company->teams, 'team_id', 'department.name'); // Group team members according to their department
|
0eb4e7fc
Yarik
test
|
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
306
307
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
360
361
362
363
364
365
366
367
368
369
|
if(!empty( $teams )) {
?>
<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">
<div class="table-team-left">
<?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
}
?>
</div>
<div class="table-team-right">
<?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
}
?>
</div>
|
fbdb1f1c
Yarik
test
|
370
371
372
373
|
</div>
</div>
</div>
</div>
|
0eb4e7fc
Yarik
test
|
374
375
|
<?php
}
|
fbdb1f1c
Yarik
test
|
376
377
|
$this->endBlock();
$this->beginBlock('review');
|
0eb4e7fc
Yarik
test
|
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
|
if(!empty( $commentProvider->models )) {
?>
<div class="section-box-19">
<div class="box-wr">
<div class="box-all">
<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}',
]);
?>
<div class="company-performer-comm-see-all-butt style">
<?= Html::a('Читать все отзывы', [
'company/review',
'company_id' => $company->id,
'type' => ( !empty( $this->params[ 'type' ] ) ) ? $this->params[ 'type' ] : NULL,
]) ?>
</div>
|
110087c2
Yarik
test
|
404
|
</div>
|
fbdb1f1c
Yarik
test
|
405
406
|
</div>
</div>
|
0eb4e7fc
Yarik
test
|
407
408
|
<?php
}
|
fbdb1f1c
Yarik
test
|
409
410
411
|
$this->endBlock();
/*====End blocks for layout====*/
?>
|