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.
82 lines
2.7 KiB
82 lines
2.7 KiB
{php include wl_template('common/header');}
|
|
<ul class="nav nav-tabs">
|
|
<li class="active"><a href="#">账号信息</a></li>
|
|
</ul>
|
|
<div class="app-content">
|
|
<div class="app-form">
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">管理员信息修改</div>
|
|
<div class="panel-body">
|
|
<form action="" method="post" class="form-horizontal form" onsubmit="return formcheck(this)">
|
|
<div class="form-group">
|
|
<label class="col-md-2 control-label">管理员帐号</label>
|
|
<div class="col-sm-9">
|
|
<input type="text" name="name" class="form-control" value="{$user['username']}" readonly />
|
|
<div class="help-block">只能用'0-9'、'a-z'、'A-Z'、'.'、'@'、'_'、'-'、'!'以内范围的字符</div>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-md-2 control-label">管理员密码</label>
|
|
<div class="col-sm-9">
|
|
<input type="password" name="pw" class="form-control" value="" />
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-md-2 control-label" style="color:red">新密码</label>
|
|
<div class="col-sm-9">
|
|
<input type="password" name="pw2" class="form-control" value="" />
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-md-2 control-label" style="color:red">确认密码</label>
|
|
<div class="col-sm-9">
|
|
<input type="password" name="pw3" class="form-control" value="" />
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-md-2 control-label"></label>
|
|
<div class="col-sm-9">
|
|
<input name="submit" type="submit" value="保存" class="btn btn-primary min-width" />
|
|
<input type="hidden" name="token" value="{$_W['token']}" />
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
function formcheck(form) {
|
|
if (!form['name'].value) {
|
|
layer.alert('请填写管理员帐号!');
|
|
form['name'].focus();
|
|
return false;
|
|
}
|
|
if (!form['pw'].value) {
|
|
layer.alert('请填写管理员密码!');
|
|
form['pw'].focus();
|
|
return false;
|
|
}
|
|
if (!form['pw2'].value) {
|
|
layer.alert('请填写新密码!');
|
|
form['pw2'].focus();
|
|
return false;
|
|
}
|
|
if (form['pw'].value == form['pw2'].value) {
|
|
layer.alert('新密码与原密码一致,请检查!');
|
|
form['pw'].focus();
|
|
return false;
|
|
}
|
|
if (form['pw2'].value.length < 6 ) {
|
|
layer.alert('管理员密码不得小于6个字符!');
|
|
form['pw2'].focus();
|
|
return false;
|
|
}
|
|
if (form['pw2'].value != form['pw3'].value) {
|
|
layer.alert('两次输入的新密码不一致,请重新输入!');
|
|
form['pw2'].focus();
|
|
return false;
|
|
}
|
|
}
|
|
</script>
|
|
{php include wl_template('common/footer');}
|