uleft_tm_check_yes.php
资源名称:Nsix.rar [点击查看]
上传用户:m68239277
上传日期:2014-10-12
资源大小:824k
文件大小:4k
源码类别:
Web服务器
开发平台:
PHP
- <?php
- session_start();
- include("../inc/conn.php");
- include("check.php");
- include("configs.inc.php");
- include("tnum_close.php");
- $user=$_SESSION["user"];
- $drop_date=$_SESSION["downdate"];
- if(isset($_GET["act"]))
- { $act=$_GET["act"];
- if($act=="yes")
- { $sign=$_SESSION["signid"]; //num_sign
- $drop_content=$_SESSION["dpcontent"];
- $drop_rate=$_SESSION["dprate"];
- if($sign=="1"||$sign=="3")
- {
- $sq="num='$drop_content'";
- }else $sq="tp='$drop_content'";
- $sqlyz=mysql_query("select * from num where $sq and sign='$sign'",$conn); //二次赔率变动check
- $prate=mysql_result($sqlyz,0,"rate");
- if($_SESSION["tps"]=="b") $prate+=5;
- $prate-=$_SESSION["pnum"];//盘类区分
- if($prate<>$drop_rate)
- { mysql_query("delete from drop_bill where user_name='$user' and yesrate='1'",$conn); //移除变动记录
- //bs
- mysql_query("delete from drop_bills where user_name='$user' and yesrate='1'",$conn); //移除变动记录
- echo "<script language='javascript'>alert('下注失败,赔率又发生变动!');window.location.href='uleft.php'</script>";
- }else
- {
- mysql_query("update drop_bill set yesrate='0' where drop_date='$drop_date' and user_name='$user'",$conn);
- //bs
- mysql_query("update drop_bills set yesrate='0' where drop_date='$drop_date' and user_name='$user'",$conn);
- $ys=mysql_query("update member set used_credit='$money' where user_account='$user'",$conn);
- if($ys) $_SESSION["used"]+=$_SESSION["dpmoney"];
- echo "<script language='javascript'>alert('恭喜您,下注成功!');window.location.href='uleft.php'</script>";
- }
- }else
- {
- mysql_query("delete from drop_bill where user_name='$user' and yesrate='1'",$conn); //移除变动记录
- //bs
- mysql_query("delete from drop_bills where user_name='$user' and yesrate='1'",$conn); //移除变动记录
- }
- echo "<script language='javascript'>window.location.href='uleft.php'</script>";
- }
- $sqlr=mysql_query("select * from drop_bill where yesrate='1' and drop_date='$drop_date' and user_name='$user' order by id desc",$conn);
- $drop_type=mysql_result($sqlr,0,"drop_type");
- $drop_content=mysql_result($sqlr,0,"drop_content");
- $drop_rate=mysql_result($sqlr,0,"drop_rate");
- $drop_money=mysql_result($sqlr,0,"drop_money");
- $_SESSION["dpmoney"]=$drop_money;
- $_SESSION["dpcontent"]=$drop_content;
- $_SESSION["dprate"]=$drop_rate;
- ?><head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- <link href="../css/css2.CSS" rel="stylesheet" type="text/css">
- </head>
- <style type="text/css">
- <!--
- body {
- background-image: url(../img/left_bg.gif);
- margin-top: 5px;
- }
- -->
- </style>
- <body>
- <table width="188" height="106" border="0" align="center" cellpadding="0" cellspacing="1" class="t12">
- <tr >
- <td height="22" colspan="4" class="fw12"><strong>赔率发生变动是否下注?</strong></td>
- </tr>
- <tr>
- <td><div align="center" class="fw12">下注方式</div></td>
- <td><div align="center" class="fw12">下注内容</div></td>
- <td><div align="center" class="fw12">赔率</div></td>
- <td height="22">
- <div align="center" class="fw12">下注金额</div></td>
- </tr>
- <tr class="t20">
- <td><div align="center">
- <?=$drop_type?>
- </div></td>
- <td><div align="center">
- <?=$drop_content?>
- </div></td>
- <td><div align="center">
- <?=$drop_rate?>
- </div></td>
- <td height="26"><div align="center">
- <?=$drop_money?>
- </div></td>
- </tr>
- <tr class="t20">
- <td height="31" colspan="4"><div align="center"></div>
- <div align="right" class="fw12">
- <div align="center"> <input type="button" name="Submit2" value="取消下注" onClick="javascript:window.location.href='uleft_tm_check_yes.php?act=no'">
- <input type="button" name="Submit" value="继续下注" onClick="javascript:window.location.href='uleft_tm_check_yes.php?act=yes'">
- </div>
- </div>
- <div align="right"></div> <div align="center" class="fw12">
- </div></td>
- </tr>
- </table>
- </body>