<%@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>
		<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
		<link rel="stylesheet" type="text/css" href="css/bootstrap.css">
		<link rel="stylesheet" type="text/css" href="css/index.css">
		<title><%=LanguageHelper.getGUIString("title", request) %></title>
	</head>
	
	<body>
	<div id="header_area">
		<div id ="left_area">
			<h2><%=LanguageHelper.getGUIString("header.title", request) %></h2>

		</div>
		
	</div>
				
		<div id="information_area">
		

		
			<s:if test="hasActionMessages()">
   			<div id="message_area">
   				<label><%=LanguageHelper.getGUIString("message.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="information_area">
			<h4><%=LanguageHelper.getGUIString("webpages.index.desciption.head", request) %></h4>
			<div class="oa_config_block">
				
					<s:form id="passwordlogin" namespace="/" method="POST" enctype="multipart/form-data">
				
							<s:textfield name="username" 
								value="%{username}" 
								labelposition="left"
								key="webpages.edituser.username"
								cssClass="textfield_mail"
								maxlength="16">
							</s:textfield>
								
							<s:password name="password"  
								labelposition="left"
								key="webpages.edituser.password"
								cssClass="textfield_mail"
								maxlength="16">
							</s:password>
							
							
							<s:submit class="button_fit" key="webpages.index.login" action="authenticate"/>		
							
					</s:form>
					<br/>
					<s:if test="isPvp2LoginActiv()">	
						<div id="bkulogin">
							<a href="servlet/pvp2login">
								<button class="button_fit"><%=LanguageHelper.getGUIString("webpages.index.login.pvp2", request) %></button>
							</a>
						</div>
					</s:if>	
			</div>
			<div>
				<a href="index.action?request_locale=de" /><img style="width:25px" alt="Deutsch" src="./images/de.png"></a>
				<a href="index.action?request_locale=en" /><img style="width:25px" alt="English" src="./images/en.png"></a>
			</div>		
		</div>
		
	</body>
</html>