<?php if(!defined('IN_PATH')){exit('Access Denied.');}?>
{inc:home:header.htm}
{inc:left.htm}
<div class="row">
	<div class="col-sm-12">
		<div class="alert alert-success"><span class="icon-location"></span> 当前位置：修改密码</div>
	</div>
	<div class="col-sm-12">
		<div class="panel panel-default">
			<div class="panel-heading">修改密码</div>
			<div class="panel-body">
				<form class="form-horizontal" id="passwordform" method="post" action="index.php?u=index-password" style="width:50%;margin:0px auto;">
					<div class="form-group">
						<label class="control-label col-sm-2" for="oldpassword">旧密码</label>
						<div class="col-sm-10">
							<input class="form-control" type="password" id="oldpassword" name="oldpassword" value="" validata-options="validType:'Require',msg:'不能为空'" />
						</div>
					</div>
					<div class="form-group">
						<label class="control-label col-sm-2" for="password">新密码</label>
						<div class="col-sm-10">
							<input class="form-control" type="password" name="password" id="password" value="" validata-options="validType:'Require',msg:'不能为空'" />
						</div>
					</div>
					<div class="form-group">
						<label class="control-label col-sm-2" for="repassword">确　认</label>
						<div class="col-sm-10">
							<input class="form-control" type="password" name="repassword" id="repassword" value="" validata-options="validType:'Repeat',to:'Password',msg:'两次输入的密码不一致'" />
						</div>
					</div>
					<div class="form-group">
						<label class="control-label col-sm-2" for=""></label>
						<div class="col-sm-10">
							<input type="submit" id="submit_2" class="btn btn-info" value="确定提交" />
						</div>						
					</div>
				</form>
			</div>
		</div>
	</div>
</div>
<script>
$(document).ready(function(){
	ppAjax.submit("#passwordform", function(data){
		ppAjax.alert(data);
		if(window.ppData.err==0) {
			layer.msg(window.ppData.msg, {icon: 1,time: 2000,shade: 0.6}, function(){window.location = memurl;});
		}else{
			layer.msg(window.ppData.msg, function(){});
		}
	});
});
</script>
{inc:footer.htm}