//此页面为php3.php
<?
include “signup/mysql.inc”;
switch($part){
ca “1” :$table=”bbs_php”;break;
ca “2” :$table=”bbs_mysql”;break;
ca “3” :$table=”bbs_html”;break;
ca “4” :$table=”bbs_js”;
}
//echo $part;
?>
<html>
<head>
<title>xiaoyang</title>
<meta http-equiv=”content-type” content=”text/html; chart=gb2312″>
<script language=”javascript1.2″ src=”js/menu_comment.js”></script>
<script language=”javascript1.2″ src=”js/fw_menu.js”></script>
<script language=”javascript”>
<!–
function mm_reloadpage(init) {//reloads the window if nav4 resized
if (init==true) with (navigator) {if ((appname==”netscape”)&钢筋符号word;&(parint(appversion)==4)) {
document.mm_pgw=innerwidth; document.mm_pgh=innerheight; onresize=mm_reloadpage; }}
el if (innerwidth!=document.mm_pgw || innerheight!=document.mm_pgh) location.reload();
}
mm_reloadpage(true);
// –>
</script>
</head>
<body bgcolor=”#ffffff” text=”#000000″>
<div id=”layer1″ style=”position:absolute; left:31px; top:1px; width:560px; height:46px; z-index:10″>
<script language=”javascript1.2″&g女儿录父亲家暴过程t;fwloadmenus();</script></div>
<div id=”layer2″ style=”position:absolute; left:27px; top:41px; width:600px; height:15px; z-index:2″>
<hr color=”#ff9999″>
</div>
<div id=”layer3″ style=”position:absolute; left:73px; top:10px; width:2px; height:330px; z-index:3; background-color: #ff9999; layer-background-color: #ff9999; border: 1px none #000000″></div>
<div id=”layer4″ style=”position:absolute; left:560px; top:10px; width:2px; height:330px; z-index:4; background-color: #ff9999; layer-background-color: #ff9999; border: 1px none #000000″></div>
<div id=”layer5″ style=”position:absolute; left:86px; top:58px; width:464px; height:273px; z-index:5″开放小区>
<table width=”100%” border=”0″ cellspacing=”1″ cellpadding=”0″ height=”20″>
<tr>
<td width=”10%”>
<div align=”center”><font color=”#cc33cc” size=”2″>人气</font></div>
</td>
<td width=”38%”>
<div align=”center”><font color=”#cc33cc” size=”2″>文章题目</font></div>
</td>
<td width=”26%”>
<div align=”center”><font size=”2″ color=”#cc33cc”>作者</font></div>
</td>
<td width=”26%”>
<div align=”center”><font color=”#cc33cc” size=”2″>日期</font></div>
</td>
</tr>
<?
$sql=”lect * from “.$table.” order by row desc”;
$result=mysql_query($sql)or die(mysql_error());
$row1=mysql_num_rows($result);
$row_max_page=12;//分页计算
$page=ceil($row1/$row_max_page);
$left_row=$row1-$p*$row_max_page;
$pre_left_row=$left_row+12;
$start_row=$left_row+$row_max_page+1;
if($left_row<=0)
{
$start_row=$pre_left_row+1;
$left_row=0;
}
$sql=”lect * from “.$table.” where row<‘$start_row’ and row>’$left_row’ order by row desc”;
$result=mysql_query($sql)or die(mysql_error());
while($row=mysql_fetch_array($result)){
static $i=0;
$i++;
if($i%2)
$color=”ccccff”;
el $color=”ffccff”;
echo “<tr>”;
echo ”<td width=10% bgcolor=#”.$color.”> “;
echo ”<div align=center><font size=2 color=#3333ff>”.$row[“number”].”</font></div>”cao妈妈;
echo ”</td>”;
echo ”<td width=38% bgcolor=#”.$color.”> “;
echo ”<div align=center><font size=2 color=#3333ff><ahref=’look.php?id=”.$row[“id”].”&&table=”.$table.”‘>”.$row[“title”].”</a></font></div>”;
echo ”</td>”;
echo ”<td width=26% bgcolor=#”.$color.”> “;
echo ”<div align=center><font size=2 color=#3333ff>”.$row[“urid”].”</font></div>”;
echo ”</td>”;
echo ”<td width=26% bgcolor=#”.$color.”> “;
echo ”<div align=center><font size=2 color=#3333ff>”.$row[“date1″].”</font></div>”;
echo ”</td></tr>”;
}
echo”</table>”;
echo “<br><div align=center><table><tr><td><font size=2 >”;
for($i=1;$i<=$page;$i++)
{
echo “<a href='”.$php_lf.”?p=”.$i.”&&table=”.$table.”‘>[“.$i.”]</a>“;
}
?>
</font></td></tr>
</table></div>
</div>
<div id=”layer6″ style=”position:absolute; left:409px; top:29px; width:118px; height:17px; z-index:6″></div>
<div id=”layer7″ style=”position:absolute; left:451px; top:28px; width:65px; height:12px; z-index:8六月英文8243;>
<a href=”say.php?table=<?echo $table ;?>” target=”_lf” onmouover=”window.status=”;return true”><font size=”2″ color=”#ff33ff”>我要发言</font></a></div>
<p></p>
<p></p>
</body>
</html>
本文发布于:2023-04-06 05:18:27,感谢您对本站的认可!
本文链接:https://www.wtabcd.cn/fanwen/zuowen/02ac293e8d6989d24b02d95d5f296a94.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文word下载地址:BBS(php & mysql)完整版(三).doc
本文 PDF 下载地址:BBS(php & mysql)完整版(三).pdf
留言与评论(共有 0 条评论) |