Beispiel #1
0
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use yii\helpers\ArrayHelper;
/* @var $this yii\web\View */
/* @var $model app\models\ActivityUsersSearch */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="activity-users-search">

    <?php 
$form = ActiveForm::begin(['action' => ['index'], 'method' => 'get']);
?>

    <?php 
echo $form->field($model, 'activity_id')->dropDownList(ArrayHelper::merge(['' => '选择活动'], ArrayHelper::map(\app\models\Activity::getAll(), 'id', 'name')), ['style' => 'width:100px']);
?>

    <?php 
echo $form->field($model, 'user_id')->dropDownList(ArrayHelper::merge(['' => '选择用户'], ArrayHelper::map(\app\models\Users::getAll(), 'id', 'username')), ['style' => 'width:100px']);
?>

    <?php 
echo $form->field($model, 'status')->dropDownList(ArrayHelper::merge(['' => '选择状态'], \app\models\ActivityUsers::$statusList), ['style' => 'width:100px']);
?>

    <?php 
// echo $form->field($model, 'theory_score')
?>

    <?php