<%
DIRECTIVE SAFE_OUTPUT_OPEN;
%>
<meta charset="utf-8" />
<!--
<script src="${ctxPath}/static/js/common_backfill.js"></script>
 --> 
<script src="${ctxPath}/community/common/static/js/build_backfill_radio_list.js"></script>
<style>
.layui-layer {
	background-color: rgba(0,0,0,0);
}
</style>
<div style="background: #FFF;width: 100%;height: 100%;">

	
	<div id="popBuildListTableDiv" class="my-table">
		<table class="table table-striped table-hover my-table-head build_backfill">
			<thead>
				<tr style="min-height:40px;">
					<th class="no-border">选择</th>
		   			<th>楼栋名称</th>
					<th>楼栋门牌</th>
	  				<th>所属小区</th>
				</tr>
			</thead>
		</table>
		<div class="scroll-pane pop-scroll-pane">
			<table class="table table-striped table-hover my-table-body build_backfill">
				<tbody>
					<%for(build in pageList){%>
					<tr>
						<td class="text-center no-border">
							<input type="radio" name="build.id"  value="${build.id}" style="vertical-align:-2px;" >
						</td>
					   	<td>${build.name}</td>
						<td>${build.num}</td>
					   	<td>${build.communityName}</td>
					</tr>
					<%}%>
				</tbody>
			</table>
		</div>
		<table class="table table-striped table-hover my-table-foot">
			<tfoot>
				<tr style="min-height:40px;">
					<td>
						<!-- 分页条 -->
						<div class="text-center"> 
						     <%
						       var current = pageIndex.currentpage;
						       var total = pageIndex.totalpage;
						     %>
						     <div class="pagination my-pagination">
								<div>
									<a class="page-start" data="1" href="#1">
										<span class="glyphicon glyphicon-step-backward"></span>
									</a>
								</div>
								<div>
									<a class="page-pre" data="<% if(current <= 1){%>1<%}else{%>${current - 1 }<%}%>" href="#<% if(current <= 1){%>1<%}else{%>${current - 1 }<%}%>">
										<span class="glyphicon glyphicon-triangle-left"></span>
									</a>
								</div>
								<div>
									<span>第</span>
									<input class="page-current" data="${current}" name="currentPage" value="${current}">
									<span>页</span>
								</div>
								<div>
									<span>共</span>
									<span class="page-total" data="${total}">${total}</span>
									<span>页</span>
								</div>
								<div>
									<a class="page-next" data="<% if(current >= total){%>${total}<%}else{%>${current + 1 }<%}%>" href="#<% if(current >= total){%>${total}<%}else{%>${current + 1 }<%}%>">
										<span class="glyphicon glyphicon-triangle-right"></span>
									</a>
								</div>
								<div>
									<a class="page-end" data="${total}" href="#${total}">
										<span class="glyphicon glyphicon-step-forward"></span>
									</a>
								</div>
							</div>
							
							<div style="display: inline;">
								<div id="clearbuild-btn" class="btn-clear" >清空楼栋</div>
							</div>
							
						</div>
					</td>
				</tr>
			</tfoot>
		</table>
	</div>
</div>
<%
DIRECTIVE SAFE_OUTPUT_CLOSE;
%>
