<HTML>
<HEAD>
<TITLE>狐網論壇</TITLE>
<STYLE type=text/css>
P {FONT-FAMILY: normal; FONT-SIZE: 9pt; LINE-HEIGHT: 14pt}
DIV {FONT-FAMILY: normal; FONT-SIZE: 9pt; LINE-HEIGHT: " /> 九九免费精品视频,好男人在线观看免费视频WWW ,97在线超碰免费视频

天天躁日日躁狠狠躁AV麻豆-天天躁人人躁人人躁狂躁-天天澡夜夜澡人人澡-天天影视香色欲综合网-国产成人女人在线视频观看-国产成人女人视频在线观看

我的論壇源代碼(三)

顯示主題內容頁面。

<HTML>
<HEAD>
<TITLE>狐網論壇</TITLE>
<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" text="#000000" id=all>
<?
$query="select * from foxbbs where id='".$id."'";    //這個ID是從面也就是FOXBBS.php里傳過來的。
$req=mysql_query($query);
if ($req) {
$bbsmes=mysql_fetch_array($req);
$djnum=$bbsmes["djnum"]+1;                                //點擊數加一
$query="update foxbbs set djnum='$djnum' where id='".$id."'";
$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;
      }
}
?>
<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>
              </table>
    </td>
  </tr>
   <tr>
<?
$hfft="foxbbs/".substr($bbsmes[5]).".bbs";
if (file_exists($hfft))       //是否有回復
{
   $tem=@file($hfft);
   $temp=implode("",$tem);        //先把數組轉變成字符串,不用加分融符
   $tem=explode("δεζ",$temp);
   $num=count($tem)-1;
   for ($i=0;$i<$num;$i++)
   {   $x=$i+1;
       $temp=explode("ㄞㄚㄓ",$tem[$i]);         //把每條回復信息分開
       if ($temp[5]>0) $temp[5]="images/".$temp[5].".gif";      //顯示回復內容
       else $temp[5]="images/a.gif";
       if (!$temp[6]) $temp[6]="不想告訴你";
          echo "<tr><td><table width='100%' border='0' cellspacing='1' cellpadding='1'>";
          echo "<tr bgcolor='#009999'><td width='20%'><div align='center'><font color='#FFFFFF'>回貼作者</font></div></td>";
          echo "<td width='80%'><div align='center'><font color='#FFFFFF'>回 復 內 容 (第<font color='00ff00'>NO.".$x."</font>號)</font></div></td></tr>";
          echo "<tr bgcolor='#eeeeee' valign='top'><td width='20%'><div align='center'>".$temp[1]."<br><img src='".$temp[5]."'><br>OICQ:".$temp[2]."<br>來自:".$temp[6]."<font color='#FFFFFF'></font></div></td>";
          echo "<td width='80%'><div align='left'>".$temp[0]."</div></td></tr>";
          echo "<tr bgcolor='#009999'><td width='20%'><div align='left'><font color='#FFFFFF'><img src='images/posticon.gif' width='14' height='11'>".$temp[7]."</font></div></td>";
          echo "<td width='80%'><div align='left'>";
          echo "<a href='mailto:".$temp[4]."'><img src='images/email.gif' width='43' height='17' alt='給我發郵件' border='0'></a>";
          echo "  <a href='".$temp[3]."' ><img src='images/home.gif' width='43' height='17' alt='我的主頁' border='0'></a>";
          echo "  <a href='#'><img src='images/ip.gif' border='0' alt='".$temp[8]."'></a>";
          echo "</div></td></tr>";
          echo "</table></td></tr>";
   }

}
?>
</tr>

</table>
</body>
</html> 

php技術我的論壇源代碼(三),轉載需保留來源!

鄭重聲明:本文版權歸原作者所有,轉載文章僅為傳播更多信息之目的,如作者信息標記有誤,請第一時間聯系我們修改或刪除,多謝。

主站蜘蛛池模板: 全免费A敌肛交毛片免费懂色AV | 欧洲精品不卡1卡2卡三卡四卡 | 免费看到湿的小黄文软件APP | 青青视频国产依人在线 | 亚洲精品久久久午夜福利电影网 | 亚洲精品高清中文字幕完整版 | 最新国自产拍 高清完整版 最新国产在线视频在线 | 久久精品视频91 | 午夜成a人片在线观看 | 亚洲女人网 | 狠狠人妻久久久久久综合九色 | 午夜影视不用充钱的免费 | 视频成人永久免费视频 | 俄罗斯XXXXXL18| 和搜子的日子 在线观看 | 777久久人妻少妇嫩草AV | 亚洲一区精品伊人久久伊人 | 97免费视频在线观看 | 国精一区二区AV在线观看网站 | 伊人久久综合谁合综合久久 | 亚洲野狼综合网站 | 优菈的乳液狂飙天堂W98 | 久久才是精品亚洲国产 | 亚洲综合小说久久另类区 | 琪琪see色原网色原网站 | 国产综合在线观看 | 在线国内自拍精品视频 | 轻点灬大ji巴太粗太双性高h | 亚洲AV久久久噜噜噜久久 | 国产高清视频在线观看不卡v | 福利片午夜 | 海角社区在线视频播放观看 | 麻豆一二三四区乱码 | 暖暖 免费 日本 高清 在线1 | 中文字幕蜜臀AV熟女人妻 | 国产一级特黄a大片99 | 国产精品99久久久久久AV | xxx性欧美在线观看 xxx性欧美在线 | 色偷偷成人网免费视频男人的天堂 | 亚洲午夜福利未满十八勿进 | 美丽的姑娘BD在线观看 |