我的论坛源代码(九)


Posted in PHP onOctober 09, 2006

<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"> </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="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">狐网─>狐网论坛─>论题:</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++)
          { 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="images/posticon.gif" width="14" height="11"><? echo $bbsmes[4]; ?></div>
          </td>
          <td width="80%">
            <div align="left"><?
          if ($useinfo[9]=="不告诉你")
          echo "<img src='images/email.gif' width='43' height='17'>";
          else echo "<a href='mailto:".$useinfo[8]."'><img src='images/email.gif' width='43' height='17' alt='给我发邮件' border='0'></a>";
          echo "

<a href='".$useinfo[9]."' ><img src='images/home.gif' width='43' height='17' alt='我的主页' border='0'></a>";
          echo "

<a href='useinfo.php?action=look'><img src='images/profile.gif' width='43' height='16' alt='我的详细信息' border='0'></a>";
          echo "

<a href='useinfo.php?action=edit'><img src='images/edit.gif' width='43' height='17' alt='修改信息' border='0'></a>";
          echo "

<a href='foxbbs.php?action=find&user=".$useinfo[0]."'><img src='images/find.gif' width='43' height='17' alt='查找该用户的所以文章' border='0'></a>";
          echo "

<a href='repal.php?action=add&use=".$useinfo[13]."&id=".$id."&zt=".$bbsmes[3]."&c=dd'><img src='images/quote.gif' width='43' height='17' alt='引用该用户的文章回复' border='0'></a>";
          echo "

<a href='#'><img src='images/ip.gif' border='0' 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> 

PHP 相关文章推荐
PHP邮件专题
Oct 09 PHP
php 远程关机操作的代码
Dec 05 PHP
自己在做项目过程中学到的PHP知识收集
Aug 20 PHP
php图片加中文水印实现代码分享
Oct 31 PHP
使用php+apc实现上传进度条且在IE7下不显示的问题解决方法
Apr 25 PHP
Yii不依赖Model的表单生成器用法实例
Dec 04 PHP
php+ajax实现文章自动保存的方法
Dec 30 PHP
php计算两个日期相差天数的方法
Mar 14 PHP
PHP数据库表操作的封装类及用法实例详解
Jul 12 PHP
详解PHP安装mysql.so扩展的方法
Dec 31 PHP
PHP应用跨时区功能的实现方法
Mar 21 PHP
你真的了解PHP中的引用符号(&)吗
May 12 PHP
PHP个人网站架设连环讲(一)
Oct 09 #PHP
PHP个人网站架设连环讲(二)
Oct 09 #PHP
我的论坛源代码(七)
Oct 09 #PHP
我的论坛源代码(八)
Oct 09 #PHP
我的论坛源代码(十)
Oct 09 #PHP
杏林同学录(六)
Oct 09 #PHP
杏林同学录(八)
Oct 09 #PHP
You might like
为Yahoo! UI Extensions Grid增加内置的可编辑器
2007/03/10 Javascript
JS创建优美的页面滑动块效果 - Glider.js
2007/09/27 Javascript
javascript 一段左右两边随屏滚动的代码
2009/06/18 Javascript
jQuery实战之品牌展示列表效果
2011/04/10 Javascript
Jquery实现图片放大镜效果的思路及代码(自写)
2013/10/18 Javascript
js编写trim()函数及正则表达式的运用
2013/10/24 Javascript
js中split函数的使用方法说明
2013/12/26 Javascript
javascript实现在线客服效果
2015/07/15 Javascript
js实现文本框支持加减运算的方法
2015/08/19 Javascript
基于jquery实现在线选座订座之影院篇
2015/08/24 Javascript
给angular加上动画效遇到的问题总结
2016/02/17 Javascript
基于jQuery Tipso插件实现消息提示框特效
2016/03/16 Javascript
基于JavaScript实现 网页切出 网站title变化代码
2016/04/03 Javascript
jQueryUI中的datepicker使用方法详解
2016/05/25 Javascript
基于JQuery实现分隔条的功能
2016/06/17 Javascript
需要牢记的JavaScript基础知识
2016/09/25 Javascript
浅析jsopn跨域请求原理及cors(跨域资源共享)的完美解决方法
2017/02/06 Javascript
详解Vue 事件驱动和依赖追踪
2017/04/22 Javascript
jQuery实现可拖动进度条实例代码
2017/06/21 jQuery
Vue vm.$attrs使用场景详解
2020/03/08 Javascript
python 禁止函数修改列表的实现方法
2017/08/03 Python
pycharm 主题theme设置调整仿sublime的方法
2018/05/23 Python
pandas 读取各种格式文件的方法
2018/06/22 Python
Tensorflow 合并通道及加载子模型的方法
2018/07/26 Python
Python面向对象程序设计中类的定义、实例化、封装及私有变量/方法详解
2019/02/28 Python
python 哈希表实现简单python字典代码实例
2019/09/27 Python
python使用matplotlib绘制雷达图
2019/10/18 Python
python 计算积分图和haar特征的实例代码
2019/11/20 Python
keras获得model中某一层的某一个Tensor的输出维度教程
2020/01/24 Python
Windows下Anaconda安装、换源与更新的方法
2020/04/17 Python
python实现简单遗传算法
2020/09/18 Python
Reebok官方旗舰店:美国知名健身品牌锐步
2019/01/07 全球购物
保护动物的标语
2014/06/11 职场文书
校长四风对照检查材料
2014/09/27 职场文书
《詹天佑》教学反思
2016/02/20 职场文书
范文之农村基层党建工作报告
2019/10/24 职场文书