<%
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/door/js/door_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 form-inline" name="door_searcg_from">
    <div style="text-align: center;margin-top: 20px;">
	    <div>
		    <input type="hidden" name="communityId_s" id="communityId_s"/>
		    <input id="communityName_s" name="communityName_s" class="form-control form-input" title="小区" placeholder="小区" readonly="readonly" style="margin-top:0"/>
		    <input type="hidden" name="buildId_s" id="buildId_s" value="${buildId_s}"/>
		    <input name="buildName_s" id="buildName_s" class="form-control form-select" value="${buildName_s}" style="margin:0;" placeholder="请选择楼栋"/>
			<input type = "text" value="" hidden> <!--此input为处理上一个 placeholder 和 bootstrap 冲突的问题,否则会引起上个 input 的 enter 事件被 bootstrap 替代引起刷新页面-->
	    	<label class="btn_search_more">搜索</label>
        </div>
    </div>
</form>

<div id="doorListTableDiv" 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(door in pageList){%>
				<tr>
					<td class="text-center no-border"><input type="checkbox" name="door.id" value="${door.id}"></td>
					<%
					var type = door.doorType;
					%>
					<td>${door.name}</td>
					<td>${door.index}</td>
					<td><% if(type == '0'){%>楼栋门<%}else if(type == '1'){%>小区门<%}%></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;
%>