<? include("top.php") ?>
<script type="text/javascript">
 function jump(){
        var page = document.toform.page.value;
       $.get("<?=USER_PATH?>/ajaxjs.php?act=listpage&uact=<?=$g_cgival['act']?>&usec=<?=$g_cgival['sec']?>&page="+page+"&t="+Math.random(), {}, function(text){
		if(text)
		{
			location.href = text;
		}
		});
		return false;
}
</script>
<link href="<?=PATH_WEB_CSS?>/list.css" rel="stylesheet" type="text/css">
</head><body >

 <!--END顶部-->
<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>
    <?}?>
    
    <sup></sup>
    </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="serach">
    <div class="imgi"></div>
    <form name="articlesearch" method="post" action="<?=DOMAIN_PATH?>/search.php" ><input name="keys" class="inp_4" id="keys" value="<?=$keys?>" type="text">
    <? foreach($dbtitle as $k =>$v){?>
    <input name="searchtype" <? 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?>/search.gif" type="image"></form>
	    <div class="rcot">
      <span>畅销小说推荐：</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>
    </div>
        <div class="clearfix"></div>
  </div>
  
  <div class="clearfix"></div>
  <!--头部广告-->
  <div><script language="javascript" src="<?=INCLUDE_PATH?>/ad.php?act=showggtop"></script></div>
  <!--END头部广告-->
 </div>
 <!--END顶部-->
 




 <div class="page">
	<div class="content">
	<div class="left">
	<div class="mod book">
	<h3><span class="go"><?=$go?>  <? if($keys){foreach($dbtitle as $k =>$v){ 
if($k==$g_cgival['t']) echo "<a href='?p=1&t=".$k."&keys=".urlencode($keys)."'><u>【".$v."】</u></a>&nbsp;";
else echo "<a href='?p=1&t=".$k."&keys=".urlencode($keys)."'>【".$v."】</a>&nbsp;";}}?> </span></h3>
	<div class="body">
  	
    
    
<?foreach($list AS $k => $v){if($v["title"]){?>
    <div class="list">
	<div class="picture">
    <a href="<?=get_dir_url($v['id'])?>" title="<?=$v["title"]?>"><img src="<?=showPics($v['pic'])?>" onerror="this.src='/images/nopic.jpg'" /></a></div>
	<div class="text">
	<h6><a href="<?=get_dir_url($v['id'])?>" title="<?=$v["title"]?>"><?=cut_str($v["title"],10)?></a><span class="point">作者：<?foreach($v["w_arr"] as $ks =>$vs){ if(get_system("writter_flag")) echo '<a href='.WRITTER_SHOW_PATH.'/'.$ks.'>'.$vs.'</a>&nbsp;'; else echo $vs.'&nbsp;';}?><?=cut_str(de($v["writter_ext"]),20)?></span></h6>
	<p class="cate">类别：<?foreach($v["t_arr"] as $ks =>$vs){ echo '<a href='.rewrite_list_rule("type",$ks).'>'.$vs.'</a>&nbsp;';}?></p>
	<p class="intro"><span>简介：</span><?=cut_str(strip_tags(de($v["content"])),350)?>
	</p>
	</div>
	<div class="clear"></div>
	</div>
<?}}?> 

    
    
    
    
    
  	</div>
	<h3 class="bottom"><span class="go"><?=$page?>
    </span></h3>
	</div>
	</div>
	<div class="right">
	<div class="mod">
	<h3>类型分类</h3>
	<div class="blocktext">
	<ul>
	<?if($arr_type_next){foreach($arr_type_next AS $k => $v){	echo "<li><a href='".rewrite_list_rule("type",$v["id"])."' >".$v["name"]."</a></li>";}
}else{foreach($arr_type AS $k => $v){	echo "<li><a href='".rewrite_list_rule("type",$v["id"])."' >".$v["name"]."</a></li>";}} ?> 
    </ul>
	<div class="clear"></div>
	</div>
    <?if(get_system("zone_flag")){?>
    <h3>地区分类</h3>
	<div class="blocktext">
	<ul>
	<?foreach($arr_zone AS $k => $v){echo "<li><a href='".rewrite_list_rule("zone",$v["id"])."' >".$v["name"]."</a></li>";}?> 
    </ul>
	<div class="clear"></div>
	</div>
    <?}?>
    <h3>字母检索</h3>
	<div class="blocktext_w">
	<ul>
	<?foreach($arr_word AS $k => $v){	echo "<li><a href='".rewrite_list_rule("word",$v)."' >".$v."</a></li>";}?> 
    </ul>
	<div class="clear"></div>
    </div>
	<h3>点击排行</h3>
	<div class="blocktext">
	<ul>
	<li><a href="<?=DOMAIN_PATH?>/tongji.php?act=w">本周排行</a></li>
	<li><a href="<?=DOMAIN_PATH?>/tongji.php?act=m">本月排行</a></li>
	<li><a href="<?=DOMAIN_PATH?>/tongji.php">累计排行</a></li>
    </ul>
	<div class="clear"></div>
	</div>
	<h3>栏目推荐</h3>
	<div class="body">
	<ul>
    <?foreach($flagList AS $k => $v){	?>
<li><a href="<?=get_dir_url($v['id'])?>"  title="<?=$v["title"]?>"><img src="<?=PATH_WEB_IMAGES?>/disc.gif" height="9" width="9"><span>·</span><?=cut_str($v["title"],10)?></a></li>	
<?}?>
	</ul>
	<div class="clear"></div>
	<div style="text-align:center;"><!--列表右侧gg-->
<script language="javascript" src="<?=INCLUDE_PATH?>/ad.php?act=showgglistright"></script>
</div>
	</div>
	<ul>
	</ul>
	</div>
	</div>
	</div>
	<div class="clear"></div>
	</div>
</div>


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