<%@page import="at.gv.egovernment.moa.id.configuration.helper.LanguageHelper"%>

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<title><%=LanguageHelper.getGUIString("title", request) %></title>
		<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
		
		<link rel="stylesheet" type="text/css" href="../css/index.css">
		<script type="text/javascript" src="../js/common.js"></script>
		<script src="../js/jquery.js"></script>
	</head>
	
	<body onload="userOnLoad();">
		
 		<jsp:include page="snippets/header_userinfos.jsp"></jsp:include>
 		
		<jsp:include page="snippets/main_menu.jsp"></jsp:include>
		
		<div id="information_area">
			
			<s:if test="hasActionMessages()">
   			<div id="error_area">
   				<label><%=LanguageHelper.getGUIString("error.title", request) %></label>
      			<s:actionmessage/>
   			</div>
			</s:if>	
				
			<s:if test="hasActionErrors()">
   			<div id="error_area">
   				<label><%=LanguageHelper.getGUIString("error.title", request) %></label>
      			<s:actionerror/>
   			</div>
			</s:if>	
						
			<div id="list_area">
	
					<s:form namespace="/secure" method="POST" enctype="multipart/form-data">
						<jsp:include page="snippets/userfields.jsp"></jsp:include>
						
						<s:hidden name="formID"	value="%{formID}"></s:hidden>
						
						<div id="button_area">
							
							<s:if test="authUser.isAdmin()">
								<s:submit key="webpages.edit.back" action="%{nextPage}"/>
							</s:if>
									
							<s:submit key="webpages.edit.save" action="saveUser"/>
								<s:if test="!isNewUser()">
									<s:submit key="webpages.edit.delete.user" action="deleteUser"/>
							</s:if>								
					</div>  
																						
					</s:form>
		
				</div>
		</div>
		
		<jsp:include page="snippets/footer.jsp"></jsp:include>
		
	</body>
</html>