password.php
2.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?php
use yii\helpers\Url;
use app\ht\widgets\LinkPager;
$this->title = '修改密码';
$this->params['breadcrumbs'][] = '个人中心';
$this->params['breadcrumbs'][] = $this->title;
?>
<form action="<?php echo Url::toRoute(['/my/default/do-password']); ?>" name="userForm" id="userForm" method="post">
<div class="panel panel-default">
<div class="panel-body">
<table class="panel-box-tb">
<thead>
<tr>
<th width="150"></th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td class="text-right">
<b class="required">原密码:</b>
</td>
<td>
<input type="password" value="" name="old_password" class="form-control required" style="width: 300px">
</td>
</tr>
<tr>
<td class="text-right">
<b class="required">新密码:</b>
</td>
<td>
<input type="password" value="" name="password" class="form-control required" style="width: 300px">
</td>
</tr>
<tr>
<td class="text-right">
<b class="required">请重复密码:</b>
</td>
<td>
<input type="password" value="" name="password_confirm" class="form-control required" style="width: 300px">
</td>
</tr>
<tr>
<td></td>
<td>
<button type="submit" class="btn btn-primary" id="save">提 交</button>
<a class="btn btn-default" href="<?php echo Url::toRoute(['password']); ?>">重 置</a>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</form>
<script>
// 表单提交验证
seajs.use("base/1.0.0/unit/validate/custom-1.0.0",function () {
var validator = $("#userForm").validate({
});
});
</script>