예제 #1
0
 public function actionIndex()
 {
     $table = Validation::generateTable();
     return $this->render('index', ['table' => $table]);
 }
예제 #2
0
파일: _form.php 프로젝트: pumi11/aau
echo Select2::widget(['name' => 'state_10', 'language' => 'ru', 'value' => $ur_l_id, 'data' => ArrayHelper::map($UrRecords, 'id', 'name'), 'options' => ['placeholder' => 'Юридическое лицо', 'id' => 'ur']]);
?>
    <br>
    <script>
        $(document).ready(function () {
            $('#ur').change(function () {
                window.location.href='?ur_l_id='+this.value;
            });
        });
    </script>


    <?php 
if ($apteki) {
    print $form->field($model, 'apteka_id')->dropDownList(ArrayHelper::map($apteki, 'id', 'address'), ['multiple' => false]);
    print Validation::generateTable(1, $model2);
    ?>


        <div class="form-group">
            <?php 
    echo Html::submitButton($model->isNewRecord ? 'Сформировать' : 'Отредактировать', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
    ?>
        </div>
        <?php 
}
?>

    <?php 
ActiveForm::end();
?>