{T  'member','head'}
<link rel="stylesheet" href="{R}js/dialog/ui-dialog.css" />
<script src="{R}js/dialog/dialog-plus.js"></script>
<div class="wrapper wrapper-content">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>当前选项名称</h5>
                    <div class="ibox-tools">
                        <a class="collapse-link">
                            <i class="fa fa-chevron-up"></i>
                        </a>
                        <a class="close-link">
                            <i class="fa fa-times"></i>
                        </a>
                    </div>
                </div>
                <div class="ibox-content">
                    <section class="panel">
                        <header class="panel-heading"><span class="title">我的发布</span></header>

                        <ul id="myTab" class="nav nav-tabs" role="tablist">
                            <li role="presentation" class="active"><a href="#tabs1" id="1tab" role="tab" data-toggle="tab" aria-controls="tabs1" aria-expanded="true">最新信息</a></li>
                            <li role="presentation" class=""><a href="#tabs2" role="tab" id="2tab" data-toggle="tab" aria-controls="tabs2" aria-expanded="false">显示中的信息</a></li>
                            <li role="presentation" class=""><a href="#tabs3" role="tab" id="3tab" data-toggle="tab" aria-controls="tabs3" aria-expanded="false">审核中的信息</a></li>
                            <li role="presentation" class=""><a href="#tabs4" role="tab" id="4tab" data-toggle="tab" aria-controls="tabs4" aria-expanded="false">已删除的信息</a></li>
                        </ul>

                        <div class="submitbtn"><a href="?m=content&f=cominfo&v=newinfo" class="btn">免费发布信息</a></div>


                        <div id="myTabContent" class="tab-content tabsbordertop">

                            <div role="tabpanel" class="tab-pane fade active in" id="tabs1" aria-labelledby="1tab">
                                <div class="panel-body" id="panel-bodys">
                                    <table class="table table-striped table-advance table-hover text-center">
                                        <tbody>
                                        {loop $result1 $r}
                                        <tr>
                                            <td colspan="3" class="text-left mysubmit"><span class="uptime">更新时间: {date('Y-m-d H:i:s',$r['updatetime'])}</span> <span class="number">编号：{$r['id']}</span> <span class="pull-right"><a href="?m=content&f=cominfo&v=editinfo&id={$r['id']}" class="btn btn-order">修改</a> <a href="?m=content&f=cominfo&v=delinfo&id={$r['id']}"  class="btn btn-del">删除</a></span></td>
                                        </tr>
                                        <tr>
                                            <td class="submitlist"><a href="{$r['url']}">{$r['title']}</a></td>
                                            <td><div class="progress">
                                                {if $r['status']==9}
                                                <div class="progress-bar progress-bar-success progress-bar-striped active" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%">显示中</div>
                                                {elseif $r['status']==0}
                                                <div class="progress-bar progress-bar-danger progress-bar-striped" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%">已删除</div>
                                                {elseif $r['status']>0}
                                                <div class="progress-bar progress-bar-warning progress-bar-striped" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%">审核中</div>
                                                {/if}
                                            </div></td>
                                            <td>
                                                {if $r['status']==9}
                                                <a href="javascript:referer({$r['id']});" class="btn btn-white">刷新</a>
                                                <a href="javascript:settop({$r['id']});" class="btn btn-white">置顶</a>{/if}</td>
                                        </tr>
                                        {/loop}
                                        </tbody>
                                    </table>
                                </div>
                                {if $total>20}
                                <!--分页开始-->
                                <div class="paginationpage text-center">
                                    <nav>
                                        <ul class="pagination">
                                            {$pages}
                                        </ul>
                                    </nav>
                                </div>
                                {/if}
                                <!--分页结束-->

                            </div>


                            <div role="tabpanel" class="tab-pane fade" id="tabs2" aria-labelledby="2tab">
                                <table class="table table-striped table-advance table-hover text-center">
                                    <tbody>
                                    {loop $result2 $r}
                                    <tr>
                                        <td colspan="3" class="text-left mysubmit"><span class="uptime">更新时间: {date('Y-m-d H:i:s',$r['updatetime'])}</span> <span class="number">编号：{$r['id']}</span> <span class="pull-right"><a href="?m=content&f=cominfo&v=editinfo&id={$r['id']}" class="btn btn-order">修改</a> <a href="?m=content&f=cominfo&v=delinfo&id={$r['id']}"  class="btn btn-del">删除</a></span></td>
                                    </tr>
                                    <tr>
                                        <td class="submitlist"><a href="{$r['url']}">{$r['title']}</a></td>
                                        <td><div class="progress">
                                            {if $r['status']==9}
                                            <div class="progress-bar progress-bar-success progress-bar-striped active" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%">显示中</div>
                                            {elseif $r['status']==0}
                                            <div class="progress-bar progress-bar-danger progress-bar-striped" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%">已删除</div>
                                            {elseif $r['status']>0}
                                            <div class="progress-bar progress-bar-warning progress-bar-striped" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%">审核中</div>
                                            {/if}
                                        </div></td>
                                        <td><a href="javascript:referer({$r['id']});" class="btn btn-white">刷新</a> <a href="javascript:settop({$r['id']});" class="btn btn-white">置顶</a></td>
                                    </tr>
                                    {/loop}
                                    </tbody>
                                </table>
                            </div>

                            <div role="tabpanel" class="tab-pane fade" id="tabs3" aria-labelledby="3tab">
                                <table class="table table-striped table-advance table-hover text-center">
                                    <tbody>
                                    {loop $result3 $r}
                                    <tr>
                                        <td colspan="3" class="text-left mysubmit"><span class="uptime">更新时间: {date('Y-m-d H:i:s',$r['updatetime'])}</span> <span class="number">编号：{$r['id']}</span> <span class="pull-right"><a href="?m=content&f=cominfo&v=editinfo&id={$r['id']}" class="btn btn-order">修改</a> <a href="?m=content&f=cominfo&v=delinfo&id={$r['id']}"  class="btn btn-del">删除</a></span></td>
                                    </tr>
                                    <tr>
                                        <td class="submitlist"><a href="{$r['url']}">{$r['title']}</a></td>
                                        <td><div class="progress">
                                            {if $r['status']==9}
                                            <div class="progress-bar progress-bar-success progress-bar-striped active" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%">显示中</div>
                                            {elseif $r['status']==0}
                                            <div class="progress-bar progress-bar-danger progress-bar-striped" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%">已删除</div>
                                            {elseif $r['status']>0}
                                            <div class="progress-bar progress-bar-warning progress-bar-striped" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%">审核中</div>
                                            {/if}
                                        </div></td>
                                        <td></td>
                                    </tr>
                                    {/loop}
                                    </tbody>
                                </table>
                            </div>

                            <div role="tabpanel" class="tab-pane fade" id="tabs4" aria-labelledby="4tab">
                                <table class="table table-striped table-advance table-hover text-center">
                                    <tbody>
                                    {loop $result4 $r}
                                    <tr>
                                        <td colspan="3" class="text-left mysubmit"><span class="uptime">更新时间: {date('Y-m-d H:i:s',$r['updatetime'])}</span> <span class="number">编号：{$r['id']}</span> </td>
                                    </tr>
                                    <tr>
                                        <td class="submitlist"><a href="{$r['url']}">{$r['title']}</a></td>
                                        <td><div class="progress">
                                            {if $r['status']==9}
                                            <div class="progress-bar progress-bar-success progress-bar-striped active" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%">显示中</div>
                                            {elseif $r['status']==0}
                                            <div class="progress-bar progress-bar-danger progress-bar-striped" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%">已删除</div>
                                            {elseif $r['status']>0}
                                            <div class="progress-bar progress-bar-warning progress-bar-striped" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%">审核中</div>
                                            {/if}
                                        </div></td>
                                        <td></td>
                                    </tr>
                                    {/loop}
                                    </tbody>
                                </table>
                            </div>
                        </div>


                    </section>
                </div>
            </div>
        </div>
    </div>
