<!--#include file="action.asp"-->
<%
if CookieUserName=empty then error("您还未登录，请先<a href=login.asp>登录</a>。")
%>
<table border=0 width=97% align=center cellspacing=1 cellpadding=4 class=a2>
<tr class=a3>
<td height=25>&nbsp;<img src=images/Forum_nav.gif>&nbsp; <%ClubTree%> → 社区彩票</td>
</tr>
</table>
<br>
<table width="97%" border="0" cellspacing="1" cellpadding="1" align=center>
  <tr>
    <td width="33%"><div align="center">本期奖金： <%=Prize%></div></td>
    <td width="33%"><div align="center">本期目前卖出<font color=red><%=prizeconn.execute("select count(id) from [buyz] where datecode="&datecode)(0)%></font>注</div></td>
    <td width="33%"><div align="center">本期代码：<%=datecode%></div></td>
  </tr>
</table>

<table width="97%" border="0" cellspacing="1" cellpadding="1" class=a2 align=center>
  <tr bgcolor="#FFFFFF" height=25> 
    <td class="a1"> 
      <div align="center" >投注说明</div></td>
    <td width="33%" class="a1"> 
      <div align="center" >历史中奖</div></td>
  </tr>
  <tr bgcolor="#FFFFFF"> 
    <td>&nbsp;&nbsp;&nbsp;&nbsp;奖金说明：基础奖金500元金币，卖出金额自动累加，每注<%=price%>元，如果中奖将独得全部奖金，如有人与你共同中奖，则平分全部奖金。无人中奖奖金自动累积进入下期，每注最高限额1000元金币，快快投注吧！！！！<p></td>
    <td width="33%" class=a3 rowspan=3><%history%></td>
  </tr>
  <tr bgcolor="#FFFFFF"> 
    <td class="a1" height=25> 
      <div align="center">参与投注</div></td>
  </tr>
  <tr bgcolor="#FFFFFF"> 
    <td height=130> 
<form name="buycode" method="post" action="action.asp?action=buy">
<input type="hidden" name="job" value="save">
<div align="center">投注：
<select name="num1">
  <option selected>1</option>
  <option>2</option>
  <option>3</option>
  <option>4</option>
  <option>5</option>
  <option>6</option>
  <option>7</option>
  <option>8</option>
  <option>9</option>
  <option>0</option>
</select>
<select name="num2">
  <option selected>1</option>
  <option>2</option>
  <option>3</option>
  <option>4</option>
  <option>5</option>
  <option>6</option>
  <option>7</option>
  <option>8</option>
  <option>9</option>
  <option>0</option>
</select>
<select name="num3">
  <option selected>1</option>
  <option>2</option>
  <option>3</option>
  <option>4</option>
  <option>5</option>
  <option>6</option>
  <option>7</option>
  <option>8</option>
  <option>9</option>
  <option>0</option>
</select>
<select name="num4">
  <option selected>1</option>
  <option>2</option>
  <option>3</option>
  <option>4</option>
  <option>5</option>
  <option>6</option>
  <option>7</option>
  <option>8</option>
  <option>9</option>
  <option>0</option>
</select>
&nbsp;
<input type="submit" name="Submit" value="投注">
<input type="button" value="机选" onclick="SelRandom()">
<script>
function SelRandom() {
	buycode.num1.options[Math.random()*10].selected=true;
	buycode.num2.options[Math.random()*10].selected=true;
	buycode.num3.options[Math.random()*10].selected=true;
	buycode.num4.options[Math.random()*10].selected=true;

}
SelRandom()
</script>
        </div>
      </form></td>
  </tr>
</table>
<table width="97%" border="0" cellspacing="1" cellpadding="1" class=a2 align=center>
  <tr>
    <td bgcolor="#FFFFFF" class=a1 height=25>
您本期的投注情况：
  <tr>
<td class=a1 height=25>
<%self%>
      </td>
      </td>
  </tr>
  </tr>

</table>
		  
<%
if conn.execute("select UserRoleID from [BBSXP_Users] where username='"&CookieUserName&"'")(0)=1 then
prizego
userp
end if%>
<%set prizeconn=nothing
htmlend%>