<? include("top.php") ?>
<link rel="stylesheet" type="text/css" href="<?=PATH_WEB_CSS?>/style.css">
</head><body>

<div id="page">

<!--顶部-->
<div id="head">
  <h2><a href="<?=DOMAIN_PATH?>"><img title="<?=$sys["site_title"]?>" alt="<?=$sys["site_title"]?>"  class="lefttop" src="<?=DOMAIN_PATH.'/'.$sys['gg_logo']?>" width="241" height="68" /></a></h2>
  <div class="cot_r">
    <div class="login fixfloat">
      <div class="letfloat">
<table background="<?=PATH_WEB_IMAGES?>/user_bg.gif" border="0" cellpadding="0" cellspacing="0" width="100%">
 <tbody><tr>
    <td align="left" height="20" valign="middle" >欢迎您来到本站！<span id="kk_top_login"></span><script>GetLogin()</script></td>
    <td class="t-2" align="right" valign="middle"><a href="javascript:void(0);" target="_self" onClick="javascript:setMyHome('<?=DOMAIN_PATH?>')">设为首页</a> <a href="javascript:void(0);" target="_self" onClick="javascript:AddFavorite('<?=DOMAIN_PATH?>','<?=$sys["site_title"]?>')" >收藏本站</a></td>
 </tr>
</tbody></table>
</div>
           <div class="clearfix"></div>
    </div>
    <div class="menu">
    <!--第一菜单-->
    <a href="<?=DOMAIN_PATH?>" class="hots">小说首页</a>
    <?foreach($arr_menu AS $k => $v){?><a href="<?=rewrite_list_rule("type",$v["id"])?>"><?=$v["name"]?></a><?}?>
    <?if(get_system("quanben_flag")){?>
    <a href='<?=rewrite_list_rule("over",$v["id"])?>'>全本小说</a>
    <?}?>
    </div>
  </div>
  <div class="clearfix"></div>
  <div class="menu_2">
  <!--第二菜单-->
  <?foreach($arr_menu2 AS $k => $v){?><a href="<?=rewrite_list_rule("type",$v["id"])?>"><?=$v["name"]?></a><?}?>
<div class="clearfix"></div>
  </div> 
 <div class="search">
		<form name="articlesearch" method="post" action="<?=DOMAIN_PATH?>/search.php">
				<strong>小说搜索</strong>：<input name="keys" class="keyword" id="keys" value="<?=$keys?>" type="text">
                <? foreach($dbtitle as $k =>$v){?>
    <input name="t" <? if($k==$g_cgival['t']) echo "checked";?> value=<?=$k?> class="inp_5" type="radio"><span class="sercht"><?=$v?></span>
    <? }?>
                <input name="Submit" src="<?=PATH_WEB_IMAGES?>/button_search.png" class="go" type="image">
                <span class="hot">精品小说推荐</span>
                <a href="<?=DOMAIN_PATH?>/tongji.php?act=w">周点击榜</a>
                <a href="<?=DOMAIN_PATH?>/tongji.php?act=m">月点击榜</a>
                <a href="<?=DOMAIN_PATH?>/tongji.php">总点击榜</a>
                <a href="<?=rewrite_list_rule('list','news')?>">最新入库</a>
		</form>
        <div class="clearfix"></div>
  </div>
</div>	
<!--END顶部-->
<!--头部广告-->
<div align="center"><script language="javascript" src="<?=INCLUDE_PATH?>/ad.php?act=showggtop"></script>
</div>
<!--END头部广告-->



