p
$sql1=mysql_query("select usernc from tb_user where id='".$info[userid]."'",$conn);
$info1=mysql_fetch_array($sql1);
echo $info1[usernc];
?>
</div></td>
<td height="23" bgcolor="#E9F3FF"><div align="center"><?php echo $info[createtime];?></div></td>
</tr>
<tr id="tr<?php echo $info[id];?>" style="display:none">
<td height="23" bgcolor="#E9F3FF"> </td>
<td height="23" colspan="5" bgcolor="#E9F3FF"><table width="650" height="25" border="0" align="center" cellpadding="0" cellspacing="0">
<?php
$sqlr=mysql_query("select * from tb_reply where bbsid='".$info[id]."' order by createtime asc",$conn);
$infor=mysql_fetch_array($sqlr);
if($infor==false)
{
?>
<tr>
<td width="750" height="25"><div align="center">该贴暂无回复!</div></td>
</tr>
<?php
}else{
$m=0;
$k=1;
do
{
?>
<tr>
<td width="750" height="25" bgcolor="#E9F3FF"><?php if($m%3==0) $k++;?>
<?php echo ($m+1).". ";?><a href="bbs_lookbbs.php?id=<?php echo $info[id]?>&page=<?php echo ($k-1);?>" class="a4"><?php echo $infor[title];?></a> (<?php echo $infor[createtime];?>)</td>
</tr>
<?php
$m++;
}while($infor=mysql_fetch_array($sqlr));
}
?>
</table></td>
</tr>
<?php
}
}
?>
</table>
<?php
if($total!=0)
{
?>
<table width="800" height="5" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td></td>
</tr>
</table>
<table width="750" height="25" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="591" bgcolor="#CCCCCC"><div align="left"> 共有帖子 <?php echo $total;?> 条 每页显示 <?php echo $pagesize;?> 条 第 <?php echo $page;?> 页/共 <?php echo $pagecount;?> 页</div></td>
<td width="329" bgcolor="#CCCCCC"><div align="right"><a href="<?php echo $_SERVER["PHP_SELF"]?>?page=1&id=<?php echo $_GET["id"];?>" class="a1">首页</a> <a href="<?php echo $_SERVER["PHP_SELF"]?>?page=<?php
if($page>1)
echo $page-1;
else
echo 1;
?>&id=<?php echo $_GET["id"];?>" class="a1">上一页</a> <a href="<?php echo $_SERVER["
PHP_SELF"]?>?page=<?php
if($page<$pagecount)
echo $page+1;
else
echo $pagecount;
?>&id=<?php echo $_GET["id"];?>" class="a1">下一页</a> <a href="<?php echo $_SERVER["PHP_SELF"]?>?page=<?php echo $pagecount;?>&id=<?php echo $_GET["id"];?>" class="a1">尾页</a> </div></td>
</tr>
</table>
<?php
}
?>
</td>
</tr></table>
<?php
include_once("bottom.php");
?>