我的论坛源代码(九)


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 相关文章推荐
海河写的 Discuz论坛帖子调用js的php代码
Aug 23 PHP
php download.php实现代码 跳转到下载文件(response.redirect)
Aug 26 PHP
使用PHP实现密保卡功能实现代码&amp;lt;打包下载直接运行&amp;gt;
Oct 09 PHP
几种有用的变型 PHP中循环语句的用法介绍
Jan 30 PHP
跟我学Laravel之路由
Oct 15 PHP
CodeIgniter使用smtp服务发送html邮件的方法
Jun 10 PHP
PHP使用逆波兰式计算工资的方法
Jul 29 PHP
PHP使用php-resque库配合Redis实现MQ消息队列的教程
Jun 29 PHP
PHP命令行执行整合pathinfo模拟定时任务实例
Aug 12 PHP
PHP登录(ajax提交数据和后台校验)实例分享
Dec 29 PHP
PHP正则匹配操作简单示例【preg_match_all应用】
Jul 10 PHP
如何在centos8自定义目录安装php7.3
Nov 28 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 程序员应该使用的10个组件
2009/10/31 PHP
PHP代码网站如何防范SQL注入漏洞攻击建议分享
2012/03/01 PHP
Javascript条件判断使用小技巧总结
2008/09/08 Javascript
JavaScript 面向对象的 私有成员和公开成员
2010/05/13 Javascript
Javascript实现div的toggle效果实例分析
2015/06/09 Javascript
基于jQuery插件实现点击小图显示大图效果
2016/05/11 Javascript
浅谈javascript中new操作符的原理
2016/06/07 Javascript
利用prop-types第三方库对组件的props中的变量进行类型检测
2017/05/02 Javascript
微信小程序按钮点击跳转页面详解
2019/05/06 Javascript
微信小程序扫描二维码获取信息实例详解
2019/05/07 Javascript
javascript实现鼠标点击生成文字特效
2019/12/24 Javascript
解决vue-loader加载不上的问题
2020/10/21 Javascript
解决antd 表单设置默认值initialValue后验证失效的问题
2020/11/02 Javascript
解析Python中的生成器及其与迭代器的差异
2016/06/20 Python
Python中的__slots__示例详解
2017/07/06 Python
50行Python代码实现人脸检测功能
2018/01/23 Python
python解决pandas处理缺失值为空字符串的问题
2018/04/08 Python
使用python制作一个为hex文件增加版本号的脚本实例
2019/06/12 Python
pytorch 实现查看网络中的参数
2020/01/06 Python
Python中sys模块功能与用法实例详解
2020/02/26 Python
python实现数字炸弹游戏程序
2020/07/17 Python
浅析图片上传及canvas压缩的流程
2020/06/10 HTML / CSS
美国经典刺绣和字母儿童服装特卖:Smocked Auctions
2018/07/16 全球购物
红色连衣裙精品店:Red Dress Boutique
2018/08/11 全球购物
牦牛毛户外探险服装:Kora
2019/02/08 全球购物
在线实验室测试:HealthLabs.com
2020/05/03 全球购物
解释一下ArrayList Vector和LinkedList的实现和区别
2013/04/26 面试题
九月份红领巾广播稿
2014/01/22 职场文书
班训口号大全
2014/06/18 职场文书
新闻学专业职业生涯规划范文:我的人生我做主
2014/09/12 职场文书
2014年安全生产工作总结
2014/11/13 职场文书
仓库管理员岗位职责
2015/02/03 职场文书
立秋之描写立秋的作文(五年级)
2019/08/08 职场文书
七年级作文之《我和我的祖国》观后感作文
2019/10/18 职场文书
Java异常体系非正常停止和分类
2022/06/14 Java/Android
Win11如何默认打开软件界面最大化?Win11默认打开软件界面最大化的方法
2022/07/15 数码科技