Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修正搜索框 #6

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
94 changes: 77 additions & 17 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
ul li { list-style: none; }
/*导航开始*/
#nav {margin:0 auto 10px; width:1280px; display:block;background:#DE0023;}
#nav .jquery_out {float:right;line-height:30px; background:#DE0023; width:268px; padding-top:9px;}
#nav .jquery_out {float:right;line-height:30px; background:#DE0023; width:268px; padding-top:9px;padding-bottom:9px;}
#nav .mainlevel {background:#DE0023; float:left; border-right:1px solid #fff; width:140px;font:18px/normal 微软雅黑; font-weight:bold;}
#nav .mainlevel a {color:#fff; text-decoration:none; line-height:48px; display:block; width:140px; text-align:center; }
#nav .mainlevel a:hover {color:#fff; text-decoration:none; background:#062723 url(../images/slide-panel_03.png) 0 0 repeat-x;}
Expand Down Expand Up @@ -62,8 +62,8 @@ a:hover { text-decoration: underline; color: #a50001; }
.tabqh .menu{height:35px;width:317px;}
.tabqh .menu ul{margin:0px;padding:0px;height:26px;list-style:none;text-align:center;}
.tabqh .menu li{display:block;float:left;height:25px;line-height:25px;margin-left:0px;margin-top:5px;width:100px;}
.tabqh .menu li a{color:#000000;font:16px/normal 微软雅黑; font-weight:bold;text-decoration:none;display:block; }
.tabqh .menu li a.tabactive{color:#fff;font:16px/normal 微软雅黑; font-weight:bold;height:25px;background-color:#DE0023}
.tabqh .menu li a{color:#000000;font:16px/normal ; font-weight:bold;text-decoration:none;display:block;padding-top:8px }
.tabqh .menu li a.tabactive{color:#fff;font:16px/normal "Microsoft YaHei"; font-weight:bold;height:25px;background-color:#DE0023}
.tabqh .tabdiv ul{list-style:none;padding-top:10px;}
.tabqh .tabdiv ul li{height:24px;line-height:24px;overflow:hidden; no-repeat:left center;text-indent:0px;}
.tabqh .tabdiv ul li a{text-decoration:none;color:#000000;}
Expand All @@ -81,12 +81,12 @@ a:hover { text-decoration: underline; color: #a50001; }



.tabqh2{height:365px;margin:0px auto;position:relative;width:300px;}
.tabqh2{padding-top:3px;height:365px;margin:0px ;position:relative;width:300px;}
.tabqh2 .menu{height:35px;width:300px;}
.tabqh2 .menu ul{margin:0px;padding:0px;height:26px;list-style:none;text-align:center;}
.tabqh2 .menu li{display:block;float:left;height:25px;line-height:25px;margin-left:30px;font:微软雅黑;margin-top:5px;width:100px;}
.tabqh2 .menu li a{color:#000000;font:16px/normal 微软雅黑; font-weight:bold;text-decoration:none;display:block; }
.tabqh2 .menu li a.tabactive{color:#fff;font:16px/normal 微软雅黑; font-weight:bold;height:25px;background-color:#DE0023}
.tabqh2 .menu li{display:block;float:left;height:25px;line-height:25px;margin-left:30px;font:"Microsoft YaHei";margin-top:5px;width:100px;}
.tabqh2 .menu li a{color:#000000;font:16px/normal "Microsoft YaHei"; font-weight:bold;text-decoration:none;display:block;padding-top:8px }
.tabqh2 .menu li a.tabactive{color:#fff;font:16px/normal "Microsoft YaHei"; font-weight:bold;height:25px;background-color:#DE0023}
.tabqh2 .tabdiv ul{list-style:none;}
.tabqh2 .tabdiv ul li{height:30px;line-height:30px;overflow:hidden; no-repeat:left center;text-indent:0px;}
.tabqh2 .tabdiv ul li a{text-decoration:none;color:#000000;}
Expand All @@ -104,12 +104,12 @@ a:hover { text-decoration: underline; color: #a50001; }



.tabqh3{padding-top:12px;position:relative;width:300px;}
.tabqh3 .menu{height:15px;width:300px;}
.tabqh3{padding-top:7px;position:relative;width:300px;}
.tabqh3 .menu{height:35px;width:300px;}
.tabqh3 .menu ul{padding-top:5px;padding:0px;height:26px;list-style:none;text-align:center;}
.tabqh3 .menu li{display:block;float:left;height:25px;line-height:25px;margin-left:30px;margin-top:5px;width:100px;}
.tabqh3 .menu li a{color:#000000;font:16px/normal 微软雅黑; font-weight:bold;text-decoration:none;display:block; }
.tabqh3 .menu li a.tabactive{color:#fff;font:16px/normal 微软雅黑; font-weight:bold;height:25px;background-color:#DE0023}
.tabqh3 .menu li a{color:#000000;font:16px/normal "Microsoft YaHei";; font-weight:bold;text-decoration:none;display:block;padding-top:8px}
.tabqh3 .menu li a.tabactive{color:#fff;font:16px/normal "Microsoft YaHei"; font-weight:bold;height:25px;background-color:#DE0023}
.tabqh3 .tabdiv ul{padding-top:10px;}
.tabqh3 .tabdiv ul li{height:24px;line-height:24px;overflow:hidden; no-repeat:left center;text-indent:0px;}
.tabqh3 .tabdiv ul li a{text-decoration:none;color:#000000;}
Expand Down Expand Up @@ -146,34 +146,35 @@ a{ color:#6cf;}
font-weight: bold;
color: #000000;
line-height:20px;

font-family:"Microsoft YaHei";
}
.black12-1{
font-size: 12px;
color: #000000;
line-height:20px;

font-family:"Microsoft YaHei";
}
.white12{
font-size: 12px;
color: #fff;
line-height:20px;

font-family:"Microsoft YaHei";
}
.black14{
font-size: 14px;
color: #000000;
line-height:30px;
padding-left:1px;

overflow:hidden;
font-family:"Microsoft YaHei";

}
.black14-40{
font-size: 14px;
color: #000000;
line-height:40px;
padding-left:1px;

font-family:"Microsoft YaHei";

}
.grey10{
Expand Down Expand Up @@ -205,6 +206,7 @@ float:right;
color: #cccccc;
line-height:20px;
padding-left:18px;
font-family:"Microsoft YaHei";

}
.grey10bg{
Expand All @@ -214,12 +216,13 @@ float:right;
float:right;
line-height:18px;
vertical-align:sub;
font-family:"Microsoft YaHei";
}
.greyfriend{
font-size: 12px;
color: #666666;
line-height:20px;

font-family:"Microsoft YaHei";
}
.blue20{
font-size: 20px;
Expand All @@ -232,4 +235,61 @@ float:right;
.li{
list-style: square inside url('../images/temp/dd.jpg');

}

fieldset.search {
padding: 0px;
border: none;
width: 240px;
height:26px;
background:#ffffff;
display:inline-block;
margin-top:2px;
margin-bottom:2px;
}

.search input, .search button {
border: none;
margin-top: 0px;
padding-top: 0px;
}
.search input.box {
height: 23px;
width: 162px;
margin: 0px;
padding: 0px;
background: #ffffff;
position:relative;
top:-4px;
left:2px;
font-family:"Microsoft YaHei";
}
.search input.box:focus {
background: #e8e8e8 ;
outline: none;
}
.search button.btn {

width: 70px;
height: 22px;
margin: 1px;
background: url(../images/temp/searchbtn.jpg) no-repeat ;
background-size:70px 22px;
}
.search button.btn:hover {
background: url(../images/temp/searchbtn2.jpg) no-repeat ;
background-size:70px 22px;
}

.sub-title{

color:#D4000D;
margin:auto;
font-size:17px;
font-weight:bolder;
-moz-user-select: -moz-none;
-khtml-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
user-select: none;
}
4 changes: 2 additions & 2 deletions footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
</table></td>
<td width="644"><table width="604" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="111"><img src="<?php bloginfo('template_url'); ?>/images/icons/logo1.jpg" width="111" height="54" /></td>
<td width="70"><img src="<?php bloginfo('template_url'); ?>/images/icons/logo2.png" width="54" height="54" /></td>
<td width="493"><font class="white12">版权所有:共青团东北大学委员会 | 地址:辽宁省沈阳市和平区文化路三巷11号 <br />
设计制作:团委 运维:网络中心&nbsp;&nbsp;| 辽ICP备05001360号</font></td>
设计制作:团委 运维:网络中心&nbsp;&nbsp;| 辽ICP备05001360号<br /> 投稿邮箱:[email protected]</font></td>
</tr>
</table></td>
</tr>
Expand Down
10 changes: 9 additions & 1 deletion header.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,15 @@
<li><a href="http://www.lanrentuku.com/" target="_blank">办事指南</a></li>
</ul>
</li>
<li class="jquery_out" style="padding-left:25px;"><img src="<?php bloginfo('template_url'); ?>/images/temp/searchbg.jpg" / width="260"></li>
<li class="jquery_out" style="padding-left:25px;">
<form method="get" id="searchform" action="#">
<fieldset class="search">

<input type="text" class="box" name="s" id="s" placeholder="" >
<button class="btn" title="SEARCH" type="submit"></button>
</fieldset>
</form>
</li>
<div class="clear"></div>
</ul>
</div>
Expand Down
Binary file added images/icons/logo2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/temp/searchbtn.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/temp/searchbtn2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/temp/specialtopic1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/temp/specialtopic2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 23 additions & 16 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@
</tr>
</table>
<div id="tabContent1" name="divNumber" class="tabdiv">
新浪调用 </div>
<iframe width="100%" height="160" class="share_self" frameborder="0" scrolling="no" src="http://widget.weibo.com/weiboshow/index.php?language=&width=0&height=160&fansRow=2&ptype=1&speed=0&skin=5&isTitle=0&noborder=1&isWeibo=1&isFans=0&uid=5293007529&verifier=1f9f3b9c&dpc=1"></iframe></div>
<div id="tabContent2" name="divNumber" class="tabdiv hiddendiv">
腾讯调用 尺寸最大宽为300PX; </div>
</div></td>
Expand All @@ -206,7 +206,7 @@
while($query->have_posts()): $query->the_post();
?>
<tr>
<td width="332" height="24"><a href="<?php the_permalink();?>" class="blue20"><?php echo mb_strimwidth(get_the_title(), 0, 33,"...","UTF-8"); ?></a></td>
<td width="332" height="24" align="center"><a href="<?php the_permalink();?>" class="blue20"><?php echo mb_strimwidth(get_the_title(), 0, 33,"...","UTF-8"); ?></a></td>
</tr>
<tr>
<td style="padding:5px;"><font class="grey12-more"><?php echo get_the_excerpt();?><a href="<?php the_permalink() ?>" class="grey10bg">更多>></a></td>
Expand Down Expand Up @@ -244,10 +244,10 @@

<td width="320" valign="top"><table width="304" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="320" height="26" >
<td width="304" height="26" >

<table width="320">
<td><ul ><li style="list-style:square inside url('<?php bloginfo('template_url'); ?>/images/dot3.jpg');color:#D4000D;margin:auto;font-size:17px;font-weight:bolder">学院团训</li></ul></td>
<table width="304">
<td><ul ><li class="sub-title" style="list-style:square inside url('images/dot3.jpg');color:#D4000D;margin:auto;font-size:17px;font-weight:bolder">学院团训</li></ul></td>
<td><a href="more.php" class="grey12-more">更多&gt;&gt;</a></td>
</table>

Expand Down Expand Up @@ -277,13 +277,13 @@
<tr>
<td >
<table width="315">
<td><ul ><li style="list-style:square inside url('<?php bloginfo('template_url'); ?>/images/dot3.jpg');color:#D4000D;margin:auto;font-size:17px;font-weight:bolder">思想引领行动</li></ul></td>
<td><ul ><li class="sub-title" style="list-style:square inside url('images/dot3.jpg');color:#D4000D;margin:auto;font-size:17px;font-weight:bolder">思想引领行动</li></ul></td>
<td><a href="more.php" class="grey12-more">更多&gt;&gt;</a></td>
</table>
</td>
<td >
<table width="320">
<td><ul ><li style="list-style:square inside url('<?php bloginfo('template_url'); ?>/images/dot3.jpg');color:#D4000D;margin:auto;font-size:17px;font-weight:bolder">素质拓展行动</li></ul></td>
<td><ul ><li class="sub-title" style="list-style:square inside url('images/dot3.jpg');color:#D4000D;margin:auto;font-size:17px;font-weight:bolder">素质拓展行动</li></ul></td>
<td><a href="more.php" class="grey12-more">更多&gt;&gt;</a></td>
</table>
</td>
Expand Down Expand Up @@ -322,13 +322,13 @@
<tr>
<td >
<table width="315">
<td><ul ><li style="list-style:square inside url('<?php bloginfo('template_url'); ?>/images/dot3.jpg');color:#D4000D;margin:auto;font-size:17px;font-weight:bolder">权益服务行动</li></ul></td>
<td><ul ><li class="sub-title" style="list-style:square inside url('images/dot3.jpg');color:#D4000D;margin:auto;font-size:17px;font-weight:bolder">权益服务行动</li></ul></td>
<td><a href="more.php" class="grey12-more">更多&gt;&gt;</a></td>
</table>
</td>
<td >
<table width="320">
<td><ul ><li style="list-style:square inside url('<?php bloginfo('template_url'); ?>/images/dot3.jpg');color:#D4000D;margin:auto;font-size:17px;font-weight:bolder">组织提升行动</li></ul></td>
<td><ul ><li class="sub-title" style="list-style:square inside url('images/dot3.jpg');color:#D4000D;margin:auto;font-size:17px;font-weight:bolder">组织提升行动</li></ul></td>
<td><a href="more.php" class="grey12-more">更多&gt;&gt;</a></td>
</table>
</td>
Expand Down Expand Up @@ -368,13 +368,13 @@
<tr>
<td >
<table width="315">
<td><ul ><li style="list-style:square inside url('<?php bloginfo('template_url'); ?>/images/dot3.jpg');color:#D4000D;margin:auto;font-size:17px;font-weight:bolder">东大青年</li></ul></td>
<td><ul ><li class="sub-title" style="list-style:square inside url('images/dot3.jpg');color:#D4000D;margin:auto;font-size:17px;font-weight:bolder">东大青年</li></ul></td>

</table>
</td>
<td >
<table width="320">
<td><ul ><li style="list-style:square inside url('<?php bloginfo('template_url'); ?>/images/dot3.jpg');color:#D4000D;margin:auto;font-size:17px;font-weight:bolder">特别专题</li></ul></td>
<td><ul ><li class="sub-title" style="list-style:square inside url('images/dot3.jpg');color:#D4000D;margin:auto;font-size:17px;font-weight:bolder">特别专题</li></ul></td>

</table>
</td>
Expand All @@ -399,7 +399,14 @@
<div class="og_next"></div>
</div></td><!-- 杂志结束 -->
<!-- 特别专题开始 -->
<td width="320"><img src="<?php bloginfo('template_url'); ?>/images/temp/specialsub.jpg" width="300" height="143" /></td>
<td width="320">
<table width="320">
<tr><td width="100%" height="5%" bgcolor="#ffffff"></td></tr>
<tr><td><img src="<?php bloginfo('template_url'); ?>images/temp/specialtopic1.jpg" width="300" height="60" /></tr>
<tr><td width="100%" height="5%" bgcolor="#ffffff"></td></tr></td>
<tr><td><img src="<?php bloginfo('template_url'); ?>images/temp/specialtopic2.jpg" width="300" height="60" /></td></tr>
</table>
</td>
<!-- 特别专题结束 -->
</tr>
</table></td>
Expand All @@ -409,8 +416,8 @@
<tr>
<td width="317" height="26" >

<table width="320">
<td><ul ><li style="list-style:square inside url('<?php bloginfo('template_url'); ?>/images/dot3.jpg');color:#D4000D;margin:auto;font-size:17px;font-weight:bolder">通知公告</li></ul></td>
<table width="317">
<td><ul ><li class="sub-title" style="list-style:square inside url('images/dot3.jpg');color:#D4000D;margin:auto;font-size:17px;font-weight:bolder">通知公告</li></ul></td>
<td><a href="more.php" class="grey12-more">更多&gt;&gt;</a></td>
</table>

Expand Down Expand Up @@ -583,8 +590,8 @@
<tr>
<td width="317" height="26" >

<table width="320">
<td><ul ><li style="list-style:square inside url('<?php bloginfo('template_url'); ?>/images/dot3.jpg');color:#D4000D;margin:auto;font-size:17px;font-weight:bolder">友情链接</li></ul></td>
<table width="317">
<td><ul ><li class="sub-title" style="list-style:square inside url('images/dot3.jpg');color:#D4000D;margin:auto;font-size:17px;font-weight:bolder">友情链接</li></ul></td>
<td><a href="more.php" class="grey12-more">更多&gt;&gt;</a></td>
</table>

Expand Down
27 changes: 27 additions & 0 deletions search.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php
$search_query =& new WP_Query("s=$s & showposts=-1");

get_header(); ?>

<section class="main clearfix">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" class="search_post">
<div class="search_title">
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" rel="bookmark">
<?php the_title(); ?>
</a></div>
<?php the_date() ?> <?php the_time() ?>
</div>
<?php endwhile; else: ?>
<p class="search_text">
<?php _e('您要搜索的内容不存在'); ?>
</p>
<?php endif; ?>
<div class="nav-previous">
<?php previous_posts_link(__('« Older Entries', 'kubrick')); ?>
</div>
<div class="nav-next">
<?php next_posts_link(__('Newer Entries »', 'kubrick')); ?>
</div>
</section>
<?php get_footer(); ?>