<?php /* @var $this yii\web\View */ ?> <div class="container"> <div class="jumbotron"> <h2><?php echo Yii::$app->user->identity->username; ?> ,欢迎使用挖掘机技术数据分析平台!</h2> </div> <div class="row"> <?php echo \xuguoliangjj\editorgridview\EditorGridView::widget(['dataProvider' => $dataProvider, 'summary' => '', 'columns' => [['attribute' => 'app_name', 'label' => '应用名称', 'format' => 'raw', 'value' => function ($data) { return \yii\helpers\Html::a($data->app_name, ['/site/select', 'app_id' => $data->app_id, 'app_secret' => $data->app_secret]); }], ['attribute' => 'app_id', 'label' => '应用ID'], ['attribute' => 'app_code', 'label' => '应用简写'], ['attribute' => 'version', 'label' => '版本'], ['attribute' => 'created_at', 'label' => '创建时间', 'format' => ['date', 'php:Y-m-d']], ['attribute' => 'api_url', 'label' => '数据接口']]]); ?> </div> </div>
<?php $this->title = '角色管理'; $this->params['breadcrumbs'][] = $this->title; ?> <?php \yii\widgets\Pjax::begin(); ?> <div class="panel panel-default own-panel"> <div class="panel-heading"> 角色管理 <span class="pull-right own-toggle"> <a class="glyphicon glyphicon-chevron-up"></a> </span> </div> <div class="panel-body"> <?php echo \xuguoliangjj\editorgridview\EditorGridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $model, 'summary' => '', 'buttons' => [\yii\helpers\Html::a('添加角色', ['/setting/roles/create'], ['class' => 'btn btn-sm btn-primary'])], 'columns' => [['attribute' => 'name', 'label' => '名称', 'filter' => true], ['attribute' => 'description', 'label' => '简述'], ['attribute' => 'ruleName', 'label' => '规则名'], ['attribute' => 'createdAt', 'label' => '创建时间', 'format' => ['date', 'php:Y-m-d H:i:s']], ['attribute' => 'updatedAt', 'label' => '更新时间', 'format' => ['date', 'php:Y-m-d H:i:s']], ['class' => 'yii\\grid\\ActionColumn', 'template' => '{view} {update} {delete}']]]); ?> </div> </div> <?php \yii\widgets\Pjax::end();
<?php use yii\helpers\Html; use yii\grid\GridView; /* @var $this yii\web\View */ /* @var $searchModel common\models\searchs\AppSearch */ /* @var $dataProvider yii\data\ActiveDataProvider */ $this->title = Yii::t('app', '游戏接入'); $this->params['breadcrumbs'][] = $this->title; \yii\widgets\Pjax::begin(); ?> <div class="panel panel-default own-panel"> <div class="panel-heading"> 公司接入 <span class="pull-right own-toggle"> <a class="glyphicon glyphicon-chevron-up"></a> </span> </div> <div class="panel-body"> <?php echo \xuguoliangjj\editorgridview\EditorGridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'summary' => '', 'buttons' => [Html::a('新增游戏', ['/join/app/create'], ['class' => 'btn btn-sm btn-primary'])], 'columns' => ['id', ['attribute' => 'app_name', 'filter' => true], 'app_id', 'app_secret', 'app_code', 'version', 'active', ['class' => 'yii\\grid\\ActionColumn', 'buttons' => ['app' => function ($url, $model, $key) { return Html::a('<span class="glyphicon glyphicon-wrench"></span>', ['auth', 'id' => $model->id], ['title' => '游戏平台上线配置', 'aria-label' => '游戏平台上线配置', 'data-pjax' => 0]); }], 'template' => '{view} {app} {update} {delete}']]]); ?> </div> </div> <?php \yii\widgets\Pjax::end();
<?php use yii\helpers\Html; use yii\grid\GridView; /* @var $this yii\web\View */ /* @var $searchModel backend\modules\blog\models\searchs\tagSearch */ /* @var $dataProvider yii\data\ActiveDataProvider */ $this->title = Yii::t('app', '标签'); $this->params['breadcrumbs'][] = $this->title; ?> <div class="panel panel-default own-panel"> <div class="panel-heading"> 类别列表 <span class="pull-right own-toggle"> <a class="glyphicon glyphicon-chevron-up"></a> </span> </div> <div class="panel-body"> <?php echo \xuguoliangjj\editorgridview\EditorGridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'summary' => '', 'columns' => [['attribute' => 'tag', 'label' => '标签', 'filter' => true], ['attribute' => 'article_id', 'label' => '文章', 'value' => function ($data) { return $data->article->title; }], ['class' => 'yii\\grid\\ActionColumn']]]); ?> </div> </div>
<?php use yii\helpers\Html; use yii\grid\GridView; /* @var $this yii\web\View */ /* @var $searchModel common\models\searchs\ChannelSearch */ /* @var $dataProvider yii\data\ActiveDataProvider */ $this->title = Yii::t('app', '渠道接入'); $this->params['breadcrumbs'][] = $this->title; \yii\widgets\Pjax::begin(); ?> <div class="panel panel-default own-panel"> <div class="panel-heading"> <?php echo $this->title; ?> <span class="pull-right own-toggle"> <a class="glyphicon glyphicon-chevron-up"></a> </span> </div> <div class="panel-body"> <?php echo \xuguoliangjj\editorgridview\EditorGridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'buttons' => [Html::a('新增渠道', ['/join/channel/create'], ['class' => 'btn btn-sm btn-primary'])], 'columns' => ['id', ['attribute' => 'channel', 'filter' => true], ['attribute' => 'app_id', 'filter' => true], ['class' => 'yii\\grid\\ActionColumn']]]); ?> </div> </div> <?php \yii\widgets\Pjax::end();
<?php $this->title = '系统设置'; $this->params['breadcrumbs'][] = $this->title; \yii\widgets\Pjax::begin(); ?> <div class="panel panel-default own-panel"> <div class="panel-heading"> 用户管理 <span class="pull-right own-toggle"> <a class="glyphicon glyphicon-chevron-up"></a> </span> </div> <div class="panel-body"> <?php echo \xuguoliangjj\editorgridview\EditorGridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $model, 'buttons' => [\yii\helpers\Html::a('添加用户', ['/setting/user'], ['class' => 'btn btn-sm btn-primary'])], 'summary' => '', 'columns' => [['class' => 'yii\\grid\\CheckboxColumn'], ['attribute' => 'id', 'label' => '序列'], ['attribute' => 'username', 'format' => 'raw', 'editable' => ['editor', function ($model) { return ['data-type' => 'text', 'data-pk' => $model->id, 'data-url' => \yii\helpers\Url::to(['/setting/user/change-name'])]; }], 'filter' => ['admin' => 'admin']], ['attribute' => 'email', 'filter' => true], ['attribute' => 'created_at', 'label' => '创建时间', 'format' => ['raw'], 'editable' => ['editor', function ($model) { return ['data-type' => 'date', 'data-pk' => $model->id, 'data-url' => \yii\helpers\Url::to(['/setting/user/change-time'])]; }], 'value' => function ($model) { return Yii::$app->formatter->asDate($model->created_at, 'php:Y-m-d'); }, 'filter' => true], ['attribute' => 'updated_at', 'label' => '修改时间', 'value' => function ($model) { return Yii::$app->formatter->asDate($model->updated_at, 'php:Y-m-d'); }, 'filter' => true], ['class' => 'yii\\grid\\ActionColumn']]]); ?> </div> </div> <?php \yii\widgets\Pjax::end();
<?php $this->title = '类别列表'; $this->params['breadcrumbs'][] = $this->title; \yii\widgets\Pjax::begin(); ?> <div class="panel panel-default own-panel"> <div class="panel-heading"> 类别列表 <span class="pull-right own-toggle"> <a class="glyphicon glyphicon-chevron-up"></a> </span> </div> <div class="panel-body"> <?php echo \xuguoliangjj\editorgridview\EditorGridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'summary' => '', 'buttons' => [\yii\helpers\Html::a('新增类别', ['create'], ['class' => 'btn btn-sm btn-primary'])], 'columns' => ['id', ['attribute' => 'tag', 'label' => '分类简写', 'filter' => true], ['attribute' => 'name', 'label' => '分类名', 'filter' => true], ['class' => 'yii\\grid\\ActionColumn']]]); ?> </div> </div> <?php \yii\widgets\Pjax::end();
<?php use yii\helpers\Html; use yii\grid\GridView; use yii\widgets\Pjax; /* @var $this yii\web\View */ /* @var $searchModel common\models\searchs\PlatformSearch */ /* @var $dataProvider yii\data\ActiveDataProvider */ $this->title = Yii::t('app', '平台管理'); $this->params['breadcrumbs'][] = $this->title; \yii\widgets\Pjax::begin(); ?> <div class="panel panel-default own-panel"> <div class="panel-heading"> 平台管理 <span class="pull-right own-toggle"> <a class="glyphicon glyphicon-chevron-up"></a> </span> </div> <div class="panel-body"> <?php echo \xuguoliangjj\editorgridview\EditorGridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'summary' => '', 'buttons' => [Html::a('新增平台', ['/join/platform/create'], ['class' => 'btn btn-sm btn-primary'])], 'columns' => ['id', ['attribute' => 'platform', 'filter' => true], 'remark', ['class' => 'yii\\grid\\ActionColumn']]]); ?> </div> </div> <?php \yii\widgets\Pjax::end();
<?php $this->title = '文章列表'; $this->params['breadcrumbs'][] = $this->title; \yii\widgets\Pjax::begin(); ?> <div class="panel panel-default own-panel"> <div class="panel-heading"> 文章列表 <span class="pull-right own-toggle"> <a class="glyphicon glyphicon-chevron-up"></a> </span> </div> <div class="panel-body"> <?php echo \xuguoliangjj\editorgridview\EditorGridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'summary' => '', 'buttons' => [\yii\helpers\Html::a('新增文章', ['create'], ['class' => 'btn btn-sm btn-primary'])], 'columns' => [['attribute' => 'id', 'label' => 'ID'], ['attribute' => 'title', 'label' => '文章标题', 'filter' => true], ['attribute' => 'create_by', 'label' => '作者', 'filter' => true], ['attribute' => 'create_at', 'label' => '创建时间', 'format' => ['date', 'php:Y-m-d H:i:s']], ['attribute' => 'update_at', 'label' => '更新时间', 'format' => ['date', 'php:Y-m-d H:i:s']], ['attribute' => 'status', 'format' => 'raw', 'label' => '状态', 'filter' => [0 => '草稿', 1 => '发布'], 'value' => function ($data) { if ($data['status'] == 0) { return '<span class="text-danger">草稿</span>'; } elseif ($data['status'] == 1) { return '<span class="text-success">发布</span>'; } }], ['class' => 'yii\\grid\\ActionColumn', 'template' => '{view} {update} {delete}']]]); ?> </div> </div> <?php \yii\widgets\Pjax::end();
<?php /* @var $this yii\web\View */ $this->title = '规则列表'; $this->params['breadcrumbs'][] = $this->title; \yii\widgets\Pjax::begin(); ?> <div class="panel panel-default own-panel"> <div class="panel-heading"> 规则列表 <span class="pull-right own-toggle"> <a class="glyphicon glyphicon-chevron-up"></a> </span> </div> <div class="panel-body"> <?php echo \xuguoliangjj\editorgridview\EditorGridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'summary' => '', 'buttons' => [\yii\helpers\Html::a('新增规则', ['/setting/rule/create'], ['class' => 'btn btn-sm btn-primary'])], 'columns' => [['attribute' => 'name', 'label' => '名称', 'filter' => true], ['class' => 'yii\\grid\\ActionColumn', 'template' => '{view} {update} {delete}']]]); ?> </div> </div> <?php \yii\widgets\Pjax::end();