<html>

<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><?php echo _conf( 'WEB_SITE_SEO_TOP_WORD' ) ?><?php echo $top_title ?> - <?php echo _conf( 'WEB_SITE_NAME' ) ?></title>
<meta name="keywords" content="<?php echo _conf( 'WEB_SITE_SEO_META_KEYWORD' ) ?>">
<meta name="description" content="<?php echo _conf( 'WEB_SITE_SEO_META_DESCRIP' ) ?>">
<?php echo _conf('WEB_SITE_SEO_HEADER_CODE'); ?>
<link href="res/css/douya.css" rel="stylesheet" type="text/css">
</head>

<body>

<?php  
	include_once( ROOT . 'res/tpl/header.tpl.html' );
?>
<table border="0" width="98%" id="table1" cellspacing="5" cellpadding="5" height="400px" align="center">
	<tr>
		<td class="top">
		<!-- main -->
		<?php foreach( $modules as $module )
		{
			$default_action = reset( explode( '|' , $module['dy_module_state'] ) );
			if( is_array( $data = get_content_info_by_vote_text( $module['id'] ,  $user['id'] ,  0 , 12 , $default_action   ) )  ):
			?>
			<h2><?php echo $user['dy_nickname'] . $default_action; ?>　· · · · · ·　</h2>
			<div class="indent">
			<?php
			$lines = array_chunk( $data , 5 );
			?>
			<table>
			<?php
			foreach( $lines as $line ):
			?>
			<tr>
			<?php
			foreach( $line as $item ):
			?>
			<td>
				<?php eval( '?>' .   get_template( $module['id'] , 'list_last' ) . '<?php ' ) ;?>
			</td>
			<?php endforeach;
			?>
			<tr/>
			<?php
			endforeach;
			?>
			</table>
				<!--<p class="pl">&gt; <a href="?a=">所有([$item])的([$dy_module_content])</a></p></div><br/> -->
			<?php
			endif;
			
		}
		
		?>
		
		</td>
		<td width="300px" class=top>
		<!-- right -->
		<table width="100%" class="info_box" cellspacing="5" cellpadding="5" ><tr><td valign="top">
		<img src="<?php echo show_user_icon( $user['id'] ) ?>" align="left" hspace="15" vspace="10"/>
		<?php 
		// print_r( $user );
		if( isset( $user['dy_city'] ) && $user['dy_city'] != 0 ) : ?>
        <span class="pl">常居: </span><a href="?a=location&city=<?php echo $user['dy_city'] ?>"><?php echo get_city_name_by_code( $user['dy_city'] );  ?></a><br/>
        <?php endif; ?>
        <?php if( !is_empty( $user['dy_blog'] ) ) : ?>
        <span class="pl">blog地址:</span> <a href="http://<?php echo $user['dy_blog'] ?>" target=_blank>http://<?php echo $user['dy_blog'] ?></a></span><br/>
        <?php endif; ?>
        <?php if( !is_empty( $user['dy_desp'] ) ) : ?>
        <span class="pl">自我介绍:</span><br/><?php echo nl2br($user['dy_desp']); ?><br clear="all"/>
        <?php endif; ?>
		</td></tr></table><br/>
		<?php if( isset( $_SESSION['dy_uid'] ) && $user['id'] != $_SESSION['dy_uid'] ): ?>
		<!--&gt; <a href="?a=friends_add&uid=<?php echo $user['id']; ?>">把<?php echo $user['dy_nickname'] ?>列入我的友邻</a><br/><br/>-->
		<?php if( _conf( 'DZ_ON' ) ): ?>
		&gt; <a href="<?php echo _conf('DZ_INDEX_URL') ?>webii.php?forward=<?php echo urlencode( 'pm.php?action=send&uid=' . dy_nickname_to_discuz_uid( $user['dy_nickname'] ) ) ?>" target="_blank">给<?php echo $user['dy_nickname'] ?>写站内邮件</a><br/><br/>
		<?php endif; ?>
		<?php endif; ?>
		<?php
		if( !is_empty( $user['dy_username'] ) )
			$url = _conf( 'WEB_SITE_ROOT_URL' ) . '?a=people&username=' . $user['dy_username'];
		else
			$url = _conf( 'WEB_SITE_ROOT_URL' ) . '?a=people&uid=' . $user['id'];
		?>
		<p class="pl">本页永久链接: <a href="<?php echo $url ?>"><?php echo $url ?></a></p>
		
		</td>
	</tr>
</table>
<?php  
	include_once( ROOT . 'res/tpl/footer.tpl.html' );
?>
</body>

</html>