4 Star 1 Fork 3

forecho / bokedaohang

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
index.php 5.22 KB
一键复制 编辑 原始数据 按行查看 历史
forecho 提交于 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 type="text/javascript" src="js/jquery_01.js"></script>
<script src="js/interface.js" type="text/javascript"></script>
<script type="text/javascript" src="js/scrolltopcontrol.js"></script>
<script type="text/javascript">
$(function(){
var $category=$(".nav > .recommend");
$category.hide();
var $toggleBtn=$(".button span");
$toggleBtn.click(function(){
if($(this).parent(".button").next().is(":visible")){
$(this).parent(".button").next().slideUp("slow");
$(this).css("background","url(images/button.gif) 0px 0px").text("展开");
}else{
$(this).parent(".button").next().slideDown("slow");
$(this).css("background","url(images/button.gif) 0px 33px").text("收起");
}
return false;
});
$("#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 type="text/javascript">
///友情链接图标favicon
jQuery(document).ready(function($){
$(".link").each(function(e){
$(this).prepend("<img src=http://www.google.com/s2/favicons?domain="+this.href.replace(/^(http:\/\/[^\/]+).*$/, '$1').replace( 'http://', '' )+" style=float:left;padding-top:12px;padding-right:2px;>");
});
$(".foot a").each(function(){$(this).css("color","#676767")}).hover(function(){
$(this).animate({style:"color:#000000"})
},function(){
$(this).animate({style:"color:#676767"})
});
});
</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" alt="" />
<div class="nav">
<div class="navtop1">
<!-- <span class="blog"> <a href="index.php?r=1">推荐博客</a></span> -->
<?php
$sql0 = mysql_query("select * from classify");
while($row0 = mysql_fetch_array($sql0)){
?>
<span class="blog"> <a href="index.php?classname=<?php echo $row0['classname'] ?>"><?php echo $row0['classname'] ?></a></span>
<?php };?>
</div>
</div>
<img src="images/content_bottom_wide.png" alt="" />
</div><br />
<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");
if($_GET[classname] !=""){
$search = mysql_query("select * from links where classname='$_GET[classname]' and audit=1 order by rand() limit 1");
}
$searchbox = mysql_fetch_array($search);
?>
<p class="navtitle">
<?php
if($_GET[classname] !=""){
echo "$_GET[classname]";
}else{
echo "推荐博客";
}
?>
<a href="showurl.php?id=<?php echo $searchbox['id'];?>" title='随机打开<?php if($_GET[classname] != ""){echo "$_GET[classname]";}else{echo "本站博客";} ?>'>随便逛逛</a>
</p>
<div class="navtop">
<?php
$sql = mysql_query("select * from links where recommend=1 and audit=1 order by visit desc");
if($_GET[searchbox] !=""){
$sql = mysql_query("select * from links where concat(id,name,link) like '%$_GET[searchbox]%' and audit=1 order by visit desc");
}
if($_GET[classname] !=""){
$sql = mysql_query("select * from links where classname='$_GET[classname]' and audit=1 order by visit desc");
}
if($_GET[r] !=""){
$sql = mysql_query("select * from links where recommend=1 and audit=1 order by visit desc");
}
$row = mysql_fetch_array($sql);
do{
?>
<span class="blog"><a href="<?php echo $row['link'];?>" class="link" target="_black"></a><a href="showurl.php?id=<?php echo $row['id']?>" title="<?php echo $row['info'];?>" target="_black"><?php echo $row['name'];?></a></span>
<?php
}
while ($row = mysql_fetch_array($sql));
?>
<span id="join"><a href="join.php" target="_black">分享博客</a></span>
</div>
</div>
<img src="images/content_bottom_wide.png" />
</div><br />
<?php require 'footer.php';?>
</div>
</body>
</html>
PHP
1
https://gitee.com/forecho/bokedaohang.git
git@gitee.com:forecho/bokedaohang.git
forecho
bokedaohang
bokedaohang
master

搜索帮助