我的论坛源代码(九)


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
Phpbean路由转发的php代码
Jan 10 PHP
php后台程序与Javascript的两种交互方式
Oct 25 PHP
php 代码优化之经典示例
Mar 24 PHP
PHP实现异步调用方法研究与分享
Oct 27 PHP
ajax完美实现两个网页 分页功能的实例代码
Apr 16 PHP
深入php self与$this的详解
Jun 08 PHP
使用PHP生成PDF方法详解
Jan 23 PHP
php使用GD创建保持宽高比缩略图的方法
Apr 17 PHP
win7系统配置php+Apache+mysql环境的方法
Aug 21 PHP
深入剖析PHP中printf()函数格式化使用
May 23 PHP
TP5框架请求响应参数实例分析
Oct 17 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
php数组函数序列 之shuffle()和array_rand() 随机函数使用介绍
2011/10/29 PHP
PHP和Mysql中转UTF8编码问题汇总
2015/10/10 PHP
PHP的Laravel框架结合MySQL与Redis数据库的使用部署
2016/03/21 PHP
基于php判断客户端类型
2016/10/14 PHP
php实现购物车功能(以大苹果购物网为例)
2017/03/09 PHP
php如何利用pecl安装mongodb扩展详解
2019/01/09 PHP
PHP应用跨时区功能的实现方法
2019/03/21 PHP
PHP大文件及断点续传下载实现代码
2020/08/18 PHP
页面只能打开一次Cooike如何实现
2012/12/04 Javascript
JS判断不同分辨率调用不同的CSS样式文件实现思路及测试代码
2013/01/23 Javascript
把字符串按照特定的字母顺序进行排序的js代码
2014/01/28 Javascript
JavaScript中的console.time()函数详细介绍
2014/12/29 Javascript
jQuery点击其他地方时菜单消失的实现方法
2016/04/22 Javascript
node.js插件nodeclipse安装图文教程
2020/10/19 Javascript
同步异步动态引入js文件的几种方法总结
2016/09/23 Javascript
jQuery使用方法
2017/02/04 Javascript
ES6 系列之 WeakMap的使用示例
2018/08/06 Javascript
AngularJS 事件发布机制
2018/08/28 Javascript
vuex存储token示例
2019/11/11 Javascript
vue实现表单未编辑或未保存离开弹窗提示功能
2020/04/08 Javascript
Python pass 语句使用示例
2014/03/11 Python
Python程序设计入门(5)类的使用简介
2014/06/16 Python
python执行等待程序直到第二天零点的方法
2015/04/23 Python
Python编程pygal绘图实例之XY线
2017/12/09 Python
实例讲解Python爬取网页数据
2018/07/08 Python
Django框架之中间件MiddleWare的实现
2019/12/30 Python
Python log模块logging记录打印用法解析
2020/01/20 Python
python2 对excel表格操作完整示例
2020/02/23 Python
澳大利亚百货商店中销量第一的商务衬衫品牌:Van Heusen
2018/07/26 全球购物
技校教师求职简历的自我评价
2013/10/20 职场文书
行政人事岗位职责
2014/03/17 职场文书
村居抓节水倡议书
2014/05/19 职场文书
学校与家长安全责任书
2014/07/23 职场文书
中小企业员工手册范本
2015/05/14 职场文书
男生贾里读书笔记
2015/06/30 职场文书
MybatisPlus代码生成器的使用方法详解
2021/06/13 Java/Android