<? include template("head"); ?>
<div id="main">
  <div class="main_con">
    <div class="left_con_text spe_left">
    	<div class="title_line1"><div class="left_title_word1">本站公告 </div></div><div class="clear-f"></div>
        	<ul>
        	   <li><?=de($gonggao)?></li>
        	</ul>
        </div>
          <div class="left_con_text spe_left">
            <div class="title_line1"><div class="left_title_word1">点击排行 </div><div class="right_title_word1"><!--<a href="<?=BOOK_YM_PATH.'/'.$month_y;?>" target="_blank">更多..</a>--></div></div><div class="clear-f"></div>
   	  <ul><?foreach($list_M AS $k => $v){	?>
		<li><a href="<?=get_dir_url($v['id'])?>" target="_blank" title="<?=$v["title"]?>">·<?=cut_str(de($v["title"]),10)?></a></li><?}?>  
      </ul>        
        </div>
        
   
     <div class="gg_spe_left">
        	<ul>
				<li>
				<!--首页左侧gg-->
				<script language="javascript" src="<?=INCLUDE_PATH?>/ad.php?act=showggindexleft"></script>				
				</li>
        	</ul>        
     </div>
       <div class="left_con_text spe_left">
      <div class="title_line1"><div class="left_title_word1" >最近更新  </div><div class="right_title_word1"><a href="<?=rewrite_list_rule('list','news')?>"  target="_blank">更多..</a></div></div><div class="clear-f"></div>
      
        	<ul>
        	 <?foreach($list_new AS $k => $v){	?><li><a href="<?=get_dir_url($v['id'])?>" target="_blank" title="<?=$v["title"]?>">·<?=cut_str(de($v["title"]),10)?></a></li><?}?>
        	</ul>        
        </div>
      
      
    </div>
    <div class="main_con" style="width:524px;">
    	<div class="left_con_text spe_mid">
        	<div class="title_line"><div class="title_word">推荐阅读</div>
        	</div>
            <div id="top_read">
            	<div id="pic_area">
            	<!--推荐gg-->
				<script language="javascript" src="<?=INCLUDE_PATH?>/ad.php?act=showggtui"></script>
				</div>
              <ul><?$j=1;foreach($list_i_flag AS $k => $v){	?>
					<li>[<a href="<?=rewrite_list_rule('type',$v['t_id'])?>"><span style="color:#d30"><?=$v["t_name"]?></span></a>]<a href="<?=get_dir_url($v['id'])?>" target="_blank" class="pad"><?=de($v["title"])?></a></li><?$j++;if($j>12) break;}?>                                          	
              </ul>
                <div class="clear-f"></div>
          </div>
      	</div>
      	 <!--类型-->
      	 <?$jun=ceil(count($list_l_flag)/2);foreach($list_l_flag AS $k => $v){	?>
        <div class="left_con_text spe_mid">
       	  <div class="title_line"><div class="title_word"><?=$titl_l_flag[$k]?></div><a href="<?=$url_l_flag[$k]?>" target="_blank">更多..</a></div>
            <div class="mid_read">
           	  <div id="pic_area2"><a href="<?=get_dir_url($v[0]['id'])?>" target="_blank"><img alt="<?=$v[0]["title"]?>" title="<?=$v[0]["title"]?>"  width="110" height="150" src="<?=showPics($v[0]["pic"])?>" border="0" /></a></div>           
                <ul class="mid_read_left"><?foreach($v AS $ks => $vs){if($ks!=0){?>
					<li><a href="<?=get_dir_url($vs['id'])?>" target="_blank" title="<?=$vs["title"]?>">·<?=cut_str(de($vs["title"]),9)?></a></li><?if($ks>=17) break;}}?>                                                   	
                </ul>
                           
                <div class="clear-f"></div>
            </div>        
      </div>
      <?if($k==$jun){?><div class="left_con_text spe_mid">
		<!--首页中部gg-->
		<script language="javascript" src="<?=INCLUDE_PATH?>/ad.php?act=showggmain"></script>
		</div><?}?>
      <?}?>
      
    </div>
    
    <div class="main_con_r">
    	<div class="left_con_text spe_rig">
          <div class="title_line bg_col">TOP 排行<!--排序sort前十--></div>
            <ul><? $j=1; foreach($list_D AS $k => $v){?>
				<li><a href="<?=get_dir_url($v['id'])?>" target="_blank" title="<?=$v["title"]?>"><img src="<?=PATH_WEB_IMAGES.'/'.$j.'.gif'?>"> <?=cut_str(de($v["title"]),10)?></a></li><?$j++;if($j>10) break;}?>                                                                              	
          </ul>    
        </div>
        <div class="left_con_text spe_rig">
		  <div class="title_line bg_col">最热图书</div> 
            <ul><? $j=1;foreach($list_hot AS $k => $v){	?>
				<li><a href="<?=get_dir_url($v['id'])?>" target="_blank" title="<?=$v["title"]?>"><b class="top_b"><?=$j?></b>. <?=cut_str(de($v["title"]),10)?></a></li><?$j++;}?>                                                                                          	
          </ul>                 
        </div>
        <div class="gg_spe_rig">
            <ul>
			<li>
			<!--首页右侧gg-->
			<script language="javascript" src="<?=INCLUDE_PATH?>/ad.php?act=showggindexright"></script>
			</li>                                                                                             	
          </ul>                 
        </div>
        <div class="left_con_text spe_rig">
		  <div class="title_line bg_col">热门标签<!--显示排名前十的tag--></div> 
            <ul id="tag"><?foreach($list_tag AS $k => $v){	?>
                <li><a alt="<?=$v["tag"]?>" title="<?=$v["tag"]?>" href="<?=rewrite_list_rule('tag',$v['id'])?>" target="_blank"><?=$v["tag"]?></a>(<?=$v["count"]?>)</li><?}?><div class="clear-f"></div>                                                                     	
           </ul>              
         </div>    
    </div>
    <div class="clear-f"></div>    
</div>
<? include template("foot"); ?>
