我的论坛源代码(九)

1<html>
2<head>
3<title>Untitled Document</title>
4<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
5<style type="text/css">   
6P {FONT-FAMILY: normal; FONT-SIZE: 9pt; LINE-HEIGHT: 14pt}   
7DIV {FONT-FAMILY: normal; FONT-SIZE: 9pt; LINE-HEIGHT: 14pt}   
8</style>
9<link href="js/cpcw.css" link="" rel="stylesheet"/>   

include "linkfox.inc.php";
include "info.inc.php";

  1</head>
  2<body bgcolor="#FFFFFF">
  3<?   
  4$query="select * from foxbbs where id='".$bbsid."'";   
  5$req=mysql_query($query);   
  6if ($req) {   
  7$bbsmes=mysql_fetch_array($req);   
  8$djnum=$bbsmes["djnum"]+1;   
  9$query="update foxbbs set djnum='$djnum' where id='".$bbsid."'";   
 10$req=mysql_query($query);   
 11}   
 12  
 13$query="select * from useinfo where usename='".$bbsmes["usename"]."'";   
 14$req=mysql_query($query);   
 15if ($req) {   
 16$useinfo=mysql_fetch_array($req);   
 17switch ($useinfo[11])   
 18{   
 19case ($useinfo[11]==1):   
 20$useinfo[11]="会员";   
 21break;   
 22case ($useinfo[11]==2):   
 23$useinfo[11]="版主";   
 24break;   
 25case ($useinfo[11]==3):   
 26$useinfo[11]="管理员";   
 27break;   
 28case ($useinfo[11]==4):   
 29$useinfo[11]="站长";   
 30break;   
 31default:   
 32$useinfo[11]="游客";   
 33break;   
 34}   
 35}   
 36if ($lock==yes)   
 37{   
 38$query="update foxbbs set lockes=1 where id='".$bbsid."'";   
 39$req=mysql_query($query);   
 40if ($req)   
 41{   
 42err_info("锁定成功");   
 43echo "<script language='JavaScript'> javascript:location.href='superuse.php?d=editbbs'; ;";   
 44echo "<div align="center"><a href="superuse.php?d=editbbs">信息修改成功,返回</a></div>";   
 45}   
 46}   
 47if ($unlock==yes)   
 48{   
 49$query="update foxbbs set lockes=0 where id='".$bbsid."'";   
 50$req=mysql_query($query);   
 51if ($req)   
 52{   
 53err_info("锁定成功");   
 54echo "<script language="JavaScript"> javascript:location.href='superuse.php?d=editbbs'; </script>;";   
 55echo "<div align="center"><a href="superuse.php?d=editbbs">信息修改成功,返回</a></div>";   
 56}   
 57}   
 58?&gt;   
 59<table border="0" cellpadding="4" cellspacing="0" width="100%">
 60<tr>
 61<td height="20">
 62<div align="right"></div>
 63</td>
 64<td height="20" width="75"> </td>
 65<td height="20" width="75"> </td>
 66<td height="20" width="75"> </td>
 67<td height="20" width="75"> </td>
 68</tr>
 69<tr>
 70<td height="20">
 71<div align="right"></div>
 72</td>
 73<td height="20" width="75">
 74<div align="center"><a href="reguse.php?action=xy"><img border="0" height="21" src="images/top_register.gif" width="74"/></a></div>
 75</td>
 76<td height="20" width="75">
 77<div align="center"><a href="useinfo.php?action=find"><img border="0" height="21" src="images/top_members.gif" width="74"/></a></div>
 78</td>
 79<td height="20" width="10%"><a href="useinfo.php?action=use"><img border="0" height="21" src="images/top_profile.gif" width="74"/></a></td>
 80<td height="20" width="75"><a href="foxbbs.php?d=q"><img border="0" height="21" src="images/top_logout.gif" width="74"/></a></td>
 81</tr>
 82<tr>
 83<td height="20">
 84<div align="left">当前位置:<font color="#0000FF">狐网─&gt;狐网论坛─&gt;论题:</font></div>
 85</td>
 86<td>
 87<div align="center"><a href="foxbbs.php"><img border="0" height="20" src="images/index.gif" width="70"/></a></div>
 88</td>
 89<td>
 90<div align="center"><a href="post.php"><img alt="发布新帖" border="0" height="20" src="images/newthread.gif" width="70"/></a></div>
 91</td>
 92<td height="20" width="10%">
 93<div align="center"><? echo "<a href='repal.php?action=add&id=".$id."&zt=".$bbsmes[3]."&use=".$use."'><img alt="回复此贴" border="0" height="20" src="images/reply.gif" width="70"/>"; ?&gt;</div>
 94</td>
 95<td height="20" width="10%">
 96<div align="center"><a href="reguse.php?action=dl"><img border="0" height="20" src="images/dl.gif" width="70"/></a></div>
 97</td>
 98</tr>
 99</table>
