<!--<?php print <<<EOT
-->
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
<link rel=stylesheet type=text/css href="../template/netgou/netgou.css">
<style>
td {font-size: 9pt;line-height: 1.5;}
body {font-size: 9pt;line-height: 1.5;}
a:link { font-size: 9pt; color: #000000; text-decoration: none }
a:visited{ font-size: 9pt; color: #000000; text-decoration: none }
a:hover {font-size: 9pt;color: red}
.adminleft {
  height:30px;
  text-align:right;
}
.adminright {
  height:30px;
  padding-left:5px;
}
</style>
<table width="100%"  border="0" cellpadding="4" cellspacing="1" bgcolor="#A5D0F1">
  <tr>
    <td background="images/wbg.gif" bgcolor="#F0F3F8"><b>会员资料</b></td>
  </tr>
  <tr bgcolor="#FFFFFF">
    <td>
<FORM action="user.php" method="POST" name="userform" onSubmit='return chkreg(this)'>
<input type="hidden" name="mode" value="update">
<input type="hidden" name="uid" value="$uid">
<table width="100%"  border="0" cellpadding="0" cellspacing="1" bgcolor="#DDDDDD">
  <tr bgcolor="#FFFFFF">
    <td width="100" class="adminleft">会员名：</td>
    <td class="adminright">$userinfo[username]</td>
  </tr>
  <tr bgcolor="#FFFFFF">
    <td width="100" class="adminleft">会员等级：</td>
    <td class="adminright">$userinfo[membership]</td>
  </tr>
  <tr bgcolor="#FFFFFF">
    <td width="100" class="adminleft">会员功德：</td>
    <td class="adminright">$userinfo[mygd]</td>
  </tr>
  <tr bgcolor="#FFFFFF">
    <td class="adminleft">密 码：</td>
    <td class="adminright"><input type="passwd" name="passwd" size="32" maxlength="32" value="$userinfo[passwd]"></td>
  </tr>
  <tr bgcolor="#FFFFFF">
    <td class="adminleft">Email：</td>
    <td class="adminright"><input type="text" name="email" size="32" maxlength="32" value="$userinfo[email]"></td>
  </tr>
  <tr bgcolor="#FFFFFF">
    <td class="adminleft">施主姓名：</td>
    <td class="adminright"><input type="text" name="hxname" size="32" maxlength="32" value="$userinfo[hxname]"></td>
  </tr>
  <tr bgcolor="#FFFFFF">
    <td class="adminleft">施主年龄：</td>
    <td class="adminright"><input type="text" name="hxage" size="32" maxlength="32" value="$userinfo[hxage]"></td>
  </tr>
<!--
EOT;
$fselected = ($userinfo[hxsex] == 'f')?"selected":"";
$mselected = ($userinfo[hxsex] == 'm')?"selected":"";
print <<<EOT
-->
  <tr bgcolor="#FFFFFF">
    <td class="adminleft">施主性别：</td>
    <td class="adminright"><select id="hxsex" name="hxsex"><option value=f $fselected>信女</option><option value=m $mselected>善男</option></select></td>
  </tr>
   <tr bgcolor="#FFFFFF">
    <td class="adminleft">施主地址：</td>
    <td class="adminright"><input type="text" name="hxname" size="32" maxlength="32" value="$userinfo[hxaddress]"></td>
  </tr>
   <tr bgcolor="#FFFFFF">
    <td class="adminleft">回向功德：</td>
    <td class="adminright"><textarea name="hxgd" id="hxgd" rows="10" cols="38">$userinfo[hxgd]</textarea></td>
  </tr>
  <tr bgcolor="#FFFFFF">
    <td class="adminleft">QQ号码：</td>
    <td class="adminright"><input type="text" name="msnqq" size="32" maxlength="32" value="$userinfo[msnqq]"></td>
  </tr>
  <tr bgcolor="#FFFFFF">
    <td class="adminleft">注册时间：</td>
    <td class="adminright">$userinfo[regdtm]</td>
  </tr>
  <tr bgcolor="#FFFFFF">
    <td class="adminleft">最后登录：</td>
    <td class="adminright">$userinfo[logindtm]</td>
  </tr>
  <tr bgcolor="#FFFFFF">
    <td class="adminleft">登录次数：</td>
    <td class="adminright">$userinfo[logins]次</td>
  </tr>
  <tr bgcolor="#FFFFFF">
    <td class="adminleft">登录 IP：</td>
    <td class="adminright">$userinfo[loginip]</td>
  </tr>
  <tr bgcolor="#EFEFEF">
    <td></td>
    <td class="adminright"><input type="submit" value="提交"></td>
  </tr>
</table>
</form>
<!--
EOT;
$userinfo[sxdtm] = ($userinfo[sxdtm] == 0)?"尚未烧香":get_datetime($userinfo[sxdtm]);
$userinfo[nfdtm] = ($userinfo[nfdtm] == 0)?"尚未拜佛":get_datetime($userinfo[nfdtm]);
$userinfo[qfdtm] = ($userinfo[qfdtm] == 0)?"尚未祈福":get_datetime($userinfo[qfdtm]);
$userinfo[cjdtm] = ($userinfo[cjdtm] == 0)?"尚未抄经":get_datetime($userinfo[cjdtm]);
$userinfo[fsdtm] = ($userinfo[fsdtm] == 0)?"尚未放生":get_datetime($userinfo[fsdtm]);
$userinfo[jsdtm] = ($userinfo[jsdtm] == 0)?"尚未祭祀":get_datetime($userinfo[jsdtm]);
$userinfo[chdtm] = ($userinfo[chdtm] == 0)?"尚未忏悔":get_datetime($userinfo[chdtm]);
$userinfo[lwdtm] = ($userinfo[lwdtm] == 0)?"尚未禄位":get_datetime($userinfo[lwdtm]);
$userinfo[czdtm] = ($userinfo[czdtm] == 0)?"尚未禅坐":get_datetime($userinfo[czdtm]);
$userinfo[sjdtm] = ($userinfo[sjdtm] == 0)?"尚未诵经":get_datetime($userinfo[sjdtm]);
$userinfo[lfdtm] = ($userinfo[lfdtm] == 0)?"尚未礼佛":get_datetime($userinfo[lfdtm]);
print <<<EOT
-->
<table width="100%" border="0" class="biaoge" cellspacing="0" cellpadding="0" style="margin-top:5px;">
  <tbody>
  <tr>
    <td class="biaoge_biaoti" colspan="4">礼佛信息</td>
  </tr> 
  <tr>
	<td width="12%" class="biaoge_tdright">烧香次数：</td>
    <td width="38%" class="biaoge_tdleft">$userinfo[sxnum] 次</td>
	<td width="12%" class="biaoge_tdright">念佛次数：</td>
    <td width="38%" class="biaoge_td">$userinfo[nfnum] 次</td>
  </tr> 
  <tr>
    <td class="biaoge_tdright">最后烧香：</td>
    <td class="biaoge_tdleft">$userinfo[sxdtm]</td>
	<td class="biaoge_tdright">最后念佛：</td>
    <td class="biaoge_td">$userinfo[nfdtm]</td>
  </tr>
  <tr>
	<td colspan="4" class="biaoge_td">&nbsp;</td>
  </tr>
  <tr>
    <td class="biaoge_tdright">抄经次数：</td>
    <td class="biaoge_tdleft">$userinfo[cjnum] 次</td>
	<td class="biaoge_tdright">放生次数：</td>
    <td class="biaoge_td">$userinfo[fsnum] 次</td>
  </tr>
  <tr>
    <td class="biaoge_tdright">最后抄经：</td>
    <td class="biaoge_tdleft">$userinfo[cjdtm]</td>
	<td class="biaoge_tdright">最后放生：</td>
    <td class="biaoge_td">$userinfo[fsdtm]</td>
  </tr>
  <tr>
	<td colspan="4" class="biaoge_td">&nbsp;</td>
  </tr>
  <tr>
    <td class="biaoge_tdright">礼佛次数：</td>
    <td class="biaoge_tdleft">$userinfo[lfnum] 次</td>
	<td class="biaoge_tdright">诵经次数：</td>
    <td class="biaoge_td">$userinfo[sjnum] 次</td>
  </tr>
  <tr>
    <td class="biaoge_tdright">最后礼佛：</td>
    <td class="biaoge_tdleft">$userinfo[lfdtm]</td>
	<td class="biaoge_tdright">最后诵经：</td>
    <td class="biaoge_td">$userinfo[sjdtm]</td>
  </tr>
  <tr>
	<td colspan="4" class="biaoge_td">&nbsp;</td>
  </tr>
  <tr>
    <td class="biaoge_tdright">祈福次数：</td>
    <td class="biaoge_tdleft">$userinfo[qfnum] 次</td>
	<td class="biaoge_tdright">祭祀次数：</td>
    <td class="biaoge_td">$userinfo[jsnum] 次</td>
  </tr>
  <tr>
    <td class="biaoge_tdright">最后祈福：</td>
    <td class="biaoge_tdleft">$userinfo[qfdtm]</td>
	<td class="biaoge_tdright">最后祭祀：</td>
    <td class="biaoge_td">$userinfo[jsdtm]</td>
  </tr>
  <tr>
	<td colspan="4" class="biaoge_td">&nbsp;</td>
  </tr>
  <tr>
    <td class="biaoge_tdright">忏悔次数：</td>
    <td class="biaoge_tdleft">$userinfo[chnum] 次</td>
	<td class="biaoge_tdright">禄位次数：</td>
    <td class="biaoge_td">$userinfo[lwnum] 次</td>
  </tr>
  <tr>
    <td class="biaoge_tdright">最后忏悔：</td>
    <td class="biaoge_tdleft">$userinfo[chdtm]</td>
	<td class="biaoge_tdright">最后禄位：</td>
    <td class="biaoge_td">$userinfo[lwdtm]</td>
  </tr>
  <tr>
	<td colspan="4" class="biaoge_td">&nbsp;</td>
  </tr>
  <tr>
    <td class="biaoge_tdright">禅坐次数：</td>
    <td class="biaoge_tdleft">$userinfo[cznum] 次</td>
	<td class="biaoge_tdright"></td>
    <td class="biaoge_td"></td>
  </tr>
  <tr>
    <td class="biaoge_tdright">最后禅坐：</td>
    <td class="biaoge_tdleft">$userinfo[czdtm]</td>
	<td class="biaoge_tdright"></td>
    <td class="biaoge_td"></td>
  </tr>
  </tbody>
</table>
<script language=JavaScript1.2>
function chkreg(formct){
	
	if(formct.email.value.length!=0)	{
		if (formct.email.value.charAt(0)=="." ||        
			 formct.email.value.charAt(0)=="@"||       
			 formct.email.value.indexOf('@', 0) == -1 || 
			 formct.email.value.indexOf('.', 0) == -1 || 
			 formct.email.value.lastIndexOf("@")==formct.email.value.length-1 || 
			 formct.email.value.lastIndexOf(".")==formct.email.value.length-1)
		 {
		  alert("Email地址格式不正确！");
		  formct.email.focus();
		  return false;
		  }
	}
 	else
	{
	   alert("Email地址不能为空！");
	   formct.email.focus();
	   return false;
   }
   
}
</script>
    </td>
  </tr>
</table>
<!--
EOT;
?>-->