1 Star 0 Fork 3

钱玉刚/bokedaohang

forked from forecho/bokedaohang 
Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
search.php 2.99 KB
Copy Edit Raw Blame History
forecho authored 2013-07-11 11:59 . 项目全部代码
<!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" />
<title>博客导航-专注于发掘互联网高质量原创博客</title>
<meta name="keywords" content="博客,博客导航,导航,wordpress,bokedaohang" />
<meta name="description" content="bokedaohang网站以关注互联网原创博客为主要方向,致力于为广大网友提供最为优质的专业博客导航服务" />
<meta name="author" content="bokedaohang" />
<meta name="copyright" content="www.bokedaohang.com" /><link href="http://www.bokedaohang.com/favicon.ico" rel="shortcut icon">
<link type="text/css" href="css/style.css" rel="stylesheet"/>
<script type="text/javascript" src="js/jquery.js"></script>
<script src="js/interface.js" type="text/javascript"></script>
<script type="text/javascript">
$(function(){
$("#search").val('搜索,就是这么简单').css('color','#6d6d6d');
$("#search").focusin(function(){
if($('#search').val() =='搜索,就是这么简单'){
$('#search').val('').css('color','#000');
}
}).focusout(function(){
if($('#search').val() ==''){
$('#search').val('搜索,就是这么简单').css('color','#6d6d6d');
}
});
$(".blog a").hover(function(){
$(this).stop().animate({marginLeft:"8px"},400);
},function(){
$(this).stop().animate({marginLeft:"0px"},400);
});
});
</script>
</script>
</head>
<body>
<a rel="nofollow" href="feedback.php" class="w-fank">意见反馈</a>
<div id="main">
<?php require 'header.php';?>
<div class="navmain">
<img src="images/content_top_wide.png" />
<div class="nav">
<?php
$search = mysql_query("select * from links where audit=1 order by rand() limit 1");
$searchbox = mysql_fetch_array($search);
?>
<p class="navtitle">搜索“<?php echo $_GET['searchbox']?>”的结果
<a href="showurl.php?id=<?php echo $searchbox['id'];?>" title='随机打开本站博客' target="_black">随便逛逛</a>
</p>
<div class="navtop">
<?php
$searchbox = $_GET['searchbox'];
$sql2 = mysql_query("select * from links where audit=1 and name like '%$searchbox%' or link like '%$searchbox%' order by visit desc");
if(mysql_num_rows($sql2) != ""){
while($row2 = mysql_fetch_array($sql2)){
?>
<span class="blog"><img src="<?php echo $row2['favicon'];?>" width="16" height="16"/> <a href="showurl.php?id=<?php echo $row2['id']?>" title="<?php echo $row2['info'];?>" target="_black"><?php echo $row2['name'];?></a></span>
<?php
}
?>
<span id="join"><a href="join.php" target="_black">分享博客</a></span>
<?php
}else{
echo '<p id="nosearch">不是我们不给,是我们真的没有。</p>';
}
?>
</div>
</div>
<img src="images/content_bottom_wide.png" />
</div><br />
<?php require 'footer.php';?>
</div>
</body>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/qianyugang/bokedaohang.git
git@gitee.com:qianyugang/bokedaohang.git
qianyugang
bokedaohang
bokedaohang
master

Search

0d507c66 1850385 C8b1a773 1850385