<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="/WEB-INF/tld/fns.tld" prefix="fns" %>
<form id="checkBatchResellerForm">
<div class="query-result" id="resellerListResultPage">
	<table class="table">
		<thead>
			<tr>
				<th class="choice check-box"><input type="checkbox" value="反选" id="rcball" onclick="choiseAll_x('rcball','roids');$('#checkResNum').text($('input[name=roids]:checked').length);">
					<label for="rcball"></label>
				</th>
				<th>ID</th>
				<th>分销商名称</th>
				<th>开通时间</th>
				<th>状态</th>
				<th>联系方式</th>
			</tr>
		</thead>
		<tbody>
		<c:choose>
			<c:when test="${empty resellerList }">
				<tr><td colspan="8" style="text-align: center;">无查询结果</td></tr>
			</c:when>
			<c:otherwise>
				<c:forEach items="${resellerList }" var="reseller">
					<tr>
						<td class="choice check-box">
							<input type="checkbox" id="checkbox${reseller.oid }" value="${reseller.oid }" name="roids" onclick="choiseOid_x('rcball','roids');$('#checkResNum').text($('input[name=roids]:checked').length);">
							<label for="checkbox${reseller.oid }"></label>
						</td>
						<td>${reseller.oid }</td>
						<td title="${reseller.resellerName }">${reseller.resellerName }</td>
						<td>${reseller.create_time }</td>
						<td>${reseller.resellerStatus eq '1' ? '启用' : '停用'}</td>
						<td>${reseller.contactsWay }</td>
					</tr>
				</c:forEach>
			</c:otherwise>
		</c:choose>
		</tbody>
	</table>
</div>
<div class="btn-bottom pull-left">
	<p>已选择 <span id="checkResNum">0</span> 名分销商</p>
</div>
<div class="btn-bottom pull-right">
	<p><a href="javascript:void(0);" onclick="batchProductInitModel();" class="clearing pull-left">下一步</a></p>
</div>
</form>