<div id="content">
		<div class="webIndex">
		<div class="focus">
		
		<!--第一行左侧四个循环-->
		<?$j=0;foreach($list_i_flag AS $k => $v){	?>
		<div class="small">
			<div class="photo"><a href="<?=get_dir_url($list_i_flag[$j]['id'])?>"><img src="<?=showPics($list_i_flag[$j]['pic'])?>" onerror="this.src='/images/nopic.jpg'"></a></div>
			<div class="intro">
			<h2><a href="<?=get_dir_url($list_i_flag[$j]['id'])?>"><?=cut_str(de($list_i_flag[$j]["title"]),7)?></a></h2>
			<p><?=cut_str(strip_tags(de($list_i_flag[$j]["content"])),50)?></p>
			</div>
		</div>	  
		<?$j++;if($j>=4) break;}?>  
		
		</div>
		<div class="index">
		<div class="all">
		<h2>热点：<!--3个-->
			<?$j=4;foreach($list_i_flag AS $k => $v){	?>
			<a title="<?=de($list_i_flag[$j]["title"])?>" href="<?=get_dir_url($list_i_flag[$j]['id'])?>"><?=cut_str(de($list_i_flag[$j]["title"]),5)?></a>
			<?$j++;if($j>=7) break;}?>  
		</h2>
		<h3><!--5个-->
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<?$j=7;foreach($list_i_flag AS $k => $v){	?>
			<a title="<?=de($list_i_flag[$j]["title"])?>" href="<?=get_dir_url($list_i_flag[$j]['id'])?>"><?=cut_str(de($list_i_flag[$j]["title"]),5)?></a>
			<?$j++;if($j>=12) break;}?>  
		</h3>		
		<p>新书：<!--5个-->
			<?$j=12;foreach($list_i_flag AS $k => $v){	?>
			<a title="<?=de($list_i_flag[$j]["title"])?>" href="<?=get_dir_url($list_i_flag[$j]['id'])?>"><?=cut_str(de($list_i_flag[$j]["title"]),5)?></a>
			<?$j++;if($j>=17) break;}?>  
		</p>
		<p><font color="red">专题：</font><!--4个-->
			<?$j=17;foreach($list_i_flag AS $k => $v){	?>
			<a href="<?=get_dir_url($list_i_flag[$j]['id'])?>"><?=cut_str(de($list_i_flag[$j]["title"]),5)?></a>
			<?$j++;if($j>=21) break;}?>  
		</p>
		</div>


		<div class="cate lz">
		<h2><!--连载推荐3个-->
			<?$j=21;foreach($list_i_flag AS $k => $v){	?>
			<a href="<?=get_dir_url($list_i_flag[$j]['id'])?>"><?=cut_str(de($list_i_flag[$j]["title"]),5)?></a>
			<?$j++;if($j>=24) break;}?>  
		</h2>
		<ul><!--32个-->
			<?$j=24;foreach($list_i_flag AS $k => $v){ if($list_i_flag[$j]["title"]){?>
			<li>[<a href="<?=rewrite_list_rule('type',$list_i_flag[$j]['t_id'])?>"><span style="color:#d30"><?=cut_str($list_i_flag[$j]["t_name"],7)?></span></a>]<a href="<?=get_dir_url($list_i_flag[$j]['id'])?>"><?=de($list_i_flag[$j]["title"])?></a></li>
			<?} $j++;if($j>=65) break;}?>  
        </ul>		</div>
		
		
		</div>
		<div class="column">
		<div class="box_hit">
		<h2><span class="title">点击排行<!--15个--></span><span class="tab"><a href="#"> </a></span></h2>
		<div id="d1">
		<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>15) break;}?>  
		
		</ul></div>
		</div>
		<div class="box_gg webAd">
		<h2><span class="title">网站公告</span></h2>
		<ul><font color="#000099"><?=cut_str(de($gonggao),55)?></font><br></ul>
		</div>
		</div>
		</div>
		<div class="works editor">
		<div class="commend">
		<h2><span>编辑组推荐小说</span></h2>
		
		<ul class="mod">
		<!--编辑组推荐小说1 左侧-->
		<li class="box">
		<h3><a href="<?=$url_l_flag[1]?>" target="_blank"><?=de($titl_l_flag[1])?></a></h3>
		<div class="spacing"><div class="hot">
		<div class="photo"><a href="<?=get_dir_url($list_l_flag[1][0]['id'])?>" target="_blank"><img alt="<?=de($list_l_flag[1][0]["title"])?>" title="<?=de($list_l_flag[1][0]["title"])?>" src="<?=showPics($list_l_flag[1][0]["pic"])?>" onerror="this.src='/images/nopic.jpg'"></a></div>
		<div class="intro">
		<h4><a href="<?=get_dir_url($list_l_flag[1][0]['id'])?>" target="_blank"><?=de($list_l_flag[1][0]["title"])?></a></h4>
		<p><?=cut_str(strip_tags(de($list_l_flag[1][0]["content"])),80)?></p></div></div>
		<ul>
		<?foreach($list_l_flag[1] AS $ks => $vs){if($ks<=8 &&$ks!=0){	?>
		<li>[<a href="<?=$url_l_flag[1]?>" target="_blank"><?=$titl_l_flag[1]?></a>]<a title="<?=de($vs["title"])?>" alt="<?=de($vs["title"])?>" href="<?=get_dir_url($vs['id'])?>" target="_blank"><?=cut_str(de($vs["title"]),6)?></a></li>
		<?}}?>
		</ul></div>		</li>
		
		<!--编辑组推荐小说1 右侧-->
		<li class="box noMargin">
		<h3><a href="<?=$url_l_flag[2]?>" target="_blank"><?=de($titl_l_flag[2])?></a></h3>
		<div class="spacing">
		<div class="hot">
		<div class="photo"><a href="<?=get_dir_url($list_l_flag[2][0]['id'])?>" target="_blank"><img alt="<?=de($list_l_flag[2][0]["title"])?>" title="<?=de($list_l_flag[2][0]["title"])?>" src="<?=showPics($list_l_flag[2][0]["pic"])?>" onerror="this.src='/images/nopic.jpg'"></a></div>
		<div class="intro"><h4><a href="<?=get_dir_url($list_l_flag[2][0]['id'])?>" target="_blank"><?=de($list_l_flag[2][0]["title"])?></a></h4><p><?=cut_str(strip_tags(de($list_l_flag[2][0]["content"]),80))?></p>
		</div></div>
		<ul>
		<?foreach($list_l_flag[2] AS $ks => $vs){if($ks<=8 &&$ks!=0){	?>
		<li>[<a href="<?=$url_l_flag[2]?>" target="_blank"><?=de($titl_l_flag[2])?></a>]<a title="<?=de($vs["title"])?>" alt="<?=de($vs["title"])?>" href="<?=get_dir_url($vs['id'])?>" target="_blank"><?=cut_str(de($vs["title"]),6)?></a></li>
		<?}}?>
		</ul></div>		</li>
		</ul>
		
		
		<ul class="mod">
		<!--编辑组推荐小说2 左侧-->
		<li class="box">
		<h3><a href="<?=$url_l_flag[3]?>" target="_blank"><?=de($titl_l_flag[3])?></a></h3>
		<div class="spacing"><div class="hot">
		<div class="photo"><a href="<?=get_dir_url($list_l_flag[3][0]['id'])?>" target="_blank"><img alt="<?=de($list_l_flag[3][0]["title"])?>" title="<?=de($list_l_flag[3][0]["title"])?>" src="<?=showPics($list_l_flag[3][0]["pic"])?>" onerror="this.src='/images/nopic.jpg'"></a></div>
		<div class="intro">
		<h4><a href="<?=get_dir_url($list_l_flag[3][0]['id'])?>" target="_blank"><?=de($list_l_flag[3][0]["title"])?></a></h4>
		<p><?=cut_str(strip_tags(de($list_l_flag[3][0]["content"])),80)?> </p></div></div>
		<ul>
		<?foreach($list_l_flag[3] AS $ks => $vs){if($ks<=8 &&$ks!=0){	?>
		<li>[<a href="<?=$url_l_flag[3]?>" target="_blank"><?=$titl_l_flag[3]?></a>]<a title="<?=de($vs["title"])?>" alt="<?=de($vs["title"])?>" href="<?=get_dir_url($vs['id'])?>" target="_blank"><?=cut_str(de($vs["title"]),6)?></a></li>
		<?}}?>
		</ul></div>		</li>
		
		<!--编辑组推荐小说2 右侧-->
		<li class="box noMargin">
		<h3><a href="<?=$url_l_flag[4]?>" target="_blank"><?=de($titl_l_flag[4])?></a></h3>
		<div class="spacing">
		<div class="hot">
		<div class="photo"><a href="<?=get_dir_url($list_l_flag[4][0]['id'])?>" target="_blank"><img alt="<?=$list_l_flag[4][0]["title"]?>" title="<?=$list_l_flag[4][0]["title"]?>" src="<?=showPics($list_l_flag[4][0]["pic"])?>" onerror="this.src='/images/nopic.jpg'"></a></div>
		<div class="intro"><h4><a title="<?=de($list_l_flag[4][0]["title"])?>" href="<?=get_dir_url($list_l_flag[4][0]['id'])?>" target="_blank"><?=de($list_l_flag[4][0]["title"])?></a></h4><p><?=cut_str(strip_tags(de($list_l_flag[4][0]["content"])),80)?></p>
		</div></div>
		<ul>
		<?foreach($list_l_flag[4] AS $ks => $vs){if($ks<=8 &&$ks!=0){	?>
		<li>[<a href="<?=$url_l_flag[4]?>" target="_blank"><?=de($titl_l_flag[4])?></a>]<a title="<?=de($vs["title"])?>" alt="<?=de($vs["title"])?>" href="<?=get_dir_url($vs['id'])?>" target="_blank"><?=cut_str(de($vs["title"]),6)?></a></li>
		<?}}?>
		</ul></div>		</li>
		</ul>
		
		
		</div>
		<div class="column">
		<div class="box_hot">
		<h2><span class="title">热门推荐<!--21--></span><span class="tab"> </span></h2>
		<div id="d3"><ul>
		
		
		<?$j=1;foreach($list_hot 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>21) break;}?>                                                                                          	
		
		
        </ul></div>
		
		</div>
		</div>		
		</div>
		<!--居中广告-->
		<div align="center">
		<!--首页中部gg-->
		<script language="javascript" src="<?=INCLUDE_PATH?>/ad.php?act=showggmain"></script>
		</div>
		 
		<!--第五个栏目推荐-->
		<div class="works levelA">
		<div class="commend">
		<h2><span><a href="<?=$url_l_flag[5]?>" target="_blank"><?=de($titl_l_flag[5])?></a></span></h2>
		<div class="body"><div class="story">
		<div class="mod"><div class="photo"><a href="<?=get_dir_url($list_l_flag[5][0]['id'])?>" target="_blank"><img alt="<?=de($list_l_flag[5][0]["title"])?>" title="<?=de($list_l_flag[5][0]["title"])?>" src="<?=showPics($list_l_flag[5][0]["pic"])?>" onerror="this.src='/images/nopic.jpg'"></a></div>
		<div class="intro"><h4><a title="<?=$list_l_flag[5][0]["title"]?>" href="<?=get_dir_url($list_l_flag[5][0]['id'])?>" target="_blank"><?=de($list_l_flag[5][0]["title"])?></a></h4>
		<p>　<?=cut_str(strip_tags(de($list_l_flag[5][0]["content"])),80)?> </p>
		</div></div>
		<div class="mod"><div class="photo"><a href="<?=get_dir_url($list_l_flag[5][1]['id'])?>" target="_blank"><img alt="<?=de($list_l_flag[5][1]["title"])?>" title="<?=de($list_l_flag[5][1]["title"])?>" src="<?=showPics($list_l_flag[5][1]["pic"])?>" onerror="this.src='/images/nopic.jpg'"></a></div>
		<div class="intro"><h4><a title="<?=de($list_l_flag[5][1]["title"])?>" href="<?=get_dir_url($list_l_flag[5][1]['id'])?>" target="_blank"><?=de($list_l_flag[5][1]["title"])?></a></h4>
		<p>    <?=cut_str(strip_tags(de($list_l_flag[5][1]["content"])),80)?> </p>
		</div></div></div>
		
		<ul>
			<!--13-->
			<?foreach($list_l_flag[5] AS $ks => $vs){if($ks<=16 &&$ks!=0 &&$ks!=1){	?>
			<li>[<a href="<?=$url_l_flag[5]?>" target="_blank"><?=de($titl_l_flag[5])?></a>]<a href="<?=get_dir_url($vs['id'])?>" target="_blank"><?=cut_str(de($vs["title"]),7)?></a>
			<a href="<?=get_dir_url($vs['id'])?>" target="_blank" class="chapter"><?=cut_str(strip_tags(de($vs["content"])),20)?></a></li>
			<?}}?>
		</ul></div></div>
		<div class="column">
		<div class="box_top">
		<h2><span class="title">TOP10<!--14个--></span><span class="tab"><a href="#"> </a></span></h2>
		<div id="d7">
		<ul>
		<?$j=1; foreach($list_D AS $k => $v){?>
<li><span><?=$j;?>.</span><a href="<?=get_dir_url($v['id'])?>" target="_blank" title="<?=de($v["title"])?>"><?=cut_str(de($v["title"]),10)?></a></li><?$j++;if($j>15) break;}?>                                                                              	
		
		</ul></div></div></div></div>
		<!--第六个栏目推荐-->
		<div class="works levelA vip">
		<div class="commend">
		<h2><span><a href="<?=$url_l_flag[6]?>" target="_blank"><?=de($titl_l_flag[6])?></a></span></h2>
		<div class="body">
		
