📄 left_znumber_check.php
字号:
<?php
session_start();
include("../inc/conn.php");
include_once($_SESSION["inclanguage"]);
include("check.php");
include("configs.inc.php");
include("other_close.php");
$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"];
$sqlm=mysql_query("select unit_limit,pour_limit from member_cut where user_account='$user' and sign='5'",$conn);
$minrmb=$drop_lows;
$znumber=$pn_rightnumber;
$units=mysql_result($sqlm,0,"unit_limit");
$maxrmb=mysql_result($sqlm,0,"pour_limit");
$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 {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
<?php
include("../inc/cut.inc.php");
if(isset($_GET["act"]))
{
if(isset($_POST["drop_number_t"]))
{
$rcount=$_POST["rcount"];
$leave=$_SESSION["credit"]-$_SESSION["used"];
if($leave<$rcount)
{
echo "<script language='javascript'> alert('".$pn_creditmsg."!');window.location.href='znumber.php'</script>";
}else
{
$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"];
$a_t=split(",",$drop_number_t);
$c_t=split(",",$drop_rate_t);
$d_t=$txtrmb;
$cut=cut(5);
$drop_agent_cut=cut_num($agent,5,$plate);
$drop_all_agent_cut=cut_num($all_agent,5,$plate);
$drop_super_agent_cut=cut_num($super_agent,5,$plate);
for($i=0;$i<count($a_t)-1;$i++)
{ $all_money+=$txtrmb;
$sqlyz=mysql_query("select rate from num where num='$a_t[$i]' and sign='3' and user_account='$guser'",$conn); //赔率变动check
$prate=mysql_result($sqlyz,0,"rate");
if($prate<>$c_t[$i])
{
$yesrate=1;
$ys=1;
}else $yesrate=0;
$sqlss=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_agent_cut,drop_all_agent_cut,
drop_super_agent_cut,yesrate,agent_profit,all_agent_profit,super_agent_profit)values('$agent','$all_agent','$super_agent','$user','$drop_date','$open_date','$drop_type_t',
'$a_t[$i]','$c_t[$i]','$cut','5','$txtrmb','1','3','$plate','$drop_agent_cut','$drop_all_agent_cut','$drop_super_agent_cut','$yesrate','$agent_profit','$all_agent_profit','$super_agent_profit')",$conn);
//bs
if($sqlss) $money+=$d_t[$i];
}
}
}
$sqlr=mysql_query("select * from drop_bill where sign='1' and user_name='$user' order by id desc",$conn);
?>
<table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" background="../styles/nimg/left.gif"><table width="220" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="34" background="../images/left_up.jpg"><div align="center" class="fw12"><?=$pn_pourstate?></div></td>
</tr>
<tr>
<td><table width="100%" height="74" border="0" align="left" cellpadding="0" 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="26">
<div align="center" class="fw12"><?=$pn_pourmoney?></div></td>
<td align="center" class="fw12"><?=$pn_state?></td>
</tr>
<?php
while($rowr=mysql_fetch_array($sqlr))
{ if($rowr["yesrate"]=="1")
{ $ts="class='t13'";
}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 >
<?=$rowr["drop_rate"]?>
</div></td>
<td height="22">
<div >
<?=$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>
<?
} $moneys=$all_money+$_SESSION["used"]; //更新信用额度
$ys=mysql_query("update member set used_credit='$moneys' where user_account='$user'",$conn);
if($ys) $_SESSION["used"]=$moneys;
mysql_query("update drop_bill set sign='0' where user_name='$user'",$conn);
mysql_query("delete from drop_bill where user_name='$user' and yesrate='1'",$conn);
//bs
mysql_query("update drop_bills set sign='0' where user_name='$user'",$conn);
mysql_query("delete from drop_bills where user_name='$user' and yesrate='1'",$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 align="center"><input name="rcount" type="hidden" id="rcount2" value="<?=$all_money?>"></td>
</tr>
<meta http-equiv="refresh" content="20;URL=uleft.php">
</table></td>
</tr>
<tr>
<td height="24" align="center"><a href="uleft.php">[<?=$pn_back?>]</a> </td>
</tr>
</table>
<div align="center">
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</div></td>
</tr>
</table>
<?
}else
{
$check=@$_POST["check"];
$txtrmb=@$_POST["txtrmb"];
$list=split(",",$check);
function outscript($arr)
{
echo "<script language='javascript'>".$arr."</script>";
}
for($i=0;$i<count($list)-1;$i++)
{
$p="t".$list[$i];
$txt=@$_POST[$p];
$rmb_count+=$txt;
}
if($rmb_count==""||$rmb_count==0) outscript("alert('".$pn_inputpourmoney."!');history.back(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>
<table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" background="../styles/nimg/left.gif"><table width="200" border="0" align="center" cellpadding="0" cellspacing="1">
<form name="myform" method="post" action="left_znumber_check.php?act=yes">
<tr>
<td><table width="220" height="101" border="0" align="left" cellpadding="0" cellspacing="1" class="t12">
<tr align="center" class="t11" background="../images/left_up.jpg">
<td height="34" colspan="4" class="fw12" background="../images/left_up.jpg"> <?=$pn_youpouris?> </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>
<?php
$x=0;
for($i=0;$i<count($list)-1;$i++)
{
$number=$list[$i]; //单项限额
$drop_money=$txt;
$sqltm=mysql_query("select sum(drop_money) from drop_bill where drop_date='$drop_date' and user_name='$user' and drop_content='$number' and cut_sign='5'",$conn);
$myrow=mysql_fetch_array($sqltm);
$tmcount=$myrow[0];
$ladd=$drop_money+$tmcount;
if($ladd>$units) echo "<script language='javascript'> alert('".$pn_rightnumber." ".$number." ".$pn_unitlimitnomax." ".$units."');history.back();</script>";
if($txtrmb<$minrmb)
{
outscript("alert('".$pn_pourlimitlow." ".$minrmb."');history.back(1);");
}elseif($txtrmb>$maxrmb)
{
echo outscript("alert('".$pn_rightnumber." ".$number." ".$pn_pourhigh." ".$maxrmb."');history.back(1);");
}else
{
$x++;
?>
<tr class="t20">
<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='3' and num='$list[$i]' and user_account='$guser' order by id asc",$conn);
$rate=mysql_result($sql,0,"rate");
$droprate_t.=$rate.",";
echo $rate;
?>
</div></td>
<td height="26"><div align="center">
<?php
$recount+=$txtrmb;
echo $txtrmb;
?>
</div></td>
</tr>
<?php
}
}
?>
<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">
<?=$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="drop_number_t" type="hidden" id="drop_number_t" value="<?=$check?>">
<input name="drop_type_t" type="hidden" id="znumber" value="正码">
<input name="drop_rate_t" type="hidden" id="check" value="<?= $droprate_t?>">
<input name="drop_money_t" type="hidden" id="check" value="<?=$txtrmb?>">
<input name="rcount2" type="hidden" id="check" value="<?=$recount?>">
</div></td>
</tr>
</form>
</table>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p></td>
</tr>
</table>
<? }?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -