- 爱易网页
-
PHP教程
- 基于mysql的论坛(4)
日期:2013-01-03 浏览次数:20456 次
## index.php
<html>
<head>
<title>论坛</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<frameset cols="125,*" rows="*" border="0" frameborder="0">
<frame src="left.php" name="left" scrolling="AUTO" frameborder="YES" bordercolor="#000000">
<frame src="right.htm" name="main" scrolling="AUTO">
</frameset>
<noframes><body bgcolor="#FFFFFF">
</body></noframes>
</html>
## left.php
<?php
$fp=fopen("file/counter.txt","r");
$counter=fgets($fp,8);
fclose($fp);
$counter=$counter+1;
$fp=fopen("file/counter.txt","w");
fputs($fp,$counter);
fclose($fp);
require("config.inc.php");
$sql="select * from boardinfo";
$sql_result=mysql_query($sql);
$sql_row=mysql_fetch_array($sql_result);
?>
<html>
<head>
<title>版面列表</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="css/new.css" rel=stylesheet>
</head>
<body background="image/bg.gif" bgcolor="#FFFFFF">
<table width="100%" border="0" cellspacing="2" cellpadding="0">
<tr>
<td align="center"> </td>
</tr>
<tr>
<td align="center"><a href="apply.php" target="main">注册用户</a></td>
</tr>
<tr>
<td align="center"><font color="#666666">---------</font></td>
</tr>
<?php
do
{
echo"<tr>";
echo"<td align="center"><a href="list.php?board=$sql_row[name]" target="main">$sql_row[chinesename]</a></td>";
echo"</tr>";
}while($sql_row=mysql_fetch_array($sql_result));
?>
<tr>
<td align="center"><font color="#006666">---------</font></td>
</tr>
<tr>
<td height="11">
<script src=file/X86tree.js></script>
<script language=javascript>
img_t1="image/t1.gif";
img_t2="image/t2.gif";
tree=new TreeView(0,0,640,300);
tree.AddImage(0,"image/dot.gif");
tree.AddImage(1,"image/close.gif");
tree.AddImage(2,"image/open.gif");
m1=new Nodes("m1",tree.ImageList,"论坛转向",0,2,"");
m1.Add(new Node("站点首页",1,0,"<a href='http://www.jlbusiness.com' target='_top'>")); m1.Add(new Node("论坛首页",1,0,"<a href='right.htm' target='main'>"));
tree.Add2(m1);
doc2=new Nodes("doc2",tree.ImageList,"论坛功能",0,2,"-");
doc2.Add(new Node
免责声明: 本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。