eb7e82fb
Administrator
29.02.16
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<?php
/**
* @var yii\web\View $this
* @var User $user
*/
use common\models\User;
$this->params[ 'user' ] = $user;
$this->title = 'My Yii Application';
?>
<div class="performer-vacancy-vacant-title-reclam-wr style">
<div class="workplace-wr">
<div class="workplace-title style"><p>Опыт работы</p></div>
<div class="workplace-experience-wr style">
<?php foreach($user->jobs as $job): ?>
<div class="workplace-experience-post">
<div class="workplace-experience-post-title"><?= $job->name ?></div>
<div class="workplace-experience-post-date">
<?php
|
fd384984
Yarik
test
|
20
21
22
23
24
25
26
|
if(!empty( $job->date_start ) && !empty( $job->date_end )) {
echo \Yii::$app->formatter->asDate(strtotime($job->date_start), 'php:d.m.Y') . ' - ' . \Yii::$app->formatter->asDate(strtotime($job->date_end), 'php:d.m.Y') . ' (' . $job->expTime . ')';
} elseif(!empty( $job->date_start )) {
echo 'с ' . \Yii::$app->formatter->asDate(strtotime($job->date_start), 'php:d.m.Y') . ' (' . $job->expTime . ')';
} elseif(!empty( $job->date_end )) {
echo 'до ' . \Yii::$app->formatter->asDate(strtotime($job->date_end), 'php:d.m.Y');
}
|