<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="${ctxPath}/cms/vote" method="post">
        <input type="hidden" name="pageSize" value="${model.pageSize!}">
        <input type="hidden" name="pageCurrent" value="${model.pageNum!}">
        <div class="bjui-searchBar">
            <a href="${ctxPath}/cms/vote/input" class="btn btn-green" data-icon="plus" data-toggle="dialog" data-maxable="false" data-resizable="true"  data-width="500" data-height="360" data-id="add-admin-user"  data-title="新增投票主题">新增投票主题</a>
        </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="25">排序</th>
            <th align="center"  width="75">投票主题</th>
            <th align="center"  width="80">操作</th>
        </tr>
        </thead>
        <tbody>

        @for(vote in model.list){
        <tr data-id="${voteLP.index}">
            <td align="center">${vote.vote_id!}</td>
            <td align="center">${vote.xh!}</td>
            <td align="center">${vote.content!,xss}</td>

            <td  align="center">
                <a href="${ctxPath}/cms/vote/toOption?vote_id=${vote.vote_id!}" class="btn btn-green" data-toggle="dialog" title="添加选项" data-maxable="false" data-resizable="false" data-width="500" data-height="330" data-id="edit-site-tab"  data-title="添加选项">添加选项</a>
                <a href="${ctxPath}/cms/vote/input?id=${vote.vote_id!}" class="btn btn-green"  data-toggle="dialog" title="修改" data-maxable="false" data-resizable="false"  data-width="500" data-height="330" data-id="edit-site-tab"  data-title="修改主题">修改主题</a>
                <a href="${ctxPath}/cms/vote/show?id=${vote.vote_id!}&content=${vote.content!}" class="btn btn-green"  data-toggle="dialog" title="查看" data-maxable="false" data-resizable="false"  data-width="500" data-height="330" data-id="edit-site-tab"  data-title="查看">查看结果</a>
                <a href="${ctxPath}/cms/vote/delete?vote_id=${vote.vote_id!}" class="btn btn-red" data-toggle="doajax" title="删除" 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>