<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="spring" uri="/spring" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div class="pop3settings">
    <fieldset class="pop3settings">
        <legend><spring:message code="pop3.settings"/></legend>
        <form action="setpop3.htm" method="post">
        <table class="pop3settings" border="0" cellpadding="5" cellspacing="5" align="center">
            <tr>
                <td><spring:message code="pop3.host"/></td>
                <spring:bind path="pop3settings.pop3Host">
                    <td>
                        <input type="text" name="<c:out value="${status.expression}"/>" value="<c:out value="${status.value}"/>"/>
                    </td>
                    <td><span class="error"><c:out value="${status.errorMessage}"/></span></td>
                </spring:bind>
            </tr>
            <tr>
                <td><spring:message code="pop3.port"/></td>
                <spring:bind path="pop3settings.port">
                    <td>
                        <input type="text" name="<c:out value="${status.expression}"/>" value="<c:out value="${status.value}"/>"/>
                    </td>
                    <td><span class="error"><c:out value="${status.errorMessage}"/></span></td>
                </spring:bind>
            </tr>
            <tr>
                <td><spring:message code="pop3.ssl"/></td>
                <td>
                <input type="checkbox" name="ssl" <c:if test="${pop3settings.ssl}">checked="checked"</c:if>/>
                </td>
            </tr>
            <tr>
                <td><spring:message code="pop3.username"/></td>
                <spring:bind path="pop3settings.pop3UserName">
                    <td>
                        <input type="text" name="<c:out value="${status.expression}"/>" value="<c:out value="${status.value}"/>"/>
                    </td>
                    <td><span class="error"><c:out value="${status.errorMessage}"/></span></td>
                </spring:bind>
            </tr>
            <tr>
                <td><spring:message code="pop3.password"/></td>
                <spring:bind path="pop3settings.pop3Password">
                    <td>
                        <input type="text" name="<c:out value="${status.expression}"/>" value="<c:out value="${status.value}"/>"/>
                    </td>
                    <td><span class="error"><c:out value="${status.errorMessage}"/></span></td>
                </spring:bind>
            </tr>
            <tr>
                <td></td>
                <td><input type="submit" value="<spring:message code="pop3.save"/>"/></td>
            </tr>
        </table>
        </form>
    </fieldset>
</div>
