<!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=<?php echo SYS_CHARSET ?>" />
<title>搜索_<?php echo $sys_title ?></title>
<meta name="keywords" content="<?php echo $sys_title ?>" />
<meta name="description" content="<?php echo $sys_title ?>" />
<link rel="stylesheet" type="text/css" href="<?php echo SYS_FRONT_STYLE_PATH?>style/search.css" />
<script type="text/javascript" src="<?php echo SYS_FRONT_STYLE_PATH?>js/common.js"></script>
<script>
function setTab(selectid,searchwhere,msg)
{
	var tabs=document.getElementById('searchtabs').getElementsByTagName('span');
	for(i=0; i<tabs.length; i++) { tabs[i].className=''; }
	document.getElementById(selectid).className='active';
	document.getElementById('search_title').innerHTML=msg;
	document.getElementById('searchwhere').value=searchwhere;
	
}

</script>
<base target="_self" />
</head>

<body>
<?php include("inc_topbar.tpl.html"); ?>
<div id="wrap">
<!--Content, Left, Right, Middle, Outer, Advertisement--> 
<!--Header-->
<div id="header">
<?php 
include("inc_pagetitle.tpl.html"); 
include("inc_mainmenu.tpl.html"); 
include("inc_submenu.tpl.html"); 
$navigation = '&gt;&gt; 搜索';
include("inc_navigation.tpl.html"); 
?>
</div>
<!--/Header-->

<h1>搜索</h1>
<div id="search">
<p id="searchtabs">
<span id="contenttab" onclick="setTab('contenttab','content','内容')">内容</span>
<span id="authortab" onclick="setTab('authortab','nickname','发布者')">发布者</span>
<span id="titletab" class="active" onclick="setTab('titletab','title','标题')">标题</span>
</p>
<!--标题搜索-->
<div id="subject" class="tabcontent">
<form action="search.php" method="post">
<input type="hidden" name="searchwhere" id="searchwhere" value="title">
<label id="search_title" for="searchkey">标题</label>
<input type="text" name="searchkey" id="searchkey" >&nbsp;
<select name="type">
<option value="">全部</option>
$search_select
</select>&nbsp;<button type="submit" name="subjectsearch" value="true">搜索</button>
</form>
</div>

</div>

<?php include("inc_footer.tpl.html"); ?>
</div>
</body>
</html>