<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">
		<!-- main -->
	<h2><?php echo _conf( 'WEB_MODULE_GUIDE' ) ?>　
    </h2>
    <br/>
	<p align="center"  ><form action="?u=book_list" method="GET">
	<table align="center" class="info_box" style="width:400px" 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="36" maxlength="72"" value="" id="search_text"/>
       <input name="search_submit" type="submit" value="搜索"/><INPUT TYPE="hidden" name="u" value="book_list">
     </p></td></tr></table></p></form>
    &gt; <a href="?u=book_add">添加<?php echo _conf( 'WEB_SITE_NAME' ) ?>没有的书刊</a>
	<br/>
	 <h2>最有用的新评论　· · · · · ·　
    <span class="pl">( <a href="?a=review&mid=1">浏览所有新的评论</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"><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'] ?></font></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; ?>
	<!--  -->
		

		</td>
		<td width="300px" class=top>
		<!-- right -->
		<h2>标签汇总　· · · · · ·　
    </h2><?php $tag_data = array_chunk( $tags , 10 ); ?>
	<?php foreach( $tag_data as $tag_line ): ?>
    <div style="width:135px;float:left;" class="explain"><div class="indent"><span style="line-height:25px;font-size:12px;border-bottom:1px dotted #DDDDDD;">
    <?php foreach( $tag_line as $tag ): ?>
	<a href="?u=book_list&tag=<?php echo  $tag['tag'] ; ?>"><?php echo $tag['tag']; ?></a>(<?php echo $tag['c']; ?>)<br/>
	<?php endforeach; ?>
    </span></div>
    </div>
	<?php endforeach; ?>
    
	
	
	<br clear="all"/><div class="pl2" align="right">&gt; <a href="?u=book_tag">浏览全部标签</a></div>
		<!-- 新内容呈现模版开始 -->
		<!-- 更换下边字段以实现图文混排 -->
		
		<?php
$data = array_chunk( get_module_content_by_module_id( 1 ) ,  3 );
?><h2><?php echo _conf('WEB_SITE_NAME') ?>刚刚增加的 · · · · · ·</h2>
<table cellspacing="5" cellpadding="5">
<?php foreach( $data as $line ): ?>
<tr class="top">
	<?php foreach( $line as $item ): ?>
	<td valign="top" align="center" >
	<div align="center"><a href="?u=book_display&id=<?php echo $item["id"]; ?>"><img src="<?php show_module_content_icon( 1 , 'dy_book_pic' , $item['id'] , $item['dy_book_pic'] ) ?>" class="m_sub_img" border="0"/><br/><?php echo $item["dy_book_title"]; ?></a></div>
	</td>
	<?php endforeach; ?>
</tr>
<?php endforeach; ?>
</table>
<br clear="all"/>
<p class="pl" align="right">&gt; <a href="?u=book_list">浏览全部</a></p>
		
		
		<!-- 更换上边字段以实现图文混排 -->
		<!-- 新内容呈现模版结束 -->
		</td>
	</tr>
</table>
<?php  
	include_once( ROOT . 'res/tpl/footer.tpl.html' );
?>
</body>

</html>