<!--<?php 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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=$db_charset" />
<title>$webPageTitle - Powered by PHPWind</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/" />
<!--
EOT;
if(SCR == 'read' && $link_ref_canonical){print <<<EOT
-->
<link rel="canonical" href="$link_ref_canonical" />
<!--
EOT;
}print <<<EOT
-->
<link rel="stylesheet" type="text/css" href="$imgpath/wind-reset.css" />
<!--
EOT;
@include Pcv($css_path);
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){}">
<!--
EOT;
if($GLOBALS['groupid'] != 'guest' && $GLOBALS['groupid'] != '' && $GLOBALS['db_toolbar']){print <<<EOT
-->
<!--
EOT;
}print <<<EOT
-->
$msgsound
<div class="new_topbar_wrap">
	<div class="new_topbar">
    	<div class="cc">
            <span class="new_topbar_left">
<!--
EOT;
if($groupid=='guest'){
if ($db_ajax & 16) {
$arr_logintypename = array('用户名','UID','Email');
print <<<EOT
-->
				<a onclick="showLoginDiv();" title="展开登录框" style="cursor:pointer" hidefocus="true">登录</a><a href="$regurl" hidefocus="true">注册</a>
                <div id="user-login" class="menu-post" style="display:none;">
                            <form action="login.php" name="login_FORM" method="post">
                                <input type="hidden" name="jumpurl" value="http://{$pwServer['HTTP_HOST']}{$REQUEST_URI}" />
                                <input type="hidden" name="step" value="2" />
                                <input type="hidden" name="cktime" value="31536000" />
                                <div class="menu-b" style="width:400px;">
                                    <div class="h b"><span class="fr" onclick="read.close();" style="cursor:pointer;" title="关闭"><img src="$imgpath/close.gif" /></span>登录</div>
<table width="400" cellpadding="0" cellspacing="0">
                                    <tr class="user-table">
                                        <td width="30%">
                                        <select name="lgt">
<!--
EOT;
if(count($_LoginInfo['logintype'])==1){
$value = current($_LoginInfo['logintype']);
print <<<EOT
-->
                                        <option value="$value" selected>$arr_logintypename[$value]</option>
                                        </select>
<!--
EOT;
}elseif(count($_LoginInfo['logintype'])>1){
$i=1;
foreach($_LoginInfo['logintype'] as $value){
$str_checked = $i==1? 'selected':'';
$i++;
print <<<EOT
-->
                                        <option value="$value" $str_checked>$arr_logintypename[$value]</option>
<!--
EOT;
}print <<<EOT
-->
                                        </select>
<!--
EOT;
}else{print <<<EOT
-->
                                            <input type="radio" name="lgt" value="$value" checked />
                                            <span id="login_$value">用户名</span>
<!--
EOT;
}print <<<EOT
-->
                                        </td>
                                        <td class="tal"><input class="input gray" type="text" onfocus="checkinput(this);" onblur="if(getObj('logintab')) getObj('logintab').style.display='';checkinput(this,'输入用户名');" style="width:150px" name="pwuser" id="pwuser" value="输入用户名" tabindex="1" /></td>
                                    </tr>
                                    <tr class="user-table">
                                        <td>密  码</td>
                                        <td class="tal"><input class="input" type="password" name="pwpwd" style="width:150px;" tabindex="2" /></td>
                                    </tr>
<!--
EOT;
if($db_gdcheck & 2){print <<<EOT
-->
                                    <tr class="user-table">
                                        <td>认证码</td>
                                        <td class="tal">
                                            <input class="input" onfocus="showCK();" type="text" name="gdcode" size="5" tabindex="3"  />
                                            <img id="ckcode" style="cursor:pointer;display:none" onclick="this.src='ck.php?nowtime='+new Date().getTime();" alt="看不清楚，换一张" />
                                        </td>
                                    </tr>
<!--
EOT;
}if($db_ifsafecv){print <<<EOT
-->
                                    <tr class="user-table">
                                        <td>安全问题</td>
                                        <td class="tal">
                                            <select name="question" onchange="showcustomquest_l(this.value)" tabindex="4"><option value="0">无安全问题</option><option value="1">我爸爸的出生地</option><option value="2">我妈妈的出生地</option><option value="3">我的小学校名</option><option value="4">我的中学校名</option><option value="5">我最喜欢的运动</option><option value="6">我最喜欢的歌曲</option><option value="7">我最喜欢的电影</option><option value="8" >我最喜欢的颜色</option><option value="-1">自定义问题</option></select>
                                            <input id="customquest_l" type="text" style="display:none" class="input" size="10" tabindex="5" />
                                        </td>
                                    </tr>
                                    <tr class="user-table">
                                        <td>您的答案</td>
                                        <td class="tal"><input name="answer" type="text" class="input" size="25" tabindex="6" /></td>
                                    </tr>
<!--
EOT;
}if($_LoginInfo['qcheck']){print <<<EOT
-->
                                    <tr class="user-table">
                                        <td>验证问答</td>
                                        <td class="tal">问题:{$db_question[$_LoginInfo['qkey']]}<br />正确答案:{$db_answer[$_LoginInfo['qkey']]}<br />
                                            <input class="input" name="qanswer" size="25" tabindex="7" />
                                            <input type="hidden" name="qkey" value="{$_LoginInfo['qkey']}" />
                                        </td>
                                    </tr>
<!--
EOT;
}print <<<EOT
-->
                                    <tr class="user-table">
                                        <td></td>
                                        <td class="tal"><input class="btn fl" type="submit" value=" 登 录 " tabindex="8" />
                                            <a href="sendpwd.php" class="fl">找回密码</a></td>
                                    </tr>
                                </table>
                    </div>
                            </form>
                    </div>
<!--
EOT;
} else {print <<<EOT
-->
				<a href="login.php" title="登录" hidefocus="true">登录</a><a href="$regurl" hidefocus="true">注册</a>
<!--
EOT;
}} else {
$db_menuinit .= ",'td_userinfomore' : 'menu_userinfomore','td_profile' : 'menu_profile'";
print <<<EOT
-->
                <span id="span_userinfomore"><a id="td_userinfomore" href="u.php?action=show" class="new_topbar_name menu_down" hidefocus="true"><img src="$_LoginInfo[faceurl]" width="15" height="15" class="top_face" />$windid<span><img src="$_LoginInfo[faceurl]" width="15" height="15" id="iconimg" class="top_face" />$windid</span></a></span>
				<a href="$loginouturl" hidefocus="true">退出</a>
                <i>&nbsp;</i>
                <span id="span_profile"><a id="td_profile" href="profile.php?action=modify" hidefocus="true" target="_blank" class="menu_down">设置<span>设置</span></a></span>
<script language="JavaScript">
var td_userinfomore = {
	open : function() {
		$('span_userinfomore').className = 'current';
		if (typeof userBinding == 'object') {
			userBinding.append();
		}
	},
	close : function () {
		$('span_userinfomore').className = '';
	}
}
var td_profile = {
	open : function() {
		$('span_profile').className = 'current';
	},
	close : function () {
		$('span_profile').className = '';
	}
}
</script>
<!--
EOT;
if (getstatus($winddb['userstatus'],12)) {print <<<EOT
-->
                <script language="JavaScript" src="js/userbinding.js"></script>
<!--
EOT;
}if($db_job_isopen){print <<<EOT
-->
                <a href="javascript:;" id="newjob" onclick="return showJobPOP();" hidefocus="true" num="$jobnum">任务<span class="green">$jobnum</span></a>
<!--
EOT;
}if($winddb['newpm']>0 && $_G['maxmsg']>0){print <<<EOT
-->
				<a id="td_msg" href="message.php?type=newmsg" title="有新短消息" target="_blank" class="new_topbar_mes backend" hidefocus="true">消息<span class="green">({$winddb[newpm]})</span></a>
<!--
EOT;
} else {print <<<EOT
-->
				<a id="td_msg" href="message.php" title="消息" target="_blank" hidefocus="true">消息</a>
<!--
EOT;
}if(CkInArray($windid,$manager) || $SYSTEM['allowadmincp']){print <<<EOT
-->
                <i>&nbsp;</i>
				<a href="$db_adminfile" target="_blank" hidefocus="true">系统设置</a>
<!--
EOT;
}}print <<<EOT
-->
            </span>
            <ul class="new_topbar_right">
