<!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">
            <div class="hd">
                <a href="{link=user.sign.index}" class="tab">我的签到</a>
                <a href="{link=user.vote.index}" class="tab">我的推荐</a>
                <a href="{link=user.star.index}" class="tab">我的评分</a>
                <a href="{link=user.invite.index}" class="tab active">我的邀请</a>
            </div>
            <div class="bd">
                <div class="invitebox">
                    <p>您的专用地址：{$kx.config.siteurl}?fr={$userinfo.id}</p>
                    <p>您还可以拼装链接分享任何页面,只要按照以下规则：</p>
                    <p>1、如果页面链接中包含"?"问号,那么在最后拼接上 &fr={$userinfo.id}</p>
                    <p>2、如果页面链接中不包含"?"问号,那么在最后拼接上 ?fr={$userinfo.id}</p>
                </div>
                <ul class="record">
                    {block method="pagination" name="paginate" page=$page limit=$pagesize count=$count maxpage=50 section=3}
                    {block method="user.inviteList" name=invitelist userid=$userinfo.id page=$page}
                    <li class="clearfix">
                        <div style="width:25%"><b>用户/IP</b></div>
                        <div style="width:15%"><b>类型</b></div>
                        <div style="width:30%"><b>时间</b></div>
                        <div style="width:15%"><b>{$kx.config.user.exp_caption}奖励</b></div>
                        <div style="width:15%" class="last"><b>{$kx.config.user.point_caption}奖励</b></div>
                    </li>
                    {if empty($invitelist)}
                    <li class="clearfix">
                        <div style="width:100%">您似乎来到了没有数据存在的荒原~~~</div>
                    </li>
                    {else}
                    {loop=starlist}
                    <li class="clearfix">
                        <div style="width:25%">{$loop.ext}</div>
                        <div style="width:15%">{$loop.type|default="注册","访问"}</div>
                        <div style="width:30%">{$loop.datetime|date="Y年m月d日 H:i:s"}</div>
                        <div style="width:15%">{$loop.exp}</div>
                        <div style="width:15%" class="last">{$loop.point}</div>
                    </li>
                    {/loop}
                    {/if}
                </ul>
                <div class="pagination">
                    {if !empty($invitelist) && $paginate.total>1}
                    <span>共{$paginate.total}页 {$paginate.count}条</span>
                    <a href="{link='index' page=$paginate.first}" class="first number"><<</a>
                    <a href="{link='index' 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='index' page=$loop.num}" class="number">{$loop.num}</a>
                    {/if}
                    {/loop}
                    <a href="{link='index' page=$paginate.next}" class="next number">&gt;</a>
                    <a href="{link='index' page=$paginate.last}" class="last number">&gt;&gt;</a>
                    {/if}
                </div>
            </div>
        </div>
    </div>
</section>
{include file="/system/footer"}
</body>
</html>