<%
DIRECTIVE SAFE_OUTPUT_OPEN;
%>
<meta charset="utf-8"/>
<link href="${ctxPath}/static/css/common_style.css" rel="stylesheet">
<script src="${ctxPath}/static/js/common.js"></script>
<script src="${ctxPath}/static/js/common_fun.js"></script>
<script src="${ctxPath}/community/cell/js/cell_list.js"></script>
<!-- 
<div class="search-switch">
	<label class="btn_searchswitch">搜索 &nbsp;&nbsp;<img src="${ctxPath}/static/images/chevron-down.png"></label>
</div>
 -->
<!--<form class="form-search form-group">
    <div class="center">
	    <div class="input-group">
	    	<input type="text" name="search" class="form-control input-lg search-query" value="${name}" placeholder="房间搜索">
	    	<span class="input-group-addon btn_search">搜索</span>
        </div>
    </div>
</form>-->
<form class="form-search form-group form-inline" name="cell_search_form">
    <div style="text-align: center;margin-top: 20px;">
        <input type="hidden" name="firstIn" id="cell_firstIn" value="${cellFirstIn}"/>
        <input name="search_communityName" id="search_communityName" class="form-control form-input"
               readonly="readonly" title="当前小区" placeholder="当前小区" style="margin:0px;"/>
        <input type="hidden" name="search_buildId" id="search_buildId" value="${search_buildId}"/>
        <input name="search_buildName" id="search_buildName" class="form-control form-select"
               value="${search_buildName}" style="margin:0px;" title="当前楼栋" placeholder="请选择楼栋"/>
        <!--<input type="text" name="search_cellName" class="form-control input-lg search-query"-->
               <!--value="${search_cellName}" placeholder="房间名称搜索" style="font-size:14px;">-->
        <label class="btn_search_more">搜索</label>
    </div>
</form>
<div id="cellListTableDiv" class="my-table">
    <table class="table table-striped table-hover my-table-head">
        <thead>
        <tr style="min-height:40px;">
            <th class="no-border"><input type="checkbox" name="selectAll" style="margin-right:4px;">全选</th>
            <th>房间名</th>
            <th>门牌</th>
            <th>
                <span>地址</span>
                <div class="opt">
                    <a href="#" id="add_btn" data-toggle="modal" data-target="#adddy-modal"><img src="${ctxPath}/static/images/btn_add_icon.png" alt="添加数据"/></a>
                    <a href="#" id="remove_btn"><img src="${ctxPath}/static/images/btn_remove_icon.png" alt="删除数据"/></a>
                </div>
            </th>
        </tr>
        </thead>
    </table>
    <div class="scroll-pane">
        <table class="table table-striped table-hover my-table-body">
            <tbody>
            <%for(cell in pageList){%>
            <tr>
                <td class="text-center no-border"><input type="checkbox" name="cell.id" value="${cell.id}"></td>
                <td>${cell.name}</td>
                <td>${cell.num}</td>
                <td>${cell.address}</td>
            </tr>
            <%}%>
            </tbody>
        </table>
    </div>
    <table class="table table-striped table-hover my-table-foot">
        <tfoot>
        <tr style="min-height:40px;">
            <td>
                <!-- 分页条 -->
                <% include("/community/common/view/paging.html"){} %>
            </td>
        </tr>
        </tfoot>
    </table>
</div>
<%
DIRECTIVE SAFE_OUTPUT_CLOSE;
%>