|
- <?php
- /**
- * Created by PhpStorm.
- * User: luocj
- * Date: 2017/2/13
- * Time: 11:35
- */
- use common\components\zActiveForm;
- use yii\helpers\Html;
-
- /* @var $this yii\web\View */
- /* @var $data array */
- /* @var $model \common\models\User */
- $data = isset($_params_) ? $_params_ : '';
- $this->title = '修改密码';
- $this->params['breadcrumbs'][0] = $this->title;
- $session = Yii::$app->session->getAllFlashes();
- if (!empty($session)) {
- foreach ($session as $key => $item) {
- $this->registerJs("z.showTip('$key', '$item');");
- }
- }
- $this->registerCss('label.control-label{width: 140px !important}')
- ?>
-
- <ul class="breadcrumb"><li>首页</li>
- <li class="active">修改密码</li>
- </ul>
- <div class="iframe_box">
- <div class="portlet-body flip-scroll">
- <!-- <form method="post" id="_form">-->
- <?php
- $form = zActiveForm::begin(['action' => '/user/modify-password', 'id' => '_form', 'options' => ['class' => 'form-horizontal', 'OnSubmit' => ' return check()']]);
- ?>
-
- <?= $form->field($model, 'USER_PASSWORD1', ['template' => '{label}<div class="col-sm-3" style="display: inline-flex"><div class="input-group">{input}</div>' .
- '{hint}{error}</div>'])
- ->passwordInput(['placeholder' => '输入原始密码']) ?>
-
- <?php
- echo $form->field($model, 'USER_PASSWORD', ['template' => '{label}<div class="col-sm-3" style="display: inline-flex"><div class="input-group">{input}</div>' .
- '{hint}{error}</div>'])->passwordInput(['placeholder' => '确认' . $model->getAttributeLabel('新密码')]);
- ?>
- <?php
- echo $form->field($model, 'USER_PASSWORD2', ['template' => '{label}<div class="col-sm-3" style="display: inline-flex"><div class="input-group">{input}</div>' .
- '{hint}{error}</div>'])->passwordInput(['placeholder' => '输入' . $model->getAttributeLabel('确认密码')]);
- ?>
- <!-- <a id="search" class="btn btn-sm blue-sharp green" type="submit"-->
- <!-- onclick="document.getElementById('_form').submit()"-->
- <!-- style="margin-left: 300px;vertical-align: top;height: 34px;width: 65px"><i class="fa fa-search"></i>-->
- <!-- 提交-->
- <!-- </a>-->
- <div class="form-group">
- <label class="control-label col-md-2 col-md-2-2" >
-
- </label>
- <div class="col-sm-4" style="display: inline-flex">
- <div class="input-group">
- <?= Html::submitButton('提交', ['class' => 'btn btn-primary']) ?>
-
- </div>
- </div>
- </div>
- <!---->
- <!-- <a class="btn btn-sm blue-sharp grey" onclick="history.go(-1)"-->
- <!-- style="margin-left: 20px;vertical-align: top;height: 34px;width: 65px"><i class="fa fa-search"></i>-->
- <!-- 返回-->
- <!-- </a>-->
- </div>
- <!-- </form>-->
- <?php
- zActiveForm::end();
- ?>
-
- </div>
|