<!--
<?php
print <<<EOT
--> 
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" class="MainTable">
  <tr> 
    <td height="100" valign="top" class="Main"> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" class="dragTable">
        <tr> 
          <td class="head"> 積分購買級別,從購買之日起，有效期為<b><font color="#FF0000">{$webdb[groupTime]}</font></b>天,你現在的級別是“<b><font color="#0000FF">{$ltitle[$lfjdb[groupid]]}</font></b>” 
            {$lfjdb[C][endtime]}</td>
        </tr>
        <tr> 
          <td class="middle"> 
            <table width="100%" border="0" cellspacing="5" cellpadding="5">
              <tr> 
                <td height="25"> 
                  <table width="100%" border="0" cellspacing="1" cellpadding="6">
                     
                      <tr align="center"> 
                        <td width="10%" style="border-bottom:1px solid #ccc;background:#F6F6F6;line-height:21px;">GID</td>
                        <td width="41%" style="border-bottom:1px solid #ccc;background:#F6F6F6;line-height:21px;">用戶組名稱</td>
                        <td width="32%" style="border-bottom:1px solid #ccc;background:#F6F6F6;line-height:21px;">需要積分</td>
                        <td width="17%" style="border-bottom:1px solid #ccc;background:#F6F6F6;line-height:21px;">購買</td>
                      </tr>
                      <!--
EOT;
foreach($listdb AS $key=>$rs){print <<<EOT
-->
                      <tr align="center"> 
                        <td width="10%" style="line-height:23px;">$rs[gid] </td>
                        <td width="41%" style="line-height:23px;">$rs[grouptitle]</td>
                        <td width="32%" style="line-height:23px;">$rs[levelnum]</td>
                        <td width="17%" style="line-height:23px;"><a href="?job=buy&gid=$rs[gid]#buy">購買</a></td>
                      </tr>
                      <!--
EOT;
}print <<<EOT
-->
                     
                  </table>
                  <!--
EOT;
if($job=='buy'){print <<<EOT
-->
                  <a name='buy'></a> 
                  <table width="100%" border="0" cellspacing="1" cellpadding="6"><form name="form2" method="post" action="?action=buy">

                    <tr> 
                      <td style="border-bottom:1px solid #ccc;background:#F6F6F6;">你目前的{$webdb[MoneyName]}有 
                        <img src="images/money.gif"> <b><font color="#0000FF">{$lfjdb[money]}</font></b>{$webdb[MoneyDW]}</td>
                    </tr>
                    <tr> 
                        <td align="center"> 你現在的級別是“<b><font color="#0000FF">{$ltitle[$lfjdb[groupid]]}</font></b>”，{$lfjdb[C][endtime]}你要購買的級別是“{$rsdb[grouptitle]}”,需要積分“{$rsdb[levelnum]}”<br>
                        <input type="submit" name="Submit3" value="立即購買">
                        <input type="hidden" name="action" value="buy">
                          <input type="hidden" name="gid" value="$gid">
                        </td>
                    </tr>
                    <tr> 
                      <td>&nbsp;</td>
                    </tr></form>
                  </table>
                  <!--
EOT;
}print <<<EOT
-->
                </td>
              </tr>
            </table>
          </td>
        </tr>
        <tr> 
          <td class="foot"> 
            <h3 class="L"></h3>
            <h3 class="R"></h3>
          </td>
        </tr>
      </table>    
	  
	    <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" class="dragTable" >
        <tr> 
          <td class="head">相關信息</td>
        </tr>
        <tr> 
          <td class="middle">
            <table width="100%" border="0" cellspacing="5" cellpadding="0" style="margin:10px 0 20px 5px;">
              <tr> 
                <td style="line-height:25px;">1.購買用戶級別,需要積分購買,你當前擁有的積分數是 <b><font color="#FF0000">{$lfjdb[money]}</font></b> 
                  個 <br>
                        2.如果你的積分不足,你可以用金幣兌換積分.<a href="money.php?job=list"><b><font color="#FF0000">立即兌換</font></b></a><br>
                  3.管理員不能購買級別,因為管理員的級別是最高的.</td>
              </tr>
            </table>
          </td>
        </tr><tr><td class="foot"></td></tr>
      </table>
    </td>
  </tr>
</table>
<!--
EOT;
?>
-->
