1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- <?php /* Smarty version 2.6.17, created on 2018-04-18 11:20:25
- compiled from admin/backUser/modify_password.html */ ?>
- <?php $_smarty_tpl_vars = $this->_tpl_vars;
- $this->_smarty_include(array('smarty_include_tpl_file' => "./admin/header.html", 'smarty_include_vars' => array()));
- $this->_tpl_vars = $_smarty_tpl_vars;
- unset($_smarty_tpl_vars);
- ?>
- <?php $_smarty_tpl_vars = $this->_tpl_vars;
- $this->_smarty_include(array('smarty_include_tpl_file' => "./admin/left.html", 'smarty_include_vars' => array()));
- $this->_tpl_vars = $_smarty_tpl_vars;
- unset($_smarty_tpl_vars);
- ?>
- <?php $_smarty_tpl_vars = $this->_tpl_vars;
- $this->_smarty_include(array('smarty_include_tpl_file' => "./admin/nav.html", 'smarty_include_vars' => array()));
- $this->_tpl_vars = $_smarty_tpl_vars;
- unset($_smarty_tpl_vars);
- ?>
- <?php if ($this->_tpl_vars['successMsg']): ?>
- <div class="tip_message_success"><?php echo $this->_tpl_vars['successMsg']; ?>
- </div>
- <?php endif; ?>
- <?php if ($this->_tpl_vars['errMsg']): ?>
- <div class="tip_message_fail"><?php echo $this->_tpl_vars['errMsg']; ?>
- </div>
- <?php endif; ?>
- <div style="width:400px;">
- <form class="form-horizontal" role="form" method="post">
- <div class="form-group">
- <label for="t1" class="col-sm-3 control-label">用户名:</label>
- <div class="col-sm-7">
- <p class="form-control-static"><?php echo $this->_tpl_vars['user']['name']; ?>
- </p>
- </div>
- </div>
- <div class="form-group">
- <label for="t2" class="col-sm-3 control-label">原始密码:</label>
- <div class="col-sm-7">
- <input name='oldPassword' type="password" class="form-control" id="t2">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-3 control-label">新密码:</label>
- <div class="col-sm-7">
- <input name='newPassword' type="password" class="form-control" placeholder="新密码不能小于6位">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-3 control-label">确认密码:</label>
- <div class="col-sm-7">
- <input id="confirmPass" type="password" class="form-control">
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-offset-3 col-sm-7">
- <button type="submit" class="btn btn-primary btn-sm">提交</button>
- </div>
- </div>
- </form>
- </div>
- <script>
- KISSY.use('node', function (S, Node) {
- var $ = S.all;
-
- $('button').on('click', function () {
- var oldPassword = $('input[name=oldPassword]').val();
- if (!S.trim(oldPassword)) {
- alert('请填写原始密码');
- return false;
- }
-
- var newPassword = $('input[name=newPassword]').val();
- if (!S.trim(newPassword)) {
- alert('请填写新密码');
- return false;
- }
-
- var confirmPass = $('#confirmPass').val();
- if (!S.trim(confirmPass)) {
- alert('请填写确认密码');
- return false;
- }
-
- if (newPassword != confirmPass) {
- alert('确认密码填写错误');
- return false;
- }
- });
-
- });
- </script>
- <?php $_smarty_tpl_vars = $this->_tpl_vars;
- $this->_smarty_include(array('smarty_include_tpl_file' => "./admin/bottom.html", 'smarty_include_vars' => array()));
- $this->_tpl_vars = $_smarty_tpl_vars;
- unset($_smarty_tpl_vars);
- ?>
|