
<h3 class="header smaller lighter blue mg-bottom20 mg-top12">附件管理</h3>
<div class="well">
    <form class="form-inline" method="get" action="<?php echo url('manage/attachmentList'); ?>">
        <div class="form-inline search-group " >

            <div class="form-group search-list">
                <label for="">附件名称　</label>
                <input type="text" name="name" <?php if(isset($merge['name'])): ?>value="<?php echo $merge['name']; ?>"<?php endif; ?>>
            </div>
            <div class="form-group search-list">
                <label for="">时间　</label>
                <div class="input-daterange input-group">
                    <input type="text" name="start" class="input-sm form-control" value="<?php if(isset($merge['start'])): ?><?php echo $merge['start']; ?><?php endif; ?>">
                    <span class="input-group-addon"><i class="fa fa-exchange"></i></span>
                    <input type="text" name="end" class="input-sm form-control" value="<?php if(isset($merge['end'])): ?><?php echo $merge['end']; ?><?php endif; ?>">
                </div>
            </div>
            <div class="form-group">
                <button type="submit" class="btn btn-primary btn-sm">搜索</button>
            </div>
        </div>
    </form>
</div>
<div>
    <table id="sample-table-1" class="table table-striped table-bordered table-hover">
        <thead>
        <tr>
            <th class="center">
                <label>
                    <?php /*<input type="checkbox" class="ace allcheck"/>
                    <span class="lbl"></span>*/ ?>
                    编号
                </label>
            </th>
            <th>驱动</th>
            <th>附件名称</th>
            <th>时间</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <?php if(!empty($list)): ?>
            <?php foreach($list as $item): ?>
            <tr>
            <td class="center">
                <label>
                    <input type="checkbox" class="ace" name="chk"/>
                    <span class="lbl"></span>
                    <?php echo $item->id; ?>

                </label>
            </td>

            <td>
                <?php echo $item->disk; ?>

            </td>
            <td>
                <?php echo $item->name; ?>

            </td>
            <td>
                <?php echo $item->created_at; ?>

            </td>
            <td>
                <div class="visible-md visible-lg hidden-sm hidden-xs btn-group">
                    <a href="<?php echo url('manage/attachmentDel/' . $item->id); ?>" title="删除" class="btn btn-xs btn-danger">
                        <i class="ace-icon fa fa-trash-o bigger-120"></i>删除
                    </a>
                </div>
                <div class="visible-xs visible-sm hidden-md hidden-lg">
                    <div class="inline position-relative">
                        <button class="btn btn-minier btn-yellow dropdown-toggle" data-toggle="dropdown">
                            <i class="fa fa-caret-down icon-only bigger-120"></i>
                        </button>

                        <ul class="dropdown-menu dropdown-only-icon dropdown-yellow pull-left dropdown-caret dropdown-close">
                            <li>
                                <a href="<?php echo url('manage/attachmentDel/' . $item->id); ?>" class="tooltip-error" data-rel="tooltip" title="" data-original-title="Delete">
                                    <span class="red">
                                        <i class="ace-icon fa fa-trash-o bigger-120"></i>
                                    </span>
                                </a>
                            </li>
                        </ul>
                    </div>
                </div>
            </td>
        </tr>
            <?php endforeach; ?>
        <?php endif; ?>
        </tbody>
    </table>
</div>
<div>
    <div class="dataTables_paginate paging_bootstrap pull-right text-right row">
        <?php echo $list->appends($merge)->render(); ?>

    </div>
</div>

<?php echo Theme::asset()->container('custom-css')->usePath()->add('backstage', 'css/backstage/backstage.css'); ?>


<?php /*时间插件*/ ?>
<?php echo Theme::asset()->container('specific-css')->usePath()->add('datepicker-css', 'plugins/ace/css/datepicker.css'); ?>

<?php echo Theme::asset()->container('specific-js')->usePath()->add('datepicker-js', 'plugins/ace/js/date-time/bootstrap-datepicker.min.js'); ?>

<?php echo Theme::asset()->container('custom-js')->usePath()->add('userfinance-js', 'js/userfinance.js'); ?>