📄 sixanimal_check.php
字号:
<?php
session_start();
include("../inc/conn.php");
include_once($_SESSION["inclanguage"]);
include("check.php");
include("../inc/now_dates.php");
include_once("../inc/for_test.class.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"];
$drop_date=$_SESSION["downdate"];
$opendate=$_SESSION["opendate"];
$open_date=$_SESSION["opendate"];
$open_date=str_replace("-","",$open_date);
$plate=$_SESSION["type"];;
$agent=$_SESSION["agent"];
$all_agent=$_SESSION["all_agent"];
$super_agent=$_SESSION["super_agent"];
$agent_profit=$_SESSION["agent_profit"];
$all_agent_profit=$_SESSION["all_agent_profit"];
$super_agent_profit=$_SESSION["super_agent_profit"];
$sqlm=mysql_query("select unit_limit,pour_limit from member_cut where user_account='$user' and sign='15'",$conn);
$units=mysql_result($sqlm,0,"unit_limit");
$maxrmb=mysql_result($sqlm,0,"pour_limit");
$minrmb=$drop_lows;
include("../inc/cut.inc.php");
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_moreanimal;
if($drop_money=="")
{
echo "<script language='javascript'>alert('".$pn_pourmoneynonull."!');window.location.href='uleft.php';</script>";
}else
{
$leave=$_SESSION["credit"]-$_SESSION["used"];
if($leave>=$drop_money)
{
$money=$_SESSION["used"]+$drop_money;
$cut=cut(15);
$drop_agent_cut=cut_num($agent,15,$plate);
$drop_all_agent_cut=cut_num($all_agent,15,$plate);
$drop_super_agent_cut=cut_num($super_agent,15,$plate);
$pcheck=$vp->profit_test($drop_content,$drop_details,$drop_money,$drop_rate,$cut,9);
$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,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','15','$drop_money','$drop_details','0','9','$plate',
'$drop_agent_cut','$drop_all_agent_cut','$drop_super_agent_cut','$pcheck','$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_content"];
$drop_details=$_POST["drop_details"];
$drop_rates=$_POST["drop_rate"];
$drop_moneys=$_POST["drop_money"];
?><script language="javascript">
function fss()
{
myforms.fsubmits.value="<?=$pn_waitting?>..";
myforms.fsubmits.disabled=true;
myforms.submit();
}
</script>
<table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" background="../images/order_ph31.gif">
<table width="220" height="115" border="0" align="center" cellpadding="0" cellspacing="1">
<form name="myforms" method="post" action="sixanimal_check.php?act=yes">
<tr>
<td height="23" background="../images/order_ph11.gif" colspan="4">
</td></tr>
<tr>
<td height="36" background="../images/order_ph21.jpg" colspan="4"><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><div align="center"><?=$pn_moreanimal?></div></td>
<td><div align="center">
<?=$drop_contents?>
<?=$drop_details?>
</div></td>
<td><div align="center">
<?=$drop_rates?>
</div></td>
<td height="28"><div align="center">
<?=$drop_moneys?>
</div></td>
</tr>
<tr class="t17">
<td height="33" colspan="4"><div align="center"></div>
<div align="right" class="fw12">
<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="buttongmin" value="<?=$pn_confirm?>" onClick="fss();">
</span></div>
</div></td>
</tr>
<input name="drop_rate" type="hidden" id="drop_rate" value="<?=$drop_rates?>">
<input name="drop_content" type="hidden" id="drop_content" value="<?=$drop_contents?>">
<input name="drop_details" type="hidden" id="drop_details" value="<?=$drop_details?>">
<input name="drop_money" type="hidden" id="drop_rate" value="<?=$drop_moneys?>">
</form>
</table></td>
</tr>
</table>
<br>
<div align="center"><span class="style3">
</span>
</div>
<? }else
{?>
<?php
$check=@$_POST["check"];
$among=@$_POST["among"];
$rate=@$_POST["rate"];
$ac=$among;
//$rate=@$_POST["rate"];
if($among=="3")
{
$among="三肖";
}elseif($among=="4")
{
$among="四肖";
}elseif($among=="5")
{
$among="五肖";
}elseif($among=="6")
{
$among="六肖";
}
//$sqlr=mysql_query("select * from num where tp='$among'",$conn); //取赔率
//$rate=mysql_result($sqlr,0,"rate");
$rates=$rate;
$list=split(",",$check);
if($ac<>count($list)-1) echo "<script language='javascript'>alert('".$among.$pn_onlyselect.$among."".$pn_animalonlymsg."!');history.back(1);</script>";
$number=$among; //单项限额
$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='15'",$conn);
$myrow=mysql_fetch_array($sqltm);
$tmcount=$myrow[0];
if($tmcount=="") $tmcount=0;
for($i=0;$i<count($list)-1;$i++)
{
$a=$list[$i];
switch($a)
{
case "01":
$con.="1,";
$animal.="鼠,";
break;
case "02":
$con.="2,";
$animal.="牛,";
break;
case "03":
$con.="3,";
$animal.="虎,";
break;
case "04":
$con.="4,";
$animal.="兔,";
break;
case "05":
$con.="5,";
$animal.="龙,";
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -