<? include("top.php") ?>
<link rel="stylesheet" type="text/css" media="all" href="<?=PATH_WEB_CSS?>/index.css">

<div id="pagebody">
  <div id="pf_left">
  	<!--左侧小竖条广告-->
  </div>
  <div id="mainbody">
    <div class="space1"></div>
</div>
</div>
    <div class="layout" >
      <div class="left">
        <div class="np_top">
            <div class="sec_left_o"> </div>
            <div class="sec_left_t">
              <div class="tnr">点击排行</div>
            </div>
            <div class="sec_left_th"></div>
          </div>
       
        <div class="featured_s" id="sub_a1">
        <ul>
     <?$j=1;foreach($list_M AS $k => $v){	?>   
<li><span><?=$j?>.</span><a href="<?=get_dir_url($v['id'])?>" target="_blank" title="<?=$v["title"]?>"><?=cut_str(de($v["title"]),10)?></a></li><?$j++;if($j>14) break;}?>
</ul>
        </div>
      </div>
      <div class="space2" style="width: 5px;">　</div>
      <div class="middle">
        <div class="fmfir"></div>
        <div class="fmsec">
        
        
        <?
foreach($list_i_flag as $k =>$v)
{
	$arr_i_flag[$v["t_name"]][]=$list_i_flag[$k];
}?>
<? $j=1; foreach($arr_i_flag AS $k => $v){	?>
          <div <?if(1==$j) echo "class='org_a'"; else echo "class='gre_a'";?> id="tab_d<?=$j?>">
            <div class="top">
              <div class="tan_01"></div>
              <div class="tan_02">
                <div class="dftnr" onMouseOver="tabit(<?=$j?>);" style="cursor: pointer;"><?=cut_no_str($k,2)?></div>
              </div>
            </div>
          </div>
<? $j++;if($j>4) break;}?>
          <div class="ftrig">&nbsp;</div>
        </div>  
               <!--首页推荐-->
<? $j=1; foreach($arr_i_flag AS $k => $v){	?>         
        <div class="fmthir" id="hot_d<?=$j?>" <?if($j!=1) echo 'style="DISPLAY: none"'?>>
<?$js=1; foreach($v as $ks =>$vs){?> 
        <div class="dfengt">
  <div class="left"><a href="<?=get_dir_url($vs['id'])?>"><img src="<?=showPics($vs["pic"])?>" border="0" onerror="this.src='/images/nopic.jpg'"></a></div>
  <div class="right">
    <div class="cbt">
      <div class="cbt_l">《<a href="<?=get_dir_url($vs['id'])?>"><?=strip_tags(de($vs["title"]))?></a>》</div>
      <div class="cbt_r"><?if($vs["writter_ext"]) {?>作者：<?=de($vs["writter_ext"])?><?}?></div>
    </div>
    <div class="denr"><?=cut_str(strip_tags(de($vs["content"])),150)?></div>
  </div>
</div>
<?$js++;if($js>2) break;}?>
        </div>
<? $j++;if($j>4) break;}?>  
        
      </div>
      <div class="right">
        <div class="authorinterviews">
        
        <div class="ai_top">
            <div class="risec_left_o"> </div>
            <div class="risec_left_t">
              <div class="tnr">最新公告</div>
            </div>
          </div>
          
			<div class="ai_bot">
           <div class="risec_left_o"> </div>
            <div class="aibnr">
            <!--公告-->
              <div style="padding-left:5px; padding-top:3px; padding-right:4px;"><?=cut_str(de($gonggao),500)?></div>
            </div>
          </div>
        </div>
        </div>
    </div>
    <div class="space1"></div>

</div>


<div id="aaaaa" style="text-align:center">
<!--推荐gg--><script language="javascript" src="<?=INCLUDE_PATH?>/ad.php?act=showggtui"></script>
</div>
</div>

    <div class="space1"></div>
    <div class="layout" style="overflow: hidden; height: 548px;">
      <div class="left">
        <div class="newproduct">
          <div class="np_top">
            <div class="sec_left_o"> </div>
            <div class="sec_left_t">
              <div class="tnr">热门推荐</div>
            </div>
            <div class="sec_left_th"></div>
          </div>
          <div class="np_bot">
            <div class="nbnr"><ul>
