本文整理汇总了PHP中Fields::submitBtn方法的典型用法代码示例。如果您正苦于以下问题:PHP Fields::submitBtn方法的具体用法?PHP Fields::submitBtn怎么用?PHP Fields::submitBtn使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Fields
的用法示例。
在下文中一共展示了Fields::submitBtn方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<div class="l-row visible">
<?php
echo CHtml::activeLabelEx($model, 'visible');
?>
<?php
echo CHtml::activeDropDownList($model, 'visible', ProfileField::itemAlias('visible'));
?>
<?php
echo CHtml::error($model, 'visible');
?>
</div>
<div class = "g-clear_fix"></div>
<?php
echo Fields::submitBtn($model->isNewRecord ? Yii::t('admin', 'Create') : Yii::t('admin', 'Save'));
?>
<?php
echo CHtml::endForm();
?>
</div><!-- form -->
<div id="dialog-form" title="<?php
echo UserModule::t('Widget parametrs');
?>
">
<form>
<fieldset>
<label for="name">Name</label>
<input type="text" name="name" id="name" class="text ui-widget-content ui-corner-all" />
示例2:
</div>
<div class="l-row">
<?php
echo $form->passwordFieldControlGroup($model, 'password');
?>
<p class="l-hint">
<?php
echo UserModule::t("Minimal password length 4 symbols.");
?>
</p>
</div>
<div class="l-row">
<?php
echo $form->passwordFieldControlGroup($model, 'verifyPassword');
?>
</div>
<div class = "g-clear_fix"></div>
<?php
echo Fields::submitBtn(Yii::t('admin', 'Save'), BsHtml::GLYPHICON_USER);
?>
<?php
$this->endWidget();
?>
</div><!-- form -->
</div>
示例3: array
}
?>
</div>
<?php
}
}
?>
<?php
if (UserModule::doCaptcha('registration')) {
?>
<?php
$this->renderPartial('helper_view.parts._captcha', array('model' => $model, 'form' => $form, 'field' => 'verifyCode'));
?>
<?php
}
?>
<div class = "g-clear_fix"></div>
<?php
echo Fields::submitBtn(UserModule::t("Register"), BsHtml::GLYPHICON_REGISTRATION_MARK);
?>
<?php
$this->endWidget();
?>
</div><!-- l-form -->
<?php
}
?>
</div>
示例4:
<div class="l-row">
<?php
echo $form->emailFieldControlGroup($model, 'email');
?>
</div>
<div class="l-row l-form_image">
<?php
echo $form->labelEx($model, 'image');
?>
<?php
echo $form->fileField($model, 'image');
?>
<br/><?php
echo Yii::app()->user->avatar();
?>
</div>
<div class = "g-clear_fix"></div>
<?php
echo Fields::submitBtn(Yii::t('admin', 'Save'));
?>
<?php
$this->endWidget();
?>
</div><!-- l-form -->
</div>
示例5: array
$form = $this->beginWidget('bootstrap.widgets.BsActiveForm', array('id' => 'b-' . Yii::app()->controller->module->id . '-form', 'enableAjaxValidation' => false));
?>
<?php
echo $form->errorSummary($model);
?>
<div class="l-row">
<?php
echo $form->textFieldControlGroup($model, 'login_or_email');
?>
<p class="l-hint"><?php
echo UserModule::t("Please enter your login or email addres.");
?>
</p>
</div>
<div class = "g-clear_fix"></div>
<?php
echo Fields::submitBtn(UserModule::t("Restore"), BsHtml::GLYPHICON_REFRESH);
?>
<?php
$this->endWidget();
?>
</div>
<?php
}
?>
</div>
示例6:
echo $form->passwordFieldControlGroup($model, 'password');
?>
</div>
<div class="l-row">
<a href = "<?php
echo Yii::app()->createUrl('user/registration');
?>
"><?php
echo Yii::t('main', 'Register');
?>
</a>
<span>|</span>
<a href = "<?php
echo Yii::app()->createUrl('user/recovery');
?>
"><?php
echo Yii::t('main', 'Forgot a password?');
?>
</a>
</div>
<?php
echo Fields::submitBtn(Yii::t('main', 'Login'), BsHtml::GLYPHICON_LOG_IN);
?>
<?php
$this->endWidget();
?>
</div><!-- form -->
</div>