<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 = $title = $item['dy_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 -->
		<!-- begin -->
<table width="100%"><tr>
     <td valign="top"><a href="?a=people&uid=<?php echo $item['dy_uid'] ?>"><img border="0" hspace="5" vspace="5" src="<?php echo show_user_icon( $item['dy_uid'] ); ?>"></a></td>
     <td valign="top" class="hline">
    
      <span class="mn"><?php echo $item['dy_add_time'] ?></span>
      <span class="pl2">　　来自: <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; ?>
     <br/><br/>评论: <?php 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><br/><br/><?php echo $item['dy_content'] ?><br clear="all"/>
	 <?php if( is_login() & $item['dy_uid'] == $_SESSION['dy_uid'] ): ?>
	 <div align="right"><span class="gact" style="float:right;">&gt; <a href="?a=review_modify&id=<?php echo $item['id'] ?>">修改</a></span></div>
	 <?php endif; ?><p/>
	<br/>
    <div align="right"> &nbsp; 
            <span class="gact"><a href="?a=to_admin&type=4&forward=<?php echo urlencode( get_page_url() ) ?>">有不合适内容</a></span>
            </div><div class="ul"> </div><p align="right"><span class="pl">此评论对<?php echo $item['dy_up_times'] ?>人有用。
            对你&nbsp;</span>
            <span class="act"><a href="?a=review_vote&vote=down&mid=<?php echo $item['dy_module_id'] ?>&id=<?php echo $item['id'] ?>">没用</a></span>&nbsp;&nbsp;&nbsp;
			<span class="act"><a href="?a=review_vote&vote=up&mid=<?php echo $item['dy_module_id'] ?>&id=<?php echo $item['id'] ?>">有用</a></span>
            </p><br/>
        <br/>
    <?php foreach( $replys as $reply ): ?>
    <table width="100%"><tr><td valign="top">
    <h3><span class="pl"><?php echo $reply['dy_add_time'] ?>: <a href="?a=people&uid=<?php echo $reply['dy_uid'] ?>"><?php echo $reply['dy_nickname'] ?></a></span></h3>
      　　<?php echo nl2br($reply['dy_content']) ?>
	 <?php if( is_login() & $reply['dy_uid'] == $_SESSION['dy_uid'] ): ?>
	 <div align="right"><span class="gact" style="float:right;">&gt; <a href="?a=review_reply_delete&id=<?php echo $reply['id'] ?>">删除</a></span></div>
	 <?php endif; ?>
    </td></tr></table>
	<?php endforeach; ?>
  
		<h2>你的回应　· · · · · ·　
    </h2>
		<form action="?a=review_reply_save&dy_review_id=<?php echo $item['id'] ?>&dy_content_id=<?php echo $item['dy_content_id'] ?>&dy_module_id=<?php echo $item['dy_module_id'] ?>" method="POST">
        <textarea name="dy_content" rows="8" cols="49"></textarea><br/>
        <input type="submit" value="加上去" class="dbutton"/>
		</form>
    </td></tr></table>
	
        
		<!-- end -->
		<form action="" method="POST" name="form">
		</form><?php echo $vf_js; ?>
		
		</td>
		<td width="300px" class=top>
		<!-- right -->
		<?php eval(  '?> ' . $content_template_list . '<?php ' ); ?>
		
		</td>
	</tr>
</table>
<?php  
	include_once( ROOT . 'res/tpl/footer.tpl.html' );
?>
</body>

</html>