<? include("top.php") ?>
<link href="<?=PATH_WEB_CSS?>/book.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="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 style="text-align:center;"><script language="javascript" src="<?=INCLUDE_PATH?>/ad.php?act=showggtop"></script></div>
  <!--END头部广告-->
 </div>
 <!--END顶部-->

 
 
 
<div id="main">
  <div class="blayoutl">
    <div class="lmbg">
      <div class="bpleft">
        <div class="img">
<a href="<?=get_dir_url($value['id'])?>"><img alt="<?=$value['title']?>" title="<?=$value['title']?>" src="<?=showPics($value['pic'])?>" width="188" height="270" border="0" onerror="this.src='/images/nopic.jpg'"></a>



</div>
        
        <ul class="ztou1"><!--推荐收藏
          <li><img src="<?=PATH_WEB_IMAGES?>/shoucang.gif" /></li>
          <li><img src="<?=PATH_WEB_IMAGES?>/tuijian.gif" /></li>
          -->
        </ul>
</div>
      <div class="bpright">
	  <div class="work2010 finished"><a href="#"></a></div>	  
        <div class="title">
          <div class="litsp">
            <h2><?=strip_tags(de($value["title"]))?></h2>
            <span class="nczz">作者 / <?foreach($value["w_arr"] as $k =>$v){ if(get_system("writter_flag")) echo '<a href='.WRITTER_SHOW_PATH.'/'.$k.'>'.$v.'</a> '; else echo $v.'&nbsp;';}?><?=de($value["writter_ext"])?></span>
          </div>
          <div class="licls">
          <span class="ft1">类 别：<?foreach($value["t_arr"] as $kt =>$vt){?><a href='<?=rewrite_list_rule("type",$kt)?>'><?=$vt?></a> <?}?></span>
          </div>
        </div>
        <div class="mtitle"><a class="" id="tabap1_btn_0" >内容介绍</a>        </div>
        <div class="mtime"><? if($last_ext) {?>最后更新章节：<?=$last_ext?><?}?></div>
        <div class="clearfix"></div>
        <div class="mbos"></div>
        <div class="mscot">
           <div class="injsp" id="tabap1_div_2" style="display: block;">
           <?=strip_tags(de($value["content"]))?>
          </div><br>
          <div class="injsp" id="tabap1_div_2">
          <ul>
          <span id="kk_book_action"></span><script>GetBookAction(<?=$value['id']?>,"<?=$value['title']?>","b")</script><script>GetCookiesView(<?=$value['id']?>,"<?=$value['title']?>","b",<?=$sys["u_shujia"]?>)</script><br>
          <span id="kk_book_counts"></span><script>GetBookCounts(<?=$value['id']?>,"<?=$value['title']?>","b")</script>
          </ul></div>
          
          <div class="tgnop">
          <?if($sys["down_flag"]){?>
            <ul>
            <?if($sys["down_flag"]){?>
            <li><a onclick="open_maos_down('<?=DOMAIN_PATH?>/sendfile.php?act=txt&fid=<?=$value["id"]?>')" href="javascript:void(0)">TXT下载</a></li>
            <li><a onclick="open_maos_down('<?=DOMAIN_PATH?>/sendfile.php?act=txt&fid=<?=$value['id']?>&zip=1')" href="javascript:void(0)">ZIP下载</a></li>
            <li><a onclick="open_maos_down('<?=DOMAIN_PATH?>/sendfile.php?act=umd&fid=<?=$value['id']?>')" href="javascript:void(0)">UMD下载</a></li>
            <?}?>
            </ul>
            <?}?>
          </div>
          <div class="clearfix"></div>
           </div>
      </div>
      <div class="clearfix"></div>
      
      <h2 class="ctitle">最新精品小说</h2><!--5个-->
      <div class="aicot">
        <ul>
        <?$j=1;foreach($r_list AS $k => $v){	?>
        <li><a href="<?=get_dir_url($v['id'])?>"><img alt="<?=$v['title']?>" title="<?=$v['title']?>" src="<?=showPics($v['pic'])?>" border="0" height="168" width="120" onerror="this.src='/images/nopic.jpg'"></a></li> 
		<?$j++;if($j>5) break;} ?>

              </ul>
      </div>
      </div>
  </div>
  <div class="blayoutr">
    <div class="rmbg">

      <h2 class="frtitle">类型分类</h2>
      <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")){?>
	<h2 class="frtitle">地区分类</h2>
      <div class="blocktext">
	<ul>
	<? if($arr_type_next){foreach($arr_type_next AS $k => $v){	echo "<li><a href='".rewrite_list_rule("zone",$v["id"])."' >".$v["name"]."</a></li>";}
}else{foreach($arr_type AS $k => $v){	echo "<li><a href='".rewrite_list_rule("zone",$v["id"])."' >".$v["name"]."</a></li>";}} ?> 
    </ul>
	<div class="clear"></div>
	</div>
