<//?= $form->field($model, 'hbme')->textInput() ?> <//?= $form->field($model, 'create_time')->textInput() ?> <//?= $form->field($model, 'status')->textInput() ?> <//?= $form->field($model, 'qdbm')->textInput(['maxlength' => 32]) ?> --> <?php echo $form->field($model, 'qdbm')->textInput(['maxlength' => 32]); ?> <?php echo $form->field($model, 'status')->dropDownList(MHd201509t6::gethd201509t6StatusOption()); ?> <div class="form-group"> <?php echo Html::submitButton($model->isNewRecord ? '新增' : '修改', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']); ?> </div> <?php ActiveForm::end(); ?> </div>
--> <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', 'hbme', 'create_time', ['attribute' => 'status', 'label' => '状态', 'value' => function ($model, $key, $index, $column) { return MHd201509t6::gethd201509t6StatusOption($model->status); }, 'filter' => MHd201509t6::gethd201509t6StatusOption(), 'headerOptions' => array('style' => 'width:80px;')], 'qdbm', ['label' => '归属营服', 'value' => function ($model, $key, $index, $column) { $qdbm = strtolower(trim($model->qdbm)); $qd = MQdbm::findOne(['qdbm' => $qdbm]); if (empty($qd)) { return "--"; } else { return $qd->gsyf; } }, 'headerOptions' => array('style' => 'width:120px;')], ['label' => '渠道名称', 'value' => function ($model, $key, $index, $column) { $qdbm = strtolower(trim($model->qdbm)); $qd = MQdbm::findOne(['qdbm' => $qdbm]); if (empty($qd)) { return "--"; } else { return $qd->qdmc; }