<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <title>{$tkd.title|parseTpl}</title>
    <meta name="keywords" content="{$tkd.keywords|parseTpl}">
    <meta name="description" content="{$tkd.description|parseTpl}">
    <link rel="stylesheet" type="text/css" href="{$kx.config.resurl}/template/kxmobileno2/css/ptm.min.css" />
    <link rel="stylesheet" type="text/css" href="{$kx.config.resurl}/template/kxmobileno2/css/skin.min.css" />
    <link rel="stylesheet" type="text/css" href="{$kx.config.resurl}/template/kxmobileno2/css/font-awesome.min.css" />
</head>
<body>
<header class="ptm-bar ptm-bar-nav  ptm-fix">
    <a class="ptm-pull-left" href="{link=user.index.index}">
        <span class="ptm-iconfont fa fa-user"></span>
    </a>
    <div class="ptm-title">{$kx.config.sitename}</div>
    <a class="ptm-pull-right" href="{link=novel.search.index}">
        <span class="ptm-iconfont  fa fa-search"></span>
    </a>
</header>
<section class="ptm-content" style="margin-top:45px;">
    <div class="ptm-tab">
        <ul class="ptm-tab-nav">
            <li class="active"><a href="{$kx.config.mobileurl}">首页</a></li>
            <li><a href="{link=novel.rank.index}">排行</a></li>
            <li><a href="{link=novel.category.index}">分类</a></li>
            <li><a href="{link=novel.over.index}">全本</a></li>
            <li><a href="{link=novel.search.index}">搜书</a></li>
        </ul>
    </div>
    <div class="ptm-clearfix " style="margin:10px 10px 0">
        <form class="searchbox fl" action="{link=novel.search.result}">
            <input name="searchtype" type="hidden" value="novelname">
            <div class="ptm-col-xs-9">
                <input type="search" name="searchkey" placeholder="请输入您要搜索的小说" autocomplete="off" style="margin-bottom:0">
            </div>
            <div class="ptm-col-xs-3">
                <button class="ptm-btn ptm-btn-primary" style="width:100%;font-size:18px;padding-top:8px;padding-bottom:8px">搜 索</button>
            </div>
        </form>
    </div>

    {block method=mark.list userid=$userinfo.id name=marklist order=$order}
    {if count($marklist)>0}
    <div class="ptm-card" style="margin-top:10px;">
        <div class="ptm-card-header ptm-clearfix">
            <div class="ptm-pull-left">
                书架有更新的书
            </div>
        </div>
        <div class="ptm-card-content">
            <ul class="pt-card pt-card-3">
                {loop=marklist}
                {if $loop.markinfo.newnum}
                <li>
                    <div class="pt-cover">
                        <a href="{link=novel.novel.index novelid=$loop.novel.id pinyin=$loop.novel.pinyin}" title="{$loop.novel.name}">
                            <img class="lzld" src="{$loop.novel.cover}" alt="{$loop.novel.name}">
                        </a>
                    </div>
                    <div class="pt-novel" onclick="window.location.href='{link=novel.chapter.read novelid=$loop.novel.id pinyin=$loop.novel.pinyin chapterid=$loop.markinfo.nextid}'">
                        {if $loop.markinfo.newnum}<span class="ptm-badge ptm-badge-danger pt-mark-badge">{$loop.markinfo.newnum}未读</span>{/if}
                        <div class="pt-name" style="margin-bottom:8px;"><a title="{$loop.novel.name}">{$loop.novel.name}</a></div>
                        <div class="pt-author"><a>{$loop.author.name}</a></div>
                        <div class="pt-author ptm-text-cut">{$loop.last.name}</div>
                        <div class="pt-info">{$loop.last.time|cntime}</div>
                    </div>
                </li>
                {/if}
                {/loop}
            </ul>
        </div>
    </div>
    {/if}
    <div class="ptm-card" style="margin-top:10px;">
        <div class="ptm-card-header ptm-clearfix">
            <div class="ptm-pull-left">
                站长推荐
            </div>
        </div>
        <div class="ptm-card-content" style="padding:0">
            <ul class="ptm-list-view ptm-grid-view pt-card-1">
                {block method="recommend" name=list recommendid=2 num=3}
                {loop=$list}
                <li class="ptm-list-view-cell ptm-img ptm-col-xs-4">
                    <div class="imgarea">
                        <a href="{link=novel.novel.index novelid=$loop.data.novel.id pinyin=$loop.data.novel.pinyin}" title="{$loop.data.novel.name}"><img class="ptm-img-object" src="{$loop.data.novel.cover}" alt="{$loop.data.novel.name}"></a>
                    </div>
                    <div class="ptm-img-body">
                        <span class="ptm-block pt-name ptm-text-cut"><a href="{link=novel.novel.index novelid=$loop.data.novel.id pinyin=$loop.data.novel.pinyin}" title="{$loop.data.novel.name}">{$loop.data.novel.name}</a></span>
                    </div>
                </li>
                {/loop}
            </ul>
        </div>
    </div>
    <div class="ptm-card" style="margin-top:10px;">
        <div class="ptm-card-header ptm-clearfix">
            热门推荐
        </div>
        <div class="ptm-card-content">
            <ul class="pt-card pt-card-7">
                {block method="recommend" name=list recommendid=1 num=5}
                {loop=$list}
                <li>
                    <div class="pt-cover">
                        <a href="{link=novel.novel.index novelid=$loop.data.novel.id pinyin=$loop.data.novel.pinyin}" title="{$loop.data.novel.name}"><img src="{$loop.data.novel.cover}" alt="{$loop.data.novel.name}"></a>
                    </div>
                    <div class="pt-novel">
                        <div class="pt-num ptm-pull-right"></div>
                        <div class="pt-name"><a href="{link=novel.novel.index novelid=$loop.data.novel.id pinyin=$loop.data.novel.pinyin}">{$loop.data.novel.name}</a></div>
                        <div class="pt-author">{$loop.data.author.name}</div>
                        <div class="pt-desc ptm-text-cut">{$loop.data.novel.intro|showIntroLine}</div>
                    </div>
                </li>
                {/loop}
            </ul>
        </div>
    </div>
    <div class="ptm-card" style="margin-top:10px;">
        <div class="ptm-card-header ptm-clearfix">
            本周排行
        </div>
        <div class="ptm-card-content">
            <ul class="pt-card pt-card-3">
                {block method="novel.list" name="list" sort="weekvisit" num=5}
                {section loop=$list}
                <li>
                    <div class="pt-cover">
                        <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-novel">
                        <div class="pt-num ptm-pull-right"></div>
                        <div class="pt-name" style="margin-bottom:8px;"><a href="{link=novel.novel.index novelid=$loop.novel.id pinyin=$loop.novel.pinyin}">{$loop.novel.name}</a></div>
                        <div class="pt-author">{$loop.author.name} | <a href="{link=novel.category.list categoryid=$loop.category.id key=$loop.category.key}">{$loop.category.name}</a> | {$loop.novel.is_over|default="连载中","已完结"}</div>
                        <div class="pt-author ptm-text-cut"><a href="{link=novel.novel.index novelid=$loop.novel.id pinyin=$loop.novel.pinyin}">{$loop.last.name}</a></div>
                        <div class="pt-info">{$loop.last.time|cntime}更新</div>
                    </div>
                </li>
                {/loop}
            </ul>
        </div>
    </div>
    <div class="ptm-card" style="margin-top:10px;">
        <div class="ptm-card-header ptm-clearfix">
            最新更新
        </div>
        <div class="ptm-card-content">
            <ul class="pt-card pt-card-6">
                {block method="novel.list" name="list" sort="lastupdate" num=10 cachetime=600}
                {loop=$list}
                <li>
                    <div class="pt-novel">
                        <div class="pt-one">
                            <span class="pt-author">[{$loop.last.time|date="H:i"}] </span>
                            <span class="pt-name"><a href="{link=novel.novel.index novelid=$loop.novel.id pinyin=$loop.novel.pinyin}">{$loop.novel.name}</a></span>
                            <span class="pt-author">{$loop.author.name}</span>
                        </div>
                        <div class="pt-desc ptm-text-cut ">{$loop.last.name}</div>
                    </div>
                </li>
                {/loop}
            </ul>
        </div>
    </div>
</section>
{include file="/system/footer"}
<footer class="ptm-nav" style="border-top:1px solid #eee">
    <ul class="ptm-bar-tab">
        <li onclick="window.location.href='{link=user.mark.index}'">
            <span class="ptm-iconfont fa fa-book"></span>
            <p>书架</p>
        </li>
        <li class="active">
            <span class="ptm-iconfont fa fa-home"></span>
            <p>书城</p>
        </li>
        <li onclick="window.location.href='{link=user.index.index}'">
            <span class="ptm-iconfont fa fa-user"></span>
            <p>我的</p>
        </li>
    </ul>
</footer>
</body>
</html>