<?php yii\widgets\Pjax::begin(['id' => 'grid-kpiresult-pjax', 'timeout' => 5000]); ?> <?php //echo $this->render('_search', ['model' => $searchModel]); ?> <br> <div class="box box-success"> <div class="box-header with-border"> <h3 class="box-title">จัดอันดับคะแนนระดับอำเภอ</h3> <div class="box-tools pull-right"> <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button> <button class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button> </div><!-- /.box-tools --> </div><!-- /.box-header --> <div class="box-body"> <?php echo GridView::widget(['id' => 'grid-kpiresult', 'dataProvider' => $dataProvider, 'tableOptions' => ['class' => 'table table-bordered table-striped table-hover'], 'panel' => ['type' => GridView::TYPE_PRIMARY, 'heading' => false], 'columns' => [['class' => 'kartik\\grid\\SerialColumn'], 'amp', 'amphur.Amp_Des', 'avg_score' => ['attribute' => 'คะแนนเฉลี่ย', 'format' => ['decimal', 2], 'value' => 'avgScore']]]); yii\widgets\Pjax::end(); ?> <!-- <div class="overlay"> <i class="fa fa-refresh fa-spin"></i> </div> --> </div><!-- /.box-body --> </div><!-- /.box -->
<?php echo Html::submitButton('Добавить', ['class' => 'btn btn-primary', 'name' => 'login-button']); ?> </div> </div> <?php ActiveForm::end(); \yii\widgets\Pjax::end(); Modal::end(); ?> <br> <br> <?php yii\widgets\Pjax::begin(['id' => 'categories_list_edit']); ?> <?php echo GridView::widget(['dataProvider' => $provider, 'tableOptions' => ['class' => 'table table-striped table-bordered editable_table'], 'columns' => [['class' => 'yii\\grid\\SerialColumn'], ['label' => 'Название', 'format' => 'raw', 'value' => function ($data) { return '<input type="text" class="form-control input-sm editable_field_input" style="height:25px; background:transparent;" value="' . $data['name'] . '"> <span class="glyphicon glyphicon-floppy-saved input_save_button" data-toggle="tooltip" data-placement="bottom" title="Сохранить" onclick="admin_api.request({id:' . $data['id'] . ', model:\'menu\', method:\'post\', attributes:{name: $(this).parent().find(\'input\').val() }})" ></span>'; }], ['label' => 'URI', 'format' => 'raw', 'value' => function ($data) { return '<input type="text" class="form-control input-sm editable_field_input" style="height:25px; background:transparent;" value="' . $data['url'] . '"> <span class="glyphicon glyphicon-floppy-saved input_save_button" data-toggle="tooltip" data-placement="bottom" title="Сохранить" onclick="admin_api.request({id:' . $data['id'] . ', model:\'menu\', method:\'post\', attributes:{url: $(this).parent().find(\'input\').val() }})" ></span>'; }], ['label' => 'Дата создания', 'format' => 'raw', 'value' => function ($data) { return '<span data-toggle="tooltip" data-placement="bottom" title="" data-original-title="Изменен: ' . Yii::$app->formatter->asDatetime($data['updated_at'] ? $data['updated_at'] : $data['created_at']) . '">' . Yii::$app->formatter->asDatetime($data['created_at']) . '</span>'; }], ['class' => 'yii\\grid\\ActionColumn', 'template' => ' {active} {delete}', 'buttons' => ['delete' => function ($url, $model) { return Html::a('<span onclick="admin_api.request({id:' . $model['id'] . ', model:\'menu\', method:\'delete\', confirm: \'Удалить пункт меню?\' })" class="glyphicon glyphicon-trash" style="color: red"></span>', '', ['title' => 'Удалить']); }, 'active' => function ($url, $model) { return Html::a('<span onclick="admin_api.request({id:' . $model['id'] . ', model:\'menu\', method:\'post\', attributes:{active:' . ($model['active'] ? '0' : '1') . '}})" class="glyphicon ' . ($model['active'] ? 'glyphicon-ok' : 'glyphicon-ban-circle') . ' " style="color: ' . ($model['active'] ? 'yellow' : 'gray') . ' "></span>', '', ['title' => $model['active'] ? 'Отключить' : 'Включить']); }]]]]); \yii\widgets\Pjax::end(); ?>
} ?> </div> </div> <div class="row"> <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12"> <h3 class="box-title" style="padding-bottom: 20px"> <i class="fa fa-th-list"></i> <?php echo Yii::t('app', 'List Subject Report'); ?> </h3> <div class="box view-item"> <div class="box-body"> <div class="subject-report-index"> <?php yii\widgets\Pjax::begin(); ?> <?php echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [['class' => 'yii\\grid\\SerialColumn'], 'subject', 'description:ntext', ['attribute' => 'is_status', 'class' => '\\pheme\\grid\\ToggleColumn', 'enableAjax' => false, 'filter' => ['1' => 'Active', '0' => 'Not Active']], ['class' => '\\common\\components\\CustomActionColumn']]]); ?> <?php yii\widgets\Pjax::begin(); ?> </div> </div> </div> </div> </div>
'tableOptions'=>['class'=>'table table-striped table-hover table-normal'], 'pager' => [ 'firstPageLabel' => 'First', 'lastPageLabel' => 'Last', ], 'columns' => [ 'client', 'name', 'id', [ 'attribute' => 'streetAddress', 'format' => 'html', 'value' => function($data) { return $data->streetAddress.'<br />'.$data->city.' '.$data->state.' '.$data->zipcode; }, 'label'=>'Property Address', ], [ 'attribute' => 'latitude', 'format' => 'html', 'value' => function($data) { return $data->latitude.'<br />'.$data->longitude; }, 'label'=>'Location', ], ], ]); ?> <?php yii\widgets\Pjax::end() ?> </div>