Exemple #1
0
    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>
echo $model->annotaciya;
?>
</p>
    </div>
    <div class="row">
        <?php 
$srok_provedeniya = $model->srokProvedeniyaFormatted;
$div_opts = ['class' => $srok_provedeniya ? 'col-md-4' : 'col-md-6'];
?>
        <?php 
echo Html::beginTag('div', $div_opts);
?>
        <dl class="dl-horizontal">
            <dt>Руководитель</dt>
            <dd><?php 
echo Val::of($model, 'rukovoditelRel', 'fio');
?>
</dd>
            <dt>Объем часов</dt>
            <dd><?php 
echo $model->raschitanoChasov;
?>
</dd>
        </dl>
        <?php 
echo Html::endTag('div');
?>
        <?php 
echo Html::beginTag('div', $div_opts);
?>
        <dl class="dl-horizontal">
Exemple #3
0
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;
    }
    ?>
Exemple #4
0
<?php

use app\entities\Kim;
use app\helpers\Val;
/* @var $kimRecord Kim*/
?>
<div class="kursslushatelyu-kimtekst">
    <?php 
echo Val::format('paragraph', $kimRecord, 'text');
?>
</div>
Exemple #5
0
<?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

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>
Exemple #7
0
 private function populateByudzhetImpl()
 {
     $fiz_lico = FizLico::findOne($this->fizLico);
     if ($fiz_lico) {
         $this->pedStazh = $fiz_lico->pedStazh;
     }
     $rabota_fiz_lica = RabotaFizLica::find()->where(['fiz_lico' => $this->fizLico])->orderBy('id')->one();
     $dolzhnost_fiz_lica_na_rabote = $rabota_fiz_lica ? DolzhnostFizLicaNaRabote::find()->where(['rabota_fiz_lica' => $rabota_fiz_lica->id])->orderBy('id')->one() : null;
     if ($dolzhnost_fiz_lica_na_rabote) {
         list($this->dolzhnostId, $this->dolzhnostNazvanie) = DirectoryHelper::getForCombo(Dolzhnost::findOne($dolzhnost_fiz_lica_na_rabote->dolzhnost));
     }
     if ($dolzhnost_fiz_lica_na_rabote && ($stazh_v_dolzhnosti = StazhFizLica::findOne(['fiz_lico' => $this->fizLico, 'dolzhnost' => Val::of($dolzhnost_fiz_lica_na_rabote, 'dolzhnost')]))) {
         $this->stazhVDolzhnosti = $stazh_v_dolzhnosti->stazh;
     }
     if ($attestaciya_fiz_lica = $fiz_lico->attestaciyaFizLicaRel) {
         $this->kategoriya = $attestaciya_fiz_lica->kategoriya;
     }
     if ($obrazovanie_fiz_lica = ObrazovanieFizLica::find()->where(['fiz_lico' => $this->fizLico])->orderBy('id')->one()) {
         list($this->obrOrgId, $this->obrOrgNazvanie) = DirectoryHelper::getForCombo(Organizaciya::findOne($obrazovanie_fiz_lica->organizaciya));
         list($this->obrKvalifikaciyaId, $this->obrKvalifikaciyaNazvanie) = DirectoryHelper::getForCombo(Kvalifikaciya::findOne($obrazovanie_fiz_lica->kvalifikaciya));
         $this->obrDocTip = $obrazovanie_fiz_lica->dokumentObObrazovaniiTip;
         $this->obrDocSeriya = $obrazovanie_fiz_lica->dokumentObObrazovaniiSeriya;
         $this->obrDocNomer = $obrazovanie_fiz_lica->dokumentObObrazovaniiNomer;
         $this->obrDocData = DeprecatedDatePicker::fromDatetime($obrazovanie_fiz_lica->dokumentObObrazovaniiDataAsDate);
     }
     return $fiz_lico;
 }
Exemple #8
0
<?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 
}
Exemple #9
0
            <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>
Exemple #10
0
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 
}
Exemple #11
0
 /**
  * @inheritdoc
  */
 public static function find()
 {
     $cols = ['{{kurs}}.*', 'zapisanoSlushatelej' => 'coalesce(count({{slushatel}}.[[id]]),0)', 'isUserZapisan' => self::userZapisanCond(), 'userStatusKursa' => 'kurs_tek_polzovatelya.status'];
     return parent::find()->select($cols)->joinWith(['slushateliRel' => function ($q) {
         $q->from(['slushatel' => 'fiz_lico']);
     }])->joinWith(['kursyFizLicaRel' => function ($q) {
         $q->from(['kurs_tek_polzovatelya' => 'kurs_fiz_lica'])->onCondition(['kurs_tek_polzovatelya.fiz_lico' => Val::of(Yii::$app->user->fizLico, 'id')]);
     }])->groupBy(['kurs.id', 'kurs_tek_polzovatelya.id'])->with('rukovoditelRel', 'kategoriiSlushatelejRel');
 }