<!--<?php print <<<EOT
-->
<table width="980" border="0" align="center" bgcolor="#FFFFFF" cellspacing="1" cellpadding="0">
  <tbody>
  <tr>
    <td width="220" valign="top">
<a href="http://www.tlfjw.com"><img src="img/220.gif" width="220" height="56" border="0" /></a>
	</td>
    <td width="500" valign="top">
<!--
EOT;
if($mode == "yichao"){
print <<<EOT
-->
<table width="100%" border="0" align="center" height="85" background="chaojing/cj500.jpg">
  <tbody>
  <tr>
    <td>

    </td>
  </tr>
  </tbody>
</table>
<!--
EOT;
if($yichao != ''){
print <<<EOT
-->
<table width="100%" border="0" class="biaoge" cellspacing="1" cellpadding="0" style="margin-top:5px;">
<tbody>
<FORM action="index.php" method="POST" name="ssjwenform">
  <tr>
    <td class="biaoge_biaoti">抄写完成的经文：</td>
    <td class="biaoge_biaoti" align="right" style="padding-right:5px;" colspan="2">
搜索经文：<INPUT type="text" name="jwname" size="20" value="$jwname"><INPUT type="submit" value="搜索" ></td>
  </tr> 
</FORM>
  <tr align="center" height="30" bgcolor="#F0F3F8">
	<td class="biaoge_td"  width="250">经文名称</td>
	<td class="biaoge_td" width="200">抄经时间</td>
	<td class="biaoge_td" width="100">继续抄写</td>
  </tr> 
<!--
EOT;
foreach($yichao as $jw){
$jw[jcshijian] = get_datetime($jw[jcshijian]);
$bgcolor =($bgcolor == '#FFFFFF')?'#F0F3F8':'#FFFFFF';
print <<<EOT
列表开始--> 
  <tr onMouseOver="javascript:this.bgColor='#FFFFCC'" onmouseout="javascript:this.bgColor='$bgcolor'" bgcolor="$bgcolor" height=30 align="center">
    <td align="left" style="padding-left:5px;"  class="toptxt"><A href="chaojing/chaojing.php?jwid=$jw[jwid]">$jw[jwname]</A></td>
	<td>$jw[jcshijian]</td>
    <td><A href="chaojing/chaojing.php?jwid=$jw[jwid]"><img src="chaojing/continue.gif" width="65" height="24" border="0" /></A></td>
  </tr>
<!--列表结束
EOT;
}print <<<EOT
-->
</tbody>
</table>
<table width="100%" border="1" align="center" bordercolor="#5e5e5e">
  <tbody>
  <tr bgcolor="#EFEFEF" height="30" align="center">
    <td>
<!--
EOT;
include ('resultspage.htm');
print <<<EOT
-->
    </td>
  </tr>
  </tbody>
</table>
<!--
EOT;
}else{
print <<<EOT
-->
<table width="100%" border="0" class="biaoge" cellspacing="0" cellpadding="0">
  <tbody>
  <tr>
    <td class="biaoge_biaoti">暂无抄经</td>
  </tr>
  <tr>
    <td class="biaoge_td">暂无抄经</td>
  </tr>
  </tbody>
</table>
<!--已抄经书结束，功德记录开始
EOT;
}}elseif($mode == "gongde"){
$userzl[sxdtm] = ($userzl[sxdtm] == 0)?"尚未烧香":get_datetime($userzl[sxdtm]);
$userzl[nfdtm] = ($userzl[nfdtm] == 0)?"尚未拜佛":get_datetime($userzl[nfdtm]);
$userzl[qfdtm] = ($userzl[qfdtm] == 0)?"尚未祈福":get_datetime($userzl[qfdtm]);
$userzl[cjdtm] = ($userzl[cjdtm] == 0)?"尚未抄经":get_datetime($userzl[cjdtm]);
$userzl[fsdtm] = ($userzl[fsdtm] == 0)?"尚未放生":get_datetime($userzl[fsdtm]);
$userzl[jsdtm] = ($userzl[jsdtm] == 0)?"尚未祭祀":get_datetime($userzl[jsdtm]);
$userzl[chdtm] = ($userzl[chdtm] == 0)?"尚未忏悔":get_datetime($userzl[chdtm]);
$userzl[lwdtm] = ($userzl[lwdtm] == 0)?"尚未禄位":get_datetime($userzl[lwdtm]);
$userzl[czdtm] = ($userzl[czdtm] == 0)?"尚未禅坐":get_datetime($userzl[czdtm]);
$userzl[sjdtm] = ($userzl[sjdtm] == 0)?"尚未诵经":get_datetime($userzl[sjdtm]);
$userzl[lfdtm] = ($userzl[lfdtm] == 0)?"尚未礼佛":get_datetime($userzl[lfdtm]);
print <<<EOT
-->
<table width="100%" border="0" class="biaoge" cellspacing="0" cellpadding="0">
  <tbody>
  <tr>
    <td class="biaoge_biaoti" colspan="3">功德信息</td>
  </tr>
  <tr>
    <td class="biaoge_td" colspan="3">&nbsp;施主现在共有功德：<font color="red">$userinfo[mygd]</font>，共礼佛 <font color="red">$total_items</font> 次</td>
  </tr>
  <tr align="center">
    <td class="biaoge_td">烧香一次获得<font color="red">$netgou[gongde_sx]</font>功德</td>
	<td class="biaoge_td">念佛一次获得<font color="red">$netgou[gongde_nf]</font>功德</td>
	<td class="biaoge_td">祈福一次获得<font color="red">$netgou[gongde_qf]</font>功德</td>
  </tr>
  <tr align="center">
    <td class="biaoge_td">抄经一次获得<font color="red">$netgou[gongde_cj]</font>功德</td>
	<td class="biaoge_td">放生一次获得<font color="red">$netgou[gongde_fs]</font>功德</td>
	<td class="biaoge_td">祭祀一次获得<font color="red">$netgou[gongde_js]</font>功德</td>
  </tr>
  <tr align="center">
    <td class="biaoge_td">忏悔一次获得<font color="red">$netgou[gongde_ch]</font>功德</td>
	<td class="biaoge_td">禄位一次获得<font color="red">$netgou[gongde_lw]</font>功德</td>
	<td class="biaoge_td">礼佛一次获得<font color="red">$netgou[gongde_lf]</font>功德</td>
  </tr>
  <tr align="center">
    <td class="biaoge_td">禅坐一次获得<font color="red">$netgou[gongde_cz]</font>功德</td>
	<td class="biaoge_td">诵经一次获得<font color="red">$netgou[gongde_sj]</font>功德</td>
	<td class="biaoge_td">&nbsp;</td>
  </tr>
  </tbody>
</table>
<br />
<!--
EOT;
if($gongde != ''){
print <<<EOT
-->
<table width="100%" border="0" class="biaoge" cellspacing="0" cellpadding="0">
  <tbody>
  <tr>
    <td class="biaoge_biaoti" colspan="7">功德记录</td>
  </tr> 
  <tr bgcolor="#F0F3F8" align="center">
	<td class="biaoge_tdcenter" width="50">ID</td>
	<td class="biaoge_tdcenter" width="80">会员名</td>
	<td class="biaoge_tdcenter">功德类型</td>
	<td class="biaoge_tdcenter">礼佛前</td>
	<td class="biaoge_tdcenter">本次获得</td>
	<td class="biaoge_tdcenter">礼佛后</td>
	<td class="biaoge_td">礼佛时间</td>
  </tr>
<!--
EOT;
foreach($gongde as $gd){
$gd[gddtm] = get_datetime($gd[gddtm]);

switch ($gd[modetype]) {
  case "sx":
    $modetype = "烧香";
    break;
  case "nf":
    $modetype = "念佛";
    break;
  case "qf":
    $modetype = "祈福";
    break;
  case "cj":
    $modetype = "抄经";
    break;
  case "fs":
    $modetype = "放生";
    break;
  case "js":
    $modetype = "祭祀";
    break;
  case "ch":
    $modetype = "忏悔";
    break;
  case "lw":
    $modetype = "禄位";
    break;
  case "cz":
    $modetype = "禅坐";
    break;
  case "sj":
    $modetype = "诵经";
    break;
  case "lf":
    $modetype = "礼佛";
    break;
  default:
    $modetype = "烧香";
}

$bgcolor =($bgcolor == '#FFFFFF')?'#F0F3F8':'#FFFFFF';
print <<<EOT
列表开始--> 
  <tr onMouseOver="javascript:this.bgColor='#FFFFCC'" onmouseout="javascript:this.bgColor='$bgcolor'" bgcolor="$bgcolor">
	<td class="biaoge_tdcenter">$gd[gdid]</td>
	<td class="biaoge_tdcenter">$gd[username]</td>
	<td class="biaoge_tdcenter">$modetype</td>
	<td class="biaoge_tdcenter">$gd[oldgd]</td>
	<td class="biaoge_tdcenter">$gd[gdnum]</td>
	<td class="biaoge_tdcenter">$gd[newgd]</td>
	<td class="biaoge_tdcenter">$gd[gddtm]</td>
  </tr>
<!--列表结束
EOT;
}print <<<EOT
-->
  <tr>
    <td colspan="7" bgcolor="#EFEFEF" height="30">
<!--
EOT;
include ('resultspage.htm');
print <<<EOT
-->
    </td>
  </tr>
  </tbody>
</table>
<!--
EOT;
}else{
print <<<EOT
-->
<table width="100%" border="0" class="biaoge" cellspacing="0" cellpadding="0">
  <tbody>
  <tr>
    <td class="biaoge_biaoti">暂无功德记录</td>
  </tr>
  <tr>
    <td class="biaoge_td">暂无功德记录</td>
  </tr>
  </tbody>
</table>
<!--
EOT;
}print <<<EOT
-->
<br />
<table width="100%" border="0" class="biaoge" cellspacing="0" cellpadding="0">
  <tbody>
  <tr>
    <td class="biaoge_biaoti" colspan="4">礼佛信息</td>
  </tr> 
  <tr bgcolor="#F0F3F8" align="center">
	<td colspan="4" class="biaoge_td">$username:$netgou[web_center]</td>
  </tr>
  <tr>
	<td width="75" class="biaoge_tdright">烧香次数：</td>
    <td width="175" class="biaoge_tdleft">$userzl[sxnum] 次</td>
	<td width="75" class="biaoge_tdright">念佛次数：</td>
    <td width="175" class="biaoge_td">$userzl[nfnum] 次</td>
  </tr> 
  <tr>
    <td class="biaoge_tdright">最后烧香：</td>
    <td class="biaoge_tdleft">$userzl[sxdtm]</td>
	<td class="biaoge_tdright">最后念佛：</td>
    <td class="biaoge_td">$userzl[nfdtm]</td>
  </tr>
  <tr>
	<td colspan="4" class="biaoge_td">&nbsp;</td>
  </tr>
  <tr>
    <td class="biaoge_tdright">抄经次数：</td>
    <td class="biaoge_tdleft">$userzl[cjnum] 次</td>
	<td class="biaoge_tdright">放生次数：</td>
    <td class="biaoge_td">$userzl[fsnum] 次</td>
  </tr>
  <tr>
    <td class="biaoge_tdright">最后抄经：</td>
    <td class="biaoge_tdleft">$userzl[cjdtm]</td>
	<td class="biaoge_tdright">最后放生：</td>
    <td class="biaoge_td">$userzl[fsdtm]</td>
  </tr>
  <tr>
	<td colspan="4" class="biaoge_td">&nbsp;</td>
  </tr>
  <tr>
    <td class="biaoge_tdright">礼佛次数：</td>
    <td class="biaoge_tdleft">$userzl[lfnum] 次</td>
	<td class="biaoge_tdright">诵经次数：</td>
    <td class="biaoge_td">$userzl[sjnum] 次</td>
  </tr>
  <tr>
    <td class="biaoge_tdright">最后礼佛：</td>
    <td class="biaoge_tdleft">$userzl[lfdtm]</td>
	<td class="biaoge_tdright">最后诵经：</td>
    <td class="biaoge_td">$userzl[sjdtm]</td>
  </tr>
  <tr>
	<td colspan="4" class="biaoge_td">&nbsp;</td>
  </tr>
  <tr>
    <td class="biaoge_tdright">祈福次数：</td>
    <td class="biaoge_tdleft">$userzl[qfnum] 次</td>
	<td class="biaoge_tdright">祭祀次数：</td>
    <td class="biaoge_td">$userzl[jsnum] 次</td>
  </tr>
  <tr>
    <td class="biaoge_tdright">最后祈福：</td>
    <td class="biaoge_tdleft">$userzl[qfdtm]</td>
	<td class="biaoge_tdright">最后祭祀：</td>
    <td class="biaoge_td">$userzl[jsdtm]</td>
  </tr>
  <tr>
	<td colspan="4" class="biaoge_td">&nbsp;</td>
  </tr>
  <tr>
    <td class="biaoge_tdright">忏悔次数：</td>
    <td class="biaoge_tdleft">$userzl[chnum] 次</td>
	<td class="biaoge_tdright">禄位次数：</td>
    <td class="biaoge_td">$userzl[lwnum] 次</td>
  </tr>
  <tr>
    <td class="biaoge_tdright">最后忏悔：</td>
    <td class="biaoge_tdleft">$userzl[chdtm]</td>
	<td class="biaoge_tdright">最后禄位：</td>
    <td class="biaoge_td">$userzl[lwdtm]</td>
  </tr>
  <tr>
	<td colspan="4" class="biaoge_td">&nbsp;</td>
  </tr>
  <tr>
    <td class="biaoge_tdright">禅坐次数：</td>
    <td class="biaoge_tdleft">$userzl[cznum] 次</td>
	<td class="biaoge_tdright"></td>
    <td class="biaoge_td"></td>
  </tr>
  <tr>
    <td class="biaoge_tdright">最后禅坐：</td>
    <td class="biaoge_tdleft">$userzl[czdtm]</td>
	<td class="biaoge_tdright"></td>
    <td class="biaoge_td"></td>
  </tr>
  </tbody>
</table>
<!--
EOT;
}else{
$userzl[regdtm] = get_datetime($userzl[regdtm]);
$userzl[logindtm] = get_datetime($userzl[logindtm]);
print <<<EOT
-->
<table width="100%" border="0" class="biaoge" cellspacing="0" cellpadding="0">
  <tbody>
  <tr>
    <td class="biaoge_biaoti" colspan="2">统计信息</td>
  </tr> 
  <tr bgcolor="#F0F3F8" align="center">
	<td colspan="2" class="biaoge_td">$username:$netgou[web_center]</td>
  </tr>
  <tr>
	<td width="100" class="biaoge_tdright">注册时间：</td>
    <td width="400" class="biaoge_td">$userzl[regdtm]</td>
  </tr> 
  <tr>
    <td class="biaoge_tdright">最后登录：</td>
    <td class="biaoge_td">$userzl[logindtm]</td>
  </tr>
  <tr>
    <td class="biaoge_tdright">登录次数：</td>
    <td class="biaoge_td">$userzl[logins] 次</td>
  </tr>
  <tr>
    <td class="biaoge_tdright">登录地址：</td>
    <td class="biaoge_td">$userzl[loginip]</td>
  </tr>
  <tr>
    <td class="biaoge_tdright">我的功德：</td>
    <td class="biaoge_td">$userzl[mygd] <a href="users.php?mode=gongde">点击查看详情</a></td>
  </tr>
  </tbody>
</table><br />
<table width="100%" border="0" class="biaoge" cellspacing="0" cellpadding="0">
<tbody>
<FORM action="users.php" method="POST" name="userform">
<INPUT type='hidden' name='mode' value='update'>
  <tr>
    <td class="biaoge_biaoti" colspan="2">会员联系资料</td>
  </tr>
  <tr bgcolor="#F0F3F8" align="center">
	<td colspan="2" class="biaoge_td">请输入您的礼佛信息，礼佛时可以直接调用不需要每次输入</td>
  </tr>
  <tr>
    <td class="biaoge_tdright">会员名称：</td>
    <td class="biaoge_td"><font color="red">$userzl[username]</font></td>
  </tr>
  <tr>
    <td class="biaoge_tdright">原来密码：</td>
    <td class="biaoge_td"><INPUT type="password" name="oldpass" size="20" maxlength="32"><font color="red">（不修改密码请留空）</font></td>
  </tr>
  <tr>
    <td class="biaoge_tdright">新的密码：</td>
    <td class="biaoge_td"><INPUT type="password" name="passwd1" size="20" maxlength="32"><font color="red">（不修改密码请留空）</font></td>
  </tr>
  <tr>
    <td class="biaoge_tdright">确认密码：</td>
    <td class="biaoge_td"><INPUT type="password" name="passwd2" size="20" maxlength="32"><font color="red">（不修改密码请留空）</font></td>
  </tr>
  <tr>
    <td class="biaoge_tdright">电子信箱：</td>
    <td class="biaoge_td"><INPUT type="text" name="email" size="20" maxlength="128" value="$userzl[email]"></td>
  </tr>
  <tr>
	<td width="100" class="biaoge_tdright">施主姓名：</td>
    <td width="400" class="biaoge_td"><input type="text" name="hxname" size="20" maxlength="32" value="$userzl[hxname]" /></td>
  </tr>
<!--
EOT;
$fselected = ($userzl[hxsex] == 'f')?"selected":"";
$mselected = ($userzl[hxsex] == 'm')?"selected":"";
print <<<EOT
-->
  <tr>
    <td class="biaoge_tdright">施主性别：</td>
    <td class="biaoge_td"><select id="hxsex" name="hxsex"><option value=f $fselected>信女</option><option value=m $mselected>善男</option></select></td>
  </tr>
  <tr>
    <td class="biaoge_tdright">施主年龄：</td>
    <td class="biaoge_td"><input type="text" name="hxage" id="hxage" size="20" maxlength="32" value="$userzl[hxage]" /></td>
  </tr>
  <tr>
    <td class="biaoge_tdright">施主地址：</td>
    <td class="biaoge_td"><input type="text" name="hxaddress" size="20" maxlength="32" value="$userzl[hxaddress]" /></td>
  </tr>
  <tr>
    <td class="biaoge_tdright">联系QQ：</td>
    <td class="biaoge_td"><input type="text" name="msnqq" size="20" maxlength="32" value="$userzl[msnqq]"/></td>
  </tr>
  <tr>
    <td class="biaoge_tdright">回向功德：</td>
    <td class="biaoge_td">
<textarea name="hxgd" id="hxgd" rows="5" cols="50">$userzl[hxgd]</textarea></td>
  </tr>
  <tr bgcolor="#F0F3F8" align="center">
	<td colspan="2" class="biaoge_td"><input type="submit" value="提交"></td>
  </tr>
</FORM>
</tbody>
</table>
<!--
EOT;
}print <<<EOT
-->
	</td>
    <td width="260" valign="top">
<!--
EOT;
$listname = "拜佛常识";
$txtsou = "where $sql_tbl[newsletter].avail = 'Y'";

$rnd = rand();
$txtorderby = "ORDER BY RAND(NOW()+$rnd)";

$intjilu = 15;
include ('topnews.htm');
print <<<EOT
-->
	</td>
  </tr>
  </tbody>
</table>
<!--
EOT;
?>-->