<?php defined('KX_ROOT') || exit('Permission denied');?><!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8" name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
    <title><?php include \Kuxin\View::parseTpl($tkd['title']);?></title>
    <meta name="keywords" content="<?php include \Kuxin\View::parseTpl($tkd['keywords']);?>">
    <meta name="description" content="<?php include \Kuxin\View::parseTpl($tkd['description']);?>">
	<link rel="stylesheet" href="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "resurl");?>/template/kxmobileno1/css/global.css"/>
	<script src="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "resurl");?>/template/kxmobileno1/js/flexible.min.js"></script>
    <link rel="shortcut icon" type="image/ico" href="/favicon.ico" />
    <meta name="author" content="www.ptcms.com">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width" />
    <meta name="applicable-device" content="pc">
    <meta http-equiv="mobile-agent" content="format=html5; url=<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "mobileurl");?><?php echo $_SERVER['REQUEST_URI'];?>">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <meta http-equiv="Cache-Control" content="no-transform" />
    <link rel="canonical" href="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "pcurl");?><?php echo $_SERVER['REQUEST_URI'];?>" />
</head>
<body> 
	<!-- 导航 -->
    <div class="flex-wrp flex-center bg-white w100 size14 pt-nav">
        <a href="<?php echo \Kuxin\Helper\Url::build("index.index",[],"");?>" class="color5 mr20">精选</a>
        <a href="<?php echo \Kuxin\Helper\Url::build("novel.rank.index",[],"");?>" class="color5 mr20">排行</a>
        <a href="<?php echo \Kuxin\Helper\Url::build("novel.category.index",[],"");?>" class="color5 mr20 pt-select">分类</a>
        <a href="<?php echo \Kuxin\Helper\Url::build("novel.over.index",[],"");?>" class="color5">完本</a>
    </div>
	
	<!-- 分类 -->
	<div class="mb70">
        <?php $categorylist=\Kuxin\Block::show('category.list', ['pid'=>1,'withall'=>0]);?>
        <?php if(is_array($categorylist)): foreach($categorylist as $key =>$loop):?>
		<div class="mt10 bg-white plr15">
			<div class="w100 pb10 pt10 lh100 border-b flex-wrp flex-between">
				<div class="pl10 border-l-red">
					<a title="<?php echo $loop['name'];?>" class="size16 color7 mr10" href="<?php echo \Kuxin\Helper\Url::build("novel.category.list",['categoryid'=>$loop['id'],'key'=>$loop['key']],"");?>"><?php echo $loop['name'];?></a>
					<span class="size12 color4">共<?php echo $loop['num'];?>本</span>
				</div>
				<a class="size12 color4 pt-youjiantou" href="<?php echo \Kuxin\Helper\Url::build("novel.category.list",['categoryid'=>$loop['id'],'key'=>$loop['key']],"");?>" title="<?php echo $loop['name'];?>">></a>
			</div>
            <div class="w100 overflow-x mt10 mb10">
                <div class="flex-wrp pt-new-cont">
                    <?php $list=\Kuxin\Block::show('novel.list', ['order'=>'weekvisit','num'=>10,'category'=>$loop['id']]);?>
                    <?php if(is_array($list) && (array()!=$list)): $i=array(); $i['loop']=array_slice($list,0,null,true); $i['total']=count($list); $i['count']=count($i['loop']); $i['cols']=1; $i['add']=$i['count']%1?1-$i['count']%1:0; $i['order']=0; $i['row']=1;$i['col']=0;foreach(array_pad($i['loop'],$i['add'],array()) as $i['index']=>$i['list']): $novellist=$i['list']; $i['order']++; $i['col']++; if($i['col']==1): $i['col']=0; $i['row']++; endif; $i['first']=$i['order']==1; $i['last']=$i['order']==$i['count']; $i['extra']=$i['order']>$i['count'];?>
                    <div class="size12 pt-new-item">
                        <a href="<?php echo \Kuxin\Helper\Url::build("novel.novel.index",['novelid'=>$novellist['novel']['id'],'pinyin'=>$novellist['novel']['pinyin']],"");?>" title="<?php echo $novellist['novel']['name'];?>" class="inline-block"><img src="<?php echo $novellist['novel']['cover'];?>"></a>
                        <div class="w100 lh150 pt10 pb5 "><a title="<?php echo $novellist['novel']['name'];?>" href="<?php echo \Kuxin\Helper\Url::build("novel.novel.index",['novelid'=>$novellist['novel']['id'],'pinyin'=>$novellist['novel']['pinyin']],"");?>" class="color7 compulsory-row-one"><?php echo $novellist['novel']['name'];?></a></div>
                        <div class="w100 lh150 "><a title="<?php echo $novellist['author']['name'];?>" href="<?php echo \Kuxin\Helper\Url::build("novel.novel.index",['novelid'=>$novellist['novel']['id'],'pinyin'=>$novellist['novel']['pinyin']],"");?>" class="color4 compulsory-row-one"><?php echo $novellist['author']['name'];?></a></div>
                    </div>
                    <?php endforeach; endif;?>
                </div>
            </div>
		</div>
        <?php endforeach; endif;?>
	</div>

    <!-- 底部版权 -->
    <div class="pt-copyright">
    <div class="size12  w100 text-center mt15 mb10"><a title="隐私声明" href="<?php echo \Kuxin\Helper\Url::build("page.detail",['key'=>'privacy'],"");?>" class="color4">隐私声明</a> | <a title="免责声明" href="<?php echo \Kuxin\Helper\Url::build("page.detail",['key'=>'disdaimer'],"");?>" class="color4">免责声明</a> | <a title="关于我们" href="<?php echo \Kuxin\Helper\Url::build("page.detail",['key'=>'about'],"");?>" class="color4">关于我们</a></div>
    <div class="size12 color4 w100 text-center mb10">Copyright © 2009-<?php echo date(Y);?> <?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "beian");?></div>
    <div class="size12  w100 text-center"><?php echo \Kuxin\Response::runinfo();?></div>