<!--
EOT;
if($db_columns && $db_mode == 'bbs'){
if(GetCookie('columns')==1 || strpos($pwServer['HTTP_REFERER'],$db_bbsurl)===false || strpos($pwServer['HTTP_REFERER'],$db_adminfile)!==false){
print <<<EOT
-->
						<li><a href="columns.php?action=columns">左右分栏</a></li>
<!--
EOT;
}else{print <<<EOT
-->
						<li><a href="columns.php">平板模式</a></li>
<!--
EOT;
}}foreach($db_headnav as $value){
if ($value['pos'] == '-1' || strpos(",{$value['pos']},",','.($db_mode?$db_mode:'bbs').',') !== false) {print <<<EOT
-->
						<li>{$value['html']}</li>
<!--
EOT;
}}print <<<EOT
-->
            </ul>
        </div>
    </div>
</div>
<!--
EOT;
if ($winduid){print<<<EOT
-->
<div id="menu_userinfomore" class="cc menu_topup" style="display:none;">
	<div style="width:26.5em;">
		<ul class="menu-half cc">
		<li>等级: $gp_grouptitle
<!--
EOT;
if ($_G['allowhide']) {print <<<EOT
-->
		<li>状态:
<span style="cursor:pointer;" onclick="ajax.send('pw_ajax.php?action=changestate','',changeState)" id="online_state"><!--
EOT;
if (GetCookie('hideid') == 1) {print <<<EOT
--><img src="$imgpath/stealth.png" align="absmiddle" />隐身<!--
EOT;
} else {print <<<EOT
--><img src="$imgpath/online.png" align="absmiddle" />在线<!--
EOT;
}print <<<EOT
--></span>
<script language="JavaScript">
function changeState() {
	var msg = ajax.request.responseText;
	if (msg == 1){
		getObj('online_state').innerHTML = '<img src="$imgpath/stealth.png" align="absmiddle" />隐身';
	}else{
		getObj('online_state').innerHTML = '<img src="$imgpath/online.png" align="absmiddle" />在线';
	}
}
</script>
			</li>
<!--
EOT;
}print <<<EOT
-->

			<li>帖子: $winddb[postnum]</li>
			<li>今日: $winddb[todaypost]</li>
			<li>$db_rvrcname: $userrvrc $db_rvrcunit</li>
			<li>$db_moneyname: $winddb[money] $db_moneyunit</li>
			<li>$db_creditname: $winddb[credit] $db_creditunit</li>
			<li>最后登录: <span class="f10">{$_LoginInfo['lastlodate']}</span></li>
            <li style="width:90%">登录IP: <span class="f10">{$onlineip}</span></li>
        </ul>
		<div class="userbindingMenu"></div>
	</div>
</div>
<div id="menu_profile" class="menu_topup3" style="display:none;">
    <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>
<!--
EOT;
}print <<<EOT
-->
<div id="header">
		<div id="head">
			<table cellpadding="0" cellspacing="0" width="100%">
				<tr>
					<td><a href="$db_bbsurl/" class="fl"><img src="$imgpath/$stylepath/logo.png"/></a></td>
					<td id="banner" align="right">
