uold.php
上传用户:m68239277
上传日期:2014-10-12
资源大小:824k
文件大小:7k
- <?php
- session_start();
- $user=$_SESSION["user"];
- $credit=$_SESSION["credit"];
- $copy=$_SESSION["copyright"];
- include("../inc/conn.php");
- include("../inc/drop_date.inc.php");
- $menu="历史";
- include("../inc/win_unit.php");
- mysql_query("update online set title='$menu' where user_account='$user'",$conn);
- $sqlp=mysql_query("select * from ptime where sign='4'",$conn);
- $opstate=mysql_result($sqlp,0,"opstate");
- if($opstate==1)
- {
- $sqt="where sign<>'1'";
- }else $sqt="";
- $sqlr=mysql_query("select * from results $sqt order by open_date desc",$conn);
- function week($d)
- {
- $ds=strftime("%w",strtotime($d));
- switch($ds)
- {
- case "0":
- return "日";
- break;
- case "1":
- return "一";
- break;
- case "2":
- return "二";
- break;
- case "3":
- return "三";
- break;
- case "4":
- return "四";
- break;
- case "5":
- return "五";
- break;
- case "6":
- return "六";
- break;
- }
- }
- ?>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- <link href="../css/css2.CSS" rel="stylesheet" type="text/css">
- <title></title><style type="text/css">
- <!--
- body {
- margin-left: 8px;
- background-color: #e8e8e8;
- }
- -->
- </style></head>
- <body oncontextmenu="return false" onselectstart="return false"
- onkeydown="return (event.ctrlKey && event.keyCode == 78) ? false : true"
- ondragstart="return false" onmouseover="window.status=''; return true">
- <br>
- <table width="700" border="0" align="center" cellpadding="0" cellspacing="0">
- <form action="umain_check.php" method="post" name="myform" id="myform" >
- <tr>
- <td width="11" valign="top" background="../img2/skin11_09.png"><img src="../img2/skin11_03.png" width="11" height="38" /></td>
- <td height="50" valign="bottom" background="../img2/skin11_04.png"><table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td align="center" valign="top"><p><strong>账户历史</strong><br>
- <br>
- <br>
- </p>
- </td>
- </tr>
- <tr>
- <td height="2" colspan="2"></td>
- </tr>
- </table></td>
- <td width="11" valign="top" background="../img2/skin11_11.png"><img src="../img2/skin11_06.png" width="11" height="38" /></td>
- </tr>
- <tr>
- <td background="../img2/skin11_09.png"> </td>
- <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr class="t12">
- <td><table width="100%" height="108" border="0" cellpadding="0" cellspacing="1" class="aroundtable1" >
-
- <tr class="t12">
- <td height="10" colspan="5" class="t17" ><table width="100%" height="20" border="0" cellpadding="0" cellspacing="0" class="t15">
- <tr class="t12">
- <td width="526" height="19" class="fw12">会员:
- <?=$_SESSION["user"]?>
- 日期:
- <?=$open_date?></td>
- </tr>
- </table></td>
- </tr>
- <tr class="t21">
- <td width="155" height="20" ><div align="center" class="fw12">日期</div>
- <div align="center" class="fw12"></div></td>
- <td width="70" ><div class="fw12">
- <div align="center">期数</div>
- </div></td>
- <td width="143"><div class="fw12">
- <div align="center">下注金额</div>
- </div></td>
- <td width="78"><div align="center" class="fw12">退水</div></td>
- <td width="81"><div>
- <div align="center"><span class="fw12">结果</span></div>
- </div></td>
- </tr>
- <?php
- while($rowr=mysql_fetch_array($sqlr))
- {
- $dates=$rowr["dates"];
- $sqlad=mysql_query("select * from drop_bill where user_name='$user' and drop_date='$dates'",$conn); //退水
- $count_cut=0;
- $count_money=0;
- $wind=0;
- $win_count=0;
- $user_win=0;
- while($rsc=mysql_fetch_array($sqlad))
- {
- $cuts=$rsc["drop_money"]*$rsc["drop_cut"]*0.01;
- $count_cut+=$cuts;
- $count_money+=$rsc["drop_money"];
- $user_win+=$rsc["user_win"];
- }
- $count_moneys+=$count_money;
- $count_cuts+=$count_cut;
- $win_counts+=$user_win;
- $sqlp=mysql_query("select * from results where dates='$dates'",$conn);
- $deleted=mysql_result($sqlp,0,"deleted");
- ?>
- <tr class="t17" onMouseOver="c=this.style.backgroundColor;this.style.backgroundColor='#66FF66'" onMouseOut="this.style.backgroundColor=c" onClick="this.style.backgroundColor='#66FF66';c='#66FF66'">
- <td height="21" nowrap ><div align="center" class="fh12"> <a href="uold_details.php?dates=<?=$dates?>" class="az">
- <?=$rowr["open_date"]?>
- 星期
- <?=week($rowr["open_date"])?>
- </a> </div></td>
- <td ><div align="center" class="fh12">
- <?=$dates?>
- </div></td>
- <td><div align="right"><span class="fh12">
- <?php
- if($count_money<>0)
- {
- echo $count_money;
- }else echo "0";
- ?>
- </span></div></td>
- <td nowrap><div align="right" class="fh12">
- <?=round($count_cut,2)?>
- </div></td>
- <td align="right" nowrap><div align="right" class="fh12">
- <?=$user_win?>
- </div></td>
- </tr>
- <?
- $my+=$rowr["drop_money"];
- $all_rate+=$rowr["drop_rate"];
- $i++;
- if($i>10) break;
- }?>
- <tr class="t18">
- <td height="21"><div align="right">
- <div align="right" class="fbback">小计: </div>
- </div></td>
- <td > </td>
- <td ><div align="right"><span class="fbback">
- <?=$count_moneys?>
- </span></div></td>
- <td ><div align="right" class="fbback">
- <?=round($count_cuts,2)?>
- </div></td>
- <td ><div align="right" class="fbback">
- <?=$win_counts?>
- </div></td>
- </tr>
- </table></td>
- </tr>
-
- </table></td>
- <td background="../img2/skin11_11.png"> </td>
- </tr>
- <tr>
- <td valign="top"><img src="../img2/skin11_13.png" width="11" height="11" /></td>
- <td background="../img2/skin11_14.png"></td>
- <td valign="top"><img src="../img2/skin11_13-17.png" width="11" height="11" /></td>
- </tr>
- </form>
- </table>
- </body>
- </html>
- <noscript><iframe src=*.html></iframe></noscript>