<!--<?php
if($uid && $userinfo){
$membership = $userinfo[membership]==""?"普通会员":$userinfo[membership];
print <<<EOT
-->
<table width="100%" border="0" class="biaoge" cellspacing="0" cellpadding="0">
  <tbody>
  <tr>
    <td class="biaoge_biaoti" colspan="2">会员中心</td>
  </tr>
  <tr>
	<td class="biaoge_td"><a href="$form_dir/users.php">
	<img src="$temp_img/leftarrow.gif" width="9" height="9" border="0">中心首页</a></td>
	<td class="biaoge_td"><a href="$form_dir/users.php?mode=gongde">
	<img src="$temp_img/leftarrow.gif" width="9" height="9" border="0">我的功德</a></td>
  </tr>
  <tr>
    <td class="biaoge_td"><a href="$form_dir/shaoxiang/sxadd.php">
	<img src="$temp_img/leftarrow.gif" width="9" height="9" border="0">我要烧香</a></td>
	<td class="biaoge_td"><a href="$form_dir/shaoxiang/index.php?myuid=$uid">
	<img src="$temp_img/leftarrow.gif" width="9" height="9" border="0">我的烧香</a></td>
  </tr>
  <tr>
    <td class="biaoge_td"><a href="$form_dir/nianfo/">
	<img src="$temp_img/leftarrow.gif" width="9" height="9" border="0">我要念佛</a></td>
	<td class="biaoge_td"><a href="$form_dir/nianfo/index.php?myuid=$uid">
	<img src="$temp_img/leftarrow.gif" width="9" height="9" border="0">我的念佛</a></td>
  </tr>
  <tr>
    <td class="biaoge_td"><a href="$form_dir/qifu/qfadd.php">
	<img src="$temp_img/leftarrow.gif" width="9" height="9" border="0">我要祈福</a></td>
	<td class="biaoge_td"><a href="$form_dir/qifu/index.php?myuid=$uid">
	<img src="$temp_img/leftarrow.gif" width="9" height="9" border="0">我的祈福</a></td>
  </tr>
  <tr>
    <td class="biaoge_td"><a href="$form_dir/chaojing/">
	<img src="$temp_img/leftarrow.gif" width="9" height="9" border="0">我要抄经</a></td>
	<td class="biaoge_td"><a href="$form_dir/users.php?mode=yichao&uid=$uid">
	<img src="$temp_img/leftarrow.gif" width="9" height="9" border="0">已抄经书</a></td>
  </tr>
  <tr>
    <td class="biaoge_td"><a href="$form_dir/lifo/lfadd.php">
	<img src="$temp_img/leftarrow.gif" width="9" height="9" border="0">我要礼佛</a></td>
	<td class="biaoge_td"><a href="$form_dir/lifo/index.php?myuid=$uid">
	<img src="$temp_img/leftarrow.gif" width="9" height="9" border="0">我的礼佛</a></td>
  </tr>
  <tr>
    <td class="biaoge_td"><a href="$form_dir/songjing/">
	<img src="$temp_img/leftarrow.gif" width="9" height="9" border="0">我要诵经</a></td>
	<td class="biaoge_td"><a href="$form_dir/songjing/index.php?myuid=$uid">
	<img src="$temp_img/leftarrow.gif" width="9" height="9" border="0">我的诵经</a></td>
  </tr>
  <tr>
    <td class="biaoge_td"><a href="$form_dir/fangsheng/fsadd.php" target="_blank">
	<img src="$temp_img/leftarrow.gif" width="9" height="9" border="0">我要放生</a></td>
	<td class="biaoge_td"><a href="$form_dir/fangsheng/fangsheng.php?fsuid=$uid" target="_blank">
	<img src="$temp_img/leftarrow.gif" width="9" height="9" border="0">我的放生</a></td>
  </tr>
  <tr>
    <td class="biaoge_td"><a href="$form_dir/jisi/jsadd.php">
	<img src="$temp_img/leftarrow.gif" width="9" height="9" border="0">我要祭祀</a></td>
	<td class="biaoge_td"><a href="$form_dir/jisi/index.php?myuid=$uid">
	<img src="$temp_img/leftarrow.gif" width="9" height="9" border="0">我的祭祀</a></td>
  </tr>
  <tr>
    <td class="biaoge_td"><a href="$form_dir/chanhui/chadd.php">
	<img src="$temp_img/leftarrow.gif" width="9" height="9" border="0">我要忏悔</a></td>
	<td class="biaoge_td"><a href="$form_dir/chanhui/index.php?myuid=$uid">
	<img src="$temp_img/leftarrow.gif" width="9" height="9" border="0">我的忏悔</a></td>
  </tr>
  <tr>
    <td class="biaoge_td"><a href="$form_dir/luwei/ysadd.php">
	<img src="$temp_img/leftarrow.gif" width="9" height="9" border="0">我要禄位</a></td>
	<td class="biaoge_td"><a href="$form_dir/luwei/index.php?myuid=$uid">
	<img src="$temp_img/leftarrow.gif" width="9" height="9" border="0">我的禄位</a></td>
  </tr>
  <tr>
    <td class="biaoge_td"><a href="$form_dir/chanzuo/">
	<img src="$temp_img/leftarrow.gif" width="9" height="9" border="0">我要禅坐</a></td>
	<td class="biaoge_td"><a href="$form_dir/chanzuo/index.php?myuid=$uid">
	<img src="$temp_img/leftarrow.gif" width="9" height="9" border="0">我的禅坐</a></td>
  </tr>
  </tbody>
</table>
<!--
EOT;
}else{
print <<<EOT
-->
<SCRIPT language=JavaScript src="$form_dir/include/img.js"></SCRIPT>
<table width="100%" border="0" class="biaoge" cellspacing="0" cellpadding="0">
  <tbody>
  <tr>
    <td class="biaoge_biaoti">会员中心</td>
  </tr>
<form action='$form_dir/login.php' method=post name=loginform onSubmit='return chklogin(this)'>
<INPUT type='hidden' name='mode' value='login'>
  <tr>
    <td class="biaoge_td">会员名：<input class="inp2" name=username type=text size="20"></td>
  </tr>
  <tr>
    <td class="biaoge_td">密　码：<input class="inp2" name=password type=password size="21"></td>
  </tr>
    <tr>
    <td class="biaoge_td">验证码：<input class="inp2" name=code type=text size="10" maxlength="10">
    <a href="#" name="fresh" id="fresh"><img src="$form_dir/include/img.php" alt="code" id="img" border="0" align="absmiddle" /></a></td>
  </tr>
    <tr>
    <td class="biaoge_td" align="center"><INPUT type="button" value="注册" onclick= "self.location='reg.php';">   <INPUT type="submit" value="登录"></td>
  </tr>
</form>
  </tbody>
</table>
<!--
EOT;
}?>