</div>
<!-- js -->
<script src="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "resurl");?>/template/kxmobileno1/js/jquery-3.3.1.js"></script>
<script>
    $('.pt-return,.pt-recall').click(function(){
        window.history.back();
    });
    $('.pt-ellipsis').click(function(){
        $('.pt-tip').toggle()
    });
    $('.pt-tip .pt-tip-item').click(function(){
        $('.pt-tip').toggle()
    });
</script>
<div class="none">
    <?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "tongji.mobile");?>
    <?php if(\Kuxin\Helper\Arr::getValue($_kxcms_config, "app.use_cdn")):?>
    <script src="/api/stat/novel/info.js"></script>
    <script src="/api/stat/novel/read.js"></script>
    <?php endif;?>
</div>
    <!-- 底部按钮 -->
    <div class="w100 flex-wrp flex-between size12 color4 flex-align-center pt-tabbar">
    <a class="pt-tabbar-item pt-tabbar-mark <?php if(($pagesign =='user' && ($userleftsign == 'mark' || $userleftsign == 'history') )):?>active<?php endif;?>" href="<?php if($islogin):?><?php echo \Kuxin\Helper\Url::build("user.mark.index",[],"");?><?php else:?><?php echo \Kuxin\Helper\Url::build("user.history.index",[],"");?><?php endif;?>">
        <div class="pt-tabbar-chunk"></div>
        <div class="lh100">书架</div>
    </a>
    <a class="pt-tabbar-item pt-tabbar-home <?php if(($pagesign!='user')):?>active<?php endif;?>" href="<?php echo \Kuxin\Helper\Url::build("index.index",[],"");?>">
        <div class="pt-tabbar-chunk"></div>
        <div class="lh100">书城</div>
    </a>
    <a class="pt-tabbar-item pt-tabbar-booklist <?php if(($pagesign=='booklist')):?>active<?php endif;?>" href="<?php echo \Kuxin\Helper\Url::build("booklist.booklist.index",[],"");?>">
        <div class="pt-tabbar-chunk"></div>
        <div class="lh100">书单</div>
    </a>
    <a class="pt-tabbar-item pt-tabbar-my <?php if(($pagesign=='user' && $userleftsign!='mark' && $userleftsign!='history')):?>active<?php endif;?>" href="<?php echo \Kuxin\Helper\Url::build("user.index.index",[],"");?>">
        <div class="pt-tabbar-chunk"></div>
        <div class="lh100">我的</div>
    </a>
</div>
	<!-- js -->
    <script src="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "resurl");?>/template/kxmobileno1/js/jquery-3.3.1.js"></script>
	<script src="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "resurl");?>/template/kxmobileno1/js/index.js"></script>
</body>
</html>