Пример #1
0
use app\models\MSceneDetail;
use app\models\MUser;
/**
 * @var yii\web\View $this
 * @var yii\data\ActiveDataProvider $dataProvider
 * @var app\models\MUserSearch $searchModel
 */
$this->title = '会员管理';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="muser-index">

	<h1><?php 
//echo Html::encode($this->title)
?>
</h1>

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

    <?php 
echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'options' => ['class' => 'table-responsive'], 'tableOptions' => ['class' => 'table table-striped'], 'columns' => [['label' => 'ID', 'attribute' => 'id'], ['label' => '时间', 'attribute' => 'create_time'], ['label' => '提现沃点', 'attribute' => 'scene_amt'], ['label' => '充值手机号', 'attribute' => 'czhm'], ['label' => '类型', 'attribute' => 'memo'], ['label' => '提现状态审核', 'attribute' => 'status', 'value' => function ($model, $key, $index, $column) {
    return MSceneDetail::getSceneDetailStatusName($model->status);
}, 'filter' => MSceneDetail::getSceneDetailStatusOption()], ['class' => 'yii\\grid\\ActionColumn', 'template' => '{memberupdate}', 'buttons' => ['memberupdate' => function ($url, $model) {
    return Html::a('<span class="glyphicon glyphicon-pencil"></span>', $url, ['title' => Yii::t('yii', 'Update'), 'data-pjax' => '0']);
}]]]]);
?>

</div>
Пример #2
0
?>
<div class="muser-update">

	<div class="muser-form">

		<?php 
$form = ActiveForm::begin();
?>
			

		<?php 
echo $form->field($model, 'id')->textInput(['maxlength' => 10, 'readonly' => true]);
?>
	
		<?php 
echo $form->field($model, 'status')->dropDownList(MSceneDetail::getSceneDetailStatusOption())->label("提现状态审核");
?>

		<div class="form-group">
			<?php 
echo Html::submitButton($model->isNewRecord ? '创建' : '修改', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
		</div>

		<?php 
ActiveForm::end();
?>

	</div>

</div>