<?php
include_once("inc/conn.php");
include_once("inc/function.php");
login_check();

$query=$db->query("Select id,kj,tzpoints,zjrnum from {$web_dbtop}game28 where id=".intval($_GET["luckno"]));
if($rs=$db->fetch_array($query)){
	$kgqh=$rs["id"];
	$kj=$rs["kj"];
	$tzpoints=$rs["tzpoints"];
	$zjrnum=$rs["zjrnum"];
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>幸运28-游戏中心-<?=$web_name;?></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta name="keywords" content="<?=$web_keywords;?>" />
<meta name="description" content="<?=$web_description;?>" />
<META http-equiv=X-UA-Compatible content=IE=EmulateIE7>
<link href="style/default.css" rel="stylesheet" type="text/css" />
</head>
<?php include_once("top.php");?>
<script language="javascript">
qiehuan(2);
document.getElementById("qh_con2").getElementsByTagName('li')[0].className="current";
</script>
<DIV class="wrapper">
	<DIV class="page_content">
		<DIV class="webgame-info-title">
		  <UL>
			<LI><A href="luck.php">幸运28首页</A></LI>
			<LI><A href="luckhelp.php">幸运28规则</A></LI>
			<LI class="current"><A href="luckmylist.php">我的投注记录</A></LI>
			<LI><A href="luckmodel.php">投注模式编辑</A></LI>
			<LI><A href="luckautoset.php">自动投注</A></LI>
			<LI><A href="luckdirection.php">幸运28走势图</A></LI>
		  </UL>
		</DIV>
		<DIV class="webgame-info">
			<DIV class="webgame-info-tabs">
			  <table width="940" height="27" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <td width="12"><img src="images/game2_03.jpg" width="12" height="27" /></td>
                  <td background="images/game2_04.jpg" class="font14">第<span class="STYLE1">
                    <?=$kgqh?>
                    </span> 期　 <?=$web_moneyname?>总数:<font color="red">
                    <?=number_format($tzpoints);?>
                    </font>　 中奖人数:<font color="red">
                    <?=$zjrnum?>
                  </font><font color="red">人</font></td>
                  <td width="13"><img src="images/game2_06.jpg" width="13" height="27" /></td>
                </tr>
              </table>
			  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td height="5"></td>
                </tr>
              </table>
			  <table width="940" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <td bgcolor="#248301"><table width="100%" border="0" cellpadding="0" cellspacing="1">
                      <tr>
                        <td width="160" height="28" align="center" background="images/310-bj.jpg" bgcolor="#FFFFFF"  class="wf">期号</td>
                        <td width="130" height="28" align="center" background="images/310-bj.jpg" bgcolor="#FFFFFF"  class="wf">投注时间</td>
                        <td width="140" height="28" align="center" background="images/310-bj.jpg" bgcolor="#FFFFFF"  class="wf">投注结果</td>
                        <td width="140" align="center" background="images/310-bj.jpg" bgcolor="#FFFFFF"  class="wf">您的投注额</td>
                        <td align="center" background="images/310-bj.jpg" bgcolor="#FFFFFF" class="wf">状态</td>
                        <td align="center" background="images/310-bj.jpg" bgcolor="#FFFFFF" class="wf">获得<?=$web_moneyname?></td>
                      </tr>
					<?
					if($kj==1){
						$query=$db->query("Select * from {$web_dbtop}game28_users_tz where NO=".$kgqh." and uid=".intval($_COOKIE["usersid"])." Order by tznum asc");
						if($rs=$db->fetch_array($query)){
							$tznum_array=explode("|",$rs["tznum"]);
							$tzpoints_array=explode("|",$rs["tzpoints"]);
							$zjpoints_array=explode("|",$rs["zjpoints"]);
							for($i = 0; $i < count($tznum_array); $i++){
					?>
						<tr>
							<td height="32" align="center" bgcolor="#FCF5E1" class="font12game"><?=$rs["NO"]?></td>
							<td align="center" bgcolor="#FFFFFF" class="font12game"><?=$rs["time"]?></td>
							<td align="center" bgcolor="#FFFFFF" class="font12game"><img src="images/luck/number_<?=$tznum_array[$i]?>.gif" /></td>
							<td align="center" bgcolor="#FFFFFF" class="font-red font12game"><?=number_format($tzpoints_array[$i])?><img src="<?=$web_moneypic?>" /></td>
							<td align="center" bgcolor="#FFFFFF">已开奖</td>
							<td align="center" bgcolor="#FFFFFF" class="font12game"><? if($zjpoints_array[$i]>0){echo"<font class=\"rf\">".number_format($zjpoints_array[$i])."</font><img src=\"".$web_moneypic."\" />";}else{echo"0";}?></td>
						  </tr>
					<?
							}
						}
					}else{
						$query=$db->query("Select * from {$web_dbtop}game28_kg_users_tz where NO=".$kgqh." and uid=".intval($_COOKIE["usersid"])." Order by tznum asc");
						while($rs=$db->fetch_array($query)){
					?>
						  <tr>
							<td height="32" align="center" bgcolor="#FCF5E1" class="font12game"><?=$rs["NO"]?></td>
							<td align="center" bgcolor="#FFFFFF" class="font12game"><?=$rs["time"]?></td>
							<td align="center" bgcolor="#FFFFFF" class="font12game"><img src="images/happy/number_<?=$rs["tznum"]?>.gif" /></td>
							<td align="center" bgcolor="#FFFFFF" class="font-red font12game"><?=number_format($rs["tzpoints"])?><img src="<?=$web_moneypic?>" /></td>
							<td align="center" bgcolor="#FFFFFF">竟猜中</td>
							<td align="center" bgcolor="#FFFFFF" class="font12game"><? if($rs["hdpoints"]>0){echo"<font class=\"rf\">".number_format($rs["hdpoints"])."</font><img src=\"".$web_moneypic."\" />";}else{echo"0";}?></td>
						  </tr>
                    <?
					  	}
					}
					?>
                  </table></td>
                </tr>
              </table>
			</DIV>
			<DIV class=cl></DIV>
		</DIV>
		<DIV class="area960-b h5px"></DIV>
	<!--Flink End-->
	<div class="blank10"></div>
	<!--Footer Start-->
<?php include_once("footer.php");?>
</DIV>