<!--
EOT;
list($htmlAdvert,$arrayAdvert) = pwAdvert('Site.Header',$fid);
if($htmlAdvert){print <<<EOT
-->
					$htmlAdvert
<!--
EOT;
}print <<<EOT
-->
					</td>
				</tr>
			</table>
		</div>
	<div class="nav-wrap">
		<div id="nav">
		<span class="nav-left fl"></span>
            <div id="nav-s">
				<a href="javascript:;" class="fr" onclick="goAdvanceSearch();return false;">高级</a>
				<form name="sF" action="search.php?#submit" method="post" >
				<input type="hidden" name="step" value="2" />
				<input type="hidden" name="method" value="AND" />
				<input type="hidden" name="sch_area" value="0" />
				<input type="hidden" name="f_fid" value="all" />
				<input type="hidden" name="sch_time" value="all" />
                <input class="s-input" type="text" id="keyword" name="keyword" />
                <input class="s-btn" type="submit" name="submit" value=" " />
                </form>
			</div>
			<script language="JavaScript">
			function goAdvanceSearch(){
				var keyword = getObj('keyword').value;
				var url = 'search.php?advanced=1&keyword='+keyword;
				window.location = url;
			}
			</script>
			<div id="nav-global">
<!--
EOT;
if ($winduid) {
$db_menuinit .= ",'td_mymenu' : 'menu_mymenu'";
print <<<EOT
-->
				<div id="td_mymenu">我的快捷通道</div>
				<div id="menu_mymenu" class="menu_topup3 menu_topup4" style="display:none;">
					<ul>
<!--
EOT;
if ($db_modes['o']['ifopen']) {print <<<EOT
-->
						<li><a href="u.php?action=show"><img src="$imgpath/user-home.png" />我的空间</a></li>
<!--
EOT;
}print <<<EOT
-->
						<li><a href="mode.php?m=o&q=write"><img src="$imgpath/apps/icon/record.png" />我的记录</a></li>
<!--
EOT;
if ($db_dopen) {print <<<EOT
-->
						<li><a href="mode.php?m=o&q=diary"><img src="$imgpath/apps/icon/log.png" />我的日志</a></li>
<!--
EOT;
}if ($db_phopen) {print <<<EOT
-->
						<li><a href="mode.php?m=o&q=photos"><img src="$imgpath/apps/icon/albums.png" />我的相册</a></li>
<!--
EOT;
}if ($db_share_open) {print <<<EOT
-->
						<li><a href="mode.php?m=o&q=share"><img src="$imgpath/apps/icon/share.png" />我的分享</a></li>
<!--
EOT;
}print <<<EOT
-->
						<li><a href="mode.php?m=o&q=article"><img src="$imgpath/apps/icon/posts.png" />我的帖子</a></li>
<!--
EOT;
if ($db_groups_open) {print <<<EOT
-->
						<li><a href="mode.php?m=o&q=groups"><img src="$imgpath/apps/icon/groups.png" />我的群组</a></li>
<!--
EOT;
}print <<<EOT
-->
					</ul>
				</div>
<!--
EOT;
} else {print <<<EOT
-->
				<div id="td_mymenu_old" style="cursor:pointer" onclick="read.open('menu_mymenu_old','td_mymenu_old',3);">我的快捷通道</div>
				<div id="menu_mymenu_old" style="display:none;">
                	<div  class="menu-post" style="width:250px;">
                        <div class="menu-b p10">
                        	<a href="javascript:;" onclick="read.close();" title="关闭"><img src="$imgpath/close.gif" alt="关闭" class="fr" /></a>
                            您还没有登录，快捷通道只有在登录后才能使用。
<!--
EOT;
if ($db_ajax & 16) {print <<<EOT
-->
							<a onclick="showLoginDiv();return false;" href="login.php" class="s4">立即登录</a>
<!--
EOT;
}else{print <<<EOT
-->
							<a href="login.php" class="s4">立即登录</a>
<!--
EOT;
}print <<<EOT
-->
                            <div class="card-cont-hr mb10"></div>
                            还没有帐号？ 赶紧 <a href="$regurl" class="s4">注册一个</a>
                        </div>
                    </div>
				</div>
<!--
EOT;
}print <<<EOT
-->
				<ul class="cc">
					{$_Navbar['main']['html']}
				</ul>
			</div>
        </div>
     </div>
