<style type="text/css">
    .table td a.list-thumb {
        display:block;
        width:100px;
        height:100px;
        line-height:100px;
        overflow: hidden;
        text-align:center;
    }
    .table td a.list-thumb img {
        max-width:100%;
        max-height:100%;
        margin:0px auto;
    }
</style>
<div class="main-right-box">
    <h5>{lang_admin('collection')}</h5>
    <div class="box" id="box">
        <form name="listform" id="listform"  action="<?php echo uri();?>" method="post" onsubmit="return returnform(this);">
            <div class="table-responsive">
                <table class="table table-hover">
                    <thead>
                    <tr class="th">
                        <th class="s_out"><input title="{lang_admin('click_to_select_all_items_on_this_page')}"  onclick="CheckAll(this.form)" type="checkbox" name="chkall" class="checkbox" /></th>
                        <th class="catid text-center">{lang_admin('id')}</th>
                        <th class="catid">{lang_admin('picture')}</th>
                        <th class="catname">{lang_admin('title')}</th>
                        <th class="catname">{lang_admin('username')}</th>
                        <th class="catname">{lang_admin('adddate')}</th>
                        <th class="catname">{lang_admin('dosomething')}</th>
                    </tr>
                    </thead>
                    <tbody>
                    {loop $data $d}
                    <tr>
                        <td class="s_out"><input onclick="c_chang(this)" type="checkbox" value="{$tagname}" name="select[]" class="checkbox" /></td>
                        <td class="catid text-center">{cut($d['aid'])}</td>
                        <td class="coupon-list-couponid" >
                            <a target="_blank" href="<?php echo $base_url;?>/index.php?case=archive&act=show&aid={$d['aid']}" class="list-thumb">
                                <img src="{$d['thumb']}" onerror='this.src="<?php echo config::get('onerror_pic');?>"' />
                            </a>
                        </td>
                        <td class="coupon-list-coupontitle">{$d['title']}</td>
                        <td class="coupon-list-coupontitle">{$d['username']}</td>
                        <td class="coupon-list-coupontitle">{date('Y-m-d H:i:s',$d['username_collectdate'])}</td>
                        <td class="coupon-list-manage" >
                            <?php $urlname='archive/show/aid/'.$d['aid']; ?>
                            <a onclick="getarchive('{url($urlname,false)}')" title="{lang('look')}" class="btn btn-gray">
                                {lang_admin('see')}
                            </a>
                        </td>
                    </tr>
                    {/loop}
                    </tbody>

                </table>
            </div>
            <input type="hidden" name="batch" value="" />

            <div class="blank30"></div>
            <div class="line"></div>

            <div class="clear page">
                <?php if(get('table')!='type' && front::get('case')!='field') echo pagination::adminhtml($record_count); ?>
            </div>

        </form>
        <script>
            //查看
            function getarchive(url) {
                window.open(url,"_blank");
            }
        </script>

        <script>
            $(function () { $("[data-toggle='tooltip']").tooltip(); });
        </script>
        <div class="blank30"></div>
    </div>
</div>

