📄 user_report.php
字号:
<?php
session_start();
include("../inc/conn.php");
include_once($_SESSION["inclanguage"]);
include("check.php");
$user=$_SESSION["user"];
include("../inc/base_status.inc.php");
$menu=$pn_seeuserreport;
mysql_query("update online set title='$menu' where user_account='$user'",$conn);
$sq="where sign='2' or users='$user'";
$pagesize=15;
$sqlc=mysql_query("select count(*) from report $sq",$conn);
$myrow=mysql_fetch_array($sqlc);
$numrows=$myrow[0];
$pages=intval($numrows/$pagesize);
if ($numrows%$pagesize) $pages++;
if (isset($_GET['page']))
{
$page=intval($_GET['page']);
}
else{
$page=1;
}
$offset=$pagesize*($page - 1);
$sql=mysql_query("select * from report $sq order by time desc limit $offset,$pagesize",$conn);
?>
<head>
<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">
<!--
body {
margin-left: 0px;
background-image: url(../styles/nimg_g/main.gif);
}
-->
</style>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</script>
</head>
<body>
<table width="688" height="24" border="0" cellpadding="0" cellspacing="0">
<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_report?></td>
<td width="41%" nowrap><div id="liveclock"> </div></td>
<td width="41%" nowrap>
<div id="jtime"></div></td>
<td width="5%"> </td>
</tr>
</table></td>
<td width="2%"><img src="../styles/nimg/menu_r.gif" width="10" height="29"></td>
</tr>
</table>
<table width="685" border="0" cellpadding="0" cellspacing="1" class="t11">
<tr>
<td height="72" valign="top" class="t17"><table width="100%" height="72" border="0" cellpadding="0" cellspacing="1" class="t12">
<tr class="t12">
<td height="23"><div align="center" class="fw12"><?=$pn_xnum?></div></td>
<td width="503"><div align="left" class="fw12"><?=$pn_reportcontent?></div></td>
<td width="134" valign="middle"><div align="center" class="fw12"><?=$pn_time?></div>
<div align="center" class="fw12"></div></td>
</tr>
<?php $i=0;
while($rs=mysql_fetch_array($sql))
{ $i++;?>
<tr class="t17">
<td width="63" height="24"><div align="center">
<?=$i?>
</div></td>
<td><?=$rs["report_content"]?>
</td>
<td align="center" valign="middle"><?=$rs["time"]?>
</td>
</tr>
<? }?>
<tr>
<td height="21" colspan="3" class="t11"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<form name="form1">
<td>
<?
$fp="report_manage.php";
$first=1;
$prev=$page-1;
$next=$page+1;
$last=$pages;
if ($page>1)
{
echo "<a href='?page=".$first."' class='aw'>".$pn_forpage."</a> ";
echo "<a href='?page=".$prev."' class='aw'>".$pn_lastpage."</a> ";
}else
{
echo "<font color='#ffffff'>".$pn_forpage." ".$pn_lastpage."</font> ";
}
if ($page<$pages)
{
echo "<a href='?page=".$next."' class='aw'>".$pn_nextpage."</a> ";
echo "<a href='?page=".$last."' class='aw'>".$pn_endpage."</a> ";
} else
{
echo "<font color='#ffffff'>".$pn_nextpage." ".$pn_endpage."</font> ";
}
$nums=$pagesize*$pages;
?>
<span class="fw12"> <?=$pn_pagetwice?>:</span>
<select name="menu1" onChange="MM_jumpMenu('self',this,0)">
<?php for ($i=1;$i<=$pages;$i++)
{
if($page==$i)
{ $se="selected";
}else $se="";
echo "<option value='?page=".$i."' ".$se.">".$i."</option>";
}
?>
</select>
</td>
</form>
<td><div align="right"><span class="fw12"><?=$pn_all?> <strong>
<?=$pages?>
</strong> <?=$pn_page?></span><span class="fw12"> </span></div></td>
</tr>
</table></td>
</tr>
</table> </td>
</tr>
</table>
</body>
<?php
include("../inc/vconfoot.inc.php");
echo vconf(9);
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -