<? include("top.php") ?>
<div id="box"><!--主体-->
<div id="box_list_left"><!--主体1:左-->

<div class="block">
<div class="blocktitle">类型分类</div><div id="clear-f"></div>
<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>
</div>

<?if(get_system("zone_flag")){?>
<div class="block">
<div class="blocktitle">地区分类</div><div id="clear-f"></div>
<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>
</div>
<?}?>

<div class="block">
<div class="blocktitle">字母检索</div><div id="clear-f"></div>
<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>
</div>

<div class="block">
<div class="blocktitle">点击排行</div><div id="clear-f"></div>
<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>
</div>

<div class="block">
<div class="blocktitle">相关图书</div><div id="clear-f"></div>
<div class="blocktext_l">
<ul>
<?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>
<?}?>
</ul>
<div class="pic">
<!--图书左侧gg-->
<script language="javascript" src="<?=INCLUDE_PATH?>/ad.php?act=showggbookleft"></script>
</div>
</div>
</div>


</div><!--end 主体1:左-->
<!--end 主体1:中-->
<div id="box_book_rig"><!--主体1:右-->
<div class="title">《<?=$value["title"]?>》</div><div id="clear-f"></div>
<div id="bookinfo">
<div class="lefts"><img src="<?=showPics($value["pic"])?>" width="110" height="150" /></a></div>
<div class="rights">
<div>作者：<?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"])?> </div>
<div>类型：<?foreach($value["t_arr"] as $kt =>$vt){?><a href="<?=rewrite_list_rule("type",$kt)?>"><?=$vt?></a> <?}?></div>
<?if(get_system("zone_flag")){?><?if($value["cz_name"]){?><div>地区：<a href="<?=rewrite_list_rule("zone",$value["cz_id"])?>"><?=$value["cz_name"]?></a></div><?}}?>
<?if($value["t_tag"]){?><div>标签：<?foreach($value["t_tag"] as $ktag =>$vtag){?><a href="<?=BOOK_TAG_PATH.'/'.$ktag.'.'.$html_ext?>"><?=$vtag?></a> <?}?></div><?}?>
<?if($value["zip"]) {?><div><a onclick="open_maos_down('<?=$value["zip_url"] ?>')" href="javascript:void(0)" >【下载<?=$value["title"]?>】</a></div><?}?> 
<div>状态：<?=$arr_over[$value["over"]]?></div>
<div><span id="kk_book_counts"></span><script>GetBookCounts(<?=$value['id']?>,"<?=$value['title']?>","b")</script></div>
<div><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></div>
<?if($sys["down_flag"]){?><div><a onclick="open_maos_down('<?=DOMAIN_PATH?>/sendfile.php?act=txt&fid=<?=$value["id"]?>')" href="javascript:void(0)">TXT全文下载</a> <a onclick="open_maos_down('<?=DOMAIN_PATH?>/sendfile.php?act=txt&fid=<?=$value['id']?>&zip=1')" href="javascript:void(0)">ZIP打包下载</a> <a onclick="open_maos_down('<?=DOMAIN_PATH?>/sendfile.php?act=umd&fid=<?=$value['id']?>')" href="javascript:void(0)">UMD下载</a></div><?}?>
</div>
</div><div id="clear-f"></div>

<div class="infotxt">【作品简介】<? if($last_ext) {?>最后更新章节：<?=$last_ext?><?}?><br>
<?=de($value["content"])?>
</div><div id="clear-f"></div>

<div id="book_ext">
<ul>
<?if(!empty($ext_list)){foreach($ext_list AS $k => $v){ if($v['chapter']){?>
<li style="background-color:#d8e4ef;width:708px;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:#d8e4ef;width:708px;text-align:center;height:30px;line-height:30px; overflow:hidden;'>暂时没有该书的相关章节，您可以下载本书欣赏。</li>";}?> 
</ul>
<div id="clear-f"></div>
</div>
</div><!--end 主体1:右-->
</div><!--end 主体1-->
<div id="clear-f"></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>


</div><!--end 主体-->
<? include("bot.php") ?>