<!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" />
    <style>li.content:nth-child(even){background-color: #fbfbfb;}</style>
</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">
            <div class="hd">
                <a href="{link=user.comment.publish}" class="tab active">我评论的</a>
                <a href="{link=user.comment.reply}" class="tab">我回复的</a>
            </div>
            <div class="bd">
                <ul class="record">
                    {block method="pagination" name="paginate" page=$page limit=$pagesize count=$userinfo.data.comment_num maxpage=50 section=3}
                    {block method="user.commentList" name=commentlist userid=$userinfo.id page=$page}
                    <li class="clearfix">
                        <div style="width:40%"><b>小说</b></div>
                        <div style="width:15%"><b>点赞</b></div>
                        <div style="width:15%"><b>点踩</b></div>
                        <div style="width:30%" class="last"><b>时间</b></div>
                    </li>
                    {if empty($commentlist)}
                    <li class="clearfix">
                        <div style="width:100%">您似乎来到了没有数据存在的荒原~~~</div>
                    </li>
                    {else}
                    {loop=commentlist}
                    <li class="clearfix content">
                        <div style="width:40%"><a href="{link=novel.novel.index novelid=$loop.novel.novel.id pinyin=$loop.novel.novel.pinyin}">《{$loop.novel.novel.name}》</a></div>
                        <div style="width:15%">{$loop.good_num}</div>
                        <div style="width:15%">{$loop.bad_num}</div>
                        <div style="width:30%" class="last">{$loop.datetime|date="Y年m月d日 H:i:s"}</div>
                        <div style="width:100%;text-align: left;border-top: 1px solid #e5e5e5" class="last" title="{$loop.content}">{$loop.content}</div>
                    </li>
                    {/loop}
                    {/if}
                </ul>
                <div class="pagination">
                    {if !empty($commentlist) && $paginate.total>1}
                    <span>共{$paginate.total}页 {$paginate.count}条</span>
                    <a href="{link='' page=$paginate.first}" class="first number"><<</a>
                    <a href="{link='' 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='' page=$loop.num}" class="number">{$loop.num}</a>
                    {/if}
                    {/loop}
                    <a href="{link='' page=$paginate.next}" class="next number">&gt;</a>
                    <a href="{link='' page=$paginate.last}" class="last number">&gt;&gt;</a>
                    {/if}
                </div>
            </div>
        </div>
    </div>
</section>
{include file="/system/footer"}
</body>
</html>