<?}?>
    
    <h2 class="frtitle">字母检索<span></span></h2>
     <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>
    
    <h2 class="frtitle">点击排行<span></span></h2>
     <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>
          
       <h2 class="frtitle">相关图书</h2>
      <div class="frmcot">
       <?foreach($r_list AS $k => $v){	?>
<li><a href="<?=get_dir_url($v['id'])?>" title="<?=$v["title"]?>"><img src="<?=PATH_WEB_IMAGES?>/arrow_085.gif" height="9" width="9"> <?=cut_str($v["title"],10)?></a></li>
<?} ?>
      </div>
      <!--图书右侧gg--><div style="text-align:center;">
      <script language="javascript" src="<?=INCLUDE_PATH?>/ad.php?act=showggbookright"></script>
	</div>
    </div>
  </div>  <div class="clearfix">&nbsp;</div>
<!-- 底部 -->



<div id="book_ext">
<ul>
<?if(!empty($ext_list)){foreach($ext_list AS $k => $v){ if($v['chapter']){?>
<li style="background-color:#d8e0e9;width:960px;text-align:center;height:30px;line-height:30px;overflow:hidden;">◎<?=sort_preg_replace($v["sort"],strip_tags(de($v["title"])))?></li>
<?}else{?>
<li><a href="<?=get_dir_url($v['b_id']).$v['id'].'.'.$html_ext?>" title="<?=sort_preg_replace($v["sort"],strip_tags(de($v['title'])))?>" alt="<?=sort_preg_replace($v["sort"],strip_tags(de($v['title'])))?>" ><?=sort_preg_replace($v["sort"],strip_tags(de($v["title"])))?></a></li>
 <?}}}else{ echo "<li style='background-color:#F1F5F9;width:960px;text-align:center;height:30px;line-height:30px; overflow:hidden;'>暂时没有该书的相关章节，您可以下载本书欣赏。</li>";}?> 
</ul>
</div>





</div>


<div id="light" class="white_ping">
<div id="alert_ping" style="height:40px;line-height:40px;display:none;">...</div><br>
<table width="100%" align="center" cellpadding="0" cellspacing="1" bordercolorlight="#FFFFFF" bordercolordark="#CCCCCC" bgcolor="#CCCCCC" id="table4">
      <tr>
        <td width="578" height="200" align="center" valign="top" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="30">&nbsp;</td>
          </tr>
          <tr>
            <td height="30"><span id="showNobody" style="display:none;"><input onclick="this.checked=!this.checked" checked type="checkbox" name="nobody" id="nobody" value="1">匿名</span> </td>
          </tr>
          <tr>
            <td height="30"><span id="showPingLogin"></span></td>
          </tr>
		  <tr>
            <td height="30">评论字符不能超过255个字符。</td>
          </tr>
        </table></td>
        <td width="791" height="200" align="center" valign="top" bgcolor="#FFFFFF"><table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td height="30">标题：
            <input name="c_title" type="text" id="c_title" style=" border:1px solid #cccccc;" /></td>
          </tr>
          <tr>
            <td><textarea name="c_contents" id="c_contents" cols="70" rows="10" style="font-size:12px; border:1px solid #cccccc;"></textarea></td>
          </tr>
           <tr>
            <td height="40">
          验证码：<input size="10" name="code_ping" class="rr2"  type="text" id="code_ping" />&nbsp;<img align="top" id="imgcode_ping" onClick=this.src="<?=DOMAIN_PATH?>/captcha.php?t="+Math.random()+"&auth=Auth_Ping" style="margin-bottom:-5px;cursor:pointer;" src="<?=DOMAIN_PATH?>/captcha.php?t=1&auth=Auth_Ping">
          </td></tr>
          <tr>
            <td height="40">
            <input type="button" name="button" id="button" value="提交" onclick="submitComments(<?=$value['id']?>,'<?=$value['title']?>','b')"> &nbsp;<input name="" type="button" onclick="close_ping()" value="关闭" /></td>
          </tr>
        </table></td>
      </tr>
</table><br><br>
</div>
<div id="fade" class="black_ping"></div>


<div id="maos_down" class="maos_down_class">
<div id="alert_down" style="height:40px;line-height:40px;display:none;">...</div><br>
验证码：<input type="hidden" name="url_down" id="url_down"><input size="10" name="code" class="rr2"  type="text" id="code" />&nbsp;<img align="top" id="imgcode" onClick=this.src="<?=DOMAIN_PATH?>/captcha.php?t="+Math.random()+"&auth=Auth_Down" style="margin-bottom:-5px;cursor:pointer;" src="<?=DOMAIN_PATH?>/captcha.php?t=1&auth=Auth_Down"><br><br><input type="button" name="button" id="button" value="确认下载" onclick="submitdown()">&nbsp;<input name="quxiao" type="button" onclick="close_maos_down()" value="取消" />
</div>
<div id="maos_fade_down" class="maos_down_fade_class"></div>


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