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

📄 left_umain_check_zt.php

📁 六和投注系统
💻 PHP
字号:
<?php 
session_start();
include_once("../inc/conn.php");
include_once($_SESSION["inclanguage"]);
include_once("check.php");
include_once("../inc/for_test.class.php");
include_once("configs.inc.php");
include_once("left_tnum_close.php");
$user=$_SESSION["user"];
$downdate=$_SESSION["downdate"];
$drop_date=$_SESSION["downdate"];
$open_date=$_SESSION["opendate"];
$open_date=str_replace("-","",$open_date);
$plate=$_SESSION["plate"];
$agent=$_SESSION["agent"];
$all_agent=$_SESSION["all_agent"];
$super_agent=$_SESSION["super_agent"];
include_once("../inc/cut.inc.php");
$agent_profit=$_SESSION["agent_profit"];
$all_agent_profit=$_SESSION["all_agent_profit"];
$super_agent_profit=$_SESSION["super_agent_profit"];
?>
<link href="../styles/css_g/css2.CSS" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
body {
	background-image: url(../images/order_ph31.gif);
	margin-left: 0px;
	margin-top: 0px;
}
-->
</style>
<?php 
include_once("../inc/cut.inc.php");
 $sqld = mysql_query( "select id,num,num_flag from open_num order by id asc", $conn );
			$num_flag=null;
			while ( $row = mysql_fetch_array( $sqld ) ){
				$open_num_id=$row['num'];
				$open_num_flag=$row['num_flag'];
				$num_flag[$open_num_id]=$open_num_flag;
				}
