<!--<?php
$tmpAPPTitle = array('article'=>'帖子','diary'=>'日志','galbum'=>'相册','group'=>'群组','groups'=>'群组','hot'=>'热榜','photos'=>'相册','sharelink'=>'分享','share'=>'分享','write'=>'记录');
$userdb['username'] && $webPageTitle = $userdb['username'] . ' - ' . $webPageTitle;
isset($tmpAPPTitle[$q]) && $webPageTitle = $tmpAPPTitle[$q].' - '.$webPageTitle;
print <<<EOT
--><!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" id="html">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=$db_charset" />
<title>$webPageTitle</title>
<meta name="generator" content="PHPWind $wind_version" />
<meta name="description" content="$metaDescription" />
<meta name="keywords" content="$metaKeywords" />
<meta http-equiv="x-ua-compatible" content="ie=7" />
<link rel='archives' title='$db_bbsname' href='$db_bbsurl/simple' />
<!--
EOT;
if($fid){print <<<EOT
-->
<link rel="alternate" type="application/rss+xml" title="RSS" href="$db_bbsurl/rss.php?fid=$fid" />
<!--
EOT;
}print <<<EOT
-->
<base id="headbase" href="$db_bbsurl/" />
<link rel="stylesheet" type="text/css" href="$imgpath/wind-reset.css" />
<link rel="stylesheet" type="text/css" href="$imgpath/apps/total.css" />
<!--
EOT;
if($pwModeCss){print <<<EOT
-->
<link rel="stylesheet" type="text/css" href="$pwModeCss" />
<!--
EOT;
}print <<<EOT
-->
<SCRIPT type="text/javascript" LANGUAGE="JavaScript" src="js/core/core.js"></SCRIPT>
<script type="text/javascript" language="JavaScript" src="js/pw_ajax.js"></script>
<script language="JavaScript">
var imgpath = '$imgpath';
var verifyhash = '$verifyhash';
var modeimg = '$pwModeImg';
var modeBase = '$baseUrl';
var winduid = '$winduid';
var windid	= '$windid';
var groupid	= '$groupid';
var basename = '$basename';
var temp_basename = '$temp_basename';
</script>
</head>
<body onkeydown="try{keyCodes(event);}catch(e){}" id="body">
<div class="wrap">
<div class="o_topbar_wrap">
	<div class="o_topbar">
    	<div class="cc">
        	<a href="$db_bbsurl/index.php?m=o" class="logo"><h1>phpwind</h1></a>
			<ul class="o_nav">
<!--
EOT;
foreach($o_navinfo as $key=>$value){
if ($key == 'KEYhome' || $key == 'KEYindex' || $key == 'KEYbrowse') {
if ($key == 'KEYhome' && $winduid) {print <<<EOT
-->
				<li id="o_$key"><span>{$value['html']}</span></li>
<!--
EOT;
} elseif ($key == 'KEYindex' && !$winduid) {
$q = 'home';print <<<EOT
-->
				<li id="o_$key"><span>{$value['html']}</span></li>
<!--
EOT;
} elseif ($key == 'KEYbrowse' && $winduid && $o_browseopen) {print <<<EOT
-->
				<li id="o_$key"><span>{$value['html']}</span></li>
<!--
EOT;
}}else{print <<<EOT
-->
				<li id="o_$key"><span>{$value['html']}</span></li>
<!--
EOT;
}}print <<<EOT
-->
			</ul>
            <div class="login_info">
<!--
EOT;
$db_menuinit .= ",'td_omainNav' : 'menu_omainNav'";
if($groupid=='guest'){
print <<<EOT
-->
				<a href="$_mainUrl" style="margin-right:2px;" id="td_omainNav"><span class="fl cp">返回社区首页</span><span class="f9" >▼</span></a><a href="login.php" title="登录" class="b">登录</a><a href="$regurl" class="b">注册</a>
<!--
EOT;
} else {print <<<EOT
-->
				<a href="u.php?action=show"><b>{$windid}</b></a>
				<a href="$loginouturl">退出</a><i></i>
<!--
EOT;
if($winddb[newpm]>0 && $_G[maxmsg]>0){print <<<EOT
-->
				<a href="message.php?type=newmsg" id="td_msg" class="meg" title="有新短消息" target="_blank">消息<span class="green">({$winddb[newpm]})</span></a>
<!--
EOT;
} else {print <<<EOT
-->
				<a href="message.php" id="td_msg" title="消息" target="_blank">消息</a>
<!--
EOT;
}if($db_job_isopen){print <<<EOT
-->
                <a href="jobcenter.php" id="newjob" hidefocus="true" num="$jobnum">任务<span class="green">$jobnum</span></a>
<!--
EOT;
}$db_menuinit .= ",'td_profile' : 'menu_profile'";print <<<EOT
-->
				<a id="td_profile" href="profile.php" target="_blank">设置<span class="f9">▼</span></a><i></i>
               	<a id="td_omainNav" href="$_mainUrl">返回社区首页<span class="f9">▼</span></a>
<!--
EOT;
if(CkInArray($windid,$manager) || $SYSTEM['allowadmincp']){print <<<EOT
-->
                <a href="$db_adminfile" target="_blank" style="color:#feff8c;">系统设置</a>
<!--
EOT;
}print <<<EOT
-->
<!--
EOT;
}print <<<EOT
-->
            </div>
        </div>
    </div>
</div>
<div id="menu_profile" style="display:none;">
	<div class="o_top_menu" style="width:58px;">
	<h4><a href="profile.php" target="_blank">设置<span class="f9" >▼</span></a></h4>
    <ul>
        <li><a href="profile.php?action=modify" target="_blank">帐号</a></li>
        <li><a href="profile.php?action=privacy" target="_blank">隐私</a></li>
        <li><a href="userpay.php" target="_blank">积分</a></li>
        <li><a href="profile.php?action=permission" target="_blank">权限</a></li>
    </ul>
    </div>
</div>

<div id="header">
<div class="header cc">
    <div class="fr search">
        <form action="$searchUrl" method="post" onsubmit="return msg(this);">
            <input type="hidden" name="step" value="2" />
            <input type="hidden" name="accord" value="username" />
            <input class="s-input" name="username" id="keyword" type="text" value="找人..." style="color:gray;" onfocus="if(getObj('keyword').value != ''){getObj('keyword').value = '';getObj('keyword').style.color='';}"/><span class="button" style="margin:0;"><span><button type="submit" id="sbb">搜索</button></span></span>
        </form>
    </div>
</div>
<div id="menu_omainNav" style="display:none;">
	<div class="o_top_menu" style="width:106px;">
	<h4><a href="$_mainUrl">返回社区首页<span class="f9" >▼</span></a></h4>
	<ul>
<!--
EOT;
foreach ($db_modes as $key => $value) {
if ($key != 'o' && $value['ifopen'] == 1) {
$this_url = isset($db_modedomain[$key]) ? 'http://'.$db_modedomain[$key] : 'index.php?m='.$key;
print<<<EOT
-->
		<li><a href="$this_url"><span>$value[title]</span></a></li>
<!--
EOT;
}}print <<<EOT
-->
	</ul>
    </div>
</div>
<script type="text/javascript">
setCurrent('o_KEY$q','','current');
function msg(obj) {
	var name = obj.username.value;
	if ( name == false || name == '找人...') {
		showDialog("error",'请输入用户名');
		return false;
	}
	return true;
}
</script>
</div>
<div id="main">
<!--
EOT;
?>-->
