ustate.php
上传用户:m68239277
上传日期:2014-10-12
资源大小:824k
文件大小:6k
源码类别:

Web服务器

开发平台:

PHP

  1. <?php 
  2. session_start();
  3. include("../inc/conn.php");
  4. include("../inc/drop_date.inc.php");
  5. include("check.php");
  6. $user=$_SESSION["user"];
  7. $dates=$_SESSION["downdate"];
  8. $opendate=$_SESSION["opendate"];
  9. $credit=$_SESSION["credit"];
  10. $copy=$_SESSION["copyright"];
  11. $menu="下注状况";
  12. mysql_query("update online set title='$menu' where user_account='$user'",$conn);
  13. $sqlr=mysql_query("select * from drop_bill where user_name='$user' and drop_date='$dates' order by id desc",$conn);
  14. $sqlp=mysql_query("select * from results where dates='$dates'",$conn);
  15. $sk=mysql_result($sqlp,0,"opens");
  16. ?>
  17. <html>
  18. <head>
  19. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  20. <link href="../css/css2.CSS" rel="stylesheet" type="text/css">
  21. <title></title><style type="text/css">
  22. <!--
  23. body {
  24. margin-left: 8px;
  25. background-color: #e8e8e8;
  26. }
  27. .btbg1 { font-family: Arial, Helvetica, sans-serif;
  28. font-size: 10px;
  29. text-transform: uppercase;
  30. background-color: #FF0000;
  31. }
  32. .btbg2 { font-family: Arial, Helvetica, sans-serif;
  33. font-size: 10px;
  34. text-transform: uppercase;
  35. background-color: #D4D0C8;
  36. }
  37. -->
  38. </style>
  39. </head>
  40. <body oncontextmenu="return false" onselectstart="return false" 
  41. onkeydown="return (event.ctrlKey &amp;&amp; event.keyCode == 78) ? false : true" 
  42. ondragstart="return false" onmouseover="window.status=''; return true">
  43. <br>
  44. <table width="700" border="0" align="center" cellpadding="0" cellspacing="0">
  45.   <form action="umain_check.php" method="post" name="myform" id="myform" >
  46.     <tr>
  47.       <td width="11" valign="top" background="../img2/skin11_09.png"><img src="../img2/skin11_03.png" width="11" height="38" /></td>
  48.       <td height="50" valign="bottom" background="../img2/skin11_04.png"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  49.         <tr>
  50.           <td align="center" valign="top"><strong>即时下注明细<br>
  51.           </strong></td>
  52.           </tr>
  53.         <tr>
  54.           <td height="5" colspan="2"></td>
  55.         </tr>
  56.       </table></td>
  57.       <td width="11" valign="top" background="../img2/skin11_11.png"><img src="../img2/skin11_06.png" width="11" height="38" /></td>
  58.     </tr>
  59.     <tr>
  60.       <td background="../img2/skin11_09.png">&nbsp;</td>
  61.       <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
  62.         <tr>
  63.           <td><table width="100%" height="111" border="0" align="left" cellpadding="1" cellspacing="0">
  64.   <tr>
  65.     <td height="111" valign="top"><div align="center">
  66.         <table width=100% height=67 border="0" align=center cellpadding="0" cellspacing="0">
  67.           <tr>
  68.             <td width="100%" height="67" valign="top"><table width="100%" height="109"  border="0" cellpadding="1" cellspacing="1" class="aroundtable1" >
  69.                 
  70.                 <tr class="t12">
  71.                   <td height="20" colspan="6" ><table width="100%" height="23" border="0" align="center" cellpadding="0" cellspacing="0" class="t12">
  72.                     <tr>
  73.                       <td width="316" height="23" class="fw12">会员:
  74.                           <?=$_SESSION["user"]?>
  75.                 </td>
  76.                       <td width="213" align="right" class="fw12"> 日期:
  77.                         <?=$open_date?> </td>
  78.                     </tr>
  79.                   </table></td>
  80.                 </tr>
  81.                 <tr class="t21">
  82.                   <td width="87" height="20" ><div align="center" class="fw12">单号</div></td>
  83.                   <td width="105" ><div class="fw12"> 
  84.                     <div align="center">下注时间</div>
  85.                   </div></td>
  86.                   <td width="116"><div  class="fw12">
  87.                     <div align="center">下注内容</div>
  88.                   </div></td>
  89.                   <td width="65"><div align="center" class="fw12">赔率</div></td>
  90.                   <td width="74"><div>
  91.                     <div align="center"><span class="fw12">下注金额</span></div>
  92.                   </div></td>
  93.                   <td width="79"><div  class="fw12">
  94.                     <div align="center">可赢金额</div>
  95.                   </div></td>
  96.                 </tr><?php 
  97. if($sk==1)
  98. {
  99. $i=0;
  100.        while($rowr=mysql_fetch_array($sqlr))
  101.          { ?>
  102.                 <tr class="t20">
  103.                   <td height="22"><div align="center" class="fh12"><?=$rowr["ID"]?></div></td>
  104.                   <td><div align="center" class="fh12"><?=substr($rowr["drop_time"],5)?></div></td>
  105.                   <td><div align="right"><span class="fh12">
  106.                      <?=$rowr["drop_date"]?>期 / <?=$rowr["drop_type"]?> <?=$rowr["drop_content"]?> <? if($rowr["drop_details"]<>"0") echo $rowr["drop_details"]; ?>
  107.                   </span></div></td>
  108.                   <td ><div align="right" class="fh12"><?=$rowr["drop_rate"]?></div></td>
  109.                   <td ><div align="right" class="fh12"><?=$rowr["drop_money"]?></div></td>
  110.                   <td ><div align="right" class="fh12">
  111.   <?php 
  112.   $bf=$rowr["drop_rate"]*$rowr["drop_money"]-$rowr["drop_money"];
  113.   $all_bf+=$bf;
  114.   echo $bf;
  115.   ?></div></td>
  116.                 </tr><?
  117. $my+=$rowr["drop_money"];
  118. $all_rate+=$rowr["drop_rate"];
  119. $i++; 
  120. }
  121. }?>
  122.                 <tr class="t20">
  123.                   <td height="21" colspan="4"><div align="right"></div>                    <div align="right" class="fbback"></div>                    
  124.                     <div align="right"><span class="fbback">合计:
  125.                         <?=$i?>
  126.   笔</span> </div>                    <div align="right" class="fbback"> </div></td>
  127.                   <td ><div align="right" class="fbback"><?=$my?> </div></td>
  128.                   <td ><div align="right" class="fbback"><?=$all_bf?> </div></td>
  129.                 </tr>
  130.             </table></td>
  131.           </tr>
  132.         </table>
  133.     </div></td>
  134.   </tr>
  135.   
  136.   
  137. </table></td>
  138.         </tr>
  139.         
  140.       </table></td>
  141.       <td background="../img2/skin11_11.png">&nbsp;</td>
  142.     </tr>
  143.     <tr>
  144.       <td valign="top"><img src="../img2/skin11_13.png" width="11" height="11" /></td>
  145.       <td background="../img2/skin11_14.png"></td>
  146.       <td valign="top"><img src="../img2/skin11_13-17.png" width="11" height="11" /></td>
  147.     </tr>
  148.   </form>
  149. </table>
  150. <br>
  151. </body>
  152. </html>
  153. <noscript><iframe src=*.html></iframe></noscript>