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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=cp1250">
<title>Time Expression - Logowanie</title>
<link href="includes/timex.css" rel="stylesheet" type="text/css">
</head>

<form method="post">
<table width="85%" border="1" align="center" cellpadding="0"
  cellspacing="0">
  <tr>
    <td>
    <table width="100%" border="0" align="center" cellpadding="4"
      cellspacing="0" bordercolor="#CCCCCC">
      <tr bgcolor="#C2DCEB" valign="middle">
        <td width="90%" valign="middle">
        <h1>Logowanie</h1>
        </td>
      </tr>
      <tr>
        <td colspan="2">
        <center><spring:bind path="command.*">
          <c:if test="${not empty status.errorMessages}">
            <c:forEach var="error" items="${status.errorMessages}">
              <font color="red"><c:out value="${error}" escapeXml="false" />
              </font>
              <br />
            </c:forEach>
          </c:if>
        </spring:bind> <!-- status messages --> <c:if
          test="${not empty message}">
          <font color="green"><c:out value="${message}" /></font>
          <c:set var="message" value="" scope="session" />
        </c:if></center>

        <div align="center">
        <p>Proszę poniżej wprowadzić swoje dane uwierzytelniające.</p>
        <p>Id Pracownika: <spring:bind path="command.employeeId">
          <input name='<c:out value="${status.expression}"/>'
            value='<c:out value="${status.value}"/>' type="text" size="6"
            maxlength="6">
        </spring:bind> &nbsp;Hasło: <spring:bind path="command.password">
          <input name='<c:out value="${status.expression}"/>'
            value='<c:out value="${status.value}"/>' type="password" size="8"
            maxlength="10">
        </spring:bind> &nbsp;<input type="submit" name="Submit"
          value="Zaloguj się"></p>
        </div>
        </form>
        </td>
      </tr>
      <tr>
        <td colspan="2" bgcolor="#C2DCEB">&nbsp;</td>
      </tr>
    </table>
    </td>
  </tr>
</table>
</body>
</html>
