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

Web服务器

开发平台:

PHP

  1. <?php
  2. session_start();
  3. include("../inc/conn.php");
  4. include("check.php");
  5. include("configs.inc.php");
  6. include("tnum_close.php");
  7. $user=$_SESSION["user"];
  8. $drop_date=$_SESSION["downdate"];
  9. if(isset($_GET["act"]))
  10. { $act=$_GET["act"];
  11.  if($act=="yes")
  12.  { $sign=$_SESSION["signid"];     //num_sign
  13.    $drop_content=$_SESSION["dpcontent"];
  14.    $drop_rate=$_SESSION["dprate"];
  15.   if($sign=="1"||$sign=="3")
  16.   {
  17.    $sq="num='$drop_content'";
  18.   }else $sq="tp='$drop_content'";
  19.   $sqlyz=mysql_query("select * from  num where $sq and sign='$sign'",$conn);  //二次赔率变动check
  20.   $prate=mysql_result($sqlyz,0,"rate");
  21.    if($_SESSION["tps"]=="b") $prate+=5;
  22.   $prate-=$_SESSION["pnum"];//盘类区分
  23.   if($prate<>$drop_rate)
  24.   {  mysql_query("delete from drop_bill where user_name='$user' and yesrate='1'",$conn);   //移除变动记录
  25.      //bs
  26.      mysql_query("delete from drop_bills where user_name='$user' and yesrate='1'",$conn);   //移除变动记录
  27.      echo "<script language='javascript'>alert('下注失败,赔率又发生变动!');window.location.href='uleft.php'</script>";
  28.   }else
  29.   {
  30.   mysql_query("update drop_bill set yesrate='0' where drop_date='$drop_date' and user_name='$user'",$conn);
  31.   //bs
  32.   mysql_query("update drop_bills set yesrate='0' where drop_date='$drop_date' and user_name='$user'",$conn);
  33.   $ys=mysql_query("update member set used_credit='$money' where user_account='$user'",$conn);
  34.   if($ys) $_SESSION["used"]+=$_SESSION["dpmoney"];
  35.    echo "<script language='javascript'>alert('恭喜您,下注成功!');window.location.href='uleft.php'</script>";
  36.   }
  37.  }else
  38.   { 
  39.    mysql_query("delete from drop_bill where user_name='$user' and yesrate='1'",$conn);   //移除变动记录
  40.    //bs
  41.    mysql_query("delete from drop_bills where user_name='$user' and yesrate='1'",$conn);   //移除变动记录
  42.   }
  43.   echo "<script language='javascript'>window.location.href='uleft.php'</script>";
  44. }
  45. $sqlr=mysql_query("select * from drop_bill where yesrate='1' and drop_date='$drop_date' and user_name='$user' order by id desc",$conn);
  46. $drop_type=mysql_result($sqlr,0,"drop_type");
  47. $drop_content=mysql_result($sqlr,0,"drop_content");
  48. $drop_rate=mysql_result($sqlr,0,"drop_rate");
  49. $drop_money=mysql_result($sqlr,0,"drop_money");
  50. $_SESSION["dpmoney"]=$drop_money;
  51. $_SESSION["dpcontent"]=$drop_content;
  52. $_SESSION["dprate"]=$drop_rate;
  53. ?><head>
  54. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  55. <link href="../css/css2.CSS" rel="stylesheet" type="text/css">
  56. </head>
  57. <style type="text/css">
  58. <!--
  59. body {
  60. background-image: url(../img/left_bg.gif);
  61. margin-top: 5px;
  62. }
  63. -->
  64. </style>
  65. <body>
  66. <table width="188" height="106"  border="0" align="center" cellpadding="0" cellspacing="1" class="t12">
  67.   <tr >
  68.     <td height="22" colspan="4" class="fw12"><strong>赔率发生变动是否下注?</strong></td>
  69.   </tr>
  70.   <tr>
  71.     <td><div align="center" class="fw12">下注方式</div></td>
  72.     <td><div align="center" class="fw12">下注内容</div></td>
  73.     <td><div align="center" class="fw12">赔率</div></td>
  74.     <td height="22">
  75.       <div align="center" class="fw12">下注金额</div></td>
  76.   </tr>
  77.   <tr class="t20">
  78.     <td><div align="center">
  79.         <?=$drop_type?>
  80.     </div></td>
  81.     <td><div align="center">
  82.         <?=$drop_content?>
  83.     </div></td>
  84.     <td><div align="center">
  85.         <?=$drop_rate?>
  86.     </div></td>
  87.     <td height="26"><div align="center">
  88.         <?=$drop_money?>
  89.     </div></td>
  90.   </tr>
  91.   <tr class="t20">
  92.     <td height="31" colspan="4"><div align="center"></div>
  93.         <div align="right" class="fw12">
  94.           <div align="center">            <input type="button" name="Submit2" value="取消下注" onClick="javascript:window.location.href='uleft_tm_check_yes.php?act=no'">
  95.             <input type="button" name="Submit" value="继续下注" onClick="javascript:window.location.href='uleft_tm_check_yes.php?act=yes'">      
  96.           </div>
  97.         </div>
  98.         <div align="right"></div>      <div align="center" class="fw12">
  99.     </div></td>
  100.   </tr>
  101. </table>
  102. </body>