<?php
//print_r( $_SESSION );
include_once( ROOT . 'lib/biz.function.php' );
$modules = get_active_modules();
?>
<br/>
<table border="0" width="98%" id="table1" cellspacing="0" cellpadding="0" height="40" align="center">
	<tr>
		<td valign="top">
		<a href="./">首  页</a> |
		<?php foreach( $modules as $module )
		{
			$mline[] = '<a href="./?u=' . $module['dy_module_en_name'] . '">' . $module['dy_module_name'] . '</a>'; 
			$aline[] = '<a href="./?u=my_' . $module['dy_module_en_name'] . '">' . $module['dy_module_action'] . '</a>';  
		}
		echo join( ' · ' , $mline );
		?>
		| 
		<?php if( is_login() ): ?>
		<a href="./">我的<?php echo _conf( 'WEB_SITE_NAME' ) ?></a> · 
		<?php endif;
		echo join( ' · ' , $aline );?>
		| 
		<?php
		if( isset( $_SESSION['dy_city'] ) && !is_empty($_SESSION['dy_city']) ): ?>
		<a href="?a=location&city=<?php echo $_SESSION['dy_city'] ?>">同  城</a> · 
		<?php else: ?>
		<a href="?a=location">同  城</a> · 
		<?php endif; ?>
		<a href="./">小  组</a> ·
		<a href="./">我的友邻</a>
		<?php
		if( !is_login() ):
		?>
		|
		<a href="./?a=register">快速注册</a>
		<?php
		else:
		?>
		· <a href="?a=invite">邀请</a>
		<?php
		endif;
		?>
		<br><br><br><p class="title_2"><?php echo $title ?></p>
		</td>
		<td rowspan="2" valign="bottom">
		<p align="right">
		<img border="0" src="res/img/douya_logo.gif" width="96" height="45" vspace="8" hspace="20"><br/>
		<?php if( !is_login() ): ?>
		你好，请 <a href="?a=login">登录</a> 或 <a href="?a=register">注册</a>
		<?php else: ?>
		<a href="?a=login" style="color: #999999;">我不是<?php echo $_SESSION['dy_nickname'] ?></a>　　　<a href="/help"><?php echo _conf( 'WEB_SITE_NAME' ) ?>指南</a>  · <?php echo $_SESSION['dy_nickname'] ?>的<a href="?a=settings">设置</a>  · <a href="?a=mymail">站内邮件(0)</a>  · <a href="?a=logout">退出</a>
		<?php endif; ?>
		</td>
	</tr>
	</table>
	<table border="0" width="98%" cellspacing="0" cellpadding="0" align="center">
	<tr>
		<td valign="top">
		</td>
		<td align="right" valign="top">
		</td>
	</tr>
</table>
<hr align="left" color="#eff1f2" noShade SIZE="1">
	