use app\entities\Kim; use app\helpers\Val; use yii\helpers\Html; use yii\web\View; /** * @var $kimRecords Kim[] * @var $this View */ ?> <?php foreach ($kimRecords as $kim) { ?> <div class="kim-block"> <p class="opisanie"><?php echo Val::asText($kim, 'opisanie'); ?> </p> <?php switch ($kim->getType()) { case Kim::TYPE_TEXT: echo Html::a('показать текст', ['/kurs-slushatelyu/kim-tekst', 'kim' => $kim->hashids]); break; case Kim::TYPE_FAJL: echo Html::a($kim->fajlRel->vneshnee_imya_fajla, $kim->fajlRel->uri); break; case Kim::TYPE_URI: echo Html::a('внешняя ссылка', $kim->uri); break; } ?>
echo Val::asText($temaRecord, 'formaKontrolyaVTechenieKursaRel', 'nazvanie'); ?> </div> </div> <?php } ?> <?php if ($temaRecord->umkRel) { ?> <div class="umk-set-block"><?php echo $this->render('_umk-set', ['umkRecords' => $temaRecord->umkRel]); ?> </div> <?php } if ($temaRecord->kimRel) { ?> <div class="kim-set-block"><?php echo $this->render('_kim-set', ['kimRecords' => $temaRecord->kimRel]); ?> </div> <?php } ?> <p><?php echo Val::asText($temaRecord, 'soderzhanie'); ?> </p>
<?php use app\entities\KursExtended; use app\helpers\Val; use yii\web\View; /** * @var $kursRecord KursExtended * @var $this View */ $this->title = Val::asText($kursRecord, 'nazvanie'); ?> <div class="kursslushatelyu-programmakursa"> <p>Программа для курса <b>"<?php echo Val::asText($kursRecord, 'nazvanie'); ?> "</b> пока ещё не загружена в систему.</p> </div>
<?php use app\entities\RazdelKursa; use app\helpers\Val; use yii\web\View; /** * @var $razdelRecord RazdelKursa * @var $this View */ $prefixNo = Val::of($razdelRecord, 'nomer'); ?> <h2><?php echo Val::asText($razdelRecord, 'nazvanieDlyaRazdelaKursaRel', 'nazvanie'); ?> </h2> <?php $query = $razdelRecord->getPodrazdelyKursaRel()->orderBy('nomer'); foreach ($query->all() as $podrazdelRecord) { echo $this->render('_podrazdel-kursa', compact('podrazdelRecord', 'prefixNo')); }
<?php if (ArrayHelper::getValue($podrazdelRecord, 'chasy_kontrolya') || ArrayHelper::getValue($podrazdelRecord, ['formaKontrolyaVTechenieKursaRel', 'nazvanie'])) { ?> <div class="kontrol-block"> <div class="inner"> <dl> <dt>Форма</dt> <dd><?php echo Val::asText($podrazdelRecord, 'formaKontrolyaVTechenieKursaRel', 'nazvanie'); ?> </dd> <dt>Часы</dt> <dd><?php echo Val::asText($podrazdelRecord, 'chasy_kontrolya'); ?> </dd> </dl> </div> </div> <?php } if ($podrazdelRecord->umkRel) { ?> <div class="umk-set-block"><?php echo $this->render('_umk-set', ['umkRecords' => $podrazdelRecord->umkRel]); ?> </div> <?php }
<dd><?php echo Val::asText($kursRecord, 'formaItogovojAttestaciiKursaRel', 'nazvanie'); ?> </dd> <dt>Часы</dt> <dd><?php echo Val::asText($kursRecord, 'chasy_itogovoj_attestacii'); ?> </dd> <dt>Итоговая аттестация</dt> <dd><?php echo Val::asText($kursRecord, 'itogovaya_attestaciya'); ?> </dd> <dt>Итоговая аттестация (текст)</dt> <dd><?php echo Val::asText($kursRecord, 'itogovaya_attestaciya_tekst'); ?> </dd> </dl> </div> <h2>Литература</h2> <p><?php echo Val::format('ntext', $kursRecord, 'spisok_literatury'); ?> </p> </div>
use app\entities\Umk; use app\helpers\Val; use yii\helpers\Html; use yii\web\View; /** * @var $umkRecords Umk[] * @var $this View */ ?> <?php foreach ($umkRecords as $umk) { ?> <div class="umk-block"> <p class="opisanie"><?php echo Val::asText($umk, 'opisanie'); ?> </p> <?php switch ($umk->getType()) { case Umk::TYPE_FAJL: echo Html::a($umk->fajlRel->vneshnee_imya_fajla, $umk->fajlRel->uri); break; case Umk::TYPE_URI: echo Html::a('внешняя ссылка', $umk->uri); break; } ?> </div> <?php }