<?$j=1;foreach($list_hot AS $k => $v){	?>
              <li><a href="<?=get_dir_url($v['id'])?>" target="_blank" title="<?=$v["title"]?>"><?=cut_str(de($v["title"]),10)?></a></li>
<?$j++;if($j>16) break;}?>

			</ul> </div>
          </div>
        </div>
        
        <div class="fr_frace"></div>
        <div class="zxcbzp">
          <div class="ai_bot">
            <div>
              <!--左侧GG-->
              <div style="padding-top:5px; padding-left:0px;"><script language="javascript" src="<?=INCLUDE_PATH?>/ad.php?act=showggindexleft"></script></div>
            </div>
            
            
          </div>
         
        </div>
         <div class="fr_frace"></div>
        
        
      </div>
      <div class="space2">　</div>
      <div class="middle">
        <div class="flrmzp">
          <div class="top">
            <div class="middle_tablehead_t"></div>
            <div class="middle_tablehead_b">
              <div class="biaoti">分类热门作品</div>
              <div class="morea"></div>
            </div>
          </div>
          <div class="bot">
            <div class="botnr"> 
            
            
            
            
            
<?for($i=1;$i<count($list_l_flag);$i++){	?>
            <!--类型-->
				<div class="normw">
<!--类型左-->
                  <div class="wku">
                    <div class="top">
                      <div class="left"><a href="<?=get_dir_url($list_l_flag[$i][0]['id'])?>"><img alt='<?=de($list_l_flag[$i][0]["title"])?>' title='<?=de($list_l_flag[$i][0]["title"])?>' src="<?=showPics($list_l_flag[$i][0]['pic'])?>" border="0" onerror="this.src='/images/nopic.jpg'"></a></div>
                      <div class="right">
                        <div class="noa"><a href="<?=get_dir_url($list_l_flag[$i][0]['id'])?>"><?=de($list_l_flag[$i][0]["title"])?></a></div>
                        <?if($list_l_flag[$i][0]["writter_ext"]) {?><div class="nob">作者:<?=de($list_l_flag[$i][0]["writter_ext"])?></div><?}?>
                        <div class="noc"><?=cut_str(strip_tags(de($list_l_flag[$i][0]["content"])),35)?></div>
                      </div>
                    </div>
                    <div class="dbu"><span class="fontdeepblue"><a href="<?=$url_l_flag[$i]?>">[<?=cut_no_str($titl_l_flag[$i],2)?>]</a></span>
<?foreach($list_l_flag[$i] AS $ks => $vs){if($ks!=0){?>
 <a href="<?=get_dir_url($vs['id'])?>" target="_blank" title="<?=$vs["title"]?>"><?=cut_no_str(de($vs["title"]),4)?></a>
  <?if($ks==4) echo "<br>";?>
  <?if($ks>8) break;}}?> 
 </div> 
                  </div>
                  
   <!--end类型左-->                
                  
                  
<!--类型右-->  
<? $i++;?>
                  <div class="wku">
                    <div class="top">
                      <div class="left"><a href="<?=get_dir_url($list_l_flag[$i][0]['id'])?>"><img alt='<?=de($list_l_flag[$i][0]["title"])?>' title='<?=de($list_l_flag[$i][0]["title"])?>' src="<?=showPics($list_l_flag[$i][0]['pic'])?>" border="0" onerror="this.src='/images/nopic.jpg'"></a></div>
                      <div class="right">
                        <div class="noa"><a href="<?=get_dir_url($list_l_flag[$i][0]['id'])?>"><?=de($list_l_flag[$i][0]["title"])?></a></div>
                        <?if($list_l_flag[$i][0]["writter_ext"]) {?><div class="nob">作者:<?=de($list_l_flag[$i][0]["writter_ext"])?></div><?}?>
                        <div class="noc"><?=cut_str(strip_tags(de($list_l_flag[$i][0]["content"])),35)?></div>
                      </div>
                    </div>
                    <div class="dbu"><span class="fontdeepblue"><a href="<?=$url_l_flag[$i]?>">[<?=cut_no_str($titl_l_flag[$i],2)?>]</a></span>

<?foreach($list_l_flag[$i] AS $ks => $vs){if($ks!=0){?>
 <a href="<?=get_dir_url($vs['id'])?>" target="_blank" title="<?=$vs["title"]?>"><?=cut_no_str(de($vs["title"]),4)?></a>
  <?if($ks==4) echo "<br>";?>
 <?if($ks>8) break;}}?> 
 
 </div>
                  </div>
             <!--end类型右-->           
                </div> 
          <!--end类型-->   
<?}?>
    
                 </div>
          </div>
        </div>
      </div>
      <div class="right">
        <div class="xhxsb">
         <div class="ai_top">
            <div class="risec_left_o"> </div>
            <div class="risec_left_t">
              <div class="tnr">TOP排行</div>
            </div>
            <div class="risec_left_th"></div>
          </div>
          
          <div class="xhxsb_s">
            <div id="sub_c1">