$num_closed='';				
if(isset($_GET["act"]))
{ 
  $rcount=$_POST["rcount"];
  $leave=$_SESSION["credit"]-$_SESSION["used"];
  if($leave<$rcount)
  {
   echo "<script language='javascript'> alert('".$pn_creditmsg."!');window.location.href='left_umainzt.php'</script>";
   }else
   {
   $ys=0;
 if(isset($_POST["drop_number_t"]))    //t
 {
   $number_type=$_POST["number_type"];
   $drop_number_t=$_POST["drop_number_t"];
   $drop_type_t=$_POST["drop_type_t"];
   $drop_rate_t=$_POST["drop_rate_t"];
   $txtrmb=$_POST["drop_money_t"];
    $rs = $number_type;
   if ( $number_type == "zt1" ){
		$number_type = "正1特";		
		$cut_sign = 20;
	}else if ($number_type == "zt2"){		
		$number_type = "正2特";
		$cut_sign = 21;
	}else if ($number_type == "zt3"){		
		$cut_sign = 22;
		$number_type = "正3特";
	}else if ($number_type == "zt4"){
		$cut_sign = 23;		
		$number_type = "正4特";
	}else if ($number_type == "zt5"){
		$cut_sign = 24;		
		$number_type = "正5特";
	}else if ($number_type == "zt6"){
		$cut_sign = 25;		
		$number_type = "正6特";
	}else{
		$cut_sign = 20;		
		$number_type = "正1特";
	}
	$drop_tm = "";

   $a_t=split(",",$drop_number_t);
   $c_t=split(",",$drop_rate_t);
   $cut=cut($cut_sign);
   $drop_agent_cut=cut_num($agent,$cut_sign,$plate);
   $drop_all_agent_cut=cut_num($all_agent,$cut_sign,$plate);
   $drop_super_agent_cut=cut_num($super_agent,$cut_sign,$plate);
   if($drop_tm=="B") $cut=0;
   for($i=0;$i<count($a_t)-1;$i++)
   { 
  
	if($num_flag[$a_t[$i]]<>'on'){
			continue;
			}
  	 $sqlyz=mysql_query("select rate from  num where num='$a_t[$i]' and sign='$cut_sign' and user_account='$guser'",$conn);  //赔率变动check
     $prate=mysql_result($sqlyz,0,"rate");
	 if($drop_tm=="B") $prate+=$abrate;
	 $prate-=$_SESSION["tpnum"];
	 if($prate<>$c_t[$i])
	 { $c_t[$i]=$prate;
	   $yesrate=1;
	   $ys=1;
	   $_SESSION["yesrate"]=1;
	 }else $yesrate=0;
	 $pcheck=$vp->profit_test($a_t[$i],'',$txtrmb,$c_t[$i],$cut,$cut_sign);
     $sqltt=mysql_query("insert into drop_bill(agent,all_agent,super_agent,user_name,drop_date,
	 open_date,drop_type,drop_tm,drop_content,drop_rate,drop_cut,cut_sign,drop_money,sign,num_sign,
	 drop_plate,drop_agent_cut,drop_all_agent_cut,drop_super_agent_cut,yesrate,pcheck,agent_profit,all_agent_profit,super_agent_profit)values('$agent','$all_agent',
	 '$super_agent','$user','$downdate','$open_date','$number_type','$drop_tm','$a_t[$i]','$c_t[$i]',
	 '$cut','$cut_sign','$txtrmb','$cut_sign','$cut_sign','$plate','$drop_agent_cut','$drop_all_agent_cut','$drop_super_agent_cut','$yesrate','$pcheck','$agent_profit','$all_agent_profit','$super_agent_profit')",$conn);
   //bs
     if($sqltt) $money+=$txtrmb;
   }
 }
 

				
  $moneys=$money+$_SESSION["used"];
  $ys=mysql_query("update member set used_credit='$moneys' where user_account='$user'",$conn);
  if($ys) $_SESSION["used"]+=$money;
  $sqlr=mysql_query("select * from drop_bill where sign='$cut_sign' and user_name='$user' order by id desc",$conn);
 ?>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td height="33" align="center" valign="top" ><table width="220" border="0" align="center" 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_loser."</font>";
			}else echo $pn_success;?>
              </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
  if($psp==1)
  { $us="'left_umain_check_yes.php'";
    $up="'left_umain_check_yes.php?act=yes'";
    echo '<div align="center"><input type="button" name="Submit3" value="'.$pn_cancelpour.'" onClick="javascript:window.location.href='.$up.'" class="buttonrmin"> ';
    echo '<input type="button" name="Submit3" value="'.$pn_againpour.'" onClick="javascript:window.location.href='.$us.'" class="buttongmin"></div>';
}else echo ' <a href="left_umainzt.php?menu='.$rs.'">['.$pn_back.']</a><meta http-equiv="refresh" content="20;URL=uleft.php">';

	?></td>
  </tr>
</table>
<? 
  }
}
else
{
?>
    <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td valign="top" ><table width="220" border="0" align="center" cellpadding="0" cellspacing="1">
          <script language="javascript">
function fs()
{
 myform.fsubmit.value="<?=$pn_waitting?>..";
 myform.fsubmit.disabled=true;
  myform.submit();
}
function fs2()
{
 myform.fsubmit2.value="<?=$pn_waitting?>..";
 myform.fsubmit2.disabled=true;
  myform.submit();
}
        </script>
          <form name="myform" method="post" action="left_umain_check_zt.php?act=yes">
            <tr>
              <td width="220"><table width="220" height="101"  border="0" align="left" cellpadding="0" cellspacing="1" class="t12">
                  <tr  >
                    <td height="34" colspan="4" background="../images/left_up.jpg"><div align="center" class="fw12"><?=$pn_pourdetails?></div></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>
                  <?
$minrmb=$drop_lows;
$check=@$_POST["check"];
$txtrmb=@$_POST["txtrmb"];
$znumber=@$_POST["tnumber"];
$rs=$znumber;

	if ($znumber == "zt1"){
		$znumber = "正1特";
		$sign_=20;
	}else if ($znumber == "zt2"){
		$znumber = "正2特";
		$sign_=21;
	}else if ($znumber == "zt3"){
		$znumber = "正3特";
		$sign_=22;
	}else if ($znumber == "zt4"){
		$znumber = "正4特";
		$sign_=23;
	}else if ($znumber == "zt5"){
		$znumber = "正5特";
		$sign_=24;
	}else if ($znumber == "zt6"){
		$znumber = "正6特";
		$sign_=25;
	}else{
		$znumber = "正1特";
		$sign_=20;
	}
	$drop_tm = "";
$list=split(",",$check);
function unit($arr)  //td单项
{ global $user,$conn;
  $sql_limit=mysql_query("select unit_limit from member_cut where user_account='$user' and sign='$arr'",$conn);
  return mysql_result($sql_limit,0,"unit_limit");
}
function pour($arr) //td单注
{ global $user,$conn;
  $sqlp_limit=mysql_query("select pour_limit from member_cut where user_account='$user' and sign='$arr'",$conn);
  $units=mysql_result($sqlp_limit,0,"pour_limit");
  return $units;
}
function unit_alert($drop_text,$cuts,$unites,$dropmsd)
{ global $conn,$user,$drop_date;
$sqltms=mysql_query("select sum(drop_money) from drop_bill where drop_date='$drop_date' and user_name='$user'  and drop_content='$drop_text' and cut_sign='$cuts' ",$conn);
$myrowd=mysql_fetch_array($sqltms);
$tmcountd=$myrowd[0];
$laddd=$dropmsd+$tmcountd;
if($laddd>$unites) echo "<script language='javascript'> alert('".$drop_text." ".$pn_unitlimitnomax." ".$unites."!');history.back();</script>";
}
$units=unit($sign_);
$pours=pour($sign_);
function outscript($arr)
{
 echo "<script language='javascript'>".$arr."</script>";
}
$x=0;
if($txtrmb<$minrmb) outscript("alert('".$pn_pourlimitlow." ".$minrmb."');history.back(1);");
for($i=0;$i<count($list)-1;$i++)
{
	if($num_flag[$list[$i]]<>"on"){
		//echo "<tr class=\"t20\"><td><div align=\"center\">{$znumber}</div></td><td colspan=3><div align=\"center\">{$list[$i]} 已经封号</div></td></tr>";
		$num_closed.=$list[$i]." ";
		continue;
	}
  $msg=1; 
  $dropms=$txtrmb;
  $x+=1;
  $t+=$p.",";
  ?>
                  <tr class="t17">
                    <td><div align="center">
                        <?=$znumber?>
                    </div></td>
                    <td><div align="center">
                        <?=$list[$i]?>
                    </div></td>
                    <td><div align="center">
                        <?php
$sql=mysql_query("select rate from num where sign='$sign_' and num='$list[$i]' and user_account='$guser' order by id asc",$conn);
$rate=mysql_result($sql,0,"rate");
//单项限额
$sqltm=mysql_query("select sum(drop_money) from drop_bill where drop_date='$drop_date' and user_name='$user'  and drop_content='$list[$i]' and num_sign='$sign_'",$conn);
$myrow=mysql_fetch_array($sqltm);
$tmcount=$myrow[0];
$ladd=$dropms+$tmcount;
if($dropms>$pours) echo "<script language='javascript'> alert('".$znumber." ".$list[$i]." ".$pn_pourlimitnomax." ".$pours."!');history.back();</script>";
if($ladd>$units) echo "<script language='javascript'> alert('".$znumber." ".$list[$i]." ".$pn_numunitlimitnomax." ".$units."!');history.back();</script>";
			 if($rs=="a"):
			// echo $rs.$plate;
			    $ratets=$rate;
				if($plate=="A")
				{ $rateds=$ratets;
				$_SESSION["tpnum"]=0;
				}
                if($plate=="B")
				{ $rateds=$ratets-0.5;
				$_SESSION["tpnum"]=0.5;
				}
	            if($plate=="C")
				{ $rateds=$ratets-1;
				$_SESSION["tpnum"]=1;
				}
				 $droprate_t.=$rateds.",";
			     echo $rateds;
			 else:
			
			        $ratets=$rate;
				if($plate=="A")
				{ $rateds=$ratets;
				$_SESSION["tpnum"]=0;
				}
                if($plate=="B")
				{ $rateds=$ratets-0.5;
				$_SESSION["tpnum"]=0.5;
				}
	            if($plate=="C")
				{ $rateds=$ratets-1;
				$_SESSION["tpnum"]=1;
				}
			    $droprate_t.=$rateds.",";
				echo $rateds;
			 endif
			 ?>
                    </div></td>
                    <td height="26"><div align="center">
             <?php
 			$rmb_count+=$txtrmb;
			echo $txtrmb;
			?>
                    </div></td>
                  </tr>
                  <?php
  }
if($msg<>1) outscript("alert('".$pn_inputpourmoney."!');history.back(1);");
?>
                  <tr class="t11">
                    <td height="22" colspan="4"><div align="center"></div>
                        <div align="right" class="fw12"> <?=$pn_all?> <span class="style1">
                          <?=$x?>
                          </span> <?=$pn_pour?> <?=$pn_count?>: <span class="style1">
                          <input name="rcount" type="hidden" value="<?=$rmb_count?>">
                          <?=$rmb_count?>
                        </span> </div>
                        <div align="right"></div>
                        <div align="center" class="fw12"> </div></td>
                  </tr>
              </table></td>
            </tr>
            <tr>
              <td height="27">
                <div align="center">
                  <input name="Submit" type="button" class="buttonrmin" value="<?=$pn_cancelpour?>" onclick="javascript:history.back(1);">
                  <input name="fsubmit" type="submit" class="buttongmin" value="<?=$pn_confirm?>" onClick="fs();">
                  <input name="number_type" type="hidden" id="check" value="<?=$rs?>">
                  <input name="drop_number_t" type="hidden" id="drop_number_t" value="<?=$check?>">
                  <input name="drop_type_t" type="hidden" id="znumber" value="<?=$znumber?>">
                  <input name="drop_rate_t" type="hidden" id="check" value="<?= $droprate_t?>">
                  <input name="drop_money_t" type="hidden" id="check" value="<?=$txtrmb?>">
              </div></td>
            </tr>
          </form>
        </table></td>
      </tr>
</table>

    <?php 
	}
	?>
<p>&nbsp;</p>
<p>&nbsp;</p>


⌨️ 快捷键说明

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