Blame view

backend/views/parser/results.php 1.16 KB
a63b5418   Administrator   first_commit
1
2
3
4
  <?php
  
  use yii\helpers\Html;
  use yii\grid\GridView;
17693af2   Mihail   edit universal cs...
5
  use yii\grid\SerialColumn;
02e174a3   Mihail   work with custome...
6
  use yii\widgets\ActiveForm;
a63b5418   Administrator   first_commit
7
8
9
10
11
12
13
14
15
16
17
  
  /* @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>
02e174a3   Mihail   work with custome...
18
      <?php // echo $this->render('_search', ['model' => $searchModel]);
a63b5418   Administrator   first_commit
19
20
  
  
02e174a3   Mihail   work with custome...
21
22
      $form = ActiveForm::begin(['action' => 'write']);
          ?>
a63b5418   Administrator   first_commit
23
24
      <?= GridView::widget([
          'dataProvider' => $dataProvider,
17693af2   Mihail   edit universal cs...
25
          'columns' => [['class' => SerialColumn::className()],
02e174a3   Mihail   work with custome...
26
27
28
              ['header' => $form->field($imp, 'first')->dropDownList(['1'=>'001', '2'=>'002']),
              'attribute' => 'first' ],
              'second',
4fd43c25   Mihail   add detectStartPo...
29
30
31
              '3',
              '4',
              '5',]
a63b5418   Administrator   first_commit
32
33
      ]); ?>
  
02e174a3   Mihail   work with custome...
34
35
36
      <div class="form-group">
          <?= Html::submitButton(Yii::t('app', 'Записать в БД'), ['class' => 'btn btn-primary']) ?>
      </div>
4fd43c25   Mihail   add detectStartPo...
37
  
02e174a3   Mihail   work with custome...
38
      <?php ActiveForm::end() ?>
54ada04a   Mihail   add base classes ...
39
40
      <?= Html::a('Вернуться', ['parser/index'], ['class' => 'btn btn-primary', 'name' => 'Return',]) ?>
  
a63b5418   Administrator   first_commit
41
  </div>