{* <?php die('duotaopu');?> *}
{include file="common/header.php"}
<body class="body-main">

<ul id="admin_sub_title">
	<li class="sub">修改密码</li>
</ul>
<div id="admin_right_b">
  <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1">
  <form method="post">
    <tr class="tdbg">
      <td align="right">用户名：</td>
      <td><input name="name" id="name" type="text" class="input"value="{$name}" style="width:200px;">　<span>账号支持中文，不包含特殊符号</span></td>
    </tr>
    <tr class="tdbg">
      <td align="right">旧密码：</td>
      <td><input name="pass" class="input" id="pass" title="输入旧密码" type="password" style="width:200px;">　<span>输入旧密码</span></td>
    </tr>

	<tr class="tdbg">
      <td align="right">新密码：</td>
      <td><input name="pass1" class="input" id="pass1" title="输入新密码" type="password" style="width:200px;">　<span>输入新密码</span></td>
    </tr>
	
    <tr class="tdbg">
	  <td>&nbsp;</td>
      <td><div class="aui_buttons"  style="text-align:left;"><button type="submit" id="dosave" class="aui_state_highlight">保存</button><button type="button" onClick="history.go(-1)" class="aui_state_highlight">返回</button></div></td>
    </tr>
	</form>
  </table>
<script type='text/javascript'>
$(function() {
	$("#dosave").click(function(){
		if($('#pass').val()==''){ blert('旧密码不能为空！');return false;}
		if($('#pass1').val()==''){ blert('新密码不能为空！');return false;}
		showDialog();
		$.ajax({
			type:"post",
			url:"?m=master&a=update&_t="+Math.random()*10,
			data:$("form").serialize(),
			dataType:'json',
			timeout:29000,
			global:false,
			success:function(data){
				if(data.status==1){
					showAlert('success','恭喜你，修改成功');
				}else{
					showAlert('error',data.info);
				}
			}
		});
	 return false;
	});
});
</script>
<div class="runtime"></div>  
</div>
</body>
</html>