コード例 #1
0
ファイル: index.php プロジェクト: phattringuyen/dekbet
echo Yii::t('app', 'Update');
?>
</option>
                                        <option value="delete"><?php 
echo Yii::t('app', 'Delete');
?>
</option>
                                    </select>
                                    <?php 
echo Html::submitButton('<i class="fa fa-check"></i>' . Yii::t('app', ' Submit'), ['class' => 'btn btn-sm yellow table-group-action-submit']);
?>
                                </div>
                            </div>
                        </div>
                        <div class="portlet-body">
                            <?php 
echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [['class' => 'common\\custom\\grid\\CheckboxColumn'], ['class' => 'common\\custom\\grid\\SerialColumn'], 'id', 'name', ['attribute' => 'publish_date', 'format' => ['datetime', Yii::$app->params['dateFormat']], 'headerOptions' => ['rowspan' => '1', 'width' => "20%"]], ['attribute' => 'updated_at', 'format' => ['datetime', Yii::$app->params['dateFormat']], 'headerOptions' => ['rowspan' => '1', 'width' => "20%"]], ['attribute' => 'category_id', 'header' => 'Category', 'value' => function ($model) {
    return empty($model->category_id) ? '-' : $model->category->name;
}, 'filter' => [ArrayHelper::map(Category::find()->asArray()->all(), 'id', 'name')]], 'enabled', ['class' => 'common\\custom\\grid\\ActionColumn']]]);
?>
                        </div>
                        <?php 
ActiveForm::end();
?>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
コード例 #2
0
ファイル: index.php プロジェクト: phattringuyen/dekbet
                                                Export to CSV </a>
                                        </li>
                                        <li>
                                            <a href="javascript:;">
                                                Export to XML </a>
                                        </li>
                                        <li class="divider">
                                        </li>
                                        <li>
                                            <a href="javascript:;">
                                                Print Invoices </a>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                        <div class="portlet-body">

                            <?php 
echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [['class' => 'common\\custom\\grid\\BulkActionColumn'], ['class' => 'common\\custom\\grid\\SerialColumn'], 'id', 'name', 'parent_id', 'publish_date', ['class' => 'common\\custom\\grid\\ActionColumn']]]);
?>
                        </div>
                    </div>
                </div>
            </div>


        </div>
    </div>
</div>
コード例 #3
0
ファイル: index.php プロジェクト: phattringuyen/dekbet
                                        <li>
                                            <a href="javascript:;">
                                                Export to XML </a>
                                        </li>
                                        <li class="divider">
                                        </li>
                                        <li>
                                            <a href="javascript:;">
                                                Print Invoices </a>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                        <div class="portlet-body">
                            <?php 
$dataProvider->pagination->pageSize = 1;
?>
                            <?php 
echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'pager' => ['prevPageLabel' => 'First', 'nextPageLabel' => 'Last'], 'columns' => [['class' => 'common\\custom\\grid\\SerialColumn'], 'id', 'username', 'auth_key', 'password_hash', 'password_reset_token', ['class' => 'common\\custom\\grid\\ActionColumn']]]);
?>
                        </div>
                    </div>
                </div>
            </div>


        </div>
    </div>
</div>