📄 umain_check_yes.php
字号:
<?php
session_start();
include_once("../inc/conn.php");
include_once($_SESSION["inclanguage"]);
include_once("check.php");
include_once("configs.inc.php");
include_once("tnum_close.php");
$user=$_SESSION["user"];
$plate=$_SESSION["plate"];
$drop_date=$_SESSION["downdate"];
if(isset($_GET["act"]))
{
mysql_query("delete from drop_bill where user_name='$user' and yesrate='1'",$conn); //移除变动记录
echo "<script language='javascript'>window.location.href='uleft.php'</script>";
}
$sqlr=mysql_query("select * from drop_bill where yesrate='1' and drop_date='$drop_date' and user_name='$user' order by id desc",$conn);
while($rowr=mysql_fetch_array($sqlr))//二次更新
{
$tp=$rowr["drop_content"];
$id=$rowr["ID"];
$num_sign=$rowr["num_sign"];
mysql_query("update drop_bill set sign='1' where user_name='$user' and ID='$id'",$conn);
if($num_sign=="1")
{
$sq="num='$tp'";
}else $sq="tp='$tp'";
$sqlyz=mysql_query("select rate from num where $sq and sign='$num_sign' and user_account='$guser'",$conn); //二次赔率变动check
$prate=mysql_result($sqlyz,0,"rate");
if($num_sign==1) $adrate=0.5;
if($num_sign==2) $adrate=0.01;
if($num_sign==6) $adrate=0.1;
if($plate=="A")
{ $rateds=$prate;
}
if($plate=="B")
{ $rateds=$prate-$adrate;
}
if($plate=="C")
{ $rateds=$prate-$adrate-$adrate;
}
$prate=$rateds;
$rate=$rowr["drop_rate"];
if($prate<>$rate) mysql_query("update drop_bill set yesrate='2',drop_rate='$prate' where ID='$id'",$conn);
}
$sqlp=mysql_query("select * from drop_bill where sign='1' and drop_date='$drop_date' and user_name='$user' order by id desc",$conn);
//二次read
?>
<style type="text/css">
<!--
body {
margin-left: 10px;
margin-top: 5px;
background-image: url(../styles/nimg_g/left.gif);
}
-->
</style>
<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">
<!--
.style2 {color: #ff0000}
-->
</style>
<table width="220" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="34" background="../images/left_up.jpg"><div align="center"><span class="fw12"><?=$pn_youpouris?></span><br>
</div></td>
</tr>
<tr>
<td><table width="220" height="74" border="0" align="left" cellpadding="2" cellspacing="1" class="t12">
<tr class="t11">
<td width="48" nowrap><div align="center" class="fw12"><?=$pn_pourtype?></div></td>
<td width="48" nowrap><div align="center" class="fw12"><?=$pn_pourcontent?></div></td>
<td width="24" nowrap><div align="center" class="fw12"><?=$pn_rate?></div></td>
<td width="48" height="26" nowrap>
<div align="center" class="fw12"><?=$pn_pourmoney?></div></td>
<td nowrap class="fw12"><?=$pn_state?></td>
</tr>
<?php
while($rowp=mysql_fetch_array($sqlp))//二次更新
{
if($rowp["yesrate"]=="2")
{ $ts="class='t13'";
}else $ts="class='t15'";
?>
<tr align="center" class="t20" <?=$ts?>>
<td height="22"><?=$rowp["drop_type"]?></td>
<td height="22"><?=$rowp["drop_content"]?></td>
<td height="22">
<div align="center">
<?
$ratets=$rowp["drop_rate"];
echo $ratets;
?>
</div></td>
<td height="22">
<div align="center">
<?=$rowp["drop_money"]?>
</div></td>
<td><div align="center" class="fgreng">
<? if($rowp["yesrate"]=="2")
{ 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("delete from drop_bill where user_name='$user' and yesrate='2'",$conn); //移除变动记录
mysql_query("update drop_bill set sign='0' where user_name='$user'",$conn);//更新当前记录
mysql_query("update drop_bill set yesrate='0' where user_name='$user'",$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> </td>
</tr>
</table></td>
</tr>
<tr>
<td align="center">
<?php
echo ' <a href="uleft.php">['.$pn_back.']</a> <meta http-equiv="refresh" content="50;URL=uleft.php">';
?>
</td>
</tr>
</table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -