打印本文 打印本文  关闭窗口 关闭窗口
基于mysql的论坛(7)
作者:采集员 文章来源:来源于网络 点击数: 更新时间:2005/9/10 14:35:31
nbsp;  }
}
include "footer.php";?>
</body>
</html>
# viewmsg.php
<?php
require "func.php";
if (is_user_exits($jl_forum[name]) and check_user_password($jl_forum[name],$jl_forum[password])) {
    if (isset($job)) {
        if (is_this_user($id)) {
            delmsg($id);
        }
    }
    $name=$jl_forum[name];
    $sql="select * from message where name='$name'";
    $sql_result=mysql_query($sql);
    $sum=mysql_num_rows($sql_result);
?>
<html>
<head>
<title>察看留言</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="css/index.css">
<script language="javascript">
function sendmsg(name){                window.open("sendmsg.php?name="+name,"","height=200,width=500,resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no");
}
</script>
</head>

<body bgcolor="#FFFFFF" background="image/bg.gif">
<p>您目前共有 <b><?php echo $sum;?></b> 条留言</p>
<table width="98%" border="1" cellspacing="0" cellpadding="0" bordercolorlight="#CCCCCC" bordercolordark="#FFFFFF">
<?php
while ($sql_row=mysql_fetch_array($sql_result)) {
?>
  <tr bgcolor="#eeeeee">  
    <td><a href="javascript:sendmsg('<?php echo $sql_row[fromname];?>')"><?php echo $sql_row[fromname];?></a>  
      于 <?php echo $sql_row[writetime];?> <a href="<?php echo "$php_self?job=del&id=$sql_row[id]";?>">删除</a></td>
  </tr>
  <tr>
    <td><?php echo $sql_row[cont];?></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
<?php
}
?>
</table>
<p>&nbsp; </p>
</body>
</html>
<?php
}
else {
    show_error(4);
}
?> 

上一页  [1] [2] 



打印本文 打印本文  关闭窗口 关闭窗口