<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' );
	//include_once( ROOT . 'meta/city.meta.php' );
?>
<table border="0" width="98%" id="table1" cellspacing="5" cellpadding="5" height="400px" align="center">
	<tr>
		<td valign="top">
		<div class="indent">
		
		<!-- main -->
				<?php 
		if( is_array( $data = get_content_info_by_vote_text( 1 ,  $_SESSION['dy_uid'] ,  0 , 12 ,   '在玩' ) )  ):
		?>
		<h2>我在玩　· · · · · ·　</h2>
		<?php
		$lines = array_chunk( $data , 5 );
		?>
		<table>
		<?php
		foreach( $lines as $line ):
		?>
		<tr>
		<?php
		foreach( $line as $item ):
		?>
		<td>
			<div align="center"><a href="?u=game_display&id=<?php echo $item["id"]; ?>"><img src="<?php show_module_content_icon( 1 , 'dy_game_pic_url' , $item['id'] , $item['dy_game_pic_url'] ) ?>" class="m_sub_img" border="0"/><br/><?php echo $item["dy_game_cn_name"]; ?></a></div>
		</td>
		<?php endforeach;
		?>
		<tr/>
		<?php
		endforeach;
		?>
		</table>
		    <!--<p class="pl">&gt; <a href="?a=">所有在玩的游戏</a></p></div><br/> -->
		<?php
		endif;
		?>
        
				<?php 
		if( is_array( $data = get_content_info_by_vote_text( 1 ,  $_SESSION['dy_uid'] ,  0 , 12 ,   '玩过' ) )  ):
		?>
		<h2>我玩过　· · · · · ·　</h2>
		<?php
		$lines = array_chunk( $data , 5 );
		?>
		<table>
		<?php
		foreach( $lines as $line ):
		?>
		<tr>
		<?php
		foreach( $line as $item ):
		?>
		<td>
			<div align="center"><a href="?u=game_display&id=<?php echo $item["id"]; ?>"><img src="<?php show_module_content_icon( 1 , 'dy_game_pic_url' , $item['id'] , $item['dy_game_pic_url'] ) ?>" class="m_sub_img" border="0"/><br/><?php echo $item["dy_game_cn_name"]; ?></a></div>
		</td>
		<?php endforeach;
		?>
		<tr/>
		<?php
		endforeach;
		?>
		</table>
		    <!--<p class="pl">&gt; <a href="?a=">所有玩过的游戏</a></p></div><br/> -->
		<?php
		endif;
		?>
        
				<?php 
		if( is_array( $data = get_content_info_by_vote_text( 1 ,  $_SESSION['dy_uid'] ,  0 , 12 ,   '想玩' ) )  ):
		?>
		<h2>我想玩　· · · · · ·　</h2>
		<?php
		$lines = array_chunk( $data , 5 );
		?>
		<table>
		<?php
		foreach( $lines as $line ):
		?>
		<tr>
		<?php
		foreach( $line as $item ):
		?>
		<td>
			<div align="center"><a href="?u=game_display&id=<?php echo $item["id"]; ?>"><img src="<?php show_module_content_icon( 1 , 'dy_game_pic_url' , $item['id'] , $item['dy_game_pic_url'] ) ?>" class="m_sub_img" border="0"/><br/><?php echo $item["dy_game_cn_name"]; ?></a></div>
		</td>
		<?php endforeach;
		?>
		<tr/>
		<?php
		endforeach;
		?>
		</table>
		    <!--<p class="pl">&gt; <a href="?a=">所有想玩的游戏</a></p></div><br/> -->
		<?php
		endif;
		?>
        
				</div>

		</td>
		<td width="300px" class=top>
		<!-- right -->
		<p align="center"  ><form action="?u=game_list" method="GET">
	<table align="center" class="info_box" cellspacing="5" cellpadding="5"><tr><td class="sbjtd">
    <p align="center" class="pl">
	<?php 
	if( $sinfo = get_module_search_fields_by_id( 1 ) )
	{
		echo join( '、' , $sinfo );
	}
	?></p><input name="cat" type="hidden" value="1001"/><p align="center"><input name="search_text" type="text" size="20" maxlength="72"" value="" id="search_text"/>
       <input name="search_submit" type="submit" value="搜索"/><INPUT TYPE="hidden" name="u" value="game_list">
     </p></td></tr></table></p></form>
		
		</td>
	</tr>
</table>
<?php  
	include_once( ROOT . 'res/tpl/footer.tpl.html' );
?>
</body>

</html>