100<table border="0" cellpadding="0" cellspacing="0" width="100%">
101<tr bgcolor="#000000">
102<td colspan="2">
103<table border="0" cellpadding="1" cellspacing="1" width="100%">
104<tr bgcolor="#009999">
105<td width="20%">
106<div align="center"><font color="#FFFFFF">原贴作者</font></div>
107</td>
108<td width="80%">
109<div align="center"><font color="#FFFFFF">原 贴 内 容</font></div>
110</td>
111</tr>
112<tr bgcolor="#eeeeee" valign="top">
113<td width="20%">
114<div align="center"> <?   
115echo $useinfo[2]."<br>";   
116echo "<img .gif="" src='images/".$bbsmes[2]."'/><br/>";   
117echo $useinfo[11]."<p>";   
118echo "发帖数 [".$useinfo["ftnum"]."]<br/>";   
119?&gt;</p></div>
120</td>
121<td width="80%"><div align="left"> <?   
122$ft="foxbbs/".$bbsmes[5].".fox";   
123$message=@file($ft);   
124for ($i=0;$i<count($message);$i++)   
125{ if (ord(substr($message[$i],0,1))==161) //第一位是否全角空格   
126echo $message[$i];   
127else {   
128$message[$i]=" ".trim($message[$i]);   
129echo $message[$i];   
130}   
131}   
132?></div></td>
133</tr>
134<tr bgcolor="#009999">
135<td width="20%">
136<div align="left"><img height="11" src="images/posticon.gif" width="14"/><? echo $bbsmes[4]; ?></div>
137</td>
138<td width="80%">
139<div align="left"><?   
140if ($useinfo[9]=="不告诉你")   
141echo "<img src='images/email.gif' width='43' height='17'>";   
142else echo "<a href='mailto:".$useinfo[8]."'><img alt="给我发邮件" border="0" height="17" src="images/email.gif" width="43"/></a>";   
143echo " <a href='".$useinfo[9]."'><img alt="我的主页" border="0" height="17" src="images/home.gif" width="43"/></a>";   
144echo " <a href="useinfo.php?action=look"><img alt="我的详细信息" border="0" height="16" src="images/profile.gif" width="43"/></a>";   
145echo " <a href="useinfo.php?action=edit"><img alt="修改信息" border="0" height="17" src="images/edit.gif" width="43"/></a>";   
146echo " <a href='foxbbs.php?action=find&amp;user=".$useinfo[0]."'><img alt="查找该用户的所以文章" border="0" height="17" src="images/find.gif" width="43"/></a>";   
147echo " <a href='repal.php?action=add&amp;use=".$useinfo[13]."&amp;id=".$id."&amp;zt=".$bbsmes[3]."&amp;c=dd'><img alt="引用该用户的文章回复" border="0" height="17" src="images/quote.gif" width="43"/></a>";   
148echo " <a href="#"><img alt='".$bbsmes[11]."' border="0" src="images/ip.gif"/></a>";   
149?&gt; </div>
150</td>
151</tr>
152<tr bgcolor="#ffffff"><td colspan="2"><div align="center"><form method="post"><input name="lock" type="checkbox" value="yes"/>锁住?<input name="unlock" type="checkbox" value="yes"/>解锁?<input name="Submit" type="submit" value="确定"/></form></div></td></tr>
153</table>
154</td>
155</tr>
156</table>
157</body>
158</html>
Published At
Categories with Web编程
Tagged with
comments powered by Disqus