<?php
if( !defined('ISDVBBS') ){
	header('HTTP/1.0 404 Not Found');
	exit;
}
global $imgurl;
_timeout(0);
global $savvy_board;
include_once CACHE_PATH.'savvy_board.php';
$savvy_boardlist=explode(',',$savvy_board['boardidset']['boardid_set']);
if(intval($fsetting['issavvy_show'])==1){
	$savvyshowstr='<a href="forum_savvy.php?boardid='.$savvy_boardlist[0].'" title='.$lang['tpl.str86'].' alt='.$lang['tpl.str86'].'><font color="#ff6600">'.$lang["tpl.str86"].'</font></a>';
}
else{	
	$savvyshowstr=$lang["tpl.str87"];
}

if ($boardid==0){
	eval("\$lang['tpl.str10']=\"{$lang['tpl.str10']}\";");
?>	
	<!--首页公告帮助栏 BEGIN-->	
	<div>
		<div style="float:right;padding-top:0px;">
			<a href="<?=$ForumUrl?>rssfeed.php?rssid=4&amp;boardid=<?=$boardid?>" target="_blank"><img src="<?=$imgurl?>rss.gif" align="middle" border="0" title="<?=$lang['dv_fsettings.global.str8']?>" alt="<?=$lang['dv_fsettings.global.str8']?>"></a>&nbsp;
			<a href="boardhelp.php?boardid=<?=$boardid?>"><img src="<?=$imgurl?>help.gif" align="middle" border="0" title="<?=$lang['dv_fsettings.global.str10']?>" alt="<?=$lang['dv_fsettings.global.str10']?>"></a>
		</div>
		<div style="line-height:22px;text-align:left;">
			<img src="<?=$imgurl?>forum_nav.gif" align="absmiddle" alt="" />
<?
				echo $lang['tpl.str89'].'<b>'.$fsetting['forumname'].'</b>';
?>
		</div>
	</div>
	<!--首页公告帮助栏 END-->

<div style="margin-top:4px;"></div>
	<!--用户和论坛信息 BEGIN-->	
	<div class="topinfo">
	    <div class="Top_Info_left">
<?
			if ( $userid != 0 ){
?>
			<ul>
				<li style="height:23px">
						<?=$lang['tpl.str10']?>&nbsp;&nbsp;&nbsp;<a href="usersms.php?action=inbox"><?=$lang['tpl.str12']?></a>(
<?
						if ( $sendmsgnum > 0 ){
?>
							<bgsound src="<?=$imgurl?>mail.wav" border="0" align="middle" /><a href="javascript:openScript('messanger.php?action=read&id=<?=$sendmsgid?>&sender=<?=$sendmsguser?>',500,400)"><font class="redfont"><?=$sendmsgnum?></font></a>
<?
						} else {
?>
							<font color="gray">0</font>
<?
						}
						$userinfo['lastlogin'] = gmdate('Y-m-d H:i:s', $userinfo['lastlogin']+getUserTimeZoneOffset());
?>
						)
						<?=$lang['tpl.str14']?>&nbsp;<b><span id='userinfo_userpost' name='userinfo_userpost'></span></b>&nbsp;、&nbsp;<?=$lang['tpl.str15']?> <b><span id='userinfo_userep' name='userinfo_userep'><span></b>&nbsp;、&nbsp;<?=$lang['tpl.str16']?> <font class="redfont"><b><span id='userinfo_userisbest' name='userinfo_userisbest'></span></b></font>
				</li>
				<li>
						<a href="mymodify.php"><?=$lang['tpl.str17']?></a>&nbsp;&nbsp;<a href="friendlist.php"><?=$lang['tpl.str18']?></a>&nbsp;&nbsp;<a href="query.php?stype=5&s=1&psearch=0&nsearch=0"><?=$lang['tpl.str19']?></a> &nbsp;&nbsp;<a href="query.php?stype=5&s=2&psearch=0&nsearch=0"><?=$lang['tpl.str20']?></a>&nbsp;&nbsp;<a href="spaceindex.php?stype=3&psearch=0&nsearch=0"><?=$lang['tpl.str90']?></a>
				</li>
			<ul>
<?
			}
			else {
?>
			<ul>
				<li style="height:23px">
						<?=$lang['tpl.str88']?>&nbsp;&nbsp;<?=$lang['tpl.str13'].'&nbsp;'. gmdate('Y-m-d H:i:s',time()+getUserTimeZoneOffset())?>
				</li>
				<li>
						<?=$lang['tpl.str17']?>&nbsp;&nbsp;&nbsp;<?=$lang['tpl.str18']?>&nbsp;&nbsp;&nbsp;<?=$lang['tpl.str19']?>&nbsp;&nbsp;&nbsp;<?=$lang['tpl.str20']?>&nbsp;&nbsp;&nbsp;<a href="spaceindex.php?stype=3&psearch=0&nsearch=0"><?=$lang['tpl.str90']?></a>
				</li>
			<ul>

<?
			}
?>
		</div>
		<div class="Top_Info_right">
			<ul>
				<li style="height:23px">
				<?=$lang['tpl.str36']?>
				<font class="redfont"><?=(intval($index_forumnum['forumnum']['todaynum'])+intval($indivgroup_forumnum['forumnum']['todaynum']))?></font> <?=$lang['tpl.str37']?>、 <?=$lang['tpl.str39'].(intval($fsetting['yestodaynum'])+intval($indivgroup_forumnum['forumnum']['yestodaynum'])).'&nbsp;'.$lang['tpl.str37']?>、<?=$lang['tpl.str41'].$fsetting['maxpost'].'&nbsp;'.$lang['tpl.str37']?>、<?=$lang['tpl.str33'].$fsetting['usernum']?>、
				<?=$lang['tpl.str35']?><a href="dispuser.php?name=<?=$fsetting['lastuser']?>" target="_blank"><b style="color:red;"><?=$fsetting['lastuser']?></b></a>
					</li>
					<li  style="height:18px">
				<?=$lang['tpl.str38'].(intval($index_forumnum['forumnum']['topicnum'])+intval($indivgroup_forumnum['forumnum']['topicnum']))?>、
				<?=$lang['tpl.str40'].(intval($index_forumnum['forumnum']['forumnum'])+intval($indivgroup_forumnum['forumnum']['forumnum']))?>、<?=$savvyshowstr?>&nbsp;&nbsp;<a href="indivgroup_list.php" alt="<?=$lang['tpl.str91']?>" title="<?=$lang['tpl.str91']?>"><font color="#ff6600"><?=$lang['tpl.str91']?></font></a>&nbsp;&nbsp;<a href="infolist.php?t=toplist&orders=1"><?=$lang['tpl.str92']?></a>&nbsp;&nbsp;<a href="infolist.php?t=toplist&orders=7"><?=$lang['tpl.str93']?></a>
				</li>
			<ul>
		</div>
	</div>
	<!--用户和论坛信息 END-->
<?
}
?>