Exemplo n.º 1
0
           
                <ul>
                    <li class="admin-user">
                        <?php 
$attribute = 'username';
$name = $model->getAttributeLabel($attribute);
$input = Html::activeTextInput($model, $attribute, ['enter' => 'totab', 'placeholder' => $name, 'autocomplete' => 'off']);
echo Html::label("<span></span>" . $input, Html::getInputId($model, $attribute), ['class' => 'clear']);
?>
               
                    </li>
                    <li class="admin-pwd">
                        <?php 
$attribute = 'password';
$name = $model->getAttributeLabel($attribute);
$input = Html::activePasswordInput($model, $attribute, ['enter' => 'totab', 'placeholder' => $name, 'autocomplete' => 'off']);
echo Html::label("<span></span>" . $input, Html::getInputId($model, $attribute), ['class' => 'clear']);
?>
                  
                    </li>
                    <li class="admin-caphe clear">
                        <?php 
$attribute = 'verifyCode';
$name = $model->getAttributeLabel($attribute);
$input = Html::activeTextInput($model, $attribute, ['enter' => 'totab', 'placeholder' => $name, 'autocomplete' => 'off']);
echo Html::label("<span></span>" . $input, Html::getInputId($model, $attribute), ['class' => 'clear']);
echo Html::beginTag('div');
echo yii\captcha\Captcha::widget(['name' => 'captchaimage', 'imageOptions' => ['id' => 'captchaImg', 'title' => '换一个', 'alt' => '换一个', 'style' => 'cursor:pointer;'], 'template' => '{image}']);
echo Html::endTag('div');
?>
                    </li>