PHP制作的仿百度的站内搜索引擎代码(6) <?PHP break; case "PHP源码": ?><a href="/newer.html" target="_blank" class="m">PHP源码</a> <?PHP break; } ?> </font></td> </tr> </table><br> <?PHP }//搜索正文结束 if($allpage!=1) {?><div class="p"><?PHP if($page!=1) echo"<a href="search.php?page=".($page-1)."&cnt=".$cnt."&allpage=".$allpage."&keyword=".$keyword."" target="_self">上一页</a>"; for($i=0;$i<$allpage;$i++) { if(($i+1)!=$page) echo " <a href="search.php?page=".($i+1)."&cnt=".$cnt."&allpage=".$allpage."&keyword=".$keyword."" target="_self">[".($i+1)."]</a> "; else echo " [".($i+1)."] "; } if($allpage!=$page) echo"<a href="search.php?page=".($page+1)."&cnt=".$cnt."&allpage=".$allpage."&keyword=".$keyword."" target="_self">下一页</a>"; }?></div> <?PHP } ?> <table cellpadding="0" cellspacing="0" style="margin-left:18px;height:60px;"> <form action="/search.php" method="get" target="_self"><tr valign="middle"> <td nowrap style="FONT-SIZE:9pt;LINE-HEIGHT:18px;"> <input name="keyword" type="text" size="35" value="<?PHP echo $keyword;?>"maxlength="20" /> <input type="hidden" name="writekeywords" value="yes" /> <input name="submit" type="submit" style="padding-top:2px;" value="搜索本站"/> <input type="hidden" name="page" value="1" /> </td></tr> </form> </table> <div id="ft">©2007 网页教学网 <span>此内容系网页教学网根据您的指令自动搜索的结果</span></div> </body> </html>