<!--三行6个-->
<?$j=1; foreach($list_l_flag[6] AS $k => $v){?>
<div class="mod"><div class="hot">
<div class="photo"><a href="<?=get_dir_url($v['id'])?>" target="_blank"><img alt="<?=de($v["title"])?>" title="<?=de($v["title"])?>" src="<?=showPics($v["pic"])?>" onerror="this.src='/images/nopic.jpg'"></a></div>
<div class="intro"><h4><a title="<?=de($v["title"])?>" href="<?=get_dir_url($v['id'])?>" target="_blank"><?=de($v["title"])?></a></h4><p><?=cut_str(strip_tags(de($v["content"])),100)?></p></div></div></div>
<?$j++;if($j>6) break;}?>   

		</div>
		</div>
		<div class="column">
		<div class="box_news_book">
		<h2><span class="title">最新作品<!--18个--></span></h2>
		<ul>
		<?$j=1;foreach($list_new 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>18) break;}?>
		
		</ul>
		</div>
		</div>
		</div>
		<div class="works levelA vip update">
		<div class="commend">
		<div class="body">
		<div class="new">
<h2 style="padding-left: 10px;">今日更新</h2><!--22个-->
		<ul class="info" id="dx" style="padding-left:30px;padding-rihgt:30px;">
		
		<?foreach($book_ext_list AS $k => $v){	?>
		<li>[<?foreach($v["t_arr"] as $ks =>$vs){ echo '<a target="_blank" href='.rewrite_list_rule("type",$ks).'>'.$vs.'</a>';break;}?>]&nbsp;&nbsp;&nbsp;《<a href="<?=get_dir_url($v['b_id'])?>" target="_blank" title="<?=de($v["b_name"])?>"><?=cut_str(de($v["b_name"]),25)?></a>》&nbsp;&nbsp;&nbsp;<span><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"])),25)?></a></span><a class="date"><<?=dateMD($v["u_time"])?>></a></li>
		<?}?>

<li style="float: right;"></li>		</ul>
		
		</div>
		</div>
		</div>
		<div class="column">
		<div class="box_tag">
		<h2><span class="title">热门标签<!--27个--></span></h2>
		<ul>
		
		<? foreach($list_tag AS $k => $v){	?>
<li><a alt="<?=$v["tag"]?>" title="<?=$v["tag"]?>" href="<?=rewrite_list_rule('tag',$v['id'])?>" target="_blank"><span> · </span> <?=cut_str($v["tag"],10)?></a>(<?=$v["count"]?>)</li><?}?>                                                                    	      
		
        </ul>
		</div>
		
		
		</div>
		</div>
	</div>
	<div id="friendLink">
		<h2>友情链接：</h2>
		<? foreach($list_link AS $k => $v){?><a href="<?=$v["url"]?>" target="_blank"><?=$v["name"]?></a><?}?>
</div>
	
    
    
    
<? include("bot.php") ?>