<div class="title_bot"><script>ec(2);</script></div> <table width="620" align="center" border="0" cellpadding="1" cellspacing="1" style="background:#FB7"> <tr> <td width="464" height="27" bgcolor="#FFE7CE"> 代码如下</td> <td width="109" align="center" bgcolor="#FFE7CE" style="cursor:pointer;" onclick="doCopy('copy9124')">复制代码</td> </tr> <tr> <td height="auto" colspan="2" valign="top" bgcolor="#FFFFFF" style="padding:10px;" class="copyclass" id="copy9124">function pagenavi($total, $offset){<br> global $conf_pagemax;<br> global $conf_home;<br> global $conf_pastlog;<br> global $view;<br> <br> $next = $offset + $conf_pagemax;<br> $prev = $offset - $conf_pagemax;<br> echo " <!-- page navigation --> ";<br> <br> if($offset > $conf_pagemax-1){<br> echo "<a href="index.php?offset=%24prev"></a> if($view == "past"){<br> echo "&view=past";<br> }<br> echo ""> ";<br> }<br> ($total % $pagemax)? $pagenum = ($total/$conf_pagemax) + 1: $pagenum = ($total/$conf_pagemax);<br> if($total $c = 0;<br> $page = 1;<br> if($total > $conf_pagemax){<br> echo "[<b> ";<br> while($pagenum > 0){<br> if($offset == $c){<br> $str .= " $page ";<br> } else {<br> $str .= " <a href="index.php?offset=%24c"></a> if($view =="past"){<br> $str .= "&view=past";<br> }<br> $str .= "">$page ";<br> }<br> $page++;<br> $pagenum--;<br> $c = $c + $conf_pagemax;<br> }<br> echo "$str </b>] ";<br> }<br> if($next echo "<a href="index.php?offset=%24next"></a> if ($view == "past"){<br> echo "&view=past";<br> }<br> echo "">下一页>> ";<br> }<br> echo "</td> </tr> </table>";<br> echo " <!-- end of page navigation --> <br><br>";<br> <br> echo "<br> [ <a href="%24conf_home">返回主页</a> ] <br> ";<br> <br> if($view != "past"){<br> if(file($conf_pastlog)){<br> echo "[ <a href="index.php?view=past">以前的留言</a> ]";<br> }<br> }<br> echo " [ <a href="search.php"> 搜索</a> ] ";<br> echo " [ <a href="index.php">留言板首页</a> ] ";<br> <br> <br> }