<!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" />
{meta}
<title>{pagetitle} {config.seotitle} - {config.webtitle} - Powered by Discuz!NT</title>
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" /> 
<!-- 调用样式表 -->
<link rel="stylesheet" href="templates/{templatepath}/website.css" type="text/css" media="all"  />
{link}
<script type="text/javascript" src="javascript/template_report.js"></script>
<script type="text/javascript" src="javascript/template_utils.js"></script>
<script type="text/javascript" src="javascript/common.js"></script>
<script type="text/javascript" src="javascript/menu.js"></script>
{script}
</head>
<body>
<div id="container">
<div id="wraper">
<!--header start-->
<div id="header">
	<h2><a href="{config.forumurl}" title="Discuz!NT|BBS|论坛 - Powered by Discuz!NT"><img src="templates/{templatepath}/images/logo.jpg" alt="Discuz!NT|BBS|论坛"/></a>
	</h2>
	<%if {headerad}!=""%>
		<div id="ad_headerbanner">{headerad}</div>
	<%/if%>
</div>

<div id="menu">
	<span class="avataonline">
		<%if {userid}==-1%>
		<form id="loginform" name="login" method="post" action="login.aspx?loginsubmit=true">
			<input type="hidden" name="referer" value="website.aspx" />
			<input onclick="if(this.value=='用户名')this.value = ''" value="用户名" tabindex="1" maxlength="40" size="15" name="username" id="username" type="text" />
			<input type="password" size="10" name="password" id="password" tabindex="2" />
			<button value="true" type="submit" name="userlogin"> 登录 </button>
			<a href="{forumurl}register.aspx" >注册</a>
		</form>
		<%else%>
			<%if {oluserinfo.newpms}>0%>
			&nbsp;<a href="{forumurl}usercpinbox.aspx" class="new_info"><img src="{forumurl}templates/{templatepath}/images/message_1.gif" alt="{oluserinfo.newpms}条新短消息"  title="{oluserinfo.newpms}条新短消息"/></a>&nbsp;
			<%/if%>
		   <%set {aspxrewriteurl} = this.UserInfoAspxRewrite({userid})%>
		  <cite>欢迎:<a class="dropmenu" id="viewpro" onmouseover="showMenu(this.id)">{username}</a></cite>
			<%if {oluserinfo.newnotices}>0%>
			&nbsp;<a href="{forumurl}usercpnotice.aspx?filter=all" class="new_info">{oluserinfo.newnotices}个新通知</a>&nbsp;
			<%/if%>
		   <a href="{forumurl}logout.aspx?userkey={userkey}&reurl=website.aspx">退出</a>
		<%/if%>
	</span>
	
	<ul>
		{mainnavigation}
	</ul>
</div>


<div id="infobox">	
	<div id="ntforumposition">
	<div class="ntforumnote">
		<dl>
			<dd style="font-weight:bold;"><a href="{forumurl}forumindex.aspx">{config.forumtitle}</a></dd>
			<%if {announcementcount}>0%>
			<dt>公告:</dt>
			<dd style="width:400px;">
				<marquee width="98%" direction="left" scrollamount="2" scrolldelay="1" onmouseover="this.stop();" onmouseout="this.start();">
				<%loop announcement announcementlist%>
					<a href="{forumurl}announcement.aspx#{announcement[id]}">{announcement[title]}</a><cite><%datetostr({announcement[starttime]},"MM.dd")%></cite>
				<%/loop%>
				</marquee>			
			</dd>
			<%/if%>
		</dl>
	</div>		    
	<div class="ntforumsearch">
		<div id="search">
			<%template _quicksearch%>
		</div>
	</div>
    </div>
</div>