Blame view

frontend/views/performer/workplace.php 2.26 KB
eb7e82fb   Administrator   29.02.16
1
2
3
4
5
6
7
8
9
10
11
12
  <?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">

0eb4e7fc   Yarik   test
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
          <?php

              if(!empty( $user->jobs )) {

                  ?>

                  <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

                                      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');

                                      }

                                  ?>

                              </div>

                              <div class="workplace-experience-post-vacancy"><?= $job->position ?></div>

c20d5820   Yarik   test
33
34
35
36
                              <div class="workplace-experience-post-vacancy">

                                  <span>Достижения:</span>

                                  <p><?=$job->achievement?></p>

                              </div>

0eb4e7fc   Yarik   test
37
38
                          </div>

                      <?php endforeach; ?>

eb7e82fb   Administrator   29.02.16
39
                  </div>

0eb4e7fc   Yarik   test
40
41
42
43
44
                  <?php

              } else {

                  echo Yii::t('app', 'Not found');

              }

          ?>

eb7e82fb   Administrator   29.02.16
45
      </div>

fbdb1f1c   Yarik   test
46
  </div>