【 tulaoshi.com - PHP 】
显示主题内容页面。
<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="http://img.jcwcn.com/attachment/portal/jcwcj/2005-12/10/0512101023392732.gif"" width="74" height="21" border="0">