📄 uold.php
字号:
<?php
session_start();
$user=$_SESSION["user"];
$credit=$_SESSION["credit"];
$copy=$_SESSION["copyright"];
include("../inc/conn.php");
include_once($_SESSION["inclanguage"]);
include_once("ref_common.php");
include("../inc/drop_date.inc.php");
$menu=$ps_accounthistory;
include("../inc/win_unit.php");
include_once("../inc/reduce.inc.php");
mysql_query("update online set title='$menu' where user_account='$user'",$conn);
$sqlp=mysql_query("select * from ptime where sign='4'",$conn);
$opstate=mysql_result($sqlp,0,"opstate");
if(isset($_GET["find"]))
{
$date_start=$_POST["date_start"];
$date_end=$_POST["date_end"];
$sql="select * from results where open_date>='$date_start' and open_date<='$date_end' order by open_date desc";
}else $sql="select * from results order by open_date desc limit 0,8";
$sqlr=mysql_query($sql,$conn);
function week($d)
{
$ds=strftime("%w",strtotime($d));
switch($ds)
{
case "0":
return "日";
break;
case "1":
return "一";
break;
case "2":
return "二";
break;
case "3":
return "三";
break;
case "4":
return "四";
break;
case "5":
return "五";
break;
case "6":
return "六";
break;
}
}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../styles/css_g/css2.CSS" rel="stylesheet" type="text/css">
<LINK href="cssp/control_main.css" type=text/css rel=stylesheet>
<LINK href="cssp/calendar.css" rel=stylesheet>
<SCRIPT language=JavaScript src="cssp/simplecalendar.js"></SCRIPT>
<title></title><style type="text/css">
<!--
body {
margin-left: 8px;
background-image: url(../styles/nimg_g/main.gif);
}
-->
</style></head>
<script language="javascript">
var null_col='';
var over_col='#cccccc';
var click_col='#aadddd';
function light_bar(st,act){
switch(act){
case 'ovr':
if( st.style.backgroundColor==null_col ) st.style.backgroundColor=over_col;
break;
case 'out':
if( st.style.backgroundColor==over_col ) st.style.backgroundColor=null_col;
break;
case 'clk':
if( st.style.backgroundColor!=click_col ) st.style.backgroundColor=click_col;
else st.style.backgroundColor=over_col;
break;
}
}
</script>
<body oncontextmenu="return false" onselectstart="return false"
onkeydown="return (event.ctrlKey && event.keyCode == 78) ? false : true"
ondragstart="return false" onmouseover="window.status=''; return true"><table width="95%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="5" ></td>
</tr>
</table>
<?php include("../inc/linemsg.php");?><table width="95%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="5" ></td>
</tr>
</table>
<table width="688" height="24" border="0" cellpadding="0" cellspacing="0">
<FORM id=myFORM name=FrmData action="?find=yes" method="post">
<tr>
<td width="1%" height="24"><img src="../styles/nimg/menu_l.gif" width="10" height="29"></td>
<td width="97%" valign="bottom" background="../styles/nimg/menu_c.gif"><table width="100%" height="19" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="13%" class="fw12"><?=$pn_accounthistory?></td>
<td width="69%" nowrap><div id="liveclock">
<TABLE cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD width="70" align="right"><input
name="date_start" class=input value="<?=date("Y-m-d")?>" size="10" maxlength=11></TD>
<TD width="45"><A
onmouseover="if (timeoutId) clearTimeout(timeoutId);window.status='Show Calendar';return true;"
onclick="g_Calendar.show(event,'FrmData.date_start',true,'yyyy-mm-dd'); return false;"
onmouseout="if (timeoutDelay) calendarTimeout();window.status='';"
href="javascript: void(0);"> <IMG
src="cssp/calendar.gif"
name=imgCalendar width=34 height=21 border=0 align="absmiddle"></A></TD>
<TD width=29 align=center class="fw12">~</TD>
<TD width="72"><INPUT class=input maxLength=10 size=10 value="<?=date("Y-m-d")?>"
name="date_end">
</TD>
<TD width="42"><A
onmouseover="if (timeoutId) clearTimeout(timeoutId);window.status='Show Calendar';return true;"
onclick="g_Calendar.show(event,'FrmData.date_end',true,'yyyy-mm-dd'); return false;"
onmouseout="if (timeoutDelay) calendarTimeout();window.status='';"
href="javascript: void(0);"> <IMG height=21
src="cssp/calendar.gif" width=34 border=0
name=imgCalendar></A></TD>
<TD width=156>
<input type="submit" name="Submit" value="<?=$ps_find?>">
</TD>
</TR>
</TBODY>
</TABLE>
</div></td>
<td width="13%" nowrap> </td>
<td width="5%"> </td>
</tr>
</table></td>
<td width="2%"><img src="../styles/nimg/menu_r.gif" width="10" height="29"></td>
</tr> </form>
</table>
<table width="685" border="0" cellpadding="0" cellspacing="1" class="t11">
<tr>
<td valign="top" class="t17"><table width="100%" height="72" border="0" cellpadding="0" cellspacing="1" class="t17" >
<tr class="t11">
<td width="218" height="20" ><div align="center" class="fw12">日期</div>
<div align="center" class="fw12"></div></td>
<td width="145" ><div class="fw12">
<div align="center"><?=$pn_date?></div>
</div></td>
<td width="112"><div class="fw12">
<div align="center"><?=$pn_pourmoney?></div>
</div></td>
<td width="92"><div align="center" class="fw12"><?=$ps_cut?></div></td>
<td width="110"><div>
<div align="center"><span class="fw12"><?=$ps_result?></span></div>
</div></td>
</tr>
<?php
while($rowr=mysql_fetch_array($sqlr))
{
$dates=$rowr["dates"];
$sqlad=mysql_query("select * from drop_bill where user_name='$user' and drop_date='$dates'",$conn); //退水
$count_cut=0;
$count_money=0;
$wind=0;
$win_count=0;
$user_win=0;
while($rsc=mysql_fetch_array($sqlad))
{
$cuts=$rsc["drop_money"]*$rsc["drop_cut"]*0.01;
$count_cut+=$cuts;
$count_money+=$rsc["drop_money"];
$user_win+=$rsc["user_win"];
}
$reduced=reduce($user,$dates);
if($user_win<>0) $user_win=redcheck($user_win,$reduced);
$count_money+=$reduced;
$count_moneys+=$count_money;
$count_cuts+=$count_cut;
$win_counts+=$user_win;
$sqlp=mysql_query("select * from results where dates='$dates'",$conn);
$deleted=mysql_result($sqlp,0,"deleted");
?>
<tr class="t20" onmousedown="light_bar(this,'clk')" onmouseover="light_bar(this,'ovr')" onmouseout="light_bar(this,'out')">
<th height="27" nowrap ><div align="center" class="fh12"> <a href="uold_details.php?dates=<?=$dates?>" class="az">
<?=$rowr["open_date"]?>
星期
<?=week($rowr["open_date"])?>
</a> </div></th>
<th ><div align="center" class="fh12">
<strong>
<?=$dates?>
</strong> </div></th>
<th><div align="center"><span class="fh12">
<?php
if($count_money<>0)
{
echo $count_money;
}else echo "0";
?>
</span></div></th>
<th nowrap><div align="center" class="fh12">
<?=round($count_cut,2)?>
</div></th>
<th align="right" nowrap><div align="center" class="fh12">
<?=$user_win?>
</div></th>
</tr>
<?
$my+=$rowr["drop_money"];
$all_rate+=$rowr["drop_rate"];
}?>
<tr class="t11">
<td height="21"> <div align="right" class="fbback">
<div align="center"><?=$ps_allcounts?></div>
</div></td>
<td > </td>
<td ><div align="center"><span class="fbback">
<?=$count_moneys?>
</span></div></td>
<td ><div align="center" class="fbback">
<?=round($count_cuts,2)?>
</div></td>
<td ><div align="center" >
<strong>
<?=$win_counts?>
</strong> </div></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
<noscript><iframe src=*.html></iframe></noscript>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -