📄 lnumber_check.php
字号:
<?php
session_start();
include("../inc/conn.php");
include_once($_SESSION["inclanguage"]);
include("check.php");
include("configs.inc.php");
include("left_other_close.php");
include("../inc/char.inc.php");
$user=$_SESSION["user"];
$credit=$_SESSION["credit"];
$used=$_SESSION["used"];
$type=$_SESSION["type"];
$downdate=$_SESSION["downdate"];
$dates=$downdate;
$opendate=$_SESSION["opendate"];
$drop_date=$_SESSION["downdate"];
$open_date=$_SESSION["opendate"];
$agent=$_SESSION["agent"];
$all_agent=$_SESSION["all_agent"];
$super_agent=$_SESSION["super_agent"];
$open_date=str_replace("-","",$open_date);
$plate=$_SESSION["plate"];
include("../inc/cut.inc.php");
$sqlm=mysql_query("select unit_limit,pour_limit from member_cut where user_account='$user' and sign='18'",$conn);
$units=mysql_result($sqlm,0,"unit_limit");
$maxrmb=mysql_result($sqlm,0,"pour_limit");
$minrmb=$drop_lows;
if(isset($_GET["act"]))
{
$drop_money=$_POST["drop_money"];
$drop_content=$_POST["drop_content"];
$drop_details=$_POST["drop_details"];
$drop_rate=$_POST["drop_rate"];
$drop_type=$pn_linknumber;
if($drop_money=="")
{
echo "<script language='javascript'>alert('".$pn_pourmoneynonull."!');history.back(1);</script>";
}else
{
$leave=$_SESSION["credit"]-$_SESSION["used"];
if($leave>=$drop_money)
{
$agent_profit=$_SESSION["agent_profit"];
$all_agent_profit=$_SESSION["all_agent_profit"];
$super_agent_profit=$_SESSION["super_agent_profit"];
$money=$_SESSION["used"]+$drop_money;
$cut=cut(18);
$drop_agent_cut=cut_num($agent,18,$plate);
$drop_all_agent_cut=cut_num($all_agent,18,$plate);
$drop_super_agent_cut=cut_num($super_agent,18,$plate);
$ok=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,drop_details,sign,num_sign,drop_plate,drop_agent_cut,
drop_all_agent_cut,drop_super_agent_cut,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','18','$drop_money','$drop_details','0','5',
'$plate','$drop_agent_cut','$drop_all_agent_cut','$drop_super_agent_cut','$agent_profit','$all_agent_profit','$super_agent_profit')",$conn);
//bs
$ys=mysql_query("update member set used_credit='$money' where user_account='$user'",$conn);
if($ys) $_SESSION["used"]=$money;
if($ok) echo "<script language='javascript'>alert('".$pn_poursuccese."!');window.location.href='uleft.php';</script>";
}else
{
echo "<script language='javascript'> alert('".$pn_creditmsg."!');window.location.href='uleft.php'</script>";
}
}
}
$update_time=45;
?>
<link href="../styles/css_g/css2.CSS" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="refresh" content="<?=$update_time?>;URL=uleft.php">
<style type="text/css">
<!--
body {
margin-top: 0px;
margin-left: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-image: url(../styles/nimg_g/left.gif);
}
-->
</style>
<?php
if(isset($_GET["jact"]))
{
$drop_contents=$_POST["drop_contenta"];
$drop_details=$_POST["drop_detailsa"];
$drop_rates=$_POST["drop_ratea"];
$drop_moneys=$_POST["drop_moneys"]*$_POST["units"];
?><script language="javascript">
function fss()
{
myforms.fsubmits.value="<?=$pn_waitting?>..";
myforms.fsubmits.disabled=true;
myforms.submit();
}
</script>
<div align="center"></div>
<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" height="108" border="0" align="center" cellpadding="0" cellspacing="1" class="t12">
<form name="myforms" method="post" action="lnumber_check.php?act=yes">
<tr >
<td height="36" colspan="4" background="../images/left_up.jpg"><div align="center" class="fw12"><?=$pn_youpouris?></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>
<tr class="t17">
<td nowrap><div align="center"><?=$pn_linknumber?></div></td>
<td width="60"><div align="center">
<?=$drop_contents?>
<?=$drop_details?>
</div></td>
<td><div align="center">
<?=$drop_rates?>
</div></td>
<td height="26" nowrap><div align="center">
<?=$drop_moneys?>
</div></td>
</tr>
<tr class="t20">
<td height="29" colspan="4" class="t17"><div align="center"><span class="style3">
<input name="Submit3" type="button" class="buttonrmin" value="<?=$pn_cancelpour?>" onClick="window.location.href='uleft.php';">
<input name="fsubmits" type="submit" class="buttongmins" value="<?=$pn_confirm?>" onClick="fss();">
</span></div></td>
</tr>
<input name="drop_rate" type="hidden" id="drop_rate3" value="<?=$drop_rates?>">
<input name="drop_content" type="hidden" id="drop_content4" value="<?=$drop_contents?>">
<input name="drop_details" type="hidden" id="drop_details3" value="<?=$drop_details?>">
<input name="drop_money" type="hidden" id="drop_rate3" value="<?=$drop_moneys?>">
</form>
</table>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p></td>
</tr>
</table>
<br>
<div align="center"><span class="style3">
</span>
</div>
<?php
}
else{
$check=$_POST["check"];
$fp=split(",",$check);
$unum=count($fp)-1;
$among=$_POST["ratetype"];
$atype=$among;
$rate=$_POST["rate"];
$vrate=$rate;
if($among=="1")
{
$among="三全中";
$ratemenu=$rate;
}elseif($among=="2")
{
$among="三中二";
$ay=split(",",$rate);
$rate1=$ay[0];
$rate2=$ay[1];
$vrate=$rate2;
$ratemenu="中二<font color='red'>".$rate1."</font><br>中三<font color='red'>".$rate2."</font>";
}elseif($among=="3")
{
$among="二全中";
$ratemenu=$rate;
$vrate=$rate;
}elseif($among=="4")
{
$among="二中特";
$ay=split(",",$rate);
$rate1=$ay[0];
$rate2=$ay[1];
$vrate=$rate2;
$ratemenu="中特<font color='red'>".$rate1."</font><br>中二<font color='red'>".$rate2."</font>";
}elseif($among=="5")
{
$among="特串";
$ratemenu=$rate;
$vrate=$rate;
}
if($atype==1||$atype==2)
{
if($unum==3)
{
$unums=1;
}elseif($unum==4)
{
$unums=4;
}elseif($unum==5)
{
$unums=10;
}elseif($unum==6)
{
$unums=20;
}elseif($unum==7)
{
$unums=35;
}elseif($unum==8)
{
$unums=56;
}elseif($unum==9)
{
$unums=84;
}elseif($unum==10)
{
$unums=120;
}
}else
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -