<?php 
include_once( ROOT . 'meta/city.meta.php' );
@extract( $data ); ?>
<h2><?php echo short_name($module['dy_module_name']); ?>: 最有用的新评论　· · · · · ·　
    <span class="pl">( <a href="?a=review&mid=<?php echo $module['id']; ?>">浏览所有新的评论</a> )</span></h2>
	<br/>
	<!--  -->
	<?php foreach( $reviews as $item  ): ?>
	<table width="90%" border="0" style="margin:10px" >
	<tr>
    <td valign="top" width="50px" align="center">
		<div class="diggvote"><?php echo $item['dy_up_times'] ?></div>
		<!--<div class="act" style="width:40px;height:40px">顶</div>-->
		<div class="diggding"><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>
		
	</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_template . '<?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>
		</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; ?>