<?php
include_once("inc/conn.php");
include_once("inc/function.php");
login_check();
?>
<!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>猜拳-游戏中心-<?=$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')[4].className="current";
</script>
<DIV class="wrapper">
	<DIV class="page_content">
		<DIV class="webgame-info-title">
		  <UL>
			<LI><A href="dodge.php">猜拳首页</A></LI>
			<LI><A href="dodgeinsert.php">我要摆擂</A></LI>
			<LI class="current"><A href="dodgemylist.php">我的投注记录</A></LI>
			<LI><A href="bbs/forum.php?forumsid=5">玩家交流</A></LI>
		  </UL>
		</DIV>
		<DIV class="webgame-info">
			<DIV class="webgame-info-tabs">
			  <TABLE cellSpacing=1 cellPadding=0 width=940 align=center bgColor=#b63a2a border=0>
                <TBODY>
                  <TR>
                    <TD align=middle width=100 background=images/dn02.jpg bgColor=#ffffff height=28>摆擂时间</TD>
                    <TD align=middle background=images/dn02.jpg bgColor=#ffffff>擂主</TD>
                    <TD width="100" align=middle background=images/dn02.jpg bgColor=#ffffff>出招</TD>
                    <TD align=middle width=100 background=images/dn02.jpg bgColor=#ffffff>投注<?=$web_moneyname?></TD>
                    <TD width="200" align=middle background=images/dn02.jpg bgColor=#ffffff>挑战者</TD>
                    <TD width="100" align=middle background=images/dn02.jpg bgColor=#ffffff>出招</TD>
                  </TR>
                  <?
				$intpage = 30;
				if (isset($_GET['page'])){
					$rsnum = (intval($_GET['page']) -1)*$intpage;
				}else{
					$rsnum = 0;
				}
				$sql="select * from {$web_dbtop}gamedodge where uid=".intval($_COOKIE["usersid"])." or tzid=".intval($_COOKIE["usersid"])." Order by id desc";
				$query=$db->query($sql);
				if($db->fetch_array($query)) 
		$intnum=$db->num_rows($query);
				$query=$db->query($sql." limit $rsnum,$intpage");
					while($rs=$db->fetch_array($query)){
				?>
                  <TR>
                    <TD class=font12game align=middle bgColor=#fbe4de height=32><?=date("m-d H:i",strtotime($rs["time"]));?></TD>
                    <TD align=middle bgColor=#ffffff class=font12game><A href="user.php?id=<?=$rs["uid"]?>" target=_blank>
                      <?=$rs["uid"]?>
                    </A></TD>
                    <TD align=middle bgColor=#ffffff class=font12game><img src="images/dodge/<?=$rs["dodge"]?>.gif"></TD>
                    <TD class=font12game align=middle bgColor=#ffffff><?=number_format($rs["points"]);?>
                        <img src="<?=$web_moneypic?>" align="absmiddle" /></TD>
                    <TD align=middle bgColor=#ffffff class=font12game><? if($rs["zt"]==1){?>
                        <SPAN class=rf><A href="user.php?id=<?=$rs["tzid"]?>" target=_blank>
                        <?=$rs["tzid"]?>
                        </a></SPAN>
                        <? }?></TD>
                    <TD align=middle bgColor=#ffffff class=font12game><img src="images/dodge/<?=$rs["tzdodge"]?>.gif"></TD>
                  </TR>
                  <?
				}
				?>
                </TBODY>
              </TABLE>
			  <TABLE cellSpacing=4 cellPadding=2 width=940 align=center border=0>
                <TBODY>
                  <TR>
                    <TD align=center><?php
		  include_once("inc/page_class.php");
		  $page=new page(array('total'=>$intnum,'perpage'=>$intpage));
		  echo $page->show(5,"","");?></TD>
                  </TR>
                </TBODY>
              </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>