<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 class="top">
		<!-- main -->
		<form action="" method="POST" name="form">
		</form><?php echo $vf_js; ?>
		<?php foreach( $reviews as $item  ): ?>
	<table width="90%" border="0" style="margin:10px" >
	<tr>
    <td valign="top" width="50px" align="center">
		<div class="diggvote"><a href="?a=review_vote&vote=up&mid=<?php echo $item['dy_module_id'] ?>&id=<?php echo $item['id'] ?>&forward=<?php echo urlencode( $_SERVER['REQUEST_URI'] ) ?>">顶</a></div>
		<!--<div class="act" style="width:40px;height:40px">顶</div>-->
		<div class="diggding"><font face="MS Reference Sans Serif" style="font-size: 7pt"><?php echo $item['dy_up_times'] ?>people</font></div>
		<br/>
	</td>
	<td valign="top" class="hline">
		<p class="h3"><a class="m" href="?a=review_display&id=<?php echo $item['id'] ?>"><?php echo $item['dy_title'] ?></a>&nbsp;&nbsp; </p>  
		<a href="?a=people&uid=<?php echo $item['dy_uid'] ?>"><img border="0" src="<?php echo show_user_small_icon( $item['dy_uid'] ); ?>"></a> <a href="?a=people&uid=<?php echo $item['dy_uid'] ?>"><?php echo $item['dy_nickname'] ?></a> <?php if( $item['dy_city'] > 0 ) : ?>(<a href="?a=location&city=<?php echo $item['dy_city'] ?>"><?php echo get_city_name_by_code( $item['dy_city'] ) ?></a>)<?php endif; ?> <?php echo str_timego($item['dy_add_time']) ?> 评论: 
		
		<?php  
		
		$content = $contents[$item['dy_content_id']] ; 
		eval (  '?> ' . $content_templates[$item['dy_module_id']] . '<?php ' ); 
		
		?> 
        
		<span title="<?php $rt = get_rate_type(  ); echo $rt[$item['dy_rate']] ?>">&nbsp;&nbsp<img src="res/img/<?php echo $item['dy_rate']; ?>stars.gif"/></span>
		<?php if( intval( $item['dy_reply_count'] ) > 0 ) :?>
		<img src="res/img/digg_reply.gif" border="0"><a href="?a=review_display&id=<?php echo $item['id'] ?>"><?php echo $item['dy_reply_count']; ?>回应</a>
		<?php endif ?>
		<br/><br/><?php echo $c = gbsubstr($item['dy_content'] , 300 );
		if( $c != $item['dy_content']  ) : 
		?>
		(<a href="?a=review_display&id=<?php echo $item['id'] ?>">全文</a>)
		<?php endif; ?><br clear="all"/>	
	</td>
	</tr></table><br/>
	<?php endforeach; ?>
	<?php echo $pager ?>
		
		</td>
		<td width="300px" class=top>
		<!-- right --><br/>
		<?php include_once( ROOT . 'res/tpl/global_search_box.tpl.html' ); ?>
		<br/>

		<h2>用你的鼠标投票　· · · · · ·　
    </h2>
    <div class="indent"><span class="pl">如果你觉得一篇评论对你有用，请你点击“顶”。除了对作者的鼓励，大家的投票还直接决定那些评论出现的顺序。<br/><br/>
        所有“有用”、“没用”和“顶”的点击都必须在<a href="?a=login">登录</a>后进行。</span></div><br/><br/>
		</td>
	</tr>
</table>
<?php  
	include_once( ROOT . 'res/tpl/footer.tpl.html' );
?>
</body>

</html>