打印本文 打印本文  关闭窗口 关闭窗口
我的论坛源代码(九)
作者:采集员 文章来源:来源于网络 点击数: 更新时间:2005/9/10 14:35:58
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<STYLE type=text/css>
P {FONT-FAMILY: normal; FONT-SIZE: 9pt; LINE-HEIGHT: 14pt}
DIV {FONT-FAMILY: normal; FONT-SIZE: 9pt; LINE-HEIGHT: 14pt}
</STYLE>
<LINK href="js/cpcw.css" rel=stylesheet /LINK>
<?php
include "linkfox.inc.php";
include "info.inc.php";
?>
</head>

<body bgcolor="#FFFFFF">
<?
$query="select * from foxbbs where id='".$bbsid."'";
$req=mysql_query($query);
if ($req) {
$bbsmes=mysql_fetch_array($req);
$djnum=$bbsmes["djnum"]+1;
$query="update foxbbs set djnum='$djnum' where id='".$bbsid."'";
$req=mysql_query($query);
}

$query="select * from useinfo where usename='".$bbsmes["usename"]."'";
$req=mysql_query($query);
if ($req) {
$useinfo=mysql_fetch_array($req);
switch ($useinfo[11])
      {
      case ($useinfo[11]==1):
        $useinfo[11]="会员";
        break;
      case ($useinfo[11]==2):
        $useinfo[11]="版主";
        break;
      case ($useinfo[11]==3):
        $useinfo[11]="管理员";
        break;
      case ($useinfo[11]==4):
        $useinfo[11]="站长";
        break;
      default:
        $useinfo[11]="游客";
      break;
      }
}
if ($lock==yes)
{
$query="update foxbbs set lockes=1 where id='".$bbsid."'";
$req=mysql_query($query);
if ($req)
{
err_info("锁定成功");
echo "<script language='JavaScript'> javascript:location.href='superuse.php?d=editbbs'; </script>;";
echo "<div align='center'><a href='superuse.php?d=editbbs'>信息修改成功,返回</a></div>";
}
}
if ($unlock==yes)
{
$query="update foxbbs set lockes=0 where id='".$bbsid."'";
$req=mysql_query($query);
if ($req)
{
err_info("锁定成功");
echo "<script language='JavaScript'> javascript:location.href='superuse.php?d=editbbs'; </script>;";
echo "<div align='center'><a href='superuse.php?d=editbbs'>信息修改成功,返回</a></div>";
}
}
?>
<table width="100%" cellpadding="4" cellspacing="0" border="0">
  <tr>
    <td height="20">
      <div align="right"></div>
    </td>
    <td height="20" width="75">&nbsp;</td>
    <td height="20" width="75">&nbsp;</td>
    <td height="20" width="75">&nbsp;</td>
    <td height="20" width="75">&nbsp;</td>
  </tr>
  <tr>
    <td height="20">
      <div align="right"></div>
    </td>
    <td height="20" width="75">
      <div align="center"><a href="reguse.php?action=xy"><img src="images/top_register.gif" width="74" height="21" border="0"></a></div>
    </td>
    <td height="20" width="75">
      <div align="center"><a href="useinfo.php?action=find"><img src="images/top_members.gif" width="74" height="21" border="0"></a></div>
    </td>
    <td height="20" width="10%"><a href="useinfo.php?action=use"><img src="images/top_profile.gif" width="74" height="21" border="0"></a></td>
     <td height="20" width="75"><a href="foxbbs.php?d=q"><img src="images/top_logout.gif" width="74" height="21" border="0"></a></td>
  </tr>
  <tr>
    <td height="20">
      <div align="left">当前位置:<font color="#0000FF">狐网─&gt;狐网论坛─&gt;论题:</font></div>
    </td>
    <td>
      <div align="center"><a href="foxbbs.php"><img src="images/index.gif" width="70" height="20" border="0"></a></div>
    </td>
    <td>

      <div align="center"><a href="post.php"><img src="images/newthread.gif" width="70" height="20" border="0" alt="发布新帖"></a></div>
    </td>
    <td height="20" width="10%">
      <div align="center"><? echo "<a href='repal.php?action=add&id=".$id."&zt=".$bbsmes[3]."&use=".$use."'><img src='images/reply.gif' width='70' height='20' border='0' alt='回复此贴'></a>"; ?></div>
    </td>
    <td height="20" width="10%">
      <div align="center"><a href="reguse.php?action=dl"><img src="images/dl.gif" width="70" height="20" border="0"></a></div>
    </td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr bgcolor="#000000">
    <td colspan="2">
      <table width="100%" border="0" cellspacing="1" cellpadding="1">
        <tr bgcolor="#009999">
          <td width="20%">
            <div align="center"><font color="#FFFFFF">原贴作者</font></div>
          </td>
          <td width="80%">
            <div align="center"><font color="#FFFFFF">原 贴 内 容</font></div>
          </td>
        </tr>
        <tr bgcolor="#eeeeee" valign="top">
          <td width="20%">
            <div align="center"> <?
           echo $useinfo[2]."<br>";
           echo "<img src='images/".$bbsmes[2]."'.gif><br>";
           echo $useinfo[11]."<p>";
           echo "发帖数 [".$useinfo["ftnum"]."]<br>";
          ?></div>
          </td>
          <td width="80%"><div align="left"> <?
          $ft="foxbbs/".$bbsmes[5].".fox";
          $message=@file($ft);
          for ($i=0;$i<count($message);$i++)

[1] [2]  下一页



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