<%@ page contentType="text/html; charset=UTF-8"%>
<%@ include file="/WEB-INF/jspf/include/taglibs.jsp"%>

<form method='get' action=''>
<input type="hidden" name="action" value="DistributeBalance"/>
<input type="hidden" name="module" value="contract"/>
<input type="hidden" name="mid" value="0"/>
<input type="hidden" name="commit" value="1"/>

<%@include file="../include/error.jsp" %>

<table border='0' cellspacing="0" class="filter">
	<tr>
		<td>Свободные средства:</td>
		<td>${dataMap['freeAmoun'] }</td>
	</tr>
</table>
	
<div class="report">
	<table cellspacing="1">
		<thead>
			<tr>
				<td>Договор</td>
				<td>Примечание</td>
				<td>Баланс\сальдо</td>
				<td>Сумма</td>
			</tr>
		</thead>
		<tbody>
			<c:forEach var="item" items="${dataMap['subs']}">
				<tr>
					<td>${item[1]}</td>
					<td>${item[2]}</td>
					<td>${item[3]}</td>
					<td><input type="text" name="${item[0]}"/> 
					</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
</div>
<br/>
<input type="submit" value="Распределить"/>
</form>
