<?php
if(!defined('IN_GATEWEI')){
	exit('Access Denied'); 
}
?>
<div id="header">
		<div id="sitelogo"><a href="index.php"><?php echo $sitelogo='<img src="./templates/default/images/sitelogo.gif" alt='.$sitename.'>'?></a></div>
		<div id="search">
		<?php if($gid!=4){?>
		<?php echo $userid?>,欢迎你！ | <a href="verify.php?action=loginout" >退出登陆</a> 
		| <a href="verify.php?action=panel" >控制面板</a>
		<?php if($newmsgcount){?>
		(<?php echo $newmsgcount?>条新短消息)
		<bgsound src="images/audio/newmsg.wav" />
		<?php }?>
		<?php if($pervalue{18}){?>
		| <a href="verify.php?action=siteadmin" >系统管理</a>
		<?php }?>
		<?php }else{?>	
		gatewei建站引擎欢迎你！ 
		<?php if(CURSCRIPT=="index"){ ?>
		<?php if($allowedauthcode{5}){ ?>
		<a href="javascript:void(0)" onclick="popwindows('a',2,1)">用户登录</a>
		<?php }else{?>
		<a href="javascript:void(0)" onclick="popwindows('a',2,0)">用户登录</a>
		<?php }}else{?>
		<a href="memberlogin.php" >用户登录</a>
		<?php }?>
		| <a href="<?php echo $registerfilename?>"><?php echo $registerlinkword?></a>
		<?php }?>
		| <a href="sitemap.php">网站地图</a> | 
		<a onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('<?php echo site(1)?>');" href="javascript:void(0)">设为主页</a> |
		<a href="javascript:void(0)" onclick="javascript:window.external.AddFavorite('<?php echo site(1)?>','<?php echo $sitename?>')">收藏本站</a> |
		<a id="rss" onmouseover="showMenu(this.id,0,2)" href="javascript:void(0)">RSS</a>
<div id="rss_menu" style="display:none">
<a href="rss.php?rssid=1">文章订阅</a>
<a href="rss.php?rssid=2">产品订阅</a>
<a href="rss.php?rssid=3" class="last">主题订阅</a>
</div>
 <br/>
<div id="searchform" method="post" autocomplete="off" action="search.php?searchsubmit=yes" target="_blank">
<input type="text" id="searchword" name="searchword" class="searchtxt" value="请输入搜索内容" autocomplete="off" onfocus="searchfocus(this.id)" />
<a id="searchtype" onmouseover="showMenu(this.id)" class="dropmenu" href="javascript:void(0)">搜索</a>
</div>
<div id="searchtype_menu" style="display: none">
<a id="article_search_btn" href="javascript:void(0)" onclick="submitsearch(this.id)">文章</a>
<a id="product_search_btn" href="javascript:void(0)" onclick="submitsearch(this.id)">产品</a>
<a id="thread_search_btn" href="javascript:void(0)" onclick="submitsearch(this.id)" class="lastone">论坛</a>
</div>
		
		</div>
</div>