📄 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.="龙,";
break;
case "06":
$con.="6,";
$animal.="蛇,";
break;
case "07":
$con.="7,";
$animal.="马,";
break;
case "08":
$con.="8,";
$animal.="羊,";
break;
case "09":
$con.="9,";
$animal.="猴,";
break;
case "10":
$con.="10,";
$animal.="鸡,";
break;
case "11":
$con.="11,";
$animal.="狗,";
break;
case "12":
$con.="12,";
$animal.="猪,";
break;
}
}
?> <script language="javascript">
function Isnum()
{
return ((event.keyCode >= 48) && (event.keyCode <= 57));
}
function checks(form)
{
if(form.drop_money.value<<?=$minrmb?>||form.drop_money.value=="")
{
alert("<?=$pn_singlemoneynolow?> <?=$minrmb?>");
return false;
form.drop_money.focus();
}
if(form.drop_money.value><?=$maxrmb?>)
{
alert("<?=$pn_singlemoneyup?> <?=$maxrmb?>");
return false;
form.drop_money.focus();
}
var cmoney=parseFloat(form.drop_money.value)+<?=$tmcount?>;
if(cmoney><?=$units?>)
{
alert("<?=$pn_unitlimitnomax?> <?=$units?>");
return false;
form.drop_money.focus();
}
}
function win_money()
{
var rmb=this.form1.drop_money.value;
rmb=rmb*<?=$rate?>-rmb;
winmoney.innerText=roundFun(rmb,2);
}
function roundFun(numberRound,roundDigit) //四舍五入,保留位数为roundDigit ,供计算时用
{
if (numberRound>=0)
{
var tempNumber = parseInt((numberRound * Math.pow(10,roundDigit)+0.5))/Math.pow(10,roundDigit);
return tempNumber;
}
else
{
numberRound1=-numberRound
var tempNumber = parseInt((numberRound1 * Math.pow(10,roundDigit)+0.5))/Math.pow(10,roundDigit);
return -tempNumber;
}
}
</script> <script language="javascript">
function fs()
{
myform.fsubmit.value="<?=$pn_waitting?>..";
myform.fsubmit.disabled=true;
myform.submit();
}
</script>
<table width="210" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" background="../images/order_ph31.gif"><table width="220" border="0" align="center" cellpadding="0" cellspacing="1" class="t12">
<form name="myform" method="post" action="sixanimal_check.php?jact=yes" onSubmit="return checks(this);">
<tr>
<td height="23" background="../images/order_ph11.gif">
</td></tr>
<tr>
<td height="36" background="../images/order_ph21.jpg"><div align="center" class="fw12"> <?=$pn_moreanimal?> <?=$pn_downpour?></div></td>
</tr>
<tr>
<td><table width="220" height="350" border="0" align="left" cellpadding="2" cellspacing="0" class="t12">
<tr class="t20">
<td height="323" valign="top"><table width="100%" height="274" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="38%"><div align="right"><?=$pn_memberaccount?>:</div></td>
<td width="62%" height="27"><div align="center">
<?=$user?>
</div></td>
</tr>
<tr>
<td><div align="right"><?=$pn_credit?>:</div></td>
<td height="20"><div align="center"><span class="style3">
<?=rmb($credit)?>
</span></div></td>
</tr>
<tr>
<td height="23" colspan="2"><hr width="98%" size="1"></td>
</tr>
<tr>
<td height="20" colspan="2"><div align="center"><font color="blue"><strong><?=$pn_date?>
<?=$downdate?>
</strong></font><br>
<font color="#FF0000">
<?=$among?>
</font>
<?=$animal?>
<span class="fat">@</span> <span class="fbred">
<?=$rate?>
</span><br>
<br>
<hr width="98%" size="1">
<span class="fbred"> </span> </div></td>
</tr>
<tr>
<td height="20"><div align="right"> <?=$pn_pourmoney?>: </div></td>
<td height="20"><input name="drop_money" type="text" class="input" id="drop_money" onKeyPress="event.returnValue=Isnum();" size="12" maxlength="10" onKeyUp="win_money();" onBlur="win_money();"></td>
</tr>
<tr>
<td height="20"><div align="right"> <?=$pn_winmoney?>: </div></td>
<td><div id="winmoney" class="fred12" align="right">0 </div></td>
</tr>
<tr>
<td height="20"><div align="right"> <?=$pn_lowcredit?>: </div></td>
<td><div align="right">
<?=$minrmb?>
</div></td>
</tr>
<tr>
<td height="20"><div align="right"> <?=$pn_numberlimit?>: </div></td>
<td><div align="right">
<?=$maxrmb?>
</div></td>
</tr>
<tr>
<td height="20"><div align="right"> <?=$pn_unitlimit?>: </div></td>
<td><div align="right">
<?=$units?>
</div></td>
</tr>
<tr>
<td height="20"><?=$pn_usedlimit?>:</td>
<td><div align="right">
<?=$used?>
</div></td>
</tr>
<tr>
<td height="20" colspan="2">
<div align="center">
<input name="drop_rate" type="hidden" id="drop_rate2" value="<?=$rate?>">
<input name="number" type="hidden" id="number" value="<?=$con?>">
<input name="drop_content" type="hidden" id="drop_content2" value="<?=$among?>">
<input name="drop_details" type="hidden" id="drop_details2" value="<?=$animal?>">
<input name="Submit" type="button" class="buttonrmin" value="<?=$pn_cancelpour?>" onClick="javascript:window.location.href='uleft.php';">
<input name="fsubmit" type="submit" class="buttongmin" value="<?=$pn_confirm?>" >
</div></td>
</tr>
</table></td>
</tr>
<tr class="t11">
<td height="27"><div align="center"></div>
<div align="right" class="fw12"> <span class="style1"> </span> </div>
<div align="right"></div>
<div id="jump" align="center" class="fw12"></div></td>
</tr>
<script>
function countDown(secs)
{
var tv;
jump.innerText="<?=$pn_updatesec?>:"+secs+" <?=$pn_sec?>";
if(--secs>0)
tv=setTimeout("countDown("+secs+")",1000);
}
countDown(<?=$update_time?>);
</script>
</table></td>
</tr>
</form>
</table>
<p> </p></td>
</tr>
</table>
<? }?>
<p> </p>
<p> </p>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -