<!-- ############ PAGE START-->
<div class="padding">
    <div class="row">
        <div class="col-sm-4">
            <form data-ui-jp="parsley" action="?Mould=Admin_Song" method="post">
                <input type="hidden" name="action" value="add">
                <div class="box">
                    <div class="box-header">
                        <h2>添加歌单</h2>
                    </div>
                    <div class="box-body">
                        <p class="text-muted">在这里，你可以新增网易云的歌单，比如排行榜等...</p>
                        <div class="form-group">
                            <label>歌单ID</label>
                            <input type="text" class="form-control" name="music_id" placeholder="请输入歌单ID">
                        </div>
                        <div class="form-group">
                            <label>歌单备注</label>
                            <input type="text" class="form-control" name="remarks" placeholder="请输入歌单备注">
                        </div>
                    </div>
                    <div class=" p-a text-right">
                        <button type="submit" class="btn info">点击添加</button>
                    </div>
                </div>
            </form>
        </div>
        <div class="col-sm-8">
            <div class="box">
                <div class="box-header">
                    <span class="pull-right">
                        查询: <input id="filter" type="text" class="form-control input-sm w-auto inline m-r" placeholder="请输入查询内容..."/>
                    </span>
                    <h2>歌单列表</h2>
                    <small>在这里，你可以自由的管理音乐大厅里的歌单。</small>
                </div>
                <div>
                    <table class="table m-b-none" data-ui-jp="footable" data-filter="#filter" data-page-size="10">
                        <thead>
                            <tr>
                                <th>#</th>
                                <th>歌单ID</th>
                                <th>歌单备注</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody>
                        <?php if(!empty($GLOBALS['list'])){ foreach($GLOBALS['list'] as $item){ $index++; ?>
                            <tr>
                                <td><?=$index?></td>
                                <td><?=$item->music_id?></td>
                                <td><?=$item->remarks?></td>
                                <td><a href="?Mould=Admin_Song&action=del&id=<?=$item->id?>" class="label danger" title="Active">删除</a></td>
                            </tr>
                        <?php } }?>
                        </tbody>
                        <tfoot class="hide-if-no-paging">
                            <tr>
                                <td colspan="5" class="text-center">
                                    <ul class="pagination"></ul>
                                </td>
                            </tr>
                        </tfoot>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- ############ PAGE END-->