Ejemplo n.º 1
0
Archivo: index.php Proyecto: poykub/wph
            <div class="box box-success">
                <div class="box-header">
                    <h3 class="box-title"> Trigger List</h3>
                </div>
                <!-- /.box-header -->
                <div class="box-body">
                  <?php 
//$searchModel = new ModelSearch();
$dataProvider = $searchModel->search(Yii::$app->request->queryParams);
?>
                  <?php 
echo DataTables::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [['class' => 'yii\\grid\\SerialColumn'], ['label' => 'วันที่ Admit', 'format' => 'raw', 'value' => 'admit_date', 'contentOptions' => ['style' => 'max-width: 60px;']], ['label' => 'HN', 'format' => 'raw', 'value' => 'hn', 'contentOptions' => ['style' => 'max-width: 100px;']], 'admit_count', ['attribute' => 'disease', 'filter' => \app\models\Trigger::itemsAlias('step_ae'), 'value' => function ($model) {
    return $model->diagName;
}], 'level', ['attribute' => 'step', 'filter' => \app\models\Trigger::itemsAlias('step_ae'), 'value' => function ($model) {
    return $model->stepAeName;
}], ['attribute' => 'step_error', 'filter' => \app\models\Trigger::itemsAlias('step_error'), 'value' => function ($model) {
    return $model->stepErrorName;
}], ['class' => 'yii\\grid\\ActionColumn']], 'tableOptions' => ['class' => 'table table-striped table-bordered hover']]);
?>
                </div>
              </div>
            </div>
          </div>
        </div>


    <?php 
// echo $this->render('_search', ['model' => $searchModel]);
?>

<?php