<?php echo '唯美设计QQ:474902417商业模板保护！请到官网上购买正版模板 http://addon.discuz.com/?@1439.developer';exit;?>

<!--{subtemplate common/header_common}-->

	<meta name="application-name" content="$_G['setting']['bbname']" />

	<meta name="msapplication-tooltip" content="$_G['setting']['bbname']" />

	<!--{if $_G['setting']['portalstatus']}--><meta name="msapplication-task" content="name=$_G['setting']['navs'][1]['navname'];action-uri={echo !empty($_G['setting']['domain']['app']['portal']) ? 'http://'.$_G['setting']['domain']['app']['portal'] : $_G[siteurl].'portal.php'};icon-uri={$_G[siteurl]}{IMGDIR}/portal.ico" /><!--{/if}-->

	<meta name="msapplication-task" content="name=$_G['setting']['navs'][2]['navname'];action-uri={echo !empty($_G['setting']['domain']['app']['forum']) ? 'http://'.$_G['setting']['domain']['app']['forum'] : $_G[siteurl].'forum.php'};icon-uri={$_G[siteurl]}{IMGDIR}/bbs.ico" />

	<!--{if $_G['setting']['groupstatus']}--><meta name="msapplication-task" content="name=$_G['setting']['navs'][3]['navname'];action-uri={echo !empty($_G['setting']['domain']['app']['group']) ? 'http://'.$_G['setting']['domain']['app']['group'] : $_G[siteurl].'group.php'};icon-uri={$_G[siteurl]}{IMGDIR}/group.ico" /><!--{/if}-->

	<!--{if helper_access::check_module('feed')}--><meta name="msapplication-task" content="name=$_G['setting']['navs'][4]['navname'];action-uri={echo !empty($_G['setting']['domain']['app']['home']) ? 'http://'.$_G['setting']['domain']['app']['home'] : $_G[siteurl].'home.php'};icon-uri={$_G[siteurl]}{IMGDIR}/home.ico" /><!--{/if}-->

	<!--{if $_G['basescript'] == 'forum' && $_G['setting']['archiver']}-->

		<link rel="archives" title="$_G['setting']['bbname']" href="{$_G[siteurl]}archiver/" />

	<!--{/if}-->

	<!--{if !empty($rsshead)}-->$rsshead<!--{/if}-->

	<!--{if widthauto()}-->

		<link rel="stylesheet" id="css_widthauto" type="text/css" href='{$_G['setting']['csspath']}{STYLEID}_widthauto.css?{VERHASH}' />

		<script type="text/javascript">HTMLNODE.className += ' widthauto'</script>

	<!--{/if}-->

	<!--{if $_G['basescript'] == 'forum' || $_G['basescript'] == 'group'}-->

		<script type="text/javascript" src="{$_G[setting][jspath]}forum.js?{VERHASH}"></script>

	<!--{elseif $_G['basescript'] == 'home' || $_G['basescript'] == 'userapp'}-->

		<script type="text/javascript" src="{$_G[setting][jspath]}home.js?{VERHASH}"></script>

	<!--{elseif $_G['basescript'] == 'portal'}-->

		<script type="text/javascript" src="{$_G[setting][jspath]}portal.js?{VERHASH}"></script>

	<!--{/if}-->

	<!--{if $_G['basescript'] != 'portal' && $_GET['diy'] == 'yes' && check_diy_perm($topic)}-->

		<script type="text/javascript" src="{$_G[setting][jspath]}portal.js?{VERHASH}"></script>

	<!--{/if}-->

	<!--{if $_GET['diy'] == 'yes' && check_diy_perm($topic)}-->

		<link rel="stylesheet" type="text/css" id="diy_common" href="{$_G['setting']['csspath']}{STYLEID}_css_diy.css?{VERHASH}" />

	<!--{/if}-->

</head>



