You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

76 lines
3.0 KiB

  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: luocj
  5. * Date: 2017/2/13
  6. * Time: 11:35
  7. */
  8. use common\components\zActiveForm;
  9. use yii\helpers\Html;
  10. /* @var $this yii\web\View */
  11. /* @var $data array */
  12. /* @var $model \common\models\User */
  13. $data = isset($_params_) ? $_params_ : '';
  14. $this->title = '修改密码';
  15. $this->params['breadcrumbs'][0] = $this->title;
  16. $session = Yii::$app->session->getAllFlashes();
  17. if (!empty($session)) {
  18. foreach ($session as $key => $item) {
  19. $this->registerJs("z.showTip('$key', '$item');");
  20. }
  21. }
  22. $this->registerCss('label.control-label{width: 140px !important}')
  23. ?>
  24. <ul class="breadcrumb"><li>首页</li>
  25. <li class="active">修改密码</li>
  26. </ul>
  27. <div class="iframe_box">
  28. <div class="portlet-body flip-scroll">
  29. <!-- <form method="post" id="_form">-->
  30. <?php
  31. $form = zActiveForm::begin(['action' => '/user/modify-password', 'id' => '_form', 'options' => ['class' => 'form-horizontal', 'OnSubmit' => ' return check()']]);
  32. ?>
  33. <?= $form->field($model, 'USER_PASSWORD1', ['template' => '{label}<div class="col-sm-3" style="display: inline-flex"><div class="input-group">{input}</div>' .
  34. '{hint}{error}</div>'])
  35. ->passwordInput(['placeholder' => '输入原始密码']) ?>
  36. <?php
  37. echo $form->field($model, 'USER_PASSWORD', ['template' => '{label}<div class="col-sm-3" style="display: inline-flex"><div class="input-group">{input}</div>' .
  38. '{hint}{error}</div>'])->passwordInput(['placeholder' => '确认' . $model->getAttributeLabel('新密码')]);
  39. ?>
  40. <?php
  41. echo $form->field($model, 'USER_PASSWORD2', ['template' => '{label}<div class="col-sm-3" style="display: inline-flex"><div class="input-group">{input}</div>' .
  42. '{hint}{error}</div>'])->passwordInput(['placeholder' => '输入' . $model->getAttributeLabel('确认密码')]);
  43. ?>
  44. <!-- <a id="search" class="btn btn-sm blue-sharp green" type="submit"-->
  45. <!-- onclick="document.getElementById('_form').submit()"-->
  46. <!-- style="margin-left: 300px;vertical-align: top;height: 34px;width: 65px"><i class="fa fa-search"></i>-->
  47. <!-- 提交-->
  48. <!-- </a>-->
  49. <div class="form-group">
  50. <label class="control-label col-md-2 col-md-2-2" >
  51. </label>
  52. <div class="col-sm-4" style="display: inline-flex">
  53. <div class="input-group">
  54. <?= Html::submitButton('提交', ['class' => 'btn btn-primary']) ?>
  55. </div>
  56. </div>
  57. </div>
  58. <!---->
  59. <!-- <a class="btn btn-sm blue-sharp grey" onclick="history.go(-1)"-->
  60. <!-- style="margin-left: 20px;vertical-align: top;height: 34px;width: 65px"><i class="fa fa-search"></i>-->
  61. <!-- 返回-->
  62. <!-- </a>-->
  63. </div>
  64. <!-- </form>-->
  65. <?php
  66. zActiveForm::end();
  67. ?>
  68. </div>