<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>{$tkd.title|parseTPL}</title>
    <meta name="keywords" content="{$tkd.keywords|parseTPL}" />
    <meta name="description" content="{$tkd.description|parsetpl}" />
    {include file="/system/head"}
</head>
<body>
{include file="/system/header"}
<section class="w-all">
    <nav class="mt20">
        <ul class="clearfix">
            <li><a href="{$kx.config.siteurl}" title="{$kx.config.sitename}首页"><i class="pticon pticon-home pticon-lg"></i> {$kx.config.sitename}首页</a><i class="pticon pticon-angle-right icon"></i></li>
            <li><a href="{link=novel.category.index}" title="小说分类">小说分类</a><i class="pticon pticon-angle-right icon"></i></li>
            <li><a href="__SELF__" title="{$category.name}小说">{$category.name}小说</a></li>
        </ul>
    </nav>
    <div class="container clearfix mt20">
        <div class="card mb20">
            <div class="body novelselectlist">
                <p>
                    {block method="category.list" name=list pid=1 withall=0}
                    {section loop="list"}
                    {if $loop.id == $category.id}
                    <a href="#" style="color: #999;" title="{$loop.name}">{$loop.name}</a>&nbsp;&nbsp;
                    {else}
                    <a href="{link=novel.category.list categoryid=$loop.id key=$loop.key}" title="{$loop.name}">{$loop.name}</a>&nbsp;&nbsp;
                    {/if}
                    {/section}
                </p>
            </div>
        </div>
        {block method="pagination" name="paginate" page=$page limit=$pagesize count=$category.num maxpage=50 section=3}
        <div class="w-left">
            <div class="card">
                <div class="header line">
                    <h2>{$category.name}小说列表</h2>
                </div>
                <div class="body">
                    <ul class="librarylist">
                        {block method="novel.list" name=list category=$category.id order=weekvisit num=$paginate.limit page=$paginate.current}
                        {loop=list}
                        <li>
                            <div class="pt-ll-l">
                                <a href="{link=novel.novel.index novelid=$loop.novel.id pinyin=$loop.novel.pinyin}" title="{$loop.novel.name}"><img src="{$loop.novel.cover}" alt="{$loop.novel.name}" /></a>
                            </div>
                            <div class="pt-ll-r">
                                <p class="info">
                                    <span>《<a href="{link=novel.novel.index novelid=$loop.novel.id pinyin=$loop.novel.pinyin}" class="novelname" title="{$loop.novel.name}">{$loop.novel.name}</a>》</span>
                                    <span>作者：<a href="{link=author.space.index authorid=$loop.author.id pinyin=$loop.author.pinyin name=$loop.author.name}" title="{$loop.author.name} 作品列表">{$loop.author.name}</a></span>
                                </p>
                                <p class="intro">
                                    {$loop.novel.intro}
                                </p>
                                <p class="last">
                                    最新章节：<a href="{link=novel.chapter.read novelid=$loop.novel.id pinyin=$loop.novel.pinyin chapterid=$loop.last.id}" title="{$loop.novel.name} {$loop.last.name}" target="_blank">{$loop.last.name}</a>({$loop.last.time|date="m-d H:i"})
                                </p>
                            </div>
                            <div class="clear"></div>
                        </li>
                        {/loop}
                    </ul>
                </div>
                {if $paginate.total>1}
                <div class="footer pagination">
                    <span>共{$paginate.total}页 {$paginate.count}条</span>
                    <a href="{link=novel.category.list categoryid=$category.id page=$paginate.first}" class="first number"><<</a>
                    <a href="{link=novel.category.list categoryid=$category.id page=$paginate.prev}" class="prev number"><</a>
                    {loop=$paginate.items}
                    {if $loop.status}
                    <a class="current" href="javascript:;">{$loop.num}</a>
                    {else}
                    <a href="{link=novel.category.list categoryid=$category.id page=$loop.num}" class="number">{$loop.num}</a>
                    {/if}
                    {/loop}
                    <a href="{link=novel.category.list categoryid=$category.id page=$paginate.next}" class="next number">&gt;</a>
                    <a href="{link=novel.category.list categoryid=$category.id page=$paginate.last}" class="last number">&gt;&gt;</a>
                </div>
                {/if}
            </div>
        </div>
        <div class="w-right">
            <div class="card">
                <div class="header line">
                    <h3>本月热门</h3>
                </div>
                <div class="body">
                    <ul class="rightlist">
                        {block method="novel.list" name="list" order="monthvisit" num=15}
                        {section loop=$list}
                        <li><i {if $i.order<4}class="first"{/if}>{$i.order}</i><span><a href="{link=author.space.index authorid=$loop.author.id pinyin=$loop.author.pinyin name=$loop.author.name}" title="{$loop.author.name} 作品大全">{$loop.author.name}</a></span><a href="{link=novel.novel.index novelid=$loop.novel.id pinyin=$loop.novel.pinyin}" title="{$loop.novel.name}">{$loop.novel.name}</a></li>
                        {/section}
                    </ul>
                </div>
            </div>
            <div class="card mt20">
                <div class="header line">
                    <h3>本周热门</h3>
                </div>
                <div class="body">
                    <ul class="rightlist">
                        {block method="novel.list" name="list" order="weekvisit" num=15}
                        {section loop=$list}
                        <li><i {if $i.order<4}class="first"{/if}>{$i.order}</i><span><a href="{link=author.space.index authorid=$loop.author.id pinyin=$loop.author.pinyin name=$loop.author.name}" title="{$loop.author.name} 作品大全">{$loop.author.name}</a></span><a href="{link=novel.novel.index novelid=$loop.novel.id pinyin=$loop.novel.pinyin}" title="{$loop.novel.name}">{$loop.novel.name}</a></li>
                        {/section}
                    </ul>
                </div>
            </div>
            <div class="card mt20">
                <div class="header line">
                    <h3>最新入库</h3>
                </div>
                <div class="body">
                    <ul class="rightlist">
                        {block method="novel.list" name="list" order="postdate" num=15}
                        {section loop=$list}
                        <li><i {if $i.order<4}class="first"{/if}>{$i.order}</i><span>{$loop.novel.postdate|date="m-d"}</span><a href="{link=novel.novel.index novelid=$loop.novel.id pinyin=$loop.novel.pinyin}" title="{$loop.novel.name}">{$loop.novel.name}</a></li>
                        {/section}
                    </ul>
                </div>
            </div>
        </div>
    </div>
</section>
{include file="/system/footer"}
</body>
</html>