Ejemplo n.º 1
0
?>

									<?php 
echo $form->field($model, 'public_email');
?>

									<?php 
echo $form->field($model, 'location');
?>

									<?php 
echo $form->field($model, 'qq');
?>

									<?php 
echo $form->field($model, 'birthday')->widget(\trntv\yii\datetime\DateTimeWidget::className(), ['phpDatetimeFormat' => 'yyyy-MM-dd', 'momentDatetimeFormat' => 'YYYY-MM-DD', 'clientOptions' => ['locale' => 'zh-CN']]);
?>

									<?php 
echo $form->field($model, 'bio')->textarea();
?>

									<div class="form-group">
										<div class="col-lg-offset-3 col-lg-9">
											<?php 
echo Html::submitButton(Yii::t('user', 'Save'), ['class' => 'btn-u']);
?>
<br>
										</div>
									</div>
									<?php 
Ejemplo n.º 2
0
			<?php 
echo $this->render('_menu_account_repair');
?>
		</div>
	</div>

	<div class="row">
		<div class="col-md-12">
			<div class="tag-box tag-box-v3">
				<div class="headline"><h3>基本申请资料</h3></div>
				<?php 
$form = ActiveForm::begin();
?>

				<?php 
echo $form->field($model, 'register_time')->widget(\trntv\yii\datetime\DateTimeWidget::className(), ['phpDatetimeFormat' => 'yyyy-MM-dd', 'clientOptions' => ['locale' => 'zh-CN']]);
?>


				<?php 
echo $form->field($model, 'register_place');
?>

				<?php 
echo $form->field($model, 'recent_games')->dropDownList(ArrayHelper::map(\common\models\GameServer::find()->all(), 'id', 'server_name'), ['prompt' => '请选择游戏']);
?>
				<?php 
echo $form->field($model, 'question_desc')->textarea();
?>
				<div class="form-group">
					<?php 
Ejemplo n.º 3
0
echo $form->field($model, 'view')->textInput(['maxlength' => true]);
?>

    <?php 
echo $form->field($model, 'commission');
?>

    <?php 
echo $form->field($model, 'total_commission');
?>

    <?php 
echo $form->field($model, 'status')->checkbox();
?>

    <?php 
echo $form->field($model, 'published_at')->widget(DateTimeWidget::className(), ['phpDatetimeFormat' => 'yyyy-MM-dd\'T\'HH:mm:ssZZZZZ']);
?>

    <div class="form-group">
        <?php 
echo Html::submitButton($model->isNewRecord ? Yii::t('backend', 'Create') : Yii::t('backend', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
    </div>

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

</div>
Ejemplo n.º 4
0
	<?php 
echo $form->field($model, 'attachments')->widget(Upload::className(), ['url' => ['/file-storage/upload'], 'sortable' => true, 'maxFileSize' => 10000000, 'maxNumberOfFiles' => 10]);
?>

	<?php 
echo $form->field($model, 'view')->textInput(['maxlength' => true]);
?>

	<?php 
echo $form->field($model, 'status')->checkbox();
?>
	<?php 
echo $form->field($model, 'recommend')->checkbox();
?>

	<?php 
echo $form->field($model, 'published_at')->widget(DateTimeWidget::className(), ['phpDatetimeFormat' => 'yyyy-MM-dd HH:mm:ss', 'momentDatetimeFormat' => 'YYYY-MM-DD HH:mm', 'clientOptions' => ['locale' => 'zh-CN']]);
?>

	<div class="form-group">
		<?php 
echo Html::submitButton($model->isNewRecord ? Yii::t('backend', 'Create') : Yii::t('backend', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
	</div>

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

</div>
Ejemplo n.º 5
0
?>

    <?php 
echo $form->field($user, 'roles')->checkboxList($roles);
?>

    <?php 
echo $form->field($profile, 'firstname')->textInput(['maxlength' => true]);
?>

    <?php 
echo $form->field($profile, 'lastname')->textInput(['maxlength' => true]);
?>

    <?php 
echo $form->field($profile, 'birthday')->widget(DateTimeWidget::className(), ['phpDatetimeFormat' => 'yyyy-MM-dd\'T\'HH:mm:ssZZZZZ']);
?>

    <?php 
echo $form->field($profile, 'avatar_path')->widget(Widget::className(), ['settings' => ['url' => ['/site/fileapi-upload']], 'crop' => true, 'cropResizeWidth' => 100, 'cropResizeHeight' => 100]);
?>

    <?php 
echo $form->field($profile, 'gender')->dropDownlist([UserProfile::GENDER_MALE => Yii::t('backend', 'Male'), UserProfile::GENDER_FEMALE => Yii::t('backend', 'Female')], ['prompt' => '']);
?>

    <?php 
echo $form->field($profile, 'website')->textInput(['maxlength' => true]);
?>

    <?php