97fb6489
Yarik
test
|
1
2
|
<?php
|
2261f70a
Yarik
test
|
3
|
/**
|
d0f3b99f
Yarik
test
|
4
|
* @var View $this
|
2261f70a
Yarik
test
|
5
6
7
|
* @var Project $model
*/
use common\models\Project;
|
b5becf98
Yarik
test
|
8
|
use common\modules\comment\models\Comment;
|
0eb4e7fc
Yarik
test
|
9
|
use kartik\rating\StarRating;
|
2261f70a
Yarik
test
|
10
|
use \yii\helpers\Html;
|
d0f3b99f
Yarik
test
|
11
|
use yii\helpers\Url;
|
2261f70a
Yarik
test
|
12
13
|
use yii\web\View;
use yii\widgets\DetailView;
|
d0f3b99f
Yarik
test
|
14
|
use yii\widgets\Pjax;
|
97fb6489
Yarik
test
|
15
|
|
d0f3b99f
Yarik
test
|
16
|
$this->title = 'My Yii Application';
|
97fb6489
Yarik
test
|
17
|
?>
|
97fb6489
Yarik
test
|
18
19
|
<div class="section-box content">
<div class="section-box-tender">
|
7e6d3f52
Administrator
24.02.16
|
20
|
<div class="section-box-tender-title"><?= $model->name ?></div>
|
97fb6489
Yarik
test
|
21
22
23
24
25
|
<div class="section-box">
<div class="box-wr">
<div class="box-all">
<div class="tender-contract-wr style">
<div class="tender-contract-left">
|
d0f3b99f
Yarik
test
|
26
27
28
29
30
31
32
33
|
<?php if(!empty( $model->parent->name )): ?>
<div class="srch-prof-contract-button">ПОДРЯД</div>
<div class="srch-prof-contract-txt">
<span>Из заказа: </span><?= Html::a($model->parent->name, Url::toRoute([
'tender/view',
'tender_id' => $model->parent->project_id,
])) ?>
</div>
|
7e6d3f52
Administrator
24.02.16
|
34
|
<?php endif; ?>
|
97fb6489
Yarik
test
|
35
36
|
</div>
<div class="tender-contract-right">
|
d0f3b99f
Yarik
test
|
37
|
<span>Бюджет: <?= $model->budget ?> <?= $model->budgetCurrency->label ?></span>
|
97fb6489
Yarik
test
|
38
39
40
41
42
|
<img src="/images/tender/ico-1.png" alt=""/>
</div>
</div>
<div class="tender-date style">
<div class="srch-prof-params srch-prof-params-clock">
|
d0f3b99f
Yarik
test
|
43
|
<img src="/images/ico-clock.png" alt=""><span><?= Yii::$app->formatter->asDatetime($model->date_end, 'dd.MM.Y') ?></span>
|
97fb6489
Yarik
test
|
44
45
46
47
48
49
50
51
52
53
54
55
|
</div>
</div>
</div>
</div>
</div>
</div>
<div class="section-box-15 tender-page">
<div class="box-wr">
<div class="box-all">
<div class="section-box">
<div class="cabinet-message-read-autor-wr style">
<div class="cabinet-message-read-foto-wr">
|
d0f3b99f
Yarik
test
|
56
57
58
|
<div class="cabinet-message-read-foto">
<img src="<?= ( $model->user->userInfo->image ) ? : '' ?>" alt=""/>
</div>
|
97fb6489
Yarik
test
|
59
60
|
</div>
<div class="cab-mes-read-cont">
|
eb7e82fb
Administrator
29.02.16
|
61
|
<div class="cab-mes-read-cont-title"><?= $model->user->owner->name ?></div>
|
97fb6489
Yarik
test
|
62
|
<div class="cab-mes-read-cont-stars">
|
0eb4e7fc
Yarik
test
|
63
64
|
<?php
echo StarRating::widget([
|
d0f3b99f
Yarik
test
|
65
66
67
68
69
70
|
'name' => 'rating_company',
'value' => $model->user->userInfo->rating,
'pluginOptions' => [
'displayOnly' => true,
'size' => 'xxs',
],
|
0eb4e7fc
Yarik
test
|
71
72
|
]);
?>
|
97fb6489
Yarik
test
|
73
|
</div>
|
d0f3b99f
Yarik
test
|
74
|
<div class="cab-mes-read-cont-com"><?= count($model->user->comments) ?> отзывов</div>
|
97fb6489
Yarik
test
|
75
|
<div class="cab-mes-read-cont-soc">
|
d0f3b99f
Yarik
test
|
76
77
78
79
|
<?= Html::a(Html::img('/images/ico-fb.png'), "{$model->user->userInfo->social_fb}", [ 'target' => '_blank' ]) ?>
<?= Html::a(Html::img('/images/ico-tw.png'), "{$model->user->userInfo->social_t}", [ 'target' => '_blank' ]) ?>
<?= Html::a(Html::img('/images/ico-in.png'), "{$model->user->userInfo->social_in}", [ 'target' => '_blank' ]) ?>
<?= Html::a(Html::img('/images/ico-vk.png'), "{$model->user->userInfo->social_vk}", [ 'target' => '_blank' ]) ?>
|
97fb6489
Yarik
test
|
80
81
|
</div>
</div>
|
cc4e7c12
Yarik
test
|
82
83
84
85
86
87
88
|
<?php
if(!empty( \Yii::$app->user->identity )) {
?>
<div class="performance-vacancy-add-favorite">
<?php
if($model->isBookmarked) {
echo Html::a('', [ '#' ], [
|
3c618303
Yarik
test
|
89
|
'class' => 'artbox_bookmark_remove_project',
|
cc4e7c12
Yarik
test
|
90
91
92
93
|
'data-id' => $model->project_id,
]);
} else {
echo Html::a('', [ '#' ], [
|
3c618303
Yarik
test
|
94
|
'class' => 'artbox_bookmark_add_project',
|
cc4e7c12
Yarik
test
|
95
96
97
98
99
100
101
102
|
'data-id' => $model->project_id,
]);
}
?>
</div>
<?php
}
?>
|
97fb6489
Yarik
test
|
103
104
105
106
107
108
|
<div class="cab-mes-read-last-visit">
<div class="cab-mes-read-min-bl" style="width: 204px">
<div class="profile-phone-site style">
<div class="style">
<div class="profile-phone">
<img src="/images/sidebar-ico/ico-2.png" alt="">
|
d0f3b99f
Yarik
test
|
109
|
<span style="font-size: 13px" class="sidebar-views-txt">На сайте: </span><?= $model->user->liveTime ?>
|
97fb6489
Yarik
test
|
110
111
112
113
|
</div>
</div>
</div>
</div>
|
d0f3b99f
Yarik
test
|
114
115
116
117
118
119
120
121
122
123
|
<!-- <div class="cab-mes-read-min-bl">-->
<!-- <div class="profile-phone-site style">-->
<!-- <div class="style">-->
<!-- <div class="profile-phone" style="width: 175px">-->
<!-- <img src="/images/sidebar-ico/ico-4.png" alt="">-->
<!-- <span style="font-size: 13px" class="sidebar-views-txt">Последнее обновление:<br></span><p style="padding-left: 24px">1 ноября 2015</p>-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
|
97fb6489
Yarik
test
|
124
125
126
127
128
|
<div class="cab-mes-read-min-bl" style="margin-top: 25px; width: 204px">
<div class="profile-phone-site style">
<div class="style">
<div class="profile-phone">
<img src="/images/sidebar-ico/ico-3.png" alt="">
|
d0f3b99f
Yarik
test
|
129
130
|
<span style="font-size: 13px; margin-left: 7px" class="sidebar-views-txt">Последний визит:<br></span>
<p style="padding-left: 25px"><?= $model->user->userInfo->lastVisit ?></p>
|
97fb6489
Yarik
test
|
131
132
133
134
|
</div>
</div>
</div>
</div>
|
d0f3b99f
Yarik
test
|
135
136
137
138
139
140
141
142
|
<?php if($model->user->type == 2): ?>
<div class="cab-mes-read-min-bl" style="margin-top: 25px">
<div class="profile-phone-site style">
<div class="style">
<div class="profile-phone" style="width: 175px">
<img src="/images/sidebar-ico/ico-5.png" alt="">
<span style="font-size: 13px" class="sidebar-views-txt">Сотрудники: </span><?= $model->user->companyInfo->staff ?>
</div>
|
97fb6489
Yarik
test
|
143
144
145
|
</div>
</div>
</div>
|
eb7e82fb
Administrator
29.02.16
|
146
147
|
<?php endif; ?>
|
97fb6489
Yarik
test
|
148
|
<div class="cab-mes-read-min-bl" style="margin-top: 25px; width: 204px">
|
d0f3b99f
Yarik
test
|
149
150
151
152
153
154
155
|
<?php foreach($model->user->phones as $phone): ?>
<div class="profile-phone-site style">
<div class="style">
<div class="profile-phone">
<img src="/images/ico-phone.png" alt="">
<span style="margin-left: 3px"><?= $phone[ 'phone' ] ?></span>
</div>
|
97fb6489
Yarik
test
|
156
157
|
</div>
</div>
|
d0f3b99f
Yarik
test
|
158
|
<?php endforeach; ?>
|
97fb6489
Yarik
test
|
159
160
|
</div>
<div class="cab-mes-read-min-bl" style="margin-top: 25px">
|
d0f3b99f
Yarik
test
|
161
162
163
164
165
166
167
|
<?php foreach($model->user->site as $site): ?>
<div class="profile-phone-site style">
<div class="style">
<div class="profile-site">
<img src="/images/ico-site.png" alt="">
<a href="<?= $site[ 'site' ] ?>" target="_blank">Сайт</a>
</div>
|
97fb6489
Yarik
test
|
168
169
|
</div>
</div>
|
d0f3b99f
Yarik
test
|
170
|
<?php endforeach; ?>
|
97fb6489
Yarik
test
|
171
172
173
174
175
176
|
</div>
</div>
</div>
</div>
<div class="section-box-tender-navi">
|
d0f3b99f
Yarik
test
|
177
178
179
180
181
182
|
<?php if(!empty( $model->parent->name )): ?>
<span>Подряд</span>
<img src="/images/tender/ico-2.png" alt=""/><?= Html::a(Yii::t('app', 'Main project'), Url::toRoute([
'tender/view',
'tender_id' => $model->parent->project_id,
])) ?>
|
7e6d3f52
Administrator
24.02.16
|
183
|
<?php endif; ?>
|
97fb6489
Yarik
test
|
184
185
|
</div>
<div class="section-box-tender-info-wr">
|
b9a54f61
Yarik
test
|
186
|
<div class="tender-info-title style">Краткая информация о заказе</div>
|
97fb6489
Yarik
test
|
187
|
<div class="section-box-tender-txt">
|
7e6d3f52
Administrator
24.02.16
|
188
|
<?= $model->description ?>
|
97fb6489
Yarik
test
|
189
190
191
192
193
|
</div>
</div>
<div class="section-box-tender-tags-wr">
<div class="section-box-tender-tags-title style">Специализации</div>
<div class="section-box-tender-tags style">
|
d0f3b99f
Yarik
test
|
194
|
<?php foreach($model->specializations as $specialization): ?>
|
7e6d3f52
Administrator
24.02.16
|
195
196
|
<span><a href="#"><?= $specialization->specialization_name ?></a>, </span>
<?php endforeach; ?>
|
97fb6489
Yarik
test
|
197
198
199
200
201
202
203
204
205
206
207
|
</div>
</div>
</div>
</div>
</div>
<div class="section-box-map tender-map">
<div class="shadow-map"></div>
<div id="map_cloud" style="display: none;">
<script type="text/javascript">
|
d0f3b99f
Yarik
test
|
208
209
|
function initialize()
{
|
97fb6489
Yarik
test
|
210
211
|
var start_position = new google.maps.LatLng('56', '30');
var settings = {
|
d0f3b99f
Yarik
test
|
212
213
214
215
216
217
218
219
|
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 : true, mapTypeId : google.maps.MapTypeId.ROADMAP
};
|
97fb6489
Yarik
test
|
220
221
|
var map = new google.maps.Map(document.getElementById("map_canvas"), settings);
|
d0f3b99f
Yarik
test
|
222
223
|
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)
|
97fb6489
Yarik
test
|
224
225
|
);
|
d0f3b99f
Yarik
test
|
226
227
228
229
230
231
|
var marker = new google.maps.Marker(
{
position : new google.maps.LatLng('56', '35.3'), map : map,
title : 'Marker Title2', icon : image1
}
);
|
97fb6489
Yarik
test
|
232
233
234
235
236
237
|
}
</script>
</div>
<div id="map_canvas" style="width: 100%; height:100%;"></div>
</div>
|
0aa459ef
Виталий
git
|
238
239
240
241
242
243
244
245
246
247
|
<div class="section-box fix_padding_bottom_">
<div class="tabs_1 style">
<div class="tabs_list style" style="display: none">
<div class="box-wr">
<div class="box-all">
<ul>
<li class="active"><a href="#tabs_1">Заявки</a></li>
<li><a href="#tabs_2">Вопрос-Ответ</a></li>
</ul>
</div>
|
9a56c0e3
Виталий
git
|
248
|
</div>
|
0aa459ef
Виталий
git
|
249
|
|
d0f3b99f
Yarik
test
|
250
251
252
253
254
255
256
257
|
</div>
<div class="tabs_views-wr">
<div class="_tabs style">
<div class="box-wr">
<div class="box-all">
<?php
Pjax::begin();
|
0aa459ef
Виталий
git
|
258
259
260
261
262
263
264
265
266
267
268
269
|
echo \common\modules\comment\widgets\CommentWidget::widget([
'context' => $this,
'model' => $model::className(),
'model_id' => $model->project_id,
'comment_class' => \common\modules\comment\models\CommentProject::className(),
'class_options' => [
'scenario' => is_int(\Yii::$app->user->getId()) ? \common\modules\comment\models\Comment::SCENARIO_USER : \common\modules\comment\models\Comment::SCENARIO_GUEST,
'user_id' => \Yii::$app->user->getId(),
'guestComment' => false,
'status' => \common\modules\comment\models\CommentProject::STATUS_ACTIVE,
],
'list_options' => [
|
d0f3b99f
Yarik
test
|
270
|
'view' => 'list-project-comment',
|
0aa459ef
Виталий
git
|
271
272
273
274
275
276
277
278
279
280
281
|
'class' => 'section box tender-offer-proj-wr',
],
'form_options' => [
'view' => 'form-project-comment',
'tag' => 'div',
'class' => 'artbox_comment_form section-box tender-add-answer',
],
'options' => [
'tag' => false,
],
]);
|
d0f3b99f
Yarik
test
|
282
283
|
Pjax::end();
?>
|
9a56c0e3
Виталий
git
|
284
285
|
</div>
</div>
|
d0f3b99f
Yarik
test
|
286
287
288
289
290
291
|
</div>
<div class="_tabs style">
<div class="box-wr">
<div class="box-all">
<?php
Pjax::begin();
|
0aa459ef
Виталий
git
|
292
|
echo \common\modules\comment\widgets\CommentWidget::widget([
|
d0f3b99f
Yarik
test
|
293
294
295
296
297
|
'context' => $this,
'model' => $model->className(),
'model_id' => $model->project_id,
'comment_class' => \common\modules\comment\models\CommentProjectAnswer::className(),
'class_options' => [
|
0aa459ef
Виталий
git
|
298
299
300
301
302
303
304
305
306
307
|
'scenario' => is_int(\Yii::$app->user->getId()) ? \common\modules\comment\models\Comment::SCENARIO_USER : \common\modules\comment\models\Comment::SCENARIO_GUEST,
'user_id' => \Yii::$app->user->getId(),
'guestComment' => false,
'status' => \common\modules\comment\models\Comment::STATUS_ACTIVE,
],
'provider_options' => [
'pagination' => [
'pageSize' => 2,
],
],
|
d0f3b99f
Yarik
test
|
308
|
'success_options' => [
|
0aa459ef
Виталий
git
|
309
310
311
312
|
'tag' => 'div',
'content' => 'Вопрос успешно создан и появится как только будет получен ответ',
'class' => 'test-class-success',
],
|
d0f3b99f
Yarik
test
|
313
|
'list_options' => [
|
0aa459ef
Виталий
git
|
314
315
|
'view' => 'list-comment-question',
],
|
d0f3b99f
Yarik
test
|
316
317
318
319
|
'form_options' => [
'view' => 'form-comment-answer',
'tag' => 'span',
'class' => ( ( $model->user_id == \Yii::$app->user->id ) ? 'hidden' : '' ),
|
0aa459ef
Виталий
git
|
320
|
],
|
d0f3b99f
Yarik
test
|
321
|
'options' => [
|
0aa459ef
Виталий
git
|
322
|
'class' => 'proektant-comments-wr fix_te style',
|
ed4ee1f2
Yarik
test
|
323
|
],
|
0aa459ef
Виталий
git
|
324
|
]);
|
d0f3b99f
Yarik
test
|
325
326
|
Pjax::end();
?>
|
0aa459ef
Виталий
git
|
327
328
329
|
</div>
</div>
</div>
|
9a56c0e3
Виталий
git
|
330
331
332
333
|
</div>
</div>
|
d02fd466
Yarik
test
|
334
335
|
</div>
<script>
|
d0f3b99f
Yarik
test
|
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
|
$(document).ready(
function()
{
tabs_();
inputNumber();
tenderMark();
function inputNumber()
{
$("#commentproject-budget_from, #commentproject-budget_to, #commentproject-term_from, #commentproject-term_to")
.keypress(
function(e)
{
return 8 == e.which || e.which > 47 && e.which < 58 ? void 0 : !1
}
)
}
|
9a56c0e3
Виталий
git
|
352
|
|
d0f3b99f
Yarik
test
|
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
|
function tabs_()
{
$('.tabs_list').css('display', 'block')
$('._tabs').css({display : 'none'})
$('._tabs:first-child').css({display : 'block'})
$('.tabs_list ul li').click(
function()
{
$('.tabs_list ul li').removeClass('active')
$(this).addClass('active')
var index = $(this).index()
var tabs = $('._tabs')
tabs.css({display : 'none'})
$(tabs[index]).css({display : 'block'})
}
)
|
6668b7fe
Виталий
git
|
369
370
|
}
|
d0f3b99f
Yarik
test
|
371
372
373
374
375
376
377
378
379
380
381
|
function tenderMark()
{
var markParrent = $('.project_owner_control')
markParrent.addClass('_on')
for(var i = 0; i < markParrent.length; i++)
{
var markTxt = $(markParrent[i]).find('a.active')
console.log(markTxt.text())
$(markParrent[i]).find('p.new_mark_').html(markTxt.text())
markTxt.css({display : 'none'})
}
|
6668b7fe
Виталий
git
|
382
|
|
d0f3b99f
Yarik
test
|
383
384
385
386
387
388
389
390
391
392
393
394
395
396
|
markParrent.click(
function()
{
$(this).toggleClass('focus')
if($(this).hasClass('focus'))
{
$(this).addClass('shadow_')
var height = $(this).height()
var newHeight = ($(this).find('div').height()) + 2
$(this).css({height : (height + newHeight)})
markParrent.find('a').click(
function()
{
$(this).parent().prev().html($(this).text())
|
6668b7fe
Виталий
git
|
397
|
|
d0f3b99f
Yarik
test
|
398
399
400
401
402
403
404
405
406
|
}
)
} else
{
$(this).removeClass('shadow_')
$(this).css({height : 29})
}
}
)
|
6668b7fe
Виталий
git
|
407
|
|
d0f3b99f
Yarik
test
|
408
|
}
|
9a56c0e3
Виталий
git
|
409
410
|
}
|
d0f3b99f
Yarik
test
|
411
|
)
|
9a56c0e3
Виталий
git
|
412
413
|
</script>
<script>
|
d0f3b99f
Yarik
test
|
414
415
416
417
418
|
$('div.rating, div.rating-new').rating(
{
fx : 'full', readOnly : 'true', url : 'rating.php'
}
);
|
d02fd466
Yarik
test
|
419
|
</script>
|