results.php
1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
use yii\helpers\Html;
use yii\grid\GridView;
use yii\grid\SerialColumn;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $searchModel backend\models\CatalogSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Results';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="catalog-index">
<h1><?= Html::encode($this->title) ?></h1>
<?php // echo $this->render('_search', ['model' => $searchModel]);
$form = ActiveForm::begin(['action' => 'write']);
?>
<?= GridView::widget([
'dataProvider' => $dataProvider,
'columns' => [['class' => SerialColumn::className()],
['header' => $form->field($imp, 'first')->dropDownList(['1'=>'001', '2'=>'002']),
'attribute' => 'first' ],
'second',
'3',
'4',
'5',]
]); ?>
<div class="form-group">
<?= Html::submitButton(Yii::t('app', 'Записать в БД'), ['class' => 'btn btn-primary']) ?>
</div>
<?php ActiveForm::end() ?>
<?= Html::a('Вернуться', ['parser/index'], ['class' => 'btn btn-primary', 'name' => 'Return',]) ?>
</div>