加入收藏 | 设为首页 | 会员中心 | 我要投稿 焦作站长网 (https://www.0391zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > PHP教程 > 正文

我的论坛源代码(九)

发布时间:2020-03-21 08:02:59 所属栏目:PHP教程 来源:互联网
导读:我的论坛源代码(九)
<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=http://www.jb51.net/article/"js/cpcw.css" rel=stylesheet /LINK>
<?php
include "linkfox.inc.php";
include "info.inc.php";
?>
</head>

<body bgcolor="#FFFFFF">
<?
$query="select * from foxbbs where";
$req=mysql_query($query);
if ($req) {
$bbsmes=mysql_fetch_array($req);
$djnum=$bbsmes["djnum"]+1;
$query="update foxbbs set djnum='$djnum' where";
$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";
$req=mysql_query($query);
if ($req)
{
err_info("锁定成功");
echo "<script language='JavaScript'> javascript:location.href='http://www.jb51.net/article/superuse.php?d=editbbs'; </script>;";
echo "<div><a href='http://www.jb51.net/article/superuse.php?d=editbbs'>信息修改成功,返回</a></div>";
}
}
if ($unlock==yes)
{
$query="update foxbbs set lockes=0 where";
$req=mysql_query($query);
if ($req)
{
err_info("锁定成功");
echo "<script language='JavaScript'> javascript:location.href='http://www.jb51.net/article/superuse.php?d=editbbs'; </script>;";
echo "<div><a href='http://www.jb51.net/article/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"> </td>
    <td height="20" width="75"> </td>
    <td height="20" width="75"> </td>
    <td height="20" width="75"> </td>
  </tr>
  <tr>
    <td height="20">
      <div align="right"></div>
    </td>
    <td height="20" width="75">
      <div align="center"><a href=http://www.jb51.net/article/"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=http://www.jb51.net/article/"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=http://www.jb51.net/article/"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=http://www.jb51.net/article/"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">狐网─>狐网论坛─>论题:</font></div>
    </td>
    <td>
      <div align="center"><a href=http://www.jb51.net/article/"foxbbs.php"><img src="images/index.gif" width="70" height="20" border="0"></a></div>
    </td>
    <td>

      <div align="center"><a href=http://www.jb51.net/article/"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='http://www.jb51.net/article/repal.php?action=add&id=".$id."&zt=".$bbsmes[3]."&use=".$use."'><img src='http://www.jb51.net/article/images/reply.gif' alt='回复此贴'></a>"; ?></div>
    </td>
    <td height="20" width="10%">
      <div align="center"><a href=http://www.jb51.net/article/"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='http://www.jb51.net/article/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++)
          { if (ord(substr($message[$i],0,1))==161)   //第一位是否全角空格
            echo $message[$i];
            else {
            $message[$i]="  ".trim($message[$i]);
            echo $message[$i];
            }
          }
          ?></div></td>
        </tr>
        <tr bgcolor="#009999">
          <td width="20%">
            <div align="left"><img src=http://www.jb51.net/article/"images/posticon.gif" width="14" height="11"><? echo $bbsmes[4]; ?></div>
          </td>
          <td width="80%">
            <div align="left"><?
          if ($useinfo[9]=="不告诉你")
          echo "<img src='http://www.jb51.net/article/images/email.gif'>";
          else echo "<a href='http://www.jb51.net/article/mailto:".$useinfo[8]."'><img src='http://www.jb51.net/article/images/email.gif' alt='给我发邮件'></a>";
          echo "  <a href='http://www.jb51.net/article/".$useinfo[9]."' ><img src='http://www.jb51.net/article/images/home.gif' alt='我的主页'></a>";
          echo "  <a href='http://www.jb51.net/article/useinfo.php?action=look'><img src='http://www.jb51.net/article/images/profile.gif' alt='我的详细信息'></a>";
          echo "  <a href='http://www.jb51.net/article/useinfo.php?action=edit'><img src='http://www.jb51.net/article/images/edit.gif' alt='修改信息'></a>";
          echo "  <a href='http://www.jb51.net/article/foxbbs.php?action=find&user=".$useinfo[0]."'><img src='http://www.jb51.net/article/images/find.gif' alt='查找该用户的所以文章'></a>";
          echo "  <a href='http://www.jb51.net/article/repal.php?action=add&use=".$useinfo[13]."&id=".$id."&zt=".$bbsmes[3]."&c=dd'><img src='http://www.jb51.net/article/images/quote.gif' alt='引用该用户的文章回复'></a>";
          echo "  <a href='#'><img src='http://www.jb51.net/article/images/ip.gif' alt='".$bbsmes[11]."'></a>";
         ?> </div>
          </td>
        </tr>
        <tr bgcolor="#ffffff"><td colspan="2"><div align="center"><form  method="post"><input type="checkbox" name="lock"  value="yes">锁住?<input type="checkbox" name="unlock"  value="yes">解锁?<input type="submit" name="Submit" value="确定"></form></div></td></tr>
       </table>
    </td>
  </tr>
</table>
</body>
</html> 

(编辑:焦作站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    热点阅读