</div>
<div class="index-info cc">
<!--
EOT;
list($htmlAdvert,$arrayAdvert) = pwAdvert('Site.NavBanner1',$fid);
if($htmlAdvert){print <<<EOT
-->
<div class="tac" style="padding:.5em 0 0;">$htmlAdvert</div>
<!--
EOT;
}
list($htmlAdvert,$arrayAdvert) = pwAdvert('Site.NavBanner2',$fid);
if($htmlAdvert){print <<<EOT
-->
<div class="tac" style="padding:.5em 0 0;">$htmlAdvert</div>
<!--
EOT;
}print <<<EOT
-->
<table cellpadding="0" cellspacing="0" width="100%" style="table-layout:fixed;">
	<tr class="vt"><td class="tal s5" width="450">
<!--
EOT;
if(!in_array(SCR,array('message','profile','u','register','login','userpay')) && !$showlogin){
if($groupid=='guest'){
$arr_logintypename = array('用户名','UID','Email');
print <<<EOT
-->
	<form action="login.php" name="login_FORM" method="post">
		<input type="hidden" name="jumpurl" value="http://{$pwServer['HTTP_HOST']}{$REQUEST_URI}" />
		<input type="hidden" name="step" value="2" />
		<input type="hidden" name="cktime" value="31536000" />
		<div class="cc">
			<div class="fl input mr5" style="padding-left:3px;">
			<input class="fl gray" onfocus="navCheckinput(this);" onblur="navCheckinput(this);" style="width:85px;border:0;padding:0;" name="pwuser" id="nav_pwuser" value="输入用户名" tabindex="10" />
<!--
EOT;
if (count($_LoginInfo['logintype']) >1) {print <<<EOT
-->
				<a href="javascript:;" title="切换登入方式" class="select_arrow fl" onclick="showLoginType();">下拉</a>
<!--
EOT;
}print <<<EOT
-->
			</div>
			<input class="input fl mr5" type="password" name="pwpwd" style="width:85px;" onfocus="if(IsElement('nav_logintab')) getObj('nav_logintab').style.display='';this.value='';var o_nav_logintab = IsElement('nav_logintab') ? getObj('nav_logintab') : ''; PW_popEvent(o_nav_logintab);" tabindex="11" />
			<input class="btn fl" type="submit" value="登录" tabindex="8" />
			<a href="$regurl" class="b">注册</a>
		</div>
<!--
EOT;
if (count($_LoginInfo['logintype'])>=1) {
$value = $_LoginInfo['logintype'][0];
empty($value) && $value = 0;
print<<<EOT
-->
		<input type="hidden" name="lgt" id="nav_lgt" value="$value">
<!--
EOT;
} else {print <<<EOT
-->
		<input type="hidden" name="lgt" id="nav_lgt" value="0">
<!--
EOT;
}if (count($_LoginInfo['logintype']) > 1) {print <<<EOT
-->
		<div class="t5 f_two sel_name" id="login_type_list" style="width:5em;padding:0 10px 5px;position:absolute;margin-left:25px;display:none;z-index:1">
			<ul>
<!--
EOT;
foreach($_LoginInfo['logintype'] as $v){print <<<EOT
-->
				<li><a href="javascript:;" onclick="selectLoginType('$v','$arr_logintypename[$v]')">$arr_logintypename[$v]</a></li>
<!--
EOT;
}print <<<EOT
-->
			</ul>
		</div>
<!--
EOT;
}if($db_ifsafecv || ($db_gdcheck & 2) || $_LoginInfo['qcheck']){print <<<EOT
-->
		<div id="nav_logintab" style="width:330px;position:absolute;margin-top:.2em;display:none;z-index:2">
			<div class="t5 f_two"  style="line-height:25px;">
				<table cellspacing="0" cellpadding="1" align="center" style="width:95%; margin:auto">
<!--
EOT;
if($db_gdcheck & 2){print <<<EOT
-->
					<tr>
						<td>认证码</td>
						<td>
							<input class="input" type="text" name="gdcode" size="5" tabindex="12" onfocus="try{opencode('menu_gd',this)}catch(e){}" /><span style="cursor:pointer; margin-left:3px" onclick="this.previousSibling.focus();">点此显示验证码</span>
							<div class="menu" id="menu_gd" style="visibility:hidden;">
								<img src="ck.php?" align="absmiddle" style="cursor:pointer;" id="ckcode" alt="看不清楚，换一张" />
							</div>
						</td>
					</tr>
<!--
EOT;
}if($db_ifsafecv){print <<<EOT
-->
					<tr>
						<td width="20%">安全问题</td>
						<td><select name="question" onchange="showcustomquest(this.value)" tabindex="13">
							<option value="0">无安全问题</option>
							<option value="1">我爸爸的出生地</option>
							<option value="2">我妈妈的出生地</option>
							<option value="3">我的小学校名</option>
							<option value="4">我的中学校名</option>
							<option value="5">我最喜欢的运动</option>
							<option value="6">我最喜欢的歌曲</option>
							<option value="7">我最喜欢的电影</option>
							<option value="8">我最喜欢的颜色</option>
							<option value="-1">自定义问题</option></select>
							<input id="othercustomquest" style="display:none" name="customquest" class="input" size="17" tabindex="14" />
							</td>
						</tr>
						<tr>
							<td>您的答案</td>
							<td><input name="answer" class="input" size="30" tabindex="15" /></td>
						</tr>
<!--
EOT;
}if($_LoginInfo['qcheck']){print <<<EOT
-->
						<tr>
							<td>验证问答</td>
							<td>问题:{$db_question[$_LoginInfo['qkey']]}<br />正确答案:{$db_answer[$_LoginInfo['qkey']]}<br />
								<input class="input" name="qanswer" size="30" tabindex="16" />
								<input type="hidden" name="qkey" value="{$_LoginInfo['qkey']}" /></td>
						</tr>
<!--
EOT;
}print <<<EOT
-->
					</table>
				</div>
			</div>
<!--
EOT;
}print <<<EOT
-->
		</form>
<script language="JavaScript">
var default_login_type = '$value';
var default_input_value = '输入' + '$arr_logintypename[$value]';

function showLoginType(){
	if(getObj('login_type_list').style.display=='none'){
		getObj('login_type_list').style.display = '';
	} else {
		getObj('login_type_list').style.display = 'none';
	}
	if (IsElement('nav_logintab')){
		getObj('nav_logintab').style.display = 'none';
	}
}

function showcustomquest(qid){
	getObj('othercustomquest').style.display = qid==-1 ? '' : 'none';
}
function navCheckinput(obj){
	if (obj.className.indexOf('gray')!=-1) {
		obj.value = '';
		obj.className = obj.className.replace('gray', 'black');
	} else if (obj.value=='') {
		obj.value = obj.defaultValue = default_input_value;
		if (obj.className.indexOf('black') == -1) {
			obj.className += ' gray';
		} else {
			obj.className = obj.className.replace('black', 'gray');
		}
	}
}
function changeDefaultInputValue(text){
	getObj('nav_pwuser').value = text;
	getObj('nav_lgt').value = default_login_type;
}

function selectLoginType(type,text){

	var nav_pwuser = getObj('nav_pwuser');
	nav_pwuser.value = '输入'+text;
	if (nav_pwuser.className.indexOf('black') != -1) {
		nav_pwuser.className = nav_pwuser.className.replace('black', 'gray');
	}
	getObj('nav_lgt').value = type;
	getObj('login_type_list').style.display = 'none';
}

changeDefaultInputValue(default_input_value);
</script>
<!--
EOT;
}else{print <<<EOT
--><span>
	<a href="u.php?action=topic">我的主题</a>
	<a href="u.php?action=post">我的回复</a>
	<a href="u.php?action=favor">我的收藏</a>
<!--
EOT;
if (isset($db_modes['o']['ifopen']) && $db_modes['o']['ifopen']) {print <<<EOT
-->
	<a href="mode.php?m=o&q=home">好友近况</a>
<!--
EOT;
}else{print <<<EOT
-->
	<a href="u.php?action=feed">好友近况</a>
<!--
EOT;
}if (!empty($shortcutforum)){print <<<EOT
-->
	<a href="javascript:;" id="id_shortcut" onclick="read.open('menu_shortcut',this.id);">书签</a>
<!--
EOT;
}if($db_replysitemail && getstatus($winddb['userstatus'],6)){print <<<EOT
-->
	<a href="javascript:;" onclick="sendmsg('pw_ajax.php','action=newrp',this.id)" id="newrp" align="absbottom"; style="color:red;">最新回复</a>
<script language="JavaScript">
function newrp() {
	ajax.guide();
	ajax.send('pw_ajax.php','action=newrp',function(){
		if (ajax.request.responseText.indexOf('<') != -1) {
			read.menu.innerHTML = ajax.request.responseText;
		} else {
			closep();
			getObj('newrp').parentNode.removeChild(getObj('newrp'));
		}
	});
}
</script>
<!--
EOT;
}if (SCR == 'index' && ($groupid == 3 || $groupid == 4)) {print <<<EOT
-->
			<a style="cursor:pointer" onclick="if (typeof MgMode == 'function') {mgm.showMenu(this);} else {KSHBJ=this;loadjs('js/mgmode.js');}">可视化布局</a>
<!--
EOT;
}if ($skincount >1){print <<<EOT
-->
			<a id="td_skin" title="风格切换"><img src="$imgpath/pwicon/style.gif" style="cursor:pointer;_margin-top:5px;" align="absmiddle" /></a>
<!--
EOT;
}print<<<EOT
-->
</span>
<!--
EOT;
}}print <<<EOT
-->
</td>
<td class="tar">
<!--
EOT;
foreach ($db_navinfo as $key => $value) {
//if($key == 'KEYapp' && !$db_appsdb){
//	continue;
//}
print <<<EOT
-->
	{$value['html']}
<!--
EOT;
if($value['child'] || ($db_appsdb && $key == 'KEYapp')){print <<<EOT
-->
	<div id="menu_{$key}" class="menu menu-post cc" style="display:none;">
		<div class="menu-b" style="width:9em;">
<!--
EOT;
if($db_appsdb && $key == 'KEYapp'){
foreach ($db_appsdb as $app) {
$top_target = $value[target] == '1' ? ' target="_blank"' : '';
print <<<EOT
-->
			<p><a href="apps.php?id=$app[appid]"{$top_target}>$app[name]</a></p>
<!--
EOT;
}}foreach ($value['child'] as $v) {print <<<EOT
-->
			<p>{$v['html']}</p>
<!--
EOT;
}print <<<EOT
-->
		</div>
	</div>
<!--
EOT;
}}print <<<EOT
-->
</td></tr></table></div>
<!--
EOT;
if($skincount > 1){print <<<EOT
-->
<div id="menu_skin" class="menu menu-post cc" style="display:none;">
	<div class="menu-b" style="width:9em;">
<!--
EOT;
foreach($db_skindb as $key=>$val){print <<<EOT
-->
		<a href="javascript:;" onclick="window.location=('{$s_url}skinco=$key');return false;">$val</a>
<!--
EOT;
}print <<<EOT
-->
	</div>
</div>
<!--
EOT;
}if (!empty($shortcutforum)) {print <<<EOT
-->
<div id="menu_shortcut" class="menu menu-post cc" style="display:none;">
	<div class="menu-b" style="width:9em;width:150px;">
<!--
EOT;
foreach ($shortcutforum as $key => $value) {print <<<EOT
-->
		<a href="thread.php?fid=$key">$value</a>
<!--
EOT;
}print <<<EOT
-->
	</div>
</div>
<!--
EOT;
}print <<<EOT
-->
<div class="main-wrap">
<div id="main">
<!--
EOT;
?>-->