<body id="nv_{$_G[basescript]}" class="pg_{CURMODULE}{if $_G['basescript'] === 'portal' && CURMODULE === 'list' && !empty($cat)} {$cat['bodycss']}{/if}" onkeydown="if(event.keyCode==27) return false;">

	<div id="append_parent"></div><div id="ajaxwaitid"></div>

	<!--{if $_GET['diy'] == 'yes' && check_diy_perm($topic)}-->

		<!--{template common/header_diy}-->

	<!--{/if}-->

	<!--{if check_diy_perm($topic)}-->

		<!--{template common/header_diynav}-->

	<!--{/if}-->

	<!--{if CURMODULE == 'topic' && $topic && empty($topic['useheader']) && check_diy_perm($topic)}-->

		$diynav

	<!--{/if}-->

	<!--{if empty($topic) || $topic['useheader']}-->

		<!--{if $_G['setting']['mobile']['allowmobile'] && (!$_G['setting']['cacheindexlife'] && !$_G['setting']['cachethreadon'] || $_G['uid']) && ($_GET['diy'] != 'yes' || !$_GET['inajax']) && ($_G['mobile'] != '' && $_G['cookie']['mobile'] == '' && $_GET['mobile'] != 'no')}-->

			<div class="xi1 bm bm_c">

			    {lang your_mobile_browser}<a href="{$_G['siteurl']}forum.php?mobile=yes">{lang go_to_mobile}</a> <span class="xg1">|</span> <a href="$_G['setting']['mobile']['nomobileurl']">{lang to_be_continue}</a>

			</div>

		<!--{/if}-->

		<!--{if $_G['setting']['shortcut'] && $_G['member'][credits] >= $_G['setting']['shortcut']}-->

			<div id="shortcut">

				<span><a href="javascript:;" id="shortcutcloseid" title="{lang close}">{lang close}</a></span>

				{lang shortcut_notice}

				<a href="javascript:;" id="shortcuttip">{lang shortcut_add}</a>



			</div>

			<script type="text/javascript">setTimeout(setShortcut, 2000);</script>

		<!--{/if}-->



		<!--{if !IS_ROBOT}-->

			<!--{if $_G['uid']}-->

			<ul id="myprompt_menu" class="p_pop" style="display: none;">

				<li><a href="home.php?mod=space&do=pm" id="pm_ntc" style="background-repeat: no-repeat; background-position: 0 50%;"><em class="prompt_news{if empty($_G[member][newpm])}_0{/if}"></em>{lang pm_center}</a></li>

				<li><a href="home.php?mod=follow&do=follower"><em class="prompt_follower{if empty($_G[member][newprompt_num][follower])}_0{/if}"></em><!--{lang notice_interactive_follower}-->{if $_G[member][newprompt_num][follower]}($_G[member][newprompt_num][follower]){/if}</a></li>

				<!--{if $_G[member][newprompt] && $_G[member][newprompt_num][follow]}-->

					<li><a href="home.php?mod=follow"><em class="prompt_concern"></em><!--{lang notice_interactive_follow}-->($_G[member][newprompt_num][follow])</a></li>

				<!--{/if}-->

				<!--{if $_G[member][newprompt]}-->

					<!--{loop $_G['member']['category_num'] $key $val}-->

						<li><a href="home.php?mod=space&do=notice&view=$key"><em class="notice_$key"></em><!--{echo lang('template', 'notice_'.$key)}-->(<span class="rq">$val</span>)</a></li>

					<!--{/loop}-->

				<!--{/if}-->

				<!--{if empty($_G['cookie']['ignore_notice'])}-->

					<li class="ignore_noticeli"><a href="javascript:;" onclick="setcookie('ignore_notice', 1);hideMenu('myprompt_menu')" title="{lang temporarily_to_remind}"><em class="ignore_notice"></em></a></li>

				<!--{/if}-->

			</ul>

			<!--{/if}-->

			<!--{if $_G['uid'] && !empty($_G['style']['extstyle'])}-->

				<div id="sslct_menu" class="cl p_pop" style="display: none;">

					<!--{if !$_G[style][defaultextstyle]}--><span class="sslct_btn" onclick="extstyle('')" title="{lang default}"><i></i></span><!--{/if}-->

					<!--{loop $_G['style']['extstyle'] $extstyle}-->

						<span class="sslct_btn" onclick="extstyle('$extstyle[0]')" title="$extstyle[1]"><i style='background:$extstyle[2]'></i></span>

					<!--{/loop}-->

				</div>

			<!--{/if}-->

			<!--{if $_G['uid']}-->

				<ul id="myitem_menu" class="p_pop" style="display: none;">

					<li><a href="forum.php?mod=guide&view=my">{lang mypost}</a></li>

					<li><a href="home.php?mod=space&do=favorite&view=me">{lang favorite}</a></li>

					<li><a href="home.php?mod=space&do=friend">{lang friends}</a></li>

					<!--{hook/global_myitem_extra}-->

				</ul>

			<!--{/if}-->

			<!--{subtemplate common/header_qmenu}-->

		<!--{/if}-->



		<!--{ad/headerbanner/wp a_h}-->



		<div id="body">

		<header>

		<nav>



		<div class="logo">

			<a href="{if $_G['setting']['domain']['app']['default']}http://{$_G['setting']['domain']['app']['default']}/{else}./{/if}" title="$_G['setting']['bbname']">

				<i></i>

			</a>

		</div>



		<div class="menu">

			<form id="scbar_form" method="{if $_G[fid] && !empty($searchparams[url])}get{else}post{/if}" autocomplete="off" onsubmit="searchFocus($('scbar_txt'))" action="{if $_G[fid] && !empty($searchparams[url])}$searchparams[url]{else}search.php?searchsubmit=yes{/if}" target="_blank">

			<input type="hidden" name="mod" value="forum" />

			<div class="search-input-hull hide">

				<span class="search-ipt"></span>

				<input type="text" name="srchtxt" placeholder="" value="" id="nav-search-ipt" >

				<span class="search-cancel"></span>

				<!--{if $_G['setting']['srchhotkeywords']}-->

				<div id="search-content" class="search-content">

					<div class="search-content-list">

						<div class="search-title">

							{lang hot_search}

						</div>

						<!--{loop $_G['setting']['srchhotkeywords'] $val}-->

						<!--{if $val=trim($val)}-->

							<!--{eval $valenc=rawurlencode($val);}-->

							<!--{block srchhotkeywords[]}-->

								<!--{if !empty($searchparams[url])}-->

								<div class="hot-list search-l">

									<a href="$searchparams[url]?q=$valenc&source=hotsearch{$srchotquery}" target="_blank"  sc="1">$val</a>

								</div>

								<!--{else}-->

								<div class="hot-list search-l">

									<a href="search.php?mod=forum&srchtxt=$valenc&formhash={FORMHASH}&searchsubmit=true&source=hotsearch" target="_blank" sc="1">$val</a>

								</div>

								<!--{/if}-->

							<!--{/block}-->

						<!--{/if}-->

						<!--{/loop}-->

						<!--{echo implode('', $srchhotkeywords);}-->

					</div>

				</div>

				<!--{/if}-->

			</div>

			</form>

			<!--{eval $mnid = getcurrentnav();}-->

			<div class="menu-box">

				<ul class="menu-list-content">

					<!--{loop $_G['setting']['navs'] $nav}-->

					<!--{if $nav['available'] && (!$nav['level'] || ($nav['level'] == 1 && $_G['uid']) || ($nav['level'] == 2 && $_G['adminid'] > 0) || ($nav['level'] == 3 && $_G['adminid'] == 1))}-->

					<!--{eval $nav[nav] = preg_replace('/\<\/a/','',$nav[nav]);}-->

					<li class="header-menu-withmore{if $mnid == $nav[navid]} current{/if}" $nav[nav] {if $_G[setting][subnavs][$nav[navid]]}<i class="drop-down-arrow"></i>{/if}</a>

					<!--{if $_G[setting][subnavs][$nav[navid]]}-->

					<div class="menu-list hide">

						<!--{eval $_G[setting][subnavs][$nav[navid]] = str_replace("li","p",$_G[setting][subnavs][$nav[navid]]);}-->

						$_G[setting][subnavs][$nav[navid]]

					</div>

					<!--{/if}-->

					</li>

					<!--{/if}-->

					<!--{/loop}-->

					<li class="more-menu header-menu-withmore ">

					<span class="menu-tit-box"><i></i><sup class="subnav-dot-sup"></sup></span>

					<div class="menu-list hide">

						<!--{hook/global_cpnav_top}-->

						<!--{loop $_G['setting']['topnavs'][0] $nav}-->

						<!--{if $nav['available'] && (!$nav['level'] || ($nav['level'] == 1 && $_G['uid']) || ($nav['level'] == 2 && $_G['adminid'] > 0) || ($nav['level'] == 3 && $_G['adminid'] == 1))}-->

						<p>

							$nav[code]

						</p>

						<!--{/if}-->

						<!--{/loop}-->

						<!--{hook/global_cpnav_extra1}-->

						<!--{hook/global_cpnav_extra2}-->

						<!--{loop $_G['setting']['topnavs'][1] $nav}-->

						<!--{if $nav['available'] && (!$nav['level'] || ($nav['level'] == 1 && $_G['uid']) || ($nav['level'] == 2 && $_G['adminid'] > 0) || ($nav['level'] == 3 && $_G['adminid'] == 1))}-->

						<p>

							$nav[code]

						</p>

						<!--{/if}-->

						<!--{/loop}-->

					</div>

					</li>

				</ul>

				<!--{hook/global_nav_extra}-->

			</div>

		</div>



		<div class="search"><i></i></div>



		<div class="user-center">

			<!--{if $_G['uid']}-->

			<ul class="login">

				<li class="upload"><a onclick="showWindow('nav', this.href, 'get', 0)" href="forum.php?mod=misc&action=nav" class="upload-link" ></a></li>

				<li class="message-vime">

				<a class="message-list"><i></i>{if $_G[member][newprompt]}<sup class="subnav-num-sup">$_G[member][newprompt]</sup>{elseif $_G[member][newpm]}<sup class="subnav-num-sup">1</sup>{/if}</a>

				<div class="menu-list message-box hide">

					<section>消息盒</section>

					<div id="contetn-2" class="message-box-list-wrapper">

						<ul class="message-box-list">

							<li class="no-news-circle{if $_G[member][newpm]} _new{/if}"><a href="home.php?mod=space&do=pm" id="pm_ntc" >{lang pm_center}{if $_G[member][newpm]} <span class="msg-box-num">有新消息</span>{/if}</a></li>

							<li class="no-news-circle{if $_G[member][newprompt_num][follower]} _new{/if}"><a href="home.php?mod=follow&do=follower" ><!--{lang notice_interactive_follower}-->{if $_G[member][newprompt_num][follower]} <span class="msg-box-num">$_G[member][newprompt_num][follower]</span>{/if}</a></li>

							<!--{if $_G[member][newprompt] && $_G[member][newprompt_num][follow]}-->

							<li><a href="home.php?mod=follow"><!--{lang notice_interactive_follow}--> ($_G[member][newprompt_num][follow])</a></li>

							<!--{/if}-->

							<!--{if $_G[member][newprompt]}-->

							<!--{loop $_G['member']['category_num'] $key $val}-->

							<li class="no-news-circle"><a href="home.php?mod=space&do=notice&view=$key"><!--{echo lang('template', 'notice_'.$key)}--> <span class="msg-box-num">$val</span></a></li>

							<!--{/loop}-->

							<!--{/if}-->

						</ul>

					</div>

					<a href="home.php?mod=space&do=notice" class="check-all">查看全部 </a>

				</div>

				</li>

				<li class="user">

				<a href="home.php?mod=space&uid=$_G[uid]" class="user-list" id="header-logined-user-face">

					<img src="{echo avatar($_G[uid],'big',1);}" title="{$_G[member][username]}" alt="{$_G[member][username]}">

				</a>

				<div class="menu-list user-box hide">

					<section>

						<a href="home.php?mod=space&uid=$_G[uid]">{$_G[member][username]}</a>

					</section>

					<div class="user-box-list">

						<div class="user-box-list-area">

							<p class="works-manange"><a href="home.php?mod=space&do=friend">我的好友</a></p>

							<p class="works-manange"><a href="home.php?mod=space&uid=$_G[uid]">我的作品</a></p>

							<p class="works-manange"><a href="home.php?mod=space&do=favorite">我的收藏</a></p>

						</div>

						<div class="user-box-list-area">

							<p class="works-manange"><a href="home.php?mod=space&uid=$_G[uid]">用户资料</a></p>

							<p class="works-manange"><a href="home.php?mod=spacecp" >用户设置</a></p>

							<!--{if check_diy_perm($topic)}-->

							<p class="works-manange"><a href="javascript:saveUserdata('diy_advance_mode', '1');openDiy();">DIY模式</a></p>

							<!--{/if}-->

							<!--{if ($_G['group']['allowmanagearticle'] || $_G['group']['allowpostarticle'] || $_G['group']['allowdiy'] || getstatus($_G['member']['allowadmincp'], 4) || getstatus($_G['member']['allowadmincp'], 6) || getstatus($_G['member']['allowadmincp'], 2) || getstatus($_G['member']['allowadmincp'], 3))}-->

							<p class="works-manange"><a href="portal.php?mod=portalcp"><!--{if $_G['setting']['portalstatus'] }-->{lang portal_manage}<!--{else}-->{lang portal_block_manage}<!--{/if}--></a></p>

							<!--{/if}-->

							<!--{if $_G['uid'] && $_G['group']['radminid'] > 1}-->

							<p class="works-manange"><a href="forum.php?mod=modcp&fid=$_G[fid]" target="_blank">{lang forum_manager}</a></p>

							<!--{/if}-->

							<!--{if $_G['uid'] && getstatus($_G['member']['allowadmincp'], 1)}-->

							<p class="works-manange"><a href="admin.php" target="_blank">{lang admincp}</a></p>

							<!--{/if}-->

							<div class="hook">

								<!--{hook/global_usernav_extra1}-->

								<!--{hook/global_usernav_extra2}-->

								<!--{hook/global_usernav_extra3}-->

								<!--{hook/global_usernav_extra4}-->

							</div>

						</div>

						<div class="user-box-list-area">

							<p class="works-manange"><a href="member.php?mod=logging&action=logout&formhash={FORMHASH}">{lang logout}</a></p>

						</div>

					</div>

				</div>

				</li>

			</ul>

			<!--{elseif !empty($_G['cookie']['loginuser'])}-->

			<ul class="unlogin">

				<li>

					<a href="javascript:;"><!--{echo dhtmlspecialchars($_G['cookie']['loginuser'])}--><i></i></a>

					<a href="member.php?mod=logging&action=login" onclick="showWindow('login', this.href)">{lang activation}<i></i></a>

					<a href="member.php?mod=logging&action=logout&formhash={FORMHASH}">{lang logout}</a>

				</li>

			</ul>

			<!--{elseif !$_G[connectguest]}-->

			<ul class="unlogin">

				<li>

					<!--{if $_G[connect][login_url]}-->

					<a href="$_G[connect][login_url]&statfrom=login">QQ登陆<i></i></a>

					<!--{/if}-->

					<a href="member.php?mod={$_G[setting][regname]}">$_G['setting']['reglinkname']<i></i></a>

					<a href="member.php?mod=logging&action=login" onClick="showWindow('login', this.href)">{lang login}</a>

				</li>

			</ul>

			<!--{else}-->

			<ul class="unlogin">

				<li>

					<a href="javascript:;">{$_G[member][username]}<i></i></a>

					<!--{hook/global_usernav_extra1}-->

					<a href="member.php?mod=logging&action=logout&formhash={FORMHASH}">{lang logout}</a>

				</li>

			</ul>

			<!--{/if}-->

		</div>



		</nav>

		</header>

		<!--{hook/global_header}-->

	<!--{/if}-->



	<!--{if !empty($_G['style']['extstyle'])}-->

	<div class="style-skin"></div>

	<!--{/if}-->



	<div id="wp" class="main-wrapper wp">



	<!--{subtemplate common/setup}-->
