eb7e82fb
Administrator
29.02.16
|
1
2
|
<?php
|
38a6e1dd
Yarik
test
|
3
4
|
use yii\helpers\ArrayHelper;
use \yii\helpers\Html;
|
eb7e82fb
Administrator
29.02.16
|
5
|
|
38a6e1dd
Yarik
test
|
6
7
8
9
|
/* @var $this yii\web\View
* @var $user common\models\User
*/
$this->params[ 'user' ] = $user;
|
eb7e82fb
Administrator
29.02.16
|
10
|
|
38a6e1dd
Yarik
test
|
11
|
$this->title = 'My Yii Application';
|
eb7e82fb
Administrator
29.02.16
|
12
13
14
|
?>
<div class="proektant-profile-content">
<div class="proektant-profile-hidden-txt">
|
38a6e1dd
Yarik
test
|
15
|
<?= $user->userInfo->about ?>
|
eb7e82fb
Administrator
29.02.16
|
16
17
18
|
</div>
<a href="#" class="profile-see-all"></a>
<div class="proektant-profile-courses-wr style">
|
38a6e1dd
Yarik
test
|
19
20
21
22
23
24
|
<?php foreach($educations as $education): ?>
<div class="proektant-profile-courses">
<div class="proektant-profile-courses-title">Образование:</div>
<div class="proektant-profile-courses-year"><?= isset( $education[ 'year_from' ] ) ? $education[ 'year_from' ] : '' ?>-<?= isset( $education[ 'year_to' ] ) ? $education[ 'year_to' ] : '' ?></div>
<div class="proektant-profile-courses-content"><?= isset( $education[ 'name' ] ) ? $education[ 'name' ] : '' ?></div>
</div>
|
eb7e82fb
Administrator
29.02.16
|
25
26
|
<?php endforeach; ?>
</div>
|
38a6e1dd
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
|
<?php
if(!empty( $user->jobs )) {
?>
<div class="proektant-profile-statistic-wr style">
<div class="proektant-profile-tb-blocks">
<div class="proektant-profile-stat-title">Статистика участия</div>
<div class="proektant-profile-stat-table">
<table cellspacing="0" cellpadding="0" border="0" width="100%" style="border: 1px solid #dfdfdf; border-radius: 4px;">
<tr>
<td width="284" style="border-left: none;">Компания</td>
<td width="75">Проекты</td>
<td width="117">Реализованные</td>
</tr>
<?php
foreach($user->jobs as $job) {
?>
<tr>
<td style="border-left: none"><?= $job->name ?></td>
<td><?= $job->total_count ?></td>
<td><?= $job->complete_count ?></td>
</tr>
<?php
}
?>
</table>
</div>
</div>
|
eb7e82fb
Administrator
29.02.16
|
54
|
</div>
|
38a6e1dd
Yarik
test
|
55
56
57
|
<?php
}
?>
|
eb7e82fb
Administrator
29.02.16
|
58
59
60
61
|
</div>
<div class="proektant-profile-sidebar-right">
<div class="style">
<div class="profile-phone-site style">
|
38a6e1dd
Yarik
test
|
62
63
64
65
66
67
|
<?= $this->render('/patrial/show_phone', [
'phones' => $phones,
]) ?>
<?= $this->render('/patrial/show_site', [
'sites' => $sites,
]) ?>
|
eb7e82fb
Administrator
29.02.16
|
68
69
70
|
</div>
<div class="profile-features style">
<ul>
|
38a6e1dd
Yarik
test
|
71
72
73
|
<li>
<span>География работ: </span><?= implode(',', array_filter(ArrayHelper::getColumn($user->portfolios, 'city'))) ?>
</li>
|
eb7e82fb
Administrator
29.02.16
|
74
75
76
|
<li><span>Местонахождение: </span><?= $user->userInfo->city ?></li>
<li>
<div class="features-tags features-tags-profile">
|
38a6e1dd
Yarik
test
|
77
|
<?php foreach($user->specializations as $specialization): ?>
|
eb7e82fb
Administrator
29.02.16
|
78
79
80
81
82
83
|
<span><a href="#"><?= $specialization->specialization_name ?></a>, </span>
<?php endforeach; ?>
</div>
</li>
<li><span>Работа с программами: </span><?= $soft ?></li>
<li><span>Гарантия: </span><?= $user->userInfo->guarantee ?> года</li>
|
38a6e1dd
Yarik
test
|
84
85
86
87
88
89
90
91
92
93
94
95
|
<li>
<span>Договор: </span><?= \Yii::$app->formatter->asBoolean($user->userInfo->contract) ?>
</li>
<li>
<span>Смета: </span><?= \Yii::$app->formatter->asBoolean($user->userInfo->estimate) ?>
</li>
<li>
<span>Закупка стройматериалов: </span><?= \Yii::$app->formatter->asBoolean($user->userInfo->purchase) ?>
</li>
<li>
<span>Доставка стройматериалов: </span><?= \Yii::$app->formatter->asBoolean($user->userInfo->delivery) ?>
</li>
|
eb7e82fb
Administrator
29.02.16
|
96
97
98
99
|
<li><span>Предоплата: </span><?= $user->userInfo->prepayment ?> %</li>
</ul>
</div>
<div class="profile-comments style">
|
32ed90fd
Yarik
test
|
100
|
<div class="company-performer-comm-title style">Отзывов: <?= count($user->comments) ?></div>
|
eb7e82fb
Administrator
29.02.16
|
101
|
<div class="company-performer-comments-wr style">
|
32ed90fd
Yarik
test
|
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
|
<?php
$count = ( count($user->comments) > 4 ) ? 4 : count($user->comments);
for($i = 0; $i < $count; $i++) {
?>
<div class="company-performer-comments-bl">
<?php
if(!empty( $user->comments[ $i ]->rating )) {
?>
<div class="rating">
<!--оценка-->
<input type="hidden" class="val" value="<?= $user->comments[ $i ]->rating->value ?>"/>
<!--количество голосов-->
<input type="hidden" class="votes" value="1"/>
</div>
<?php
}
?>
<div class="company-performer-comments-autor">Отзыв от: <?= $user->comments[$i]->user->name ?></div>
<div class="company-performer-comments-txt"><?= $user->comments[$i]->text ?></div>
<a href="#" class="company-comm-see-all"><span>Развернуть</span></a>
</div>
<?php
}
?>
|
eb7e82fb
Administrator
29.02.16
|
126
|
</div>
|
32ed90fd
Yarik
test
|
127
128
129
130
|
<div class="company-performer-comm-see-all-butt style">
<?php
echo Html::a('Читать все отзывы', ['performer/review', 'performer_id' => $user->id]);
?>
|
38a6e1dd
Yarik
test
|
131
|
</div>
|
eb7e82fb
Administrator
29.02.16
|
132
133
134
|
</div>
</div>
</div>
|