<tiles:insert template="/WEB-INF/view/common/admin/layout.jsp" flush="true">
	<tiles:put name="title"><bean:message key="labels.file_authentication_configuration" /></tiles:put>
	<tiles:put name="header" value="/WEB-INF/view/common/admin/header.jsp" />
	<tiles:put name="footer" value="/WEB-INF/view/common/admin/footer.jsp" />
	<tiles:put name="menu" value="/WEB-INF/view/common/admin/menu.jsp" />
	<tiles:put name="menuType" value="fileAuthentication" />
	<tiles:put name="headerScript" type="string"></tiles:put>
	<tiles:put name="body" type="string">

<div id="main">

<!-- Message: BEGIN -->
<div><html:messages id="msg" message="true"><bean:write name="msg" ignore="true"/></html:messages><html:errors/></div>
<!-- Message: END -->

<!-- Confirm Form: BEGIN -->
	<s:form>
		<html:hidden property="crudMode"/>
		<div class="form-table">
<c:if test="${crudMode==2 || crudMode==3 || crudMode==4}">
<html:hidden property="id"/>
<html:hidden property="versionNo"/>
</c:if>
<html:hidden property="createdBy"/>
<html:hidden property="createdTime"/>
		<table style="width:500px;">
			<caption><bean:message key="labels.file_authentication_title_confirm"/></caption>
			<tbody>
					                <tr>
                    <th style="width:150px;"><bean:message key="labels.file_authentication_hostname"/></th>
                    <td>${f:h(hostname)}<html:hidden property="hostname"/></td>
                </tr>
					                <tr>
                    <th><bean:message key="labels.file_authentication_port"/></th>
                    <td>${f:h(port)}<html:hidden property="port"/></td>
                </tr>
					                <tr>
                    <th><bean:message key="labels.file_authentication_scheme"/></th>
                    <td>
						<c:forEach var="item" items="${protocolSchemeItems}">
							<c:if test="${protocolScheme==item.value}">${f:h(item.label)}</c:if>
						</c:forEach>
                    <html:hidden property="protocolScheme"/></td>
                </tr>
					                <tr>
                    <th><bean:message key="labels.file_authentication_username"/></th>
                    <td>${f:h(username)}<html:hidden property="username"/></td>
                </tr>
					                <tr>
                    <th><bean:message key="labels.file_authentication_password"/></th>
                    <td>
                    <c:if test="${password!=''}">******</c:if>
					<html:hidden property="password"/></td>
                </tr>
					                <tr>
                    <th><bean:message key="labels.file_authentication_parameters" /></th>
                    <td style="width:345px;word-break:break-all;">${f:br(f:h(parameters))}<html:hidden property="parameters"/></td>
                </tr>
					                <tr>
                    <th><bean:message key="labels.file_authentication_file_crawling_config"/></th>
                    <td>
						<c:forEach var="item" items="${fileCrawlingConfigItems}">
							<c:if test="${fileCrawlingConfigId==item.value}">${f:h(item.label)}</c:if>
						</c:forEach>
                    <html:hidden property="fileCrawlingConfigId"/></td>
                </tr>
			</tbody>
			<tfoot>
				<tr>
					<td colspan="2">
        <c:if test="${crudMode == 1}">
            <input type="submit" name="create" value="<bean:message key="labels.file_authentication_button_create"/>"/>
            <input type="submit" name="editagain" value="<bean:message key="labels.file_authentication_button_back"/>"/>
        </c:if>
        <c:if test="${crudMode == 2}">
            <input type="submit" name="update" value="<bean:message key="labels.file_authentication_button_update"/>"/>
            <input type="submit" name="editagain" value="<bean:message key="labels.file_authentication_button_back"/>"/>
        </c:if>
        <c:if test="${crudMode == 3}">
            <input type="submit" name="delete" value="<bean:message key="labels.file_authentication_button_delete"/>"/>
            <input type="submit" name="back" value="<bean:message key="labels.file_authentication_button_back"/>"/>
        </c:if>
        <c:if test="${crudMode == 4}">
            <input type="submit" name="back" value="<bean:message key="labels.file_authentication_button_back"/>"/>
            <input type="submit" name="editfromconfirm" value="<bean:message key="labels.file_authentication_button_edit"/>"/>
            <input type="submit" name="deletefromconfirm" value="<bean:message key="labels.file_authentication_button_delete"/>"/>
        </c:if>
					</td>
				</tr>
			</tfoot>
		</table>
		</div>
	</s:form>
<!-- Confirm Form: BEGIN -->

</div>

	</tiles:put>
</tiles:insert>
