您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
 

53 行
1.6 KiB

  1. <?php
  2. use yii\helpers\Html;
  3. use yii\grid\GridView;
  4. use yii\widgets\Pjax;
  5. /* @var $this yii\web\View */
  6. /* @var $searchModel common\models\searchRole */
  7. /* @var $dataProvider yii\data\ActiveDataProvider */
  8. $this->title = 'Base Roles';
  9. $this->params['breadcrumbs'][] = $this->title;
  10. ?>
  11. <div class="iframe_box base-role-index">
  12. <h1><?= Html::encode($this->title) ?></h1>
  13. <?php // echo $this->render('_search', ['model' => $searchModel]); ?>
  14. <?php Pjax::begin(); ?>
  15. <?= GridView::widget([
  16. 'dataProvider' => $dataProvider,
  17. 'filterModel' => $searchModel,
  18. 'columns' => [
  19. ['class' => 'yii\grid\SerialColumn'],
  20. 'ID',
  21. 'MENU_TITLE',
  22. 'ROLE_NAME',
  23. 'PARENT_MENU_ID',
  24. 'MENU_ICON',
  25. 'CANCEL_FLAG',
  26. // 'CREATE_USER_ID',
  27. // 'CREATE_TIME',
  28. // 'UPDATE_USER_ID',
  29. // 'UPDATE_TIME',
  30. // 'TARGET',
  31. // 'SEQ',
  32. // 'NOTE',
  33. [
  34. 'class' => 'yii\grid\ActionColumn',
  35. 'template' => '{create} {view} {update} {delete}',
  36. 'buttons' => [
  37. 'create' => function ($url, $model, $key) {
  38. /* @var $model \common\models\BaseRole */
  39. return Html::a('<span class="glyphicon glyphicon-plus"></span>', \yii\helpers\Url::to(['create', 'pid' => $model->PARENT_MENU_ID, 'role'=> $model->ROLE_NAME]));
  40. },
  41. ]
  42. ],
  43. ],
  44. ]); ?>
  45. <?php Pjax::end(); ?></div>