选择显示字体大小

我的论坛源代码(三)

显示主题内容页面。

<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>
<?
&#36;query="select * from foxbbs where id=&#39;".&#36;id."&#39;";    //这个id是从上一页面也就是foxbbs.php里传过来的。
&#36;req=mysql_query(&#36;query);
if (&#36;req) {
&#36;bbsmes=mysql_fetch_array(&#36;req);
&#36;djnum=&#36;bbsmes["djnum"]+1;                                //点击数加一
&#36;query="update foxbbs set djnum=&#39;&#36;djnum&#39; where id=&#39;".&#36;id."&#39;";
&#36;req=mysql_query(&#36;query);
}

&#36;query="select * from useinfo where usename=&#39;".&#36;bbsmes["usename"]."&#39;";  //从用户信息库里取出发帖用户的信息
&#36;req=mysql_query(&#36;query);
if (&#36;req) {
&#36;useinfo=mysql_fetch_array(&#36;req);
switch (&#36;useinfo[11])                               //因为我是用一位数字来表示用户身份
      {
      case (&#36;useinfo[11]==1):
        &#36;useinfo[11]="会员";
        break;
      case (&#36;useinfo[11]==2):
        &#36;useinfo[11]="版主";
        break;
      case (&#36;useinfo[11]==3):
        &#36;useinfo[11]="管理员";
        break;
      case (&#36;useinfo[11]==4):
        &#36;useinfo[11]="站长";
        break;
      default:
        &#36;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">&nbsp;</td>
    <td height="20" width="75">&nbsp;</td>
    <td height="20" width="75">&nbsp;</td>
    <td height="20" width="75">&nbsp;</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">狐网─&gt;狐网论坛─&gt;论题:</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=&#39;repal.php?action=add&id=".&#36;id."&zt=".&#36;bbsmes[3]."&use=".&#36;use."&#39;><img src=&#39;images/reply.gif&#39; width=&#39;70&#39; height=&#39;20&#39; border=&#39;0&#39; alt=&#39;回复此贴&#39;></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 &#36;useinfo[2]."<br>";
           echo "<img src=&#39;images/".&#36;bbsmes[2]."&#39;.gif><br>";
           echo &#36;useinfo[11]."<p>";
           echo "发帖数 [".&#36;useinfo["ftnum"]."]<br>";
          ?></div>
          </td>
          <td width="80%"><div align="left"> <?
          &#36;ft="foxbbs/".&#36;bbsmes[5].".fox";               //取出存放的文件名
          &#36;message=@file(&#36;ft);          //读出文件内容
          for (&#36;i=0;&#36;i<count(&#36;message);&#36;i++)
          { if (ord(substr(&#36;message[&#36;i],0,1))==161)   //第一位是否全角空格
            echo &#36;message[&#36;i];
            else {
            &#36;message[&#36;i]="  ".trim(&#36;message[&#36;i]);       
            echo &#36;message[&#36;i];           //显示主题内容
            }
          }
          ?></div></td>
        </tr>
        <tr bgcolor="#009999">
          <td width="20%">
            <div align="left"><img src="images/posticon.gif" width="14" height="11"><? echo &#36;bbsmes[4]; ?></div>
          </td>
          <td width="80%">
            <div align="left"><?
          if (&#36;useinfo[9]=="不告诉你")
          echo "<img src=&#39;images/email.gif&#39; width=&#39;43&#39; height=&#39;17&#39;>";
          else echo "<a href=&#39;mailto:".&#36;useinfo[8]."&#39;><img src=&#39;images/email.gif&#39; width=&#39;43&#39; height=&#39;17&#39; alt=&#39;给我发邮件&#39; border=&#39;0&#39;></a>";
          echo "  <a href=&#39;".&#36;useinfo[9]."&#39; ><img src=&#39;images/home.gif&#39; width=&#39;43&#39; height=&#39;17&#39; alt=&#39;我的主页&#39; border=&#39;0&#39;></a>";
          echo "  <a href=&#39;useinfo.php?action=look&#39;><img src=&#39;images/profile.gif&#39; width=&#39;43&#39; height=&#39;16&#39; alt=&#39;我的详细信息&#39; border=&#39;0&#39;></a>";
          echo "  <a href=&#39;useinfo.php?action=edit&#39;><img src=&#39;images/edit.gif&#39; width=&#39;43&#39; height=&#39;17&#39; alt=&#39;修改信息&#39; border=&#39;0&#39;></a>";
          echo "  <a href=&#39;foxbbs.php?action=find&user=".&#36;useinfo[0]."&#39;><img src=&#39;images/find.gif&#39; width=&#39;43&#39; height=&#39;17&#39; alt=&#39;查找该用户的所以文章&#39; border=&#39;0&#39;></a>";
          echo "  <a href=&#39;repal.php?action=add&use=".&#36;useinfo[13]."&id=".&#36;id."&zt=".&#36;bbsmes[3]."&c=dd&#39;><img src=&#39;images/quote.gif&#39; width=&#39;43&#39; height=&#39;17&#39; alt=&#39;引用该用户的文章回复&#39; border=&#39;0&#39;></a>";
          echo "  <a href=&#39;#&#39;><img src=&#39;images/ip.gif&#39; border=&#39;0&#39; alt=&#39;".&#36;bbsmes[11]."&#39;></a>";
         ?> </div>
          </td>
        </tr>
              </table>
    </td>
  </tr>
   <tr>
<?
&#36;hfft="foxbbs/".substr(&#36;bbsmes[5]).".bbs";
if (file_exists(&#36;hfft))       //是否有回复
{
   &#36;tem=@file(&#36;hfft);
   &#36;temp=implode("",&#36;tem);        //先把数组转变成字符串,不用加分融符
   &#36;tem=explode("δεζ",&#36;temp);
   &#36;num=count(&#36;tem)-1;
   for (&#36;i=0;&#36;i<&#36;num;&#36;i++)
   {   &#36;x=&#36;i+1;
       &#36;temp=explode("ㄞㄚㄓ",&#36;tem[&#36;i]);         //把每条回复信息分开
       if (&#36;temp[5]>0) &#36;temp[5]="images/".&#36;temp[5].".gif";      //显示回复内容
       else &#36;temp[5]="images/a.gif";
       if (!&#36;temp[6]) &#36;temp[6]="不想告诉你";
          echo "<tr><td><table width=&#39;100%&#39; border=&#39;0&#39; cellspacing=&#39;1&#39; cellpadding=&#39;1&#39;>";
          echo "<tr bgcolor=&#39;#009999&#39;><td width=&#39;20%&#39;><div align=&#39;center&#39;><font color=&#39;#ffffff&#39;>回贴作者</font></div></td>";
          echo "<td width=&#39;80%&#39;><div align=&#39;center&#39;><font color=&#39;#ffffff&#39;>回 复 内 容 (第<font color=&#39;00ff00&#39;>no.".&#36;x."</font>号)</font></div></td></tr>";
          echo "<tr bgcolor=&#39;#eeeeee&#39; valign=&#39;top&#39;><td width=&#39;20%&#39;><div align=&#39;center&#39;>".&#36;temp[1]."<br><img src=&#39;".&#36;temp[5]."&#39;><br>oicq:".&#36;temp[2]."<br>来自:".&#36;temp[6]."<font color=&#39;#ffffff&#39;></font></div></td>";
          echo "<td width=&#39;80%&#39;><div align=&#39;left&#39;>".&#36;temp[0]."</div></td></tr>";
          echo "<tr bgcolor=&#39;#009999&#39;><td width=&#39;20%&#39;><div align=&#39;left&#39;><font color=&#39;#ffffff&#39;><img src=&#39;images/posticon.gif&#39; width=&#39;14&#39; height=&#39;11&#39;>".&#36;temp[7]."</font></div></td>";
          echo "<td width=&#39;80%&#39;><div align=&#39;left&#39;>";
          echo "<a href=&#39;mailto:".&#36;temp[4]."&#39;><img src=&#39;images/email.gif&#39; width=&#39;43&#39; height=&#39;17&#39; alt=&#39;给我发邮件&#39; border=&#39;0&#39;></a>";
          echo "  <a href=&#39;".&#36;temp[3]."&#39; ><img src=&#39;images/home.gif&#39; width=&#39;43&#39; height=&#39;17&#39; alt=&#39;我的主页&#39; border=&#39;0&#39;></a>";
          echo "  <a href=&#39;#&#39;><img src=&#39;images/ip.gif&#39; border=&#39;0&#39; alt=&#39;".&#36;temp[8]."&#39;></a>";
          echo "</div></td></tr>";
          echo "</table></td></tr>";
   }

}
?>
</tr>

</table>
</body>
</html


 


关键字 本文所属关键字

相关 与本文相关文章

分类 所有文章关键字导航

源码编程相关

Java   Asp   PHP   .Net   XML   C/C++   CGI   VB   Jsp   J2ee   J2se   J2me   EJB   Servlet   Tomcat   Resin   Struts   Weblogic   Eclipse   ANT   GUI   JMS   Web servise   IDEA   Webphere   Hibernate   Spring   Jboss   Applet   Swing   Socket   Javamail   Perl   Ajax   P2P   安全   模式   框架   测试   开源   游戏

SQL数据库相关

My-SQL   Ms-SQL   Access   DB2   Oracle   Sybase   SQLserver   索引   存储过程   加密   数据库   分页   视图  

手机无线相关

3G   Wap   CDMA   GRPS   GSM   IVR   彩信   短信   无线   增值业务

网页设计制作相关

HTML   CSS   网页配色   网页特效   Javascript   VBscript   Dreamweaver   Frontpage   JS   Web   网站设计

网站建设推广相关

建站经验   网站优化   网站排名   推广   Alexa

操作系统/服务器相关

Windows XP   Windows 2000   Windows 2003   Windows Me   Windows 9.x   Linux   UNIX   注册表   操作系统   服务器   应用服务器

图形图像多媒体相关

Photoshop   Fireworks   Flash   Coreldraw   Illustrator   Freehand   Photoimpact   多媒体   图形图像

标准 网站致力的规范

Valid CSS!

无不良内容,无不良广告,无恶意代码

Valid XHTML 1.0 Transitional

creativecommons