|
| |
精品推荐 |
 |
|
| |
|
|
|
|
PHP制作的仿百度的站内搜索引擎代码
|
日期:2007年8月8日 作者: 查看:[大字体
中字体 小字体]
|
<a href="/base.html" target="_blank" class="m">数据库操作</a> <?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>
(出处:清风学院)
上一篇:Redhat Linux 9下最简单的WebMail实现方案
下一篇:学习动态网页技术PHP中参数引用返回的实例
|
| 相关文章: |
|
|
|
| 相关软件: |
|
| |
|