</div>

{T "member","foot"}
<script>
    $(document).ready(function () {
        $('.i-checks').iCheck({
            checkboxClass: 'icheckbox_square-green',
            radioClass: 'iradio_square-green',
        });
    });

    function referer(id) {
        var d = dialog({
            title: '提示',
            content: '刷新将消耗您{$point_config['cominfo_f5']}点积分',
            okValue: '确定',
            ok: function () {
                $.post("?m=content&f=cominfo&v=referer", { id: id, time: "2pm" },
                        function(data){
                            if(data==1) {
                                var xb = dialog({
                                    content: '刷新成功！'
                                });
                                xb.show();
                                setTimeout(function () {
                                    xb.close().remove();
                                }, 2000);
                            } else if(data==2) {
                                var xb = dialog({
                                    content: '您的积分不足，刷新失败！'
                                });
                                xb.show();
                                setTimeout(function () {
                                    xb.close().remove();
                                }, 2000);
                            }
                        });

            },
            cancelValue: '取消',
            cancel: function () {}
        });
        d.show();

    }
    function settop(id) {
        var xb = dialog({
            content: '置顶功能需要您联系客服！'
        });
        xb.show();
        setTimeout(function () {
            xb.close().remove();
        }, 3000);
    }
</script>
</body>
</html>