<?$j=1; foreach($list_D AS $k => $v){?>
            <div class="dybf" style="padding-left:15px;"><a href="<?=get_dir_url($v['id'])?>" target="_blank" title="<?=$v["title"]?>"><?=cut_str(de($v["title"]),10)?></a></div>
<?$j++;if($j>16) break;}?>
            </div>
          </div>
        </div>
        <div class="fr_frace"></div>
        <div class="zxcbzp">
          <div class="ai_bot">
            <div>
              <!--右侧GG-->
              <div style="padding-top:5px; padding-left:5px;"><script language="javascript" src="<?=INCLUDE_PATH?>/ad.php?act=showggindexright"></script></div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="space1">　</div>
    <div class="ad02" id="placeholder_banner_index_across_three"><div id="www_index_3_1" style="text-align:center">
<!--中部GG--><script language="javascript" src="<?=INCLUDE_PATH?>/ad.php?act=showggmain"></script>
</div>

    </div>
    <div class="space1"></div>
    <div class="layout" >
      <div class="left">
        <div class="xstmb">
          <div class="np_top">
            <div class="sec_left_o"> </div>
            <div class="sec_left_t">
              <div class="tnr">新书提名榜 </div>
            </div>
            <div class="sec_left_th"></div>
          </div>
          <div class="np_bot">
            <div class="nbnr"> 			<ul>
<?$j=1;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>
<?$j++;if($j>19) break;}?>
				

			</ul> </div>
          </div>
        </div>
        <div class="fr_frace"></div>
        </div>
      <div class="space2">　</div>
      <div class="middle">
        <div class="zxgx">
          <div class="top">
            <div class="middle_tablehead_t"></div>
            <div class="middle_tablehead_b">
              <div class="biaoti">最新更新</div>
              <div class="morea"><a href="<?=rewrite_list_rule('list','news')?>">更多..</a></div>
            </div>
          </div>
          <div class="bot">
            <div class="botnr"> 	
<?$j=1;foreach($book_ext_list AS $k => $v){	?>		
            <div>
				<div class="gx_f1"><?foreach($v["t_arr"] as $ks =>$vs){ echo '<a target="_blank" href='.rewrite_list_rule("type",$ks).'>['.$vs.']</a>';break;}?></div>
				<div class="gx_s">[<a href="<?=get_dir_url($v['b_id'])?>" target="_blank" title="<?=$v["b_name"]?>"><u><?=cut_str(de($v["b_name"]),13)?></u></a>]&nbsp;<a href="<?=get_dir_url($v['b_id']).$v["id"].'.'.$html_ext?>" target="_blank" title="<?=sort_preg_replace($v["sort"],de($v["title"]))?>"><?=cut_str(sort_preg_replace($v["sort"],de($v["title"])),16)?></a></div>
				<div class="gx_t"><<?=dateMD($v["u_time"])?>></div>
			</div>
<?$j++;if($j>19) break;}?>
 </div>
          </div>
        </div>
      </div>
      <div class="right">
        <div class="yczdj">
          <div class="ai_top">
            <div class="risec_left_o"> </div>
            <div class="risec_left_t">
              <div class="tnr">热门标签</div>
            </div>
            <div class="risec_left_th"></div>
          </div>
          <div class="ai_bot">
            <div class="aibnr"> <ul>
<?$j=1;foreach($list_tag AS $k => $v){	?>
<li><a alt="<?=$v["tag"]?>" title="<?=$v["tag"]?>" href="<?=rewrite_list_rule('tag',$v['id'])?>" target="_blank"><?=cut_str($v["tag"])?></a>(<?=$v["count"]?>)</li>
<?$j++;if($j>19) break;}?>
</ul> </div>
          </div>
        </div>
        <div class="fr_frace"></div>
        </div>
    </div>
    <div class="space1"></div>
    <div class="layout">
      <div class="yqlj_k">
        <div>
        友情连接：<? foreach($list_link AS $k => $v){?><a href="<?=$v["url"]?>" target="_blank"><?=$v["name"]?></a> &nbsp; <?}?>
 
 </div>
      </div>
    </div>
  </div>
  <div id="pf_right">
  	<!--右侧小竖条广告-->
  </div>
</div>


<div class="space1"></div>


<? include("bot.php") ?>