<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="${ctxPath}/system/cms/ad/groupCheck" method="post">
        <input type="hidden" name="pageSize" value="${model.pageSize!}">
        <input type="hidden" name="pageCurrent" value="${model.pageNum!}">
        <div class="bjui-searchBar">
            <label>分组状态:</label>
            <select name="status" data-toggle="selectpicker">
                @if(isEmpty(pojo.status)){
                <option value=""  selected>所有</option>
                <option value="0"> 禁用</option>
                <option value="1"> 正常 </option>
                @}else if(!pojo.status){
                <option value="">所有</option>
                <option value="0" selected> 禁用</option>
                <option value="1"> 正常 </option>
                @}else{
                <option value="" >所有</option>
                <option value="0"> 禁用</option>
                <option value="1"  selected> 正常 </option>
                @}

            </select>&nbsp;
            <a   href="${ctxPath}/system/cms/ad/group/input" class="btn btn-green" data-icon="plus" data-toggle="dialog" data-maxable="false" data-resizable="true"  data-width="400" data-height="300" data-id="add-ad-group-tab"  data-title="添加分组">添加分组</a>
           <button type="submit" class="btn-default" data-icon="search">查询</button>
        </div>
    </form>
</div>
<div class="bjui-pageContent tableContent">
    <table class="table table-bordered table-hover table-striped table-top" data-selected-multi="true">
        <thead>
        <tr>
            <th align="center"  width="25">No</th>
            <th align="center"  width="50">组名</th>
            <th align="center"  width="80">状态</th>
            <th align="center"  width="60">操作</th>
        </tr>
        </thead>
        <tbody>
        @for(group in model.list){
        <tr data-id="${groupLP.index}">
            <td align="center">${group.id!}</td>
            <td align="center">${group.groupName!,xss}</td>
            <td align="center">${group.status?'正常':'禁用'}</td>
            <td  align="center">
             <a href="javascript:;" data-toggle="lookupback" data-args="{groupId:'${group.id!}'}" class="btn btn-blue" title="选择本项" data-icon="check">选择</a>
             <a href="${ctxPath}/system/cms/ad/group/delete?ids=${group.id!}" class="btn btn-red" data-toggle="doajax"  data-confirm-msg="确定要删除该行信息吗？">删</a>
            </td>
        </tr>
        @}
        </tbody>
    </table>
</div>
<div class="bjui-pageFooter">
    <div class="pages">
        <span>每页&nbsp;</span>
        <div class="selectPagesize">
            <select data-toggle="selectpicker" data-toggle-change="changepagesize">
                <option value="30">30</option>
                <option value="60">60</option>
                <option value="120">120</option>
                <option value="150">150</option>
            </select>
        </div>
        <span>&nbsp;条，共 ${model.total!} 条</span>
    </div>
    <div class="pagination-box" data-toggle="pagination" data-total="${model.total!}" data-page-size="30" data-page-current="1">
    </div>
</div>