当前位置:编程学习 > php >>

PHP制作的仿百度的站内搜索引擎代码

用PHP编写的仿百度的站内搜索引擎代码

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style>
body,td,.p1,.p2,.i{font-family:arial}
body{margin:6px 0 0 0;background-color:#fff;color:#000;}
table{border:0}
a.t:hover{TEXT-DECORATION:underline}
.f{line-height:100%;font-size:100%;width:43em;padding-left:15px;word-break:break-all;word-wrap:break-word;}
.Tit {height:21px; font-size:14px;}
.fB {font-weight:bold;}
.i1 {font-size:16px}
.bi {background-color:#D9E1F7;height:20px;margin-bottom:12px}
.p{padding-left:18px;font-size:14px;word-spacing:4px;}
.m,a.m:link{COLOR:#666666;font-size:100%;}
#ft{clear:both;line-height:20px;background:#E6E6E6;text-align:center}
#ft,#ft *{color:#77C;font-size:12px;font-family:Arial}
#ft span{color:#666}
#usrbar{padding-right:10px;line-height:19px;font-size:12px;font-family:Arial;text-align:right;white-space:nowrap;margin-bottom:3px !important;margin-bottom:10px;}
.kw {font-family:Verdana;font-size:18px;}
.sb {height:2em;width:5.6em;font-size:14px;}
#b {width:600px;height:30px;padding-top:4px;color:#77c;font-size:12px;font-family:Arial}
#km {font-size:14px;height:50px;}
#l {font-size:14px;font-family:arial;width:600px;text-align:left;margin-bottom:5px}
img{border:0}
</style>
<title>
<?php
$keyword=htmlspecialchars($_GET[keyword]);
if($keyword!="")
{
echo "网页教学网站内搜索_".$keyword."——Powered By WEBJX.COM";
?> </title>
<?php
}
else
{?>
</title>
</head>
<body>
<br /></br />
<center><a href="/index.html" target="_blank"><img src="images/php_logo_search_da.gif" alt="网页教学网站内搜索" width="189" height="75" border="0" /></a><br />
<br />
<br />
<br />
<table width="600" border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
<td width="92"></td>
<td height="62"><form action="/search.php" method="get" name="search_form" target="_self" id="f">
<input type="text" name="keyword" class="kw" size="32" maxlength="100"/>
<input type="hidden" name="page" value="1" />
<input name="submit" type="submit" class="sb" value="站内搜索" />
<input type="hidden" name="writekeywords" value="yes" />
<br />
<br />
</form></td>
<td width="100" align="left"><a href="/others/search_help.html" target="_self" style="font-size:12px">帮助</a><br />
</td>
</tr>
</table>
<br />
<p style="height:30px;"><a target=_top href=javascript:window.external.AddFavorite(http://www.webjx.com,网页教学网) style="font-size:12px">把网页教学网加入收藏</a></p>
<p style="height:14px;font-size:12px;"><a href="/others/about_cn.html" target="_blank">关于网页教学网</a> | <a href="/others/about_en.html" target="_blank" style="font-size:12px">About Webjx.com</a></p>
<p id="b" style="font-size:12px">©2007 webjx.com <a href="http://www.baidu.com/duty"/></a></a> <a href="http://www.miibeian.gov.cn" target="_blank">冀ICP备05002422号</a> <a href="http://www.hd315.gov.cn/beian/view.asp?bianhao=010202001092500412"><img src="http://gimg.baidu.com/img/gs.gif" /></a></p>
</center></body>
</html>
<?PHP
exit(0);
}
?>
</head>
<body>
<table width="100%" height="54" align="center" cellpadding="0" cellspacing="0">

补充:Web开发 , php ,
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,