<?php
/*
 * 注意：此文件由tpl_engine编译型模板引擎编译生成。
 * 如果您的模板要进行修改，请修改 templates/default/modules/users/user_pw_change.html
 * 如果您的模型要进行修改，请修改 models/modules/users/user_pw_change.php
 *
 * 修改完成之后需要您进入后台重新编译，才会重新生成。
 * 如果您开启了debug模式运行，那么您可以省去上面这一步，但是debug模式每次都会判断程序是否更新，debug模式只适合开发调试。
 * 如果您正式运行此程序时，请切换到service模式运行！
 * 
 * 如有您有问题请到官方论坛（http://tech.jooyea.com/bbs/）提问，谢谢您的支持。
 */
?><?php
	//语言包引入
	$u_langpackage=new userslp;
	//变量获得
	$user_id = get_sess_userid();
	$formerly_pw = short_check(get_argp('formerly_pw'));
	$new_pw = short_check(get_argp('new_pw'));
	$new_pw_repeat = short_check(get_argp('new_pw_repeat'));
	$model = short_check(get_argg('model'));
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<script type="text/javascript">
function check_form()
{
	if(document.getElementById('new_pw').value!=document.getElementById('new_pw_repeat').value)
	{
		parent.Dialog.alert('<?php echo $u_langpackage->u_pw2_err;?>');
		return false;
	}
}
</script>
<link rel="stylesheet" type="text/css" href="skin/<?php echo $skinUrl;?>/css/row_menus.css">
<link rel="stylesheet" type="text/css" href="skin/<?php echo $skinUrl;?>/css/iframe.css">
</head>
<body>
<form id="form1" name="form1" method="post" action="do.php?act=user_pw_change" onsubmit="return check_form();">
  <div class="main_right_title">
     <span class="main_title_dot9"></span>
     <span class="main_title_txt"><?php echo $u_langpackage->u_conf;?></span>
  </div>
<div id="tabsB">
	<ul>
    <li><a href="?app=user_info" title="<?php echo $u_langpackage->u_info;?>"><span><?php echo $u_langpackage->u_info;?></span></a></li>
    <li><a href="?app=user_ico" title="<?php echo $u_langpackage->u_icon;?>"><span><?php echo $u_langpackage->u_icon;?></span></a></li>
    <li><a href="?app=user_integral" title="<?php echo $u_langpackage->u_integral;?>"><span><?php echo $u_langpackage->u_integral;?></span></a></li>
    <li><a href="?app=user_pw_change" title="<?php echo $u_langpackage->u_pw;?>" class="nowbutl"><span class="nowbutr"><?php echo $u_langpackage->u_pw;?></span></a></li>
    <li><a href="?app=user_dressup" title="<?php echo $u_langpackage->u_dressup;?>"><span><?php echo $u_langpackage->u_dressup;?></span></a></li>
  </ul>
</div>

<table width="60%" border="0" class='main main_left'>
  <tr>
    <th width="20%" class="tright"><?php echo $u_langpackage->u_fml_pw;?></th>
    <td width="80%"><input type="password" name="formerly_pw" value="" /></td>
  </tr>
  <tr>
    <th class="tright"><?php echo $u_langpackage->u_new_pw;?></th>
    <td><input type="password" name="new_pw" id="new_pw" value="" /></td>
  </tr>
  <tr>
    <th class="tright"><?php echo $u_langpackage->u_repeat_pw;?></th>
    <td><input type="password" name="new_pw_repeat" id="new_pw_repeat" value="" /></td>
  </tr>
  <tr>
    <td><input type="submit" name="Submit" class="anniu right" value="<?php echo $u_langpackage->u_b_con;?>" /></td>
    <td><input type="button" name="Submit2" class="anniu" onclick="location.href='?app=user_pw_change'" value="<?php echo $u_langpackage->u_b_can;?>" /></td>
  </tr>
</table>
</form>
</body>
</html>
