<commit_before><?php echo Asset::js(['jquery.zclip.min.js']); ?>
<div class="content-inner" style="min-height: 565px;">
    <!--邀请开始-->
    <div class="lead">邀请好友</div>
    <div class="show-box">
        <div class="remind" style="line-height: 40px;height:40px">
            <?php if(!empty($current_user->is_mobile)):?>
            邀请链接： <input type="text" id="copyShareText"  value="<?php echo Uri::create('/invit/'.base64_encode($current_user->id)); ?>" style="margin-right: 10px; line-height: 28px; width: 400px"/>
            <a href="javascript:;" id="btnCopy" class="btn btn-red" style="text-align:center;width: 60px;height: 28px;line-height: 28px;padding-right: 14px;font-size:12px">复制</a>
            <span style="color:green"></span>
            <?php else: ?>
            提示：您还没有验证手机，请您验证之后获取邀请链接。
            <?php endif;?>
        </div>
        <script>
            $(document).ready(function(){
                $("#btnCopy").zclip({
                    path:'<?php echo Uri::create('/assets/js/ZeroClipboard.swf');?>',
                    copy:$('#copyShareText').text(),
                    beforeCopy:function(){
                        $(this).next('span').html();
                    },
                    afterCopy:function(){
                        $(this).next('span').html('复制成功!');
                    }
                });
            });
        </script>
        <br />
        <div class="show-c">
            <table>
                <thead>
                <tr>
                    <th width="50%">会员</th>
                    <th>注册时间</th>
                </tr>
                </thead>
                <tbody>
                <?php if(!isset($invits) || empty($invits)) {
                        echo '<tr><td colspan="2" style="text-align:center">亲，还没有您的邀请好友哦！</td></tr>';
                } else {?>
                <?php foreach($invits as $invit) { ?>
                <tr>
                    <td>
                        <div><a target="_blank" class="b" href="<?php echo Uri::create('u/'.$invit->invit_id); ?>" ><?php echo $members[$invit->invit_id]->nickname;?></a></div>
                    </td>
                    <td><div><?php echo date('Y-m-d H:i:s', $members[$invit->invit_id]->created_at);?></div></td>
                </tr>
               <?php };?>
               <?php };?>
                </tbody>
            </table>
            <?php echo Pagination::instance('page')->render(); ?>
        </div>
    </div>
    <!--获晒单结束-->
</div>
<commit_msg>邀请好友复制修复<commit_after><?php echo Asset::js(['jquery.zclip.min.js']); ?>
<div class="content-inner" style="min-height: 565px;">
    <!--邀请开始-->
    <div class="lead">邀请好友</div>
    <div class="show-box">
        <div class="remind" style="line-height: 40px;height:40px">
            <?php if(!empty($current_user->is_mobile)):?>
            邀请链接： <input type="text" id="copyShareText"  value="<?php echo Uri::create('/invit/'.base64_encode($current_user->id)); ?>" style="margin-right: 10px; line-height: 28px; width: 400px"/>
            <a href="javascript:;" id="btnCopy" class="btn btn-red" style="text-align:center;width: 60px;height: 28px;line-height: 28px;padding-right: 14px;font-size:12px">复制</a>
            <span style="color:green"></span>
            <?php else: ?>
            提示：您还没有验证手机，请您验证之后获取邀请链接。
            <?php endif;?>
        </div>
        <script>
            $(document).ready(function(){
                $("#btnCopy").zclip({
                    path:'<?php echo Uri::create('/assets/js/ZeroClipboard.swf');?>',
                    copy:$('#copyShareText').val(),
                    beforeCopy:function(){
                        $(this).next('span').html();
                    },
                    afterCopy:function(){
                        $(this).next('span').html('复制成功!');
                    }
                });
            });
        </script>
        <br />
        <div class="show-c">
            <table>
                <thead>
                <tr>
                    <th width="50%">会员</th>
                    <th>注册时间</th>
                </tr>
                </thead>
                <tbody>
                <?php if(!isset($invits) || empty($invits)) {
                        echo '<tr><td colspan="2" style="text-align:center">亲，还没有您的邀请好友哦！</td></tr>';
                } else {?>
                <?php foreach($invits as $invit) { ?>
                <tr>
                    <td>
                        <div><a target="_blank" class="b" href="<?php echo Uri::create('u/'.$invit->invit_id); ?>" ><?php echo $members[$invit->invit_id]->nickname;?></a></div>
                    </td>
                    <td><div><?php echo date('Y-m-d H:i:s', $members[$invit->invit_id]->created_at);?></div></td>
                </tr>
               <?php };?>
               <?php };?>
                </tbody>
            </table>
            <?php echo Pagination::instance('page')->render(); ?>
        </div>
    </div>
    <!--获晒单结束-->
</div>

{'fraction_non_alphanumeric': 0.20080160320641283, 'fraction_numerical': 0.011623246492985972, 'mean_word_length': 1.5425369332654102, 'pattern_counts': {'":': 0, '<': 127, '<?xml version=': 0, '>': 143, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3613756', 'n_tokens_mistral': 1642, 'n_tokens_neox': 1590, 'n_words': 228}