📄 uleft_tm_check.php
字号:
<?php
session_start();
include("../inc/conn.php");
include_once($_SESSION["inclanguage"]);
include("check.php");
include("configs.inc.php");
include_once("../inc/for_test.class.php");
$sqlcs=mysql_query("select opstate from ptime where sign='4'",$conn);
$all_close=mysql_result($sqlcs,0,"opstate");
if($all_close==1) echo "<script language='javascript'>window.location='left_state.php'</script>";
$user=$_SESSION["user"];
$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("../inc/cut.inc.php");
$agent_profit=$_SESSION["agent_profit"];
$all_agent_profit=$_SESSION["all_agent_profit"];
$super_agent_profit=$_SESSION["super_agent_profit"];
$num_id='';
$num_sql='';
if(isset($_POST["num_id"])){
$num_id=$_POST["num_id"];
$num_sql=" and id=".$num_id;
}
?>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../styles/css_g/css2.CSS" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-image: url(../images/order_ph31.gif);
}
-->
</style>
<?
if(isset($_GET["act"]))
{
$drop_type=$_POST["drop_type"];
if($drop_type=="特码A")
{
$drop_tm="A";
}else if($drop_type=="特码B"){
$drop_tm="B";
}else
$drop_type=="0";
$drop_rate=$_POST["drop_rate"];
$drop_content=$_POST["drop_content"];
$drop_money=$_POST["drop_money"];
$cut=$_POST["drop_cut"];
$cut_sign=$_POST["cut_sign"];
if($drop_tm=="B")
{ $cut=0;
$cut_sign=0;
}
$leave=$_SESSION["credit"]-$_SESSION["used"];
if($leave>=$drop_money)
{
$money=$_SESSION["used"]+$drop_money;
$sign=$_SESSION["signid"]; //num_sign
if($sign==1||$sign==3|| $sign >= 20 && $sign<= 25)
{
$sq="num='$drop_content'";
}else{
$sq="tp='$drop_content'";
if(isset($_POST["num_id"])){
$num_id=$_POST["num_id"];
if($num_id>250){
$sq=$sq." and id=".$num_id." ";
}
}
}
if($num_id==''){
$sqlyz=mysql_query("select rate from num where $sq and sign='$sign' and user_account='$guser' ",$conn); //二次赔率变动check
}else{
$sqlyz=mysql_query("select rate from num where $sq and sign='$sign' $num_sql ",$conn); //二次赔率变动check
}
$prate=mysql_result($sqlyz,0,"rate");
if($_SESSION["tps"]=="b") $prate+=$abrate;
if(!isset($_SESSION["tpp"])){
$prate-=$_SESSION["pnum"];//盘类,正码区分
}
if(trim($prate)<>trim($drop_rate))
{
$drop_rate=$prate;
$yesrate=1;
}else $yesrate=0;
if($cut_signs==2||$cut_signs==3||$cut_signs==4||$cut_signs==6||$cut_signs==7)
{
$drop_type="特码";
}
$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);
$pcheck=$vp->profit_test($drop_content,'',$drop_money,$drop_rate,$cut,$sign);
$oks=mysql_query("insert into drop_bill(agent,all_agent,super_agent,user_name,drop_date,open_date,drop_type,drop_content,drop_rate,drop_cut,cut_sign,drop_money,sign,num_sign,drop_plate,drop_tm,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','$drop_date','$open_date','$drop_type','$drop_content','$drop_rate','$cut','$cut_sign','$drop_money','1','$sign','$plate','$drop_tm','$drop_agent_cut','$drop_all_agent_cut','$drop_super_agent_cut','$yesrate','$pcheck','$agent_profit','$all_agent_profit','$super_agent_profit')",$conn);
//bs
if($yesrate==1) echo "<script language='javascript'> window.location.href='uleft_tm_check_yes.php'</script>";//赔率变动转向
$ys=mysql_query("update member set used_credit='$money' where user_account='$user'",$conn);
if($ys) $_SESSION["used"]=$money;
if($oks)
{
// 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" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="22" valign="top" ><img src="../images/order_ph11.gif" width="232" height="23"></td>
</tr>
<tr>
<td height="36" style="background:url(../images/order_ph21.jpg) left 0 no-repeat;" class="m-title" colspan="5"><div align="center" class="fw12"><?=$pn_pourstate?>
</div></td>
</tr>
<tr>
<td><table width="220" height="74" border="0" align="left" cellpadding="2" cellspacing="1" class="t12">
<tr align="center" 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="26">
<div align="center" class="fw12"><?=$pn_pourmoney?></div></td>
<td 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="t20" <?=$ts?>>
<td height="22"><?=$rowr["drop_type"]?></td>
<td height="22"><?=$rowr["drop_content"]?></td>
<td height="22">
<div align="right">
<?
$ratets=$rowr["drop_rate"];
echo $ratets;
?>
</div></td>
<td height="22">
<div align="center">
<?=$rowr["drop_money"]?>
</div></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"];
}
if($yesrate<>1) mysql_query("update drop_bill set sign='0' where user_name='$user'",$conn);
?> <tr class="t11">
<td height="22" colspan="3" nowrap><div align="right" class="fw12"><?=$pn_count?>:</div></td>
<td height="22" nowrap><div align="right" class="fw12"><?=$all_money?></div></td>
<td align="center" nowrap></td>
</tr>
</table></td>
</tr>
<tr>
<td></td>
</tr>
</table>
<?php
echo '<div align=center><a href="uleft.php">['.$pn_back.']</a> <meta http-equiv="refresh" content="10;URL=uleft.php"></div>';
}else
{
echo "<script language='javascript'> alert('".$pn_sorrypourloser."!');window.location.href='uleft.php'</script>";
}
}else
{
echo "<script language='javascript'> alert('".$pn_creditmsg."!');window.location.href='uleft.php'</script>";
}
}else
{
//others
$drop_types=@$_POST["drop_type"];
$drop_rates=@$_POST["drop_rate"];
$drop_contents=@$_POST["drop_content"];
$drop_moneys=@$_POST["drop_money"];
$cuts=@$_POST["drop_cut"];
$cut_signs=@$_POST["cut_sign"];
if($drop_types=="特码A"||$drop_types=="特码B"||$drop_types=="特码")
{
include("left_tnum_close.php");
}else include("left_other_close.php");
//单项限额
$sql_limit=mysql_query("select unit_limit,pour_limit from member_cut where user_account='$user' and sign='$cut_signs'",$conn);
$units=mysql_result($sql_limit,0,"unit_limit");
$pours=mysql_result($sql_limit,0,"pour_limit");
if($drop_types=="特码A"||$drop_types=="特码B")
{
$sq="and drop_content='$drop_contents' and num_sign='1'";
}elseif($drop_types=="正码")
{
$sq="and drop_content='$drop_contents' and cut_sign='$cut_signs'";
}else $sq="and cut_sign='$cut_signs'";
$sqltm=mysql_query("select sum(drop_money) from drop_bill where drop_date='$drop_date' and user_name='$user' $sq ",$conn);
$myrow=mysql_fetch_array($sqltm);
$tmcount=$myrow[0];
$ladd=$drop_moneys+$tmcount;
if($drop_moneys>$pours) echo "<script language='javascript'> alert('".$pn_singlepourmoneynomax." ".$pours."!');window.location.href='uleft.php'</script>";
if($ladd>$units) echo "<script language='javascript'> alert('".$pn_unitlimitnomax." ".$units."!');window.location.href='uleft.php'</script>";
?>
<div align="center"></div>
<div align="center"></div>
<div align="center"></div>
<div align="center"></div>
<table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0" background="../images/order_ph31.gif">
<tr>
<td height="22" valign="top"><img src="../images/order_ph11.gif" width="232" height="23"></td>
</tr><tr>
<td height="36" style="background:url(../images/order_ph21.jpg)">
<div align="center" class="fw12"><?=$pn_youpouris?></div></td>
</tr>
<tr><td valign="top">
<script language="javascript"><!--
function fs()
{
myform.fsubmit.value="<?=$pn_waitting?>..";
myform.fsubmit.disabled=true;
myform.submit();
}-->
</script>
<form name="myform" method="post" action="uleft_tm_check.php?act=yes">
<table width="220" height="100" border="0" align="center" cellpadding="2" cellspacing="1" class="t12">
<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="t20" height="22">
<td><div align="center">
<?
echo $drop_types;?>
</div></td>
<td><div align="center">
<?=$drop_contents?>
</div></td>
<td><div align="center">
<?=$drop_rates?>
</div></td>
<td height="22"><div align="center">
<?=$drop_moneys?>
</div></td>
</tr>
<tr class="t17">
<td height="50" colspan="4"><div align="center"></div>
<div align="right" class="fw12">
<div align="center"><span class="style3">
<input name="Submit" type="button" class="buttonrmin" value="<?=$pn_cancelpour?>" onClick="window.location.href='uleft.php';">
<input name="fsubmit" type="submit" class="buttongmin" value="<?=$pn_confirm?>" onClick="fs();">
</span></div>
</div>
<div align="right"></div>
<div align="center" class="fw12"></div></td>
</tr>
</table>
<br>
<div align="center"><span class="style3">
<input name="drop_cut" type="hidden" id="rate2" value="<?=$cuts?>">
<input name="cut_sign" type="hidden" id="cut_sign" value="<?=$cut_signs?>">
<input name="drop_type" type="hidden" id="rate2" value="<? echo $drop_types;?>">
<input name="drop_rate" type="hidden" id="rate2" value="<?=$drop_rates?>">
<input name="drop_content" type="hidden" id="number2" value="<?=$drop_contents?>">
<input name="drop_money" type="hidden" id="drop_money" value="<?=$drop_moneys?>">
</span> </div>
</form></td>
</tr>
</table>
<? }?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -