<%@ 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"%>
<link type="text/css" rel="stylesheet" href="<c:url value='/resources/versions-2.0/dist/css/bootstrap.min.css'/>"/> 
<link type="text/css" rel="stylesheet" href="<c:url value='/resources/versions-2.0/dist/css/public.css'/>"/>
<link type="text/css" rel="stylesheet" href="<c:url value='/resources/versions-2.0/dist/css/account/my-account.css'/>" />
<link type="text/css" rel="stylesheet" href="<c:url value='/resources/versions-2.0/dist/css/insure/write-application.css'/>" />
<table class="table ">
	<tbody>
		<tr>
			<td class="col-sm-1 col-xs-1">选择</td>
			<td class="col-sm-2 col-xs-2">买家代码</td>
			<td class="col-sm-3 col-xs-3">买方公司名称</td>
			<td class="col-sm-2 col-xs-2">国家</td>
			<td class="col-sm-2 col-xs-2">城市</td>
			<td class="col-sm-2 col-xs-2">可用额度</td>
		</tr>

		<c:choose>
			<c:when test="${empty buyersVoList}">
				<tr>
					<td colspan="6" style="text-align: center;">暂无相关数据</td>
				</tr>
			</c:when>
			<c:otherwise>
				<c:forEach items="${buyersVoList}" var="vo2" varStatus="status">
					<tr>
						<td class="col-sm-1 col-xs-1">
							<p class="col-sm-2 col-xs-2 rad-io">
								<span><input type="radio" name="ins_top_buyers_id" value="${vo2.ins_top_buyers_id}" <c:if test="${status.index eq 0}"> checked="checked"</c:if>  id="radio_${vo2.ins_top_buyers_id}">
								<label for="radio_${vo2.ins_top_buyers_id}" class="pull-left m-0-13"></label></span>
							</p>
						</td>
						<input type="hidden" id="code_${vo2.ins_top_buyers_id}" name="code_${vo2.ins_top_buyers_id}" value="${vo2.code}"/>
						<td class="col-sm-2 col-xs-2">${vo2.code}</td>
						<td class="col-sm-3 col-xs-3">${vo2.customer_name}</td>
						<td class="col-sm-2 col-xs-2">${vo2.country}</td>
						<td class="col-sm-2 col-xs-2">${vo2.city}</td>
						<td class="col-sm-2 col-xs-2">${vo2.unused_amount}</td>
					</tr>
				</c:forEach>
			</c:otherwise>
		</c:choose>
	</tbody>
</table>