예제 #1
0
파일: spisok.php 프로젝트: tsyrya/mybriop
    <?php 
echo Html::beginTag('div', ['class' => 'form-container', 'style' => hasFilter() ? null : 'display:none']);
?>
    <?php 
$form = ActiveForm::begin(['method' => 'get', 'action' => [Yii::$app->controller->id . '/' . Yii::$app->controller->action->id]]);
?>

    <div class="row">
        <div class="col-md-4">
            <?php 
echo $form->field($filterModel, 'planProspektGod')->dropDownList(SpisokKursovFilterForm::planProspektGodItems());
?>

            <?php 
echo $form->field($filterModel, 'kategoriiSlushatelej')->widget(Select2::className(), ['data' => KategoriyaSlushatelya::find()->formattedAll(EntityQuery::CHECKBOX_LIST, 'nazvanie'), 'options' => ['placeholder' => '', 'multiple' => true], 'pluginOptions' => ['allowClear' => true]]);
?>
        </div>

        <div class="col-md-8">
            <?php 
echo $form->field($filterModel, 'nazvanie');
?>

            <?php 
echo $form->field($filterModel, 'rukovoditel')->widget(Select2::className(), ['data' => FizLico::findRukovoditeliKursov()->formattedAll(EntityQuery::DROP_DOWN, 'familiyaInicialy'), 'options' => ['placeholder' => ''], 'pluginOptions' => ['allowClear' => true]]);
?>

            <?php 
echo $form->field($filterModel, 'chasy')->widget(TouchSpin::className());
?>
예제 #2
0
파일: Kurs.php 프로젝트: agarb7/mybriop
 public function getKategoriiSlushatelejRel()
 {
     return $this->hasMany(KategoriyaSlushatelya::className(), ['id' => 'kategoriya_slushatelya'])->viaTable('kategoriya_slushatelya_kursa', ['kurs' => 'id']);
 }