【php开源代码栏目提醒】:网学会员,鉴于大家对php开源代码十分关注,论文会员在此为大家搜集整理了“lookkhfk.php”一文,供大家参考学习!
<?php
session_start();
if($_SESSION["admin_nc"]=="")
{
echo "<script>alert('禁止非法登录!');window.location.href='../index.php';</script>";
exit;
}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>BCTY365网上社区—后台管理</title>
<link rel="stylesheet" type="text/css" href="css/style.css"></head>
<body topmargin="0" leftmargin="0" bottommargin="0" class="scrollbar">
<table width="565" height="160" border="1" align="center" cellpadding="1" cellspacing="1" bordercolor="#FFFFFF" bgcolor="#327387">
<tr>
<td height="25" colspan="5" class="a5" align="center"><?php echo $htgl;?></td>
</tr>
<?php
include_once("../conn/conn.php");
include_once("function.php");
$sql=mysql_query("select count(*) as total from tb_leaveword",$conn);
$info=mysql_fetch_array($sql);
$total=$info[total];
if($total==0)
{
echo "<div align=center>暂无客户反馈!</div>";
}
else
{
if(empty($_GET[page])==true || is_numeric($_GET[page])==false)
{
$page=1;
}
else
{
$page=intval($_GET[page]);
}
$pagesize=3;
if($total<$pagesize)
{
$pagecount=1;
}
else
{
if($total%$pagesize==0)
{
$pagecount=intval($total/$pagesize);
}
else
{
$pagecount=intval($total/$pagesize)+1;
}
}
$
sql=mysql_query("select * from tb_leave
word order by createtime desc limit ".($page-1)*$pagesize.",$pagesize",$conn);
while($info=
mysql_fetch_array($sql))
{
$query=mysql_query("select * from tb_user where id='".$info[userid]."'");
$myrow=mysql_fetch_array($query);
?>
<tr>
<td width="120" height="20" bgcolor="#CCCCCC"><div align="center">用户昵称:</div></td>
<td width="231" bgcolor="#CCCCCC"> <?php echo unhtml($myrow[usernc]);?></td>
<td width="120" bgcolor="#CCCCCC"><div align="center">真实:</div></td>
<td width="174" bgcolor="#CCCCCC"> <?php echo unhtml($myrow[truename]);?></td>
<td width="55" bgcolor="#CCCCCC"><div align="center">
<a href="javascript:if(window.confirm('确定删除该意见反馈么?')==true){window.location.href='deletefk.php?id=<?php echo $info[id];?>'}">
<img src="images/del.gif" width="22" height="22"> </a>
</div></td>
</tr>
<tr>
<td height="20" bgcolor="#ffffff"><div align="center">E-mail:</div></td>
<td height="20" bgcolor="#ffffff"> <?php echo $myrow[email];?></td>
<td height="20" bgcolor="#ffffff"><div align="center">联系电话:</div></td>
<td height="20" colspan="2" bgcolor="#ffffff"> <?php echo $myrow[tel];?></td>
</tr>
<tr>
<td height="20" bgcolor="#ffffff"><div align="center">QQ号码:</div></td>
<td height="20" bgcolor="#ffffff"> <?php echo $myrow[qq];?></td>
<td height="20" bgcolor="#ffffff"><div align="center">邮政编码:</div></td>
<td height="20" colspan="2" bgcolor="#ffffff"> <?php echo unhtml($myrow[yb]);?></td>
</tr>
<tr>
<td height="20" bgcolor="#ffffff"><div align="center">联系地址:</div></td>
<td height="20" colspan="4" bgcolor="#ffffff"> <?php echo unhtml($myrow[address]);?></td>
</tr>
<tr>
<td height="20" bgcolor="#ffffff"><div align="center">反馈主题:</div></td>
<td height="20" colspan="4" bgcolor="#ffffff"> <?php echo unhtml($info[title]);?></td>
</tr>
<tr>
<td bgcolor="#ffffff"><div align="center">反馈内容:</div></td>
<td colspan="4" bgcolor="#ffffff"> <?php echo unhtml($info[content]);?></td>
</tr> <?php
}
}
?>
</table>
<table width="500" height="10" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td> </td>
</tr>
</table>
<?php
if($total!=0)
{
?>
<table width="565" height="20" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="400" height="20"><div align="left">共有客户反馈 <?php echo $total;?> 条 每页显示 <?php echo $pagesize?> 条 第 <?php echo $page;?> 页 /共 <?php echo $pagecount?> 页</div></td>
<td width="300">
<div align="right">
<?php
if($page>=2)
{
?>
<a href="default.php?htgl=查看客户反馈&page=1" title="首页"><font face="webdings"> 9 </font></a>
<a href="default.php?htgl=查看客户反馈&page=<?php echo $page-1;?>" title="前一页"><font face="webdings"> 7 </font></a>
<?php
}
if($pagecount<=4)
{
for($i=1;$i<=$pagecount;$i++)
{
?>
<a href="default.php?htgl=查看客户反馈&page=<?php echo $i;?>"><?php echo $i;?></a>
<?php
}
}
else
{
for($i=1;$i<=4;$i++)
{