本文整理匯總了PHP中X2Html::x2ActivePasswordField方法的典型用法代碼示例。如果您正苦於以下問題:PHP X2Html::x2ActivePasswordField方法的具體用法?PHP X2Html::x2ActivePasswordField怎麽用?PHP X2Html::x2ActivePasswordField使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類X2Html
的用法示例。
在下文中一共展示了X2Html::x2ActivePasswordField方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: renderInput
public function renderInput($attr)
{
switch ($attr) {
case 'password':
echo X2Html::x2ActivePasswordField($this, $attr, $this->htmlOptions($attr), true);
break;
default:
parent::renderInput($attr);
}
}
示例2: renderInput
public function renderInput($attr)
{
switch ($attr) {
case 'password':
echo X2Html::x2ActivePasswordField($this, $attr, $this->htmlOptions($attr), true);
break;
case 'server':
echo CHtml::activeDropDownList($this, 'server', $this->sesEndpoints, $this->htmlOptions($attr));
break;
default:
parent::renderInput($attr);
}
}
示例3: renderInput
public function renderInput($attr)
{
switch ($attr) {
case 'email':
echo '<p class="fieldhelp-thin-small">' . Yii::t('app', '(example@gmail.com)') . '</p>';
echo CHtml::activeTextField($this, $attr, $this->htmlOptions($attr));
break;
case 'password':
echo X2Html::x2ActivePasswordField($this, $attr, $this->htmlOptions($attr), true);
break;
default:
parent::renderInput($attr);
}
}
示例4: renderInput
public function renderInput($attr)
{
switch ($attr) {
case 'senderName':
echo CHtml::activeTextField($this, $attr, $this->htmlOptions($attr));
break;
case 'email':
echo CHtml::activeTextField($this, $attr, $this->htmlOptions($attr));
break;
case 'server':
echo CHtml::activeTextField($this, $attr, $this->htmlOptions($attr));
break;
case 'imapServer':
echo CHtml::activeTextField($this, $attr, $this->htmlOptions($attr));
break;
case 'port':
echo CHtml::activeNumberField($this, $attr, $this->htmlOptions($attr));
break;
case 'imapPort':
echo CHtml::activeNumberField($this, $attr, $this->htmlOptions($attr));
break;
case 'security':
echo CHtml::activeDropDownList($this, $attr, array('' => 'None', 'tls' => 'TLS', 'ssl' => 'SSL'), $this->htmlOptions($attr));
break;
case 'imapSecurity':
echo CHtml::activeDropDownList($this, $attr, array('' => 'None', 'tls' => 'TLS', 'ssl' => 'SSL'), $this->htmlOptions($attr));
break;
case 'imapNoValidate':
echo CHtml::activeCheckBox($this, $attr, $this->htmlOptions($attr));
break;
case 'user':
echo CHtml::activeTextField($this, $attr, $this->htmlOptions($attr));
break;
case 'password':
echo X2Html::x2ActivePasswordField($this, $attr, $this->htmlOptions($attr), true);
break;
}
}