Пример #1
0
$this->params['breadcrumbs'][] = $this->title;
echo $this->render('_top');
?>
<div class="row">
    <div class="col-lg-12">
        <div class="box box-primary">
            <div class="box-header">
                <a href="<?php 
echo yii\helpers\Url::to(['/statistic-report/']);
?>
" class="btn bg-maroon btn-flat pull-right"><i class="fa fa-bar-chart-o"></i> Statistics Reported</a>
            </div>
            <div class="box-body">
                <div class="classified-index">
                    <div class="classified-report-index">
                        <?php 
yii\widgets\Pjax::begin();
?>
                        <?php 
echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'summary' => '', 'columns' => [['class' => 'yii\\grid\\SerialColumn'], ['attribute' => 'subject_id', 'value' => 'subject.subject', 'filter' => yii\helpers\ArrayHelper::map(common\models\SubjectReport::find()->all(), 'id', 'subject')], 'classified_id', 'email_reporter:email', ['attribute' => 'checked', 'class' => '\\pheme\\grid\\ToggleColumn', 'enableAjax' => false, 'filter' => ['1' => 'Checked', '0' => 'Not Checked']], ['class' => 'yii\\grid\\ActionColumn', 'template' => '{view}']]]);
?>
                        <?php 
yii\widgets\Pjax::end();
?>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
Пример #2
0
 ?>
                 <div class="modal-body">
                     <div class="form-group">
                         <?php 
 echo $form->field($modelReport, 'classified_id')->hiddenInput(['value' => $row['id']])->label(false);
 ?>
                         <?php 
 echo $form->field($modelReport, 'type')->hiddenInput(['value' => $row['type']])->label(false);
 ?>
                         <?php 
 echo $form->field($modelReport, 'user_id')->hiddenInput(['value' => $row['user_id']])->label(false);
 ?>
                     </div>
                     <div class="form-group">
                         <?php 
 $subjectReport = common\models\SubjectReport::find()->all();
 $listData = \yii\helpers\ArrayHelper::map($subjectReport, 'id', 'subject');
 ?>
                         <?php 
 echo $form->field($modelReport, 'subject_id')->dropDownList($listData, ['prompt' => '-- Select Subject --']);
 ?>
                     </div>
                     <div class="form-group">
                         <?php 
 echo $form->field($modelReport, 'email_reporter')->textInput(['placeholder' => 'Your email']);
 ?>
                     </div>
                     <div class="form-group">
                         <?php 
 echo $form->field($modelReport, 'message')->textarea(['rows' => '8']);
 ?>