<?
/**
 * @version		1.0
 * @package		HonoWeb->HonoBBS
 * @copyright	Copyright (C) HonoWeb. All rights reserved.
 * @Website		www.honoweb.com.您好
 */
 ?>
<?
	if($topstatus=="loginout")
	{
		$_SESSION['SessionUser']=null;
	}
?>
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="topbar"  height="8" style="font-size:1px; ">&nbsp;</td>
  </tr>
  <tr>
    <td height="77" align="center"><table width="100%"  border="0" cellpadding="0" cellspacing="0" class="fulltd">
        <tr>
          <td width="215" height="73" style="padding-left:10px; "><a href="<?=$bbs_config_row['bbs_url']?>"><img src="<?=$BBSFolder?>/images/logo.gif" width="155" height="53"  border="0" /></a></td>
          <td align="center"><img src="<?=$BBSFolder."/upload/bbs_config/".$bbs_config_row['bbs_banner']?>" width="468" height="60"></td>
          <td width="100" align="right" style="padding-right:10px;line-height:20px;  " class="link2" ><a 
onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('<?=$bbs_config_row['bbs_url']?>');" href="#"><font style="font-size:12px ">设为首页 </font></a><br>
          <a 

href="javascript:window.external.addFavorite('<?=$bbs_config_row['bbs_url']?>','<?=$bbs_config_row['bbs_name']?>');"><font style="font-size:12px ">添加收藏 </font></a><br>
          <a href="mailto:<?=$bbs_config_row['bbs_email']?>"><font style="font-size:12px">联系我们</font></a></td>
        </tr>
    </table></td>
  </tr>
  <tr>
    <td  class="topbar"  height="6" style="font-size:1px; ">&nbsp;</td>
  </tr>
  <tr>
    <td height="22" class="righttd" >
	<table width="100%"  border="0" cellpadding="0" cellspacing="0" >
		<tr>
			<td class="topbg1">
				<?
				if(isLogin())
				{
					echo "Welcome <font class='font1_b'>".$_SESSION['SessionUser']['username']."</font> ";
				}
				?>
				<a href="http://www.honoweb.com" target="_blank">HonoWeb</a> | <a href="<?=$BBSFolder?>/index.php">论坛首页</a> | <a href="<?=$BBSFolder?>/forumsearch.php">搜索</a><? if(!isLogin()) {?> | <a href="<?=$BBSFolder?>/login.php">登陆</a> | <a href="<?=$BBSFolder?>/reg1.php">注册</a><? }else{?> | <a href="javascript:toploginout()">退出</a><? }?>			</td>
		</tr>
	</table>
	</td>
  </tr>
</table>
<script language="javascript">

	function toploginout()
	{
		location="<?=$BBSFolder?>/index.php?topstatus=loginout";
	}
</script> 

