<//?= $form->field($model, 'openid')->textInput(['maxlength' => 255]) ?> <//?= $form->field($model, 'mobile')->textInput(['maxlength' => 16]) ?> <//?= $form->field($model, 'score')->textInput() ?> <//?= $form->field($model, 'create_time')->textInput() ?> <//?= $form->field($model, 'status')->textInput() ?> --> <br> <br> <?php echo $form->field($model, 'status')->dropDownList(MHd201509t4::gethd201509t4StatusOption()); ?> <div class="form-group"> <?php echo Html::submitButton($model->isNewRecord ? '创建' : '修改', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']); ?> </div> <?php ActiveForm::end(); ?> </div>
</h1> <?php // echo $this->render('_search', ['model' => $searchModel]); ?> <!-- <p> <//?= Html::a('Create Mhd201509t4', ['create'], ['class' => 'btn btn-success']) ?> </p> --> <p> <?php echo Html::a('下载 <i class="glyphicon glyphicon-arrow-down"></i>', U::current(['download' => 1]), ['class' => 'btn btn-success', 'data-pjax' => '0']); ?> </p> <?php echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [['label' => '微信昵称', 'format' => 'html', 'value' => function ($model, $key, $index, $column) { $user = $model->user; return empty($user) ? '' : "<img width=48 src=" . $model->user->headimgurl . "><br>" . emoji_unified_to_html(emoji_softbank_to_unified($user->nickname)); }, 'filter' => false, 'headerOptions' => array('style' => 'width:90px;')], 'mobile', 'score', 'create_time', ['attribute' => 'status', 'label' => '状态', 'value' => function ($model, $key, $index, $column) { return MHd201509t4::gethd201509t4StatusOption($model->status); }, 'filter' => MHd201509t4::gethd201509t4StatusOption(), 'headerOptions' => array('style' => 'width:120px;')], ['class' => 'yii\\grid\\ActionColumn', 'template' => '{update}', 'buttons' => ['update' => function ($url, $model) { return Html::a('<span class="glyphicon glyphicon-pencil"></span>', $url, ['title' => Yii::t('yii', 'Update'), 'data-pjax' => '0']); }]]]]); ?> </div>