{template 'head.html'}
<div class="blank10"></div>

<!-- 页面标题开始 -->
<div class="t_1 wow bounceIn">
<div>
<h3>{lang(edituserinfo)}</h3>
<p>Edit User Info</p>
</div>
</div>

<div class="p10">


<script LANGUAGE="javascript">
    <!--
    function CheckForm()
    {
        if (document.myform.pwdconfirm.value!=document.myform.password.value)
        {
            alert("{lang(twicepassnosame)}")
            document.myform.password.value = ""
            document.myform.pwdconfirm.value = ""
            document.myform.password.focus()
            document.myform.password.select()
            return false
        }

        document.myform.submit.disabled=true;
    }
    //-->
</script>



<?php
if(hasflash()){
	$showmessage = showflash();
	if(strlen($showmessage)>200){ 
?>
<div id='message'><span style="color:red;float:left"><?php echo $showmessage; ?></span>
<span style="color:blue;float:right"><a href="#" onClick="javascript:turnoff('#message');">(×)</a></span></div><div class="blank20"></div>
<?php
    }else{
?>
<script type="text/javascript">
art.dialog({
		id:'messagebox',
		content:'<?php echo $showmessage; ?>',
		title:'{lang(prompted)}',
		time: 2,
		lock:true
	});
</script>
<?php
    }
}
?>

<form name=myform onsubmit="return CheckForm();" action="<?php echo uri();?>" method=post>

<input id="oldpassword" type="password" placeholder="{lang(oldpassword)}" value="" name="oldpassword">
<div class="blank10"></div>
<input id="password" type="password" placeholder="{lang(newpassword)}" value="" name="password">
<div class="blank10"></div>
<input id="pwdconfirm" type="password" placeholder="{lang(againpassword)}" value="" name="pwdconfirm">    
<div class="blank10"></div>
<input type=hidden value=1 name=dosubmit> 
<input class="btn" type=submit value="{lang(edit)}" name=submit>
<div class="blank10"></div>
<input class="btn" type=reset value="{lang(clear)}" name=reset>
</form>

{template 'foot.html'}