<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<html>

<head>
	<title>BGBilling</title>
	<META http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	
	<c:url var="url" value="/style.css"/>
	<link rel="stylesheet" type="text/css" href="${url}"/>
	<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
</head>

<body>
	<br/>
	<strong id="idTdContent">
		<c:choose>
			<c:when test="${showContract}">
				Введите номер договора(или логин) и e-mail :
			</c:when>
			<c:otherwise>
					Введите  логин и e-mail :
			</c:otherwise>
		</c:choose>
		</strong><BR>

	<c:url var="url" value="/jspexecuter"/>
	<form method="post" action="${url}">

	<input type="hidden" name="module" value="dialup"/>	
	<input type="hidden" name="action" value="GetPassword"/>	
	<input type="hidden" name="state" value="submitted"/>	

	
	<c:if test="${not empty error}">
		<div class="errorMessage">${error} </div> 
	</c:if>
	<table border="0">
		
		<c:if test="${showContract}">
			<tr>
				<td id="idTdContent">Договор:</td> 
				<td><input type="text" name="contract" size="20"/></td>
			</tr>
		</c:if>
		
		<tr>
			<td id="idTdContent">Логин:</td>
			<td><input type="text" name="login" size="20"/></td>
		</tr>
		<tr>
			<td id="idTdContent">e-mail:</td>
			<td><input type="text" name="email" size="20"/></td> 
		</tr>

		<c:if test="${empty moduleId}">
			<tr>
				<td id="idTdContent">модуль:</td>
				<td>	
					<select name="moduleId">
						<c:forEach items="${passwordModules}" var="module">
							<option value="${module.key}">${module.value}</option>
						</c:forEach>
					</select>
				</td>
			</tr>
		</c:if>

		<tr>
			<td colspan="2" align="right" width="100%" style="padding-right: 20;"><input type="submit" value="Получить"/></td>
		</tr>	

		<c:if test="${not empty backUrl}">
			<c:url value="${backUrl}" var="url"/>
				<tr>
					<td align="right" colspan="2">		
						<a href="${url}"> Назад </a>
					</td>
				</tr>						
		</c:if>

	</table>	
	</form>

</body>

</html>
