⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 uleft_tm_check_yes.php

📁 六和投注系统
💻 PHP
字号:
<?php
session_start();
include("../inc/conn.php");
include_once($_SESSION["inclanguage"]);
include("check.php");
include("configs.inc.php");
include("tnum_close.php");
$user=$_SESSION["user"];
$drop_date=$_SESSION["downdate"];
?>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../styles/css_g/css2.CSS" rel="stylesheet" type="text/css">
</head>

<style type="text/css">
<!--
body {
	background-image: url(../styles/nimg_g/left.gif);
	margin-top: 0px;
	margin-left: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style>
<?
 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 rate from  num where $sq and sign='$sign' and user_account='$guser'",$conn);  //二次赔率变动check
  $prate=mysql_result($sqlyz,0,"rate");
   if($_SESSION["tps"]=="b") $prate+=$abrate;
  $prate-=$_SESSION["pnum"];//盘类区分
  if(0)//$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('".$pn_pourloserratechange."!');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>";
    $sqlr=mysql_query("select * from drop_bill where sign='1' and user_name='$user' order by id desc",$conn);
   ?>
   <table width="220" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td height="34" background="../images/left_up.jpg"><div align="center"><span class="fw12"><?=$pn_pourstate?></span><br>
        </div></td>
      </tr>
      <tr>
        <td><table width="220" height="74"  border="0" align="left" cellpadding="0" cellspacing="1" class="t12">
            <tr class="t12">
              <td><div align="center" class="fw12"><?=$pn_pourtype?></div></td>
              <td><div align="center" class="fw12"><?=$pn_pourcontent?></div></td>
              <td><div align="center" class="fw12"><?=$pn_rate?></div></td>
              <td height="26">
                <div align="center" class="fw12"><?=$pn_pourmoney?></div></td>
              <td align="center" class="fw12"><?=$pn_state?></td>
              </tr>
            <?php 
		   $psp=0;
	       while($rowr=mysql_fetch_array($sqlr))
	         {  
			 if($rowr["yesrate"]=="1")
			 { $ts="class='t13'";
			   $psp=1;
			 }else
			 { 
			 $ts="class='t15'";
			 }?>
            <tr align="center" class="t17" <?=$ts?>>
              <td height="22"><?=$rowr["drop_type"]?></td>
              <td height="22"><?=$rowr["drop_content"]?></td>
              <td height="22">
              
                  <?
				$ratets=$rowr["drop_rate"];
				echo $ratets;
				?></td>
              <td height="22">
                  <?=$rowr["drop_money"]?></td>
              <td><div align="center" class="fgreng">
                  <? if($rowr["yesrate"]=="1")
			{ echo "<font color='red'>".$pn_success."</font>";
			}else echo $pn_loser;?>
              </div></td>
              </tr>
            <? 
		  $all_money+=$rowr["drop_money"];
		  } 
		   mysql_query("update drop_bill set sign='0' where user_name='$user'",$conn);
		  ?>
            <tr class="t11">
              <td height="22" colspan="3"><div align="right" class="fw12"><?=$pn_count?>:</div></td>
              <td height="22"><div align="right" class="fw12">
                  <?=$all_money?>
              </div></td>
              <td>&nbsp;</td>
              </tr>
        </table></td>
      </tr>
      <tr>
        <td></td>
      </tr>
    </table> 
   <?php
   echo '       <a href="uleft.php">['.$pn_back.']</a> <meta http-equiv="refresh" content="50;URL=uleft.php">';
  }
 }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>";
}else
{
$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;
?> 

<body>
<table width="220" height="117"  border="0" align="center" cellpadding="0" cellspacing="1" class="t12">
  <tr background="../images/left_up.jpg" >
    <td height="33" colspan="4" class="fw12"><strong><?=$pn_ratechangepouris?>?</strong></td>
  </tr>
  <tr class="t11">
    <td><div align="center" class="fw12"><?=$pn_pourtype?></div></td>
    <td><div align="center" class="fw12"><?=$pn_pourcontent?></div></td>
    <td><div align="center" class="fw12"><?=$pn_rate?></div></td>
    <td height="22">
      <div align="center" class="fw12"><?=$pn_pourmoney?></div></td>
  </tr>
  <tr class="t17">
    <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="t17">
    <td height="31" colspan="4"><div align="center"></div>
        <div align="right" class="fw12">
          <div align="center">            <input type="button" name="Submit2" value="<?=$pn_cancelpour?>" onclick="javascript:window.location.href='uleft_tm_check_yes.php?act=no'">
            <input type="button" name="Submit" value="<?=$pn_againpour?>" 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>


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -