本文整理汇总了PHP中kartik\date\DatePicker::widget方法的典型用法代码示例。如果您正苦于以下问题:PHP DatePicker::widget方法的具体用法?PHP DatePicker::widget怎么用?PHP DatePicker::widget使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类kartik\date\DatePicker
的用法示例。
在下文中一共展示了DatePicker::widget方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: function
<?php
Pjax::begin(['id' => 'nosGrid']);
?>
<?php
echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'export' => false, 'pjax' => true, 'rowOptions' => function ($model) {
//tällä värit search kolumneille
if ($model->nayte_lahetetty == 'Kyllä') {
return ['class' => 'success'];
//danger, warning, success
} else {
if ($model->nayte_lahetetty == 'Kyllä' && $model->analyysi_tehty == 'Kyllä') {
return ['class' => 'danger'];
}
}
}, 'columns' => [['class' => 'kartik\\grid\\ExpandRowColumn', 'value' => function ($model, $key, $index, $column) {
return GridView::ROW_COLLAPSED;
}, 'detail' => function ($model, $key, $index, $column) {
$searchModel = new NosSearch();
$searchModel->id = $model->id;
$dataProvider = $searchModel->search(Yii::$app->request->queryParams);
return Yii::$app->controller->renderPartial('_expand', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]);
}], 'luontipvm', 'tuote_id', 'bakteeri_id', ['attribute' => 'analyysi_tehty', 'filter' => Html::activeDropDownList($searchModel, 'analyysi_tehty', array("Kyllä" => "Kyllä", "Ei" => "Ei"), ['class' => 'form-control', 'prompt' => 'Kaikki'])], ['attribute' => 'nayte_lahetetty', 'filter' => Html::activeDropDownList($searchModel, 'nayte_lahetetty', array("Kyllä" => "Kyllä", "Ei" => "Ei"), ['class' => 'form-control', 'prompt' => 'Kaikki'])], ['attribute' => 'naytteenottopvm', 'value' => 'naytteenottopvm', 'format' => 'raw', 'filter' => DatePicker::widget(['model' => $searchModel, 'name' => 'check_issue_date', 'value' => date('d-M-Y', strtotime('+2 days')), 'options' => ['placeholder' => 'Valitse'], 'language' => 'fi', 'pluginOptions' => ['format' => 'dd-M-yyyy', 'todayHighlight' => true]])], ['class' => 'yii\\grid\\ActionColumn', 'template' => '{view} {update} {tulokset}'], ['class' => 'yii\\grid\\ActionColumn', 'template' => '{send} {delete}']]]);
?>
<?php
Pjax::end();
?>
</div>
示例2:
use app\components\grid\LinkColumn;
use app\modules\admin\modules\users\models\User;
use kartik\date\DatePicker;
use app\modules\admin\modules\users\Module;
/* @var $this yii\web\View */
/* @var $searchModel \app\modules\admin\modules\users\models\search\UserSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = Module::t('module', 'ADMIN_USERS');
$this->params['breadcrumbs'][] = ['label' => Module::t('module', 'ADMIN'), 'url' => ['/admin/default/index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="admin-users-default-index">
<h1><?php
echo Html::encode($this->title);
?>
</h1>
<?php
// echo $this->render('_search', ['model' => $searchModel]);
?>
<?php
$gridColumn = [['class' => 'yii\\grid\\SerialColumn'], ['filter' => DatePicker::widget(['model' => $searchModel, 'attribute' => 'date_from', 'attribute2' => 'date_to', 'type' => DatePicker::TYPE_RANGE, 'separator' => '<i class="glyphicon glyphicon-arrow-right"></i>', 'pluginOptions' => ['format' => 'yyyy-mm-dd', 'todayHighlight' => true]]), 'attribute' => 'created_at', 'format' => ['date', 'php:d M Y г., H:i:s']], ['class' => LinkColumn::className(), 'attribute' => 'username'], 'email:email', ['class' => SetColumn::className(), 'filter' => User::getStatusesArray(), 'attribute' => 'status', 'name' => 'statusName', 'cssCLasses' => [User::STATUS_ACTIVE => 'success', User::STATUS_WAIT => 'warning', User::STATUS_BLOCKED => 'default']], ['filter' => User::getRolesArray(), 'attribute' => 'role', 'value' => 'RoleName'], ['class' => ActionColumn::className()]];
?>
<?php
echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => $gridColumn, 'responsive' => true, 'hover' => true, 'pjax' => false, 'resizableColumns' => true, 'toolbar' => [['content' => Html::a('<i class="glyphicon glyphicon-repeat"></i>', ['index'], ['class' => 'btn btn-default', 'title' => Module::t('module', 'RESET_GRID')])], '{toggleData}'], 'panel' => ['heading' => '<h3 class="panel-title"><i class="glyphicon glyphicon-user"></i> ' . Html::encode($this->title) . '</h3>', 'type' => 'primary', 'before' => Html::a('<i class="glyphicon glyphicon-plus"></i> ' . Module::t('module', 'BUTTON_CREATE'), ['create'], ['class' => 'btn btn-success', 'data-pjax' => 0])]]);
?>
</div>
示例3:
senbox(e['date']);
}",
],
]);
?>
<br>
<?Pjax::begin(['id'=>'secondtime']);?>
<?
// usage without model
echo '<label class="control-label">Дата завершения кампании</label>';
echo DatePicker::widget([
'name' => 'date_end',
'value' => $time_end,
'pluginOptions' => [
'autoclose' => true,
'format' => 'yyyy-mm-dd',
'startDate' => $time_end,
'todayHighlight' => true
],
]);
?>
<?Pjax::end();?>
<br>
<?php
echo $form->field($model, 'link')->textinput();
?>
<div class="form-group">
示例4: function
use yii\helpers\Html;
use yii\grid\GridView;
use kartik\date\DatePicker;
use app\models\Posts;
/* @var $this yii\web\View */
/* @var $searchModel app\models\PostsSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Posts';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="posts-index">
<h1><?php
echo Html::encode($this->title);
?>
</h1>
<p>
<?php
echo Html::a('Create Post', ['create'], ['class' => 'btn btn-success']);
?>
</p>
<?php
echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [['class' => 'yii\\grid\\SerialColumn'], 'title', ['attribute' => 'text', 'value' => function ($data) {
return Posts::getPreviewText($data->text);
}], ['attribute' => 'date', 'value' => function ($data) {
return date('d-M-Y', $data->date);
}, 'filter' => DatePicker::widget(['model' => $searchModel, 'attribute' => 'date_from', 'attribute2' => 'date_to', 'options' => ['placeholder' => 'Start date'], 'options2' => ['placeholder' => 'End date'], 'type' => DatePicker::TYPE_RANGE, 'pluginOptions' => ['format' => 'dd-mm-yyyy', 'autoclose' => true]])], ['class' => 'yii\\grid\\ActionColumn']]]);
?>
</div>
示例5: function
ช่วง 1 เมษายน 2558 ถึง 31 มีนาคม 2559) เกณฑ์เป้าหมายน้อยกว่า 6.63 (รหัสที่ให้ J45-J46)</font></p></h6>
</div>
<?php
$form = ActiveForm::begin(['layout' => 'inline']);
?>
<div class="form-group">
<label class="control-label"> เลือกวันที่ </label>
<?php
echo DatePicker::widget(['name' => 'date1', 'value' => $date1, 'language' => 'th', 'pluginOptions' => ['format' => 'yyyy-mm-dd', 'changeMonth' => true, 'changeYear' => true, 'todayHighlight' => true]]);
?>
</div>
<div class="form-group">
<label class="control-label"> ถึง </label>
<?php
echo DatePicker::widget(['name' => 'date2', 'value' => $date2, 'language' => 'th', 'pluginOptions' => ['format' => 'yyyy-mm-dd', 'changeMonth' => true, 'changeYear' => true, 'todayHighlight' => true]]);
?>
</div>
<div class="form-group">
<?php
echo Html::submitButton('ประมวลผล', ['class' => 'btn btn-warning btn-flat']);
?>
</div><!-- /.input group -->
<?php
ActiveForm::end();
?>
<br>
<?php
echo GridView::widget(['dataProvider' => $dataProvider, 'panel' => ['type' => GridView::TYPE_DEFAULT], 'responsive' => true, 'hover' => true, 'floatHeader' => true, 'pjax' => true, 'pjaxSettings' => ['neverTimeout' => true, 'beforeGrid' => '', 'afterGrid' => ''], 'columns' => [['class' => 'yii\\grid\\SerialColumn'], ['attribute' => 'village_name', 'header' => 'หมู่บ้าน'], ['label' => 'เป้าหมาย (คน)', 'format' => 'raw', 'value' => function ($model) {
return Html::a(Html::encode($model['b']), ['/qof/qof/goal202', 'id' => $model['village_id']]);
示例6: function
<p>
<?php
echo Html::a('<i class="fa fa-plus"></i> 添加营业点', ['store/add'], ['class' => 'btn btn-primary']);
?>
</p>
<div class="row">
<div class="col-lg-12">
<?php
Pjax::begin();
?>
<?php
echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'tableOptions' => ['class' => 'table table-striped table-bordered table-center'], 'summaryOptions' => ['tag' => 'p', 'class' => 'text-right text-info'], 'columns' => [['class' => 'yii\\grid\\SerialColumn', 'headerOptions' => ['class' => 'col-md-1']], ['attribute' => 'name', 'headerOptions' => ['class' => 'col-md-2'], 'filterInputOptions' => ['class' => 'form-control input-sm']], ['attribute' => 'school_id', 'headerOptions' => ['class' => 'col-md-3'], 'filterInputOptions' => ['class' => 'form-control input-sm'], 'value' => function ($model, $key, $index, $column) {
return $model->school->name;
}, 'filter' => Select2::widget(['model' => $searchModel, 'initValueText' => ($school = School::findOne($searchModel->school_id)) ? $school->name : '', 'attribute' => 'school_id', 'size' => Select2::SMALL, 'theme' => Select2::THEME_KRAJEE, 'options' => ['placeholder' => '搜索学校名称...'], 'pluginOptions' => ['allowClear' => true, 'minimumInputLength' => 3, 'ajax' => ['url' => Url::to(['/school/name-filter']), 'dataType' => 'json', 'data' => new JsExpression('function(params) { return {q:params.term}; }')], 'escapeMarkup' => new JsExpression('function (markup) { return markup; }'), 'templateResult' => new JsExpression('function (store) { return store.text; }'), 'templateSelection' => new JsExpression('function (store) { return store.text; }')]])], ['attribute' => 'address', 'headerOptions' => ['class' => 'col-md-2'], 'filterInputOptions' => ['class' => 'form-control input-sm']], ['attribute' => 'status', 'format' => 'raw', 'filter' => Store::getStatusList(), 'filterInputOptions' => ['class' => 'form-control input-sm'], 'headerOptions' => ['class' => 'col-md-1'], 'value' => function ($model, $key, $index, $column) {
return Html::dropDownList('status', $model->status, Store::getStatusList(), ['data-id' => $model->id]);
}], ['attribute' => 'created_at', 'format' => ['date', 'php:Y-m-d H:i'], 'filter' => DatePicker::widget(['model' => $searchModel, 'type' => DatePicker::TYPE_COMPONENT_APPEND, 'attribute' => 'date', 'options' => ['class' => 'input-sm'], 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']]), 'headerOptions' => ['class' => 'col-md-2']], ['class' => 'yii\\grid\\ActionColumn', 'header' => '操作', 'headerOptions' => ['class' => 'col-md-1'], 'template' => '{update} {view}']]]);
?>
<?php
Pjax::end();
?>
</div>
</div>
<?php
$url = Url::to(['/store/status']);
$js = <<<JS
var handle = function () {
var id = \$(this).attr('data-id');
var status = \$(this).val();
\$.ajax({
url: '{$url}?id=' + id ,
type: 'post',
示例7:
<h1><?php
echo Html::encode($this->title);
?>
</h1>
<?php
// echo $this->render('_search', ['model' => $searchModel]);
?>
<p>
<?php
echo Html::a('Create Mon1str', ['create'], ['class' => 'btn btn-success']);
?>
</p>
<?php
echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [['class' => 'kartik\\grid\\SerialColumn'], ['attribute' => 'region', 'value' => 'monitoring1.user.profile.region.number', 'filter' => Html::activeDropDownList($searchModel, 'region', ArrayHelper::map(\app\models\Region::find()->asArray()->all(), 'id', 'number'), ['class' => 'form-control', 'prompt' => 'Оберіть код регіону'])], ['attribute' => 'date', 'value' => 'date', 'format' => 'raw', 'width' => '350px', 'filter' => DatePicker::widget(['model' => $searchModel, 'name' => 'date', 'attribute' => 'date', 'options' => ['placeholder' => 'Оберіть місяць ...'], 'pluginOptions' => ['format' => 'yyyy-mm-dd', 'viewMode' => 'months', 'minViewMode' => 'months']])], ['class' => 'yii\\grid\\ActionColumn']]]);
?>
<?php
$m = Yii::$app->request->get();
$excel = ['excel'];
$arrayExcel = ArrayHelper::merge($excel, $m);
?>
<p>
<?php
echo Html::a('Емпортувати в xls', $arrayExcel, ['class' => 'btn btn-success']);
?>
</p>
</div>
示例8: function
use yii\grid\GridView;
use yii\helpers\Url;
use kartik\date\DatePicker;
/* @var $this yii\web\View */
/* @var $searchModel backend\models\PageSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = Yii::t('backend', 'Pages');
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="box box-primary">
<div class="box-body">
<?php
// echo $this->render('_search', ['model' => $searchModel]);
?>
<p>
<?php
echo Html::a(Yii::t('backend', 'Create Page'), ['create'], ['class' => 'btn btn-success']);
?>
</p>
<?php
echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [['class' => 'yii\\grid\\SerialColumn'], 'page_title', ['attribute' => 'alias', 'format' => 'raw', 'value' => function ($model) {
//return Html::a($model->alias, Url::to(['/page/view', 'alias' => $model->alias], true), ['target'=>'_blank']);
return Html::a($model->alias, Url::to('/' . $model->alias . '/', true), ['target' => '_blank']);
}], ['attribute' => 'created_at', 'format' => ['date', 'php:d.m.Y'], 'filter' => DatePicker::widget(['model' => $searchModel, 'type' => DatePicker::TYPE_COMPONENT_APPEND, 'attribute' => 'created_at', 'pickerButton' => false, 'pluginOptions' => ['autoclose' => true, 'todayHighlight' => true]]), 'contentOptions' => ['style' => 'white-space: nowrap; width: 170px;']], ['class' => 'yii\\grid\\ActionColumn', 'template' => '{update} {delete}', 'contentOptions' => ['class' => 'actionColumn'], 'buttonOptions' => ['class' => 'btn btn-sm btn-default', 'style' => 'padding:1px 10px;']]]]);
?>
</div>
</div>
示例9:
if (!empty($statusList)) {
?>
<?php
echo $form->field($model, "status")->dropDownList($statusList, [$model->status => ['selected' => 'selected']]);
?>
<?php
}
?>
<?php
echo $form->field($model, "do_id")->dropDownList($DoList, [$model->question_list_id => ['selected' => 'selected']]);
?>
<div class="form-group field-answerlist-dates">
<?php
echo DatePicker::widget(['name' => 'date_from', 'type' => DatePicker::TYPE_RANGE, 'name2' => 'date_to', 'form' => $form, 'model' => $model, 'attribute' => 'date_from', 'attribute2' => 'date_to', 'language' => 'ru', 'separator' => ' - ', 'pluginOptions' => ['format' => 'yyyy-mm-dd']]);
?>
</div>
<?php
if (!Yii::$app->request->isAjax) {
?>
<div class="form-group" style="margin-top : 50px;">
<?php
echo Html::submitButton($model->isNewRecord ? 'Назначить' : 'Обновить', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
</div>
<?php
}
?>
示例10: date
</div>
<div class="tab-pane" id="truck_act">
<div class="row">
<div class="col-sm-12 col-md-3 col-lg-3">
<?php
// usage without model
echo '<label>วันที่ทำสัญญา</label>';
echo DatePicker::widget(['name' => 'act_start', 'id' => 'act_start', 'value' => date('Y-m-d'), 'language' => 'th', 'removeButton' => false, 'options' => ['placeholder' => 'Select issue date ...'], 'pluginOptions' => ['format' => 'yyyy-mm-dd', 'todayHighlight' => true]]);
?>
</div>
<div class="col-sm-12 col-md-3 col-lg-3">
<?php
// usage without model
echo '<label>วันที่ครบกำหนด</label>';
echo DatePicker::widget(['name' => 'act_end', 'id' => 'act_end', 'value' => date('Y-m-d'), 'language' => 'th', 'removeButton' => false, 'options' => ['placeholder' => 'Select issue date ...'], 'pluginOptions' => ['format' => 'yyyy-mm-dd', 'todayHighlight' => true]]);
?>
</div>
<div class="col-sm-12 col-md-3 col-lg-3">
<label>จำนวนเงิน</label>
<input type="text" class="form-control" id="act_price" name="act_price" placeholder="ตัวเลขเท่านั้น" onkeypress="return chkNumber()"/>
</div>
<div class="col-sm-12 col-md-3 col-lg-3">
<label style="color: #FFF;">.</label>
<button type="button" class="btn btn-success btn-block"
onclick="save_act()"><i class="fa fa-save"></i> บันทึกข้อมูล</button>
</div>
</div>
<br/>
<p class="pull-left">ข้อมูลการต่อทะเบียน ภาษี พรบ.</p>
<div id="load_act"></div>
示例11:
</label>
<?php
echo SwitchInput::widget(['model' => $model, 'attribute' => 'gender', 'pluginOptions' => ['size' => 'medium', 'onColor' => 'success', 'offColor' => 'success', 'onText' => Yii::t('app', 'Male'), 'offText' => Yii::t('app', 'Female')]]);
?>
<?php
echo $form->field($model, 'birth_place')->textInput(['maxlength' => true]);
?>
<label><?php
echo Yii::t('app', 'Birth Date');
?>
</label>
<?php
echo DatePicker::widget(['attribute' => 'birth_date', 'model' => $model, 'options' => ['placeholder' => 'Select date ...'], 'pluginOptions' => ['format' => 'yyyy-mm-dd', 'autoclose' => true, 'todayHighlight' => false]]);
?>
<?php
echo $form->field($model, 'address')->textarea(['rows' => 6]);
?>
<?php
echo $form->field($model, 'mobile_phone')->textInput(['maxlength' => true]);
?>
<?php
echo $form->field($model, 'pict')->widget(FileInput::classname(), ['options' => ['accept' => 'image/*']]);
?>
示例12:
/ <?php
echo $param['valid'];
?>
</small>
</div>
<div class="pull-left col-sm-4 param_value" id="num_<?php
echo $key;
?>
">
<?php
if ($param['valid'] == 'datePicker') {
?>
<?php
echo DatePicker::widget(['name' => $param['title'], 'value' => $param['value'], 'type' => DatePicker::TYPE_COMPONENT_APPEND, 'pluginOptions' => ['format' => 'dd.mm.yyyy', 'multidate' => true, 'multidateSeparator' => ';']]);
?>
<?php
} else {
?>
<input type="text" class="form-control" data-valid="<?php
echo $param['valid'];
?>
" data-param="<?php
echo $param['title'];
?>
" data-old="<?php
echo $param['value'];
?>
" value="<?php
echo $param['value'];
示例13:
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Intervalo de datas para geração do Relatórios</h4>
</div>
<div class="modal-body">
<?php
$form = ActiveForm::begin(['action' => ['relatorios/eventopdf'], 'id' => 'forum_post2', 'method' => 'get']);
?>
<?php
echo 'Data Inicial' . DatePicker::widget(['name' => 'datainicial', 'id' => 'datainicial2', 'options' => ['placeholder' => 'Escolha a data Inicial ...'], 'pluginOptions' => ['todayHighlight' => true, 'todayBtn' => true, 'format' => 'dd-mm-yyyy', 'autoclose' => true]]);
echo '<br>';
echo 'Data Final' . DatePicker::widget(['name' => 'datafinal', 'id' => 'datafinal2', 'options' => ['placeholder' => 'Escolha a data Final ...'], 'pluginOptions' => ['todayHighlight' => true, 'todayBtn' => true, 'format' => 'dd-mm-yyyy', 'autoclose' => true]]);
?>
</div>
<div id = 'ErroDatas2' style="padding-left:20px; color: #FF0000" > </div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Fechar</button>
<?php
echo Html::SubmitButton('Gerar Relatório', ['relatorios/eventopdf/', 'class' => 'btn btn-primary']);
?>
<?php
ActiveForm::end();
?>
示例14: function
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="cals-index1">
<h1><?php
echo Html::encode($this->title);
?>
</h1>
<?php
// echo $this->render('_search', ['model' => $searchModel]);
?>
<p>
<?php
echo Html::a('<i class="glyphicon glyphicon-plus"></i> เพิ่มข้อมูล', ['create'], ['class' => 'btn btn-success']);
?>
</p>
<?php
echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [['class' => 'kartik\\grid\\ExpandRowColumn', 'value' => function ($model, $key, $index, $column) {
return GridView::ROW_COLLAPSED;
}, 'detail' => function ($model, $key, $index, $column) {
$searchModel = new CalitemsSearch();
$searchModel->cal_id = $model->id;
$dataProvider = $searchModel->search(Yii::$app->request->queryParams);
return Yii::$app->controller->renderPartial('_calitem', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]);
}], ['attribute' => 'caldate', 'value' => 'caldate', 'format' => 'raw', 'filter' => DatePicker::widget(['model' => $searchModel, 'attribute' => 'caldate', 'options' => ['placeholder' => 'ระบุวันที่ ...'], 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd', 'todayHighlight' => true]]), 'headerOptions' => ['class' => 'text-left', 'style' => 'width: 250px;']], 'by', 'remark', ['class' => 'yii\\grid\\ActionColumn']]]);
?>
</div>
示例15:
use app\modules\admin\Module;
use app\components\grid\SetColumn;
use kartik\date\DatePicker;
use yii\helpers\Html;
use yii\grid\GridView;
/* @var $this yii\web\View */
/* @var $searchModel \app\modules\admin\models\search\UserSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = Module::t('module', 'ADMIN_USERS');
$this->params['breadcrumbs'][] = ['label' => Module::t('module', 'ADMIN'), 'url' => ['default/index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="users-index">
<h1><?php
echo Html::encode($this->title);
?>
</h1>
<p>
<?php
echo Html::a(Module::t('module', 'ADMIN_USERS_ADD'), ['create'], ['class' => 'btn btn-success']);
?>
</p>
<?php
echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => ['id', ['filter' => DatePicker::widget(['model' => $searchModel, 'attribute' => 'date_from', 'attribute2' => 'date_to', 'type' => DatePicker::TYPE_RANGE, 'separator' => '-', 'pluginOptions' => ['format' => 'yyyy-mm-dd']]), 'attribute' => 'created_at', 'format' => 'datetime', 'filterOptions' => ['style' => 'max-width: 180px']], ['class' => LinkColumn::className(), 'attribute' => 'username'], 'email:email', ['class' => SetColumn::className(), 'filter' => User::getStatusesArray(), 'attribute' => 'status', 'name' => 'statusName', 'cssCLasses' => [User::STATUS_ACTIVE => 'success', User::STATUS_WAIT => 'warning', User::STATUS_BLOCKED => 'default']], ['class' => ActionColumn::className()]]]);
?>
</div>