<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>浏览历史 - {$kx.config.sitename}</title>
    {include file="/system/head"}
    <link rel="stylesheet" href="{$kx.config.resurl}/template/kxwebno2/css/user.css" />
</head>
<body>
{include file="/system/header"}
<section class="w-all user">
    {include file="/system/userheader"}
    <div class="body clearfix">
        <div class="userleft">
            <ul class="navbar">
                {include file="/system/userleft"}
            </ul>
        </div>
        <div class="userright">
            {block method=mark.history userid=$userinfo.id name=list}
            <div class="hd">
                <a class="tab" href="{link=user.mark.index}">云书架</a>
                <a class="tab active" href="{link=user.history.index}">浏览历史<em>({$list|count}本)</em></a>
            </div>
            <div class="bd">
                <ul class="marklist">
                    {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}" target="_blank"><img src="{$loop.novel.cover}" alt="{$loop.novel.name}" /></a>
                        </div>
                        <div class="pt-ll-r">
                            <p class="title">
                                <span><a href="{link=novel.novel.index novelid=$loop.novel.id pinyin=$loop.novel.pinyin}" class="novelname" title="{$loop.novel.name}" target="_blank">{$loop.novel.name}</a></span>
                                <a class="btn btn-warning btn-small fr" href="{link=user.history.del novelid=$loop.novel.id}">移出记录</a>
                                {if !$loop.ismark}
                                <a class="btn btn-primary btn-small fr" style="margin-right: 5px;" href="{link=user.mark.add novelid=$loop.novel.id chapterid=$loop.chapter.id}">加入书架</a>
                                {/if}
                                {if $loop.newnum}<span class="btn btn-danger btn-small fr">有更新</span>{/if}
                            </p>
                            <p class="info"><a href="{link=author.space.index authorid=$loop.author.id pinyin=$loop.author.pinyin name=$loop.author.name}" title="{$loop.author.name} 作品列表" target="_blank">{$loop.author.name}</a> 著 </p>
                            <p class="info">
                                最新：<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|cntime})
                            </p>
                            <p class="info">
                                {if $loop.newnum}<a href="{link=novel.chapter.read pinyin=$loop.novel.pinyin novelid=$loop.novel.id chapterid=$loop.markinfo.nextid}" target="_blank"><span class="num"> {$loop.newnum} </span>章未读</a>{else}全部读完{/if}
                            </p>
                        </div>
                        <div class="clear"></div>
                    </li>
                    {/loop}
                </ul>
                <a class="btn btn-primary" href="{link=user.history.clear}">清空浏览历史</a>
            </div>
        </div>
    </div>
</section>
{include file="/system/footer"}
</body>
</html>