【php开源代码栏目提醒】:网学会员在php开源代码频道为大家收集整理了default_NoCollapse.php提供大家参考,希望对大家有所帮助!
<?php
require_once('common.php');
require_once('Board.php');
require_once('TreeNode.php');
$page_title = '夸夸其坛讨论区'; // 设置窗口标题
$page_caption = '讨论区主页'; // 设置页面标题
require_once('header.inc.php');
// 构造版面列表
$board = new BoardList();
// 取当前版面
$bid = isset($_GET['bid']) ? $_GET['bid'] : 1;
$cur_board = $board->getBoard($bid);
// 构造树节点
$tree = new TreeNode($bid, 0, true, '', '', '', '', '', -1);
?>
<table border='0' cellpadding='0' cellspacing='0' width='768'>
<tr>
<td width='25%'>
<div style='width:100%;height:360px;border:2px groove lightgray;'>
<table border='0' cellpadding='0' cellspacing='0' width='100%'>
<tr height='32px'>
<td bgcolor='lightblue' align='center'>
<font color='orange'>版面
列表</font>
</td>
</tr>
<?php
// 让版面类的对象显示自己
$board->display();
?>
</table>
</div>
</td>
<td valign='top'>
<div style='color:orange;height:32px; width:100%;
background-color:lightblue; padding:3px;border:2px groove lightgray;'>
<span style='color:orange;height:22px;'>当前版面:</span>
<span style='color:white;;height:22px;width:60%;'><?echo $cur_board;?></span>
<a class='link_btn' href='post.php?bid=<?echo $bid;?>'>发表文章</a>
</div>
<table border='0' cellpadding='5' cellspacing='0' width='100%' style='margin-left:5px'>
<?php
// 让树显示自己
$tree->display(0);
?>
</table>
</td>
</tr>
</table>
<?php
require_once('footer.inc.php');
?>