<!--{assign var='menuid' value=''}-->
<!--{assign var='usercpmod' value='yes'}-->
<!--{include file="<!--{$tplpath}-->cp/<!--{$tplpre}-->block_head.tpl"}-->
<body>
<!--{include file="<!--{$tplpath}--><!--{$tplpre}-->block_menu.tpl"}-->
<div id="page-index" class="page">
  <div class="zx">
    <!--{include file="<!--{$tplpath}--><!--{$tplpre}-->block_search.tpl"}-->
	<!--{include file="<!--{$tplpath}-->cp/<!--{$tplpre}-->block_menu.tpl"}-->
	
	<div class="zright">

	  <!--{if $a eq 'run'}--> 
      <div class="topmenu"> 
	    <a href="<!--{$ucfile}-->?c=account" class='now'>我的账号</a>
		<a href="<!--{$ucfile}-->?c=account&a=editpassword">修改密码</a>
		<a href="<!--{$ucfile}-->?c=account&a=recall">邮件接收</a>
	  </div>
      <div class="tb1">
		  <table cellpadding='5' cellspacing='5' border='0' class='tab'>
		      <!-- 会员ID -->
			  <tr>
				<td class='hback_b' width="20%">交友ID </td>
				<td class='hback' width="80%"><!--{$u.userid}--></td>
			  </tr>
			  <!-- 会员名称 -->
			  <tr>
				<td class='hback_b'>登录账号 </td>
				<td class='hback'><!--{$u.username}--></td>
			  </tr>
			  <!-- Email -->
			  <tr>
				<td class='hback_b'>登录邮箱 </td>
				<td class='hback'><!--{$u.email}--></td>
			  </tr>
			  <!-- 交友状态 -->
			  <tr>
			    <td class='hback_b'>交友状态 </td>
				<td class='hback'>
				<!--{if $u.lovestatus==1}-->
				<font color='green'>征友进行中</font>
				<!--{else}-->
				<font color='red'>已关闭</font>
				<!--{/if}-->
				<a href='javascript:void(0);' onclick="jbox_setstatus();" class="btn_c2"><span>设置状态</span></a>
				</td>
			  </tr>
			  <!-- 诚信星级 -->
			  <tr>
				<td class='hback_b'>诚信星级 </td>
				<td class='hback'>
				  <span class='integrity clearfix'><span class='fLefts'></span>
				  <!--{if $u.star<10}-->
					<em><!--{$u.star}--></em>
					
				  <!--{else}-->
					<em class='s<!--{$u.star}-->'><span><!--{$u.star}--></span></em>
				  <!--{/if}-->
				  </span>
			  <a class="rz"><img src="<!--{$skinpath}-->themes/images/cid<!--{if $u.idnumberrz==0}-->_h<!--{/if}-->.png" title="<!--{if $u.idnumberrz==0}-->身份证未认证<!--{else}-->已身份证认证<!--{/if}-->" /></a>&nbsp;&nbsp;
			  <a class="rz"><img src="<!--{$skinpath}-->themes/images/video<!--{if $u.videorz==0}-->_h<!--{/if}-->.png" title="<!--{if $u.videorz==0}-->视频未认证<!--{else}-->已视频认证<!--{/if}-->" /></a>&nbsp;&nbsp;
			  <a class="rz"><img src="<!--{$skinpath}-->themes/images/email<!--{if $u.emailrz==0}-->_h<!--{/if}-->.png" title="<!--{if $u.emailrz==0}-->邮箱未认证<!--{else}-->已邮箱认证<!--{/if}-->" /></a>&nbsp;&nbsp;
			  <a class="rz"><img src="<!--{$skinpath}-->themes/images/mobile<!--{if $u.mobilerz==0}-->_h<!--{/if}-->.png" title="<!--{if $u.mobilerz==0}-->手机未认证<!--{else}-->已手机认证<!--{/if}-->" /></a>
				  &nbsp;&nbsp;&nbsp;<a class="btn_c1" href="<!--{$ucfile}-->?c=certify"><span>诚信认证</span></a>
				</td>
			  </tr>
			  <!-- 会员组 -->
			  <tr>
				<td class='hback_b'>所在会员组 </td>
				<td class='hback'><!--{$u.levelimg}--> <b><!--{$g.groupname}--></b>&nbsp;&nbsp;&nbsp;<!--{if $g.groupid>1}-->（VIP到期 <!--{$u.vipenddate_t}-->）<!--{else}--><a class="btn_c1" href="<!--{$ucfile}-->?c=vip"><span>升级会员服务</span></a><!--{/if}--></td>
			  </tr>
			  <!-- 剩余积分 -->
			  <tr>
				<td class='hback_b'>可用<!--{$lang.points}--> </td>
				<td class='hback'><font color="blue"><b><!--{$u.points}--></b></font> </td>
			  </tr>
			  <!-- 剩余金币 -->
			  <tr>
				<td class='hback_b'>可用<!--{$lang.money}--> </td>
				<td class='hback'><font color="green"><b><!--{$u.money}--></b></font> &nbsp;&nbsp;&nbsp;<a href="<!--{$ucfile}-->?c=payment" class="btn_c2"><span>在线充值</span></a>&nbsp;&nbsp;&nbsp;
				<!--{if $copyright_type == 'Professional' || $copyright_type == 'Professional+'}-->
				<a href="<!--{$ucfile}-->?c=card" class="btn_c2"><span>充值卡充值</span></a>
				<!--{/if}-->
				</td>
			  </tr>
			  <!-- 注册时间 -->
			  <tr>
				<td class='hback_b'>注册时间 </td>
				<td class='hback'><!--{$u.regtime|date_format:"%Y-%m-%d %H:%M:%S"}--></td>
			  </tr>
			  <!-- 注册IP -->
			  <tr>
				<td class='hback_b'>注册IP </td>
				<td class='hback'><!--{$u.regip}--></td>
			  </tr>
			  <!-- 登录次数 -->
			  <tr>
				<td class='hback_b'>登录次数 </td>
				<td class='hback'><!--{$u.logintimes}--></td>
			  </tr>
			  <!-- 登录时间 -->
			  <tr>
				<td class='hback_b'>登录时间 </td>
				<td class='hback'><!--{$u.logintime|date_format:"%Y-%m-%d %H:%M:%S"}--></td>
			  </tr>
			  <!-- 登录IP -->
			  <tr>
				<td class='hback_b'>登录IP </td>
				<td class='hback'><!--{$u.loginip}--></td>
			  </tr>
	      </table>

      </div>
	  <!--{/if}-->
	

	  <!--{if $a eq 'editpassword'}--> 
      <div class="topmenu"> 
	    <a href="<!--{$ucfile}-->?c=account">我的账号</a>
		<a href="<!--{$ucfile}-->?c=account&a=editpassword" class='now'>修改密码</a>
		<a href="<!--{$ucfile}-->?c=account&a=recall">邮件接收</a>
	  </div>
	  登录密码长度为6-16个字符
      <div class="tb1">
         <form name="myform" id="myform" action="<!--{$ucfile}-->?c=account&a=savepassword" method="post">
		  <table cellpadding='5' cellspacing='5' border='0' class='tab'>
		      <!-- 旧密码 --> 
              <tr>
                <td class='hback_b' width="20%">旧 密 码 <span class="f_red">*</span></td>
                <td class='hback'><input type="password" name="oldpassword" id="oldpassword" class="input-150" maxlength="16" /> <span id="doldpassword" class="f_red"></span></td>
              </tr>
			  <!-- 新密码 -->
              <tr>
                <td class='hback_b'>新 密 码 <span class="f_red">*</span></td>
                <td class='hback'><input type="password" name="newpassword" id="newpassword" class="input-150" maxlength="16" /> <span id="dnewpassword" class="f_red"></span></td>
              </tr>
			  <!-- 确认新密码 -->
              <tr>
                <td class='hback_b'>再次输入 <span class="f_red">*</span></td>
                <td class='hback'><input type="password" name="confirmpassword" id="confirmpassword" class="input-150" maxlength="16" /> <span id="dconfirmpassword" class="f_red"></span></td>
              </tr>
			  <!-- 提交保存 -->
			  <tr>
				<td class='hback_none'></td>
				<td class='hback_none'><a class="btn_b2 btn" href="###" onclick="return checkform();"><span>提交保存</span></a></td>
			  </tr>
	      </table>
		  </form>
      </div>
	  <!--{/if}-->

	  <!--{if $a eq 'recall'}--> 
      <div class="topmenu"> 
	    <a href="<!--{$ucfile}-->?c=account">我的账号</a>
		<a href="<!--{$ucfile}-->?c=account&a=editpassword">修改密码</a>
		<a href="<!--{$ucfile}-->?c=account&a=recall" class='now'>邮件接收</a>
	  </div>
	  您愿意接受[<!--{$config.sitename}-->]的提醒和推荐邮件吗？
      <div class="tb1">
         <form name="myform" action="<!--{$ucfile}-->?c=account&a=saverecall" method="post">
		  <table cellpadding='5' cellspacing='5' border='0' class='tab'>
              <tr>
			    <td class='hback_none' width='10%'></td>
                <td class='hback_none' width='90%'>是 <input type="radio" name="recall" id="recall" value='1'<!--{if $u.recall=='1'}--> checked<!--{/if}--> /> <span id="drecall" class="f_red"></span></td>
              </tr>
              <tr>
			    <td class='hback_none'></td>
                <td class='hback_none'>否 <input type="radio" name="recall" id="recall" value='0'<!--{if $u.recall=='0'}--> checked<!--{/if}--> /> <span id="drecall" class="f_red"></span></td>
              </tr>
			  <!-- 提交保存 -->
			  <tr>
			    <td class='hback_none'></td>
				<td class='hback_none'><input type="submit" name="btn_save" class="button_1" value="提交保存" /></td>
			  </tr>
	      </table>
		  </form>
      </div>
	  <!--{/if}-->


    </div>
    <div style="clear:both;"></div>
  </div>
  <div style="clear:both;"></div>
</div>
<!--{include file="<!--{$tplpath}--><!--{$tplpre}-->block_footer.tpl"}-->
</body>
</html>
<script type="text/javascript">
function checkform() {
	var t = '';
	var v = '';
    
	//旧密码
	t = 'oldpassword';
	v = $('#'+t).val();
	if(v == '') {
		dmsg('旧密码不能为空', t);
		return false;
	}
    
	//新密码
	t = 'newpassword';
	v = $('#'+t).val();
	if(v == '') {
		dmsg('请输入新密码', t);
		return false;
	} else {
		if(v.length <6 || v.length>16) {
			dmsg('新密码长度必须为6-16个字符', t);
			return false;
		}
	
	}
    
	//确认密码
	if($('#confirmpassword').val() != $('#newpassword').val()) {
		dmsg('确认新密码不正确', 'confirmpassword');
		return false;
	}

	$("#myform").submit();

	return true;
}
 
</script>