<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<html>
<head>
<meta content="yes" name="apple-mobile-web-app-capable" />
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<meta
	content="minimum-scale=1.0, width=device-width, maximum-scale=0.6667, user-scalable=no"
	name="viewport" />
<link href="../frameworks/iWebKitFramework/css/style.css"
	rel="stylesheet" media="screen" type="text/css" />
<link href="../frameworks/iWebKitFrameworkExtensions/css/proveo.css"
	rel="stylesheet" media="screen" type="text/css" />
<script src="../frameworks/iWebKitFramework/javascript/functions.js"
	type="text/javascript"></script>

</head>
	<style type="text/css">
		.proveo_portlet-msg-error{
			color:red;
			font-size: 15px;
			font-weight: bold;
			left: 9px;
			position: relative;
		}
	</style>

<body style="background:white;">
	
	<%@ page import="com.liferay.portal.language.LanguageUtil"%>
	<%@ page import="com.liferay.portal.kernel.util.StringPool"%>
	<%@ page import="com.liferay.util.ParamUtil"%>
	<%@ page import="com.liferay.portal.model.Company"%>
	<%@ page import="com.liferay.portal.theme.ThemeDisplay"%>
	<%@ page import="com.liferay.portal.util.WebKeys"%>
	<%@ page import="com.liferay.portal.util.Constants"%>
	<%@ page import="de.proveo.rts.web.util.RtsUtil"%>
	<%@ page import="com.liferay.util.servlet.SessionErrors"%>
	<%@ page import="com.liferay.portal.security.auth.PrincipalException"%>
	<%@ page import="com.liferay.portal.NoSuchUserException"%>
	<%@ page
		import="de.proveo.rts.web.portal.login.exception.MaxFailedLoginsException"%>
	<%@ page
		import="de.proveo.rts.web.portal.login.exception.MaxSimultanousSessionException"%>
	<%@ page
		import="de.proveo.rts.web.portal.login.exception.UserDisabledException"%>

	<%@page
		import="de.proveo.rts.web.portal.login.exception.WebAppDisabledException"%>
	<%@page import="com.liferay.portal.security.auth.AuthException"%>
	<%@page import="com.liferay.portal.CookieNotSupportedException"%>
	<%@page import="com.liferay.portal.UserEmailAddressException"%>
	<%@page import="com.liferay.portal.UserPasswordException"%>
	<%@page import="com.liferay.portal.language.LanguageUtil"%>
	

	<form id="loginform" action="/c/portal/login" autocomplete="off" method="post" name="fm1">

		<input name="<%=Constants.CMD%>" type="hidden"
			value="already-registered">
		<%
			// 	ThemeDisplay themeDisplay = (ThemeDisplay)request.getAttribute(WebKeys.THEME_DISPLAY);

			//   	Company company = themeDisplay.getCompany();

			//  	String login = de.proveo.rts.web.portal.login.LoginAction.getLogin(
			//  			request, "login", company);

			session.setAttribute("mobile", true);

			String password = StringPool.BLANK;
			boolean rememberMe = ParamUtil.getBoolean(request, "rememberMe");
		%>
		<input name="rememberMe" type="hidden" value="<%=rememberMe%>">
		<input name="mobile" type="hidden" value="true">



		<div id="topbar">
			<div id="title">EFM Mobile Login</div>
		</div>

		<div id="content">
			<img src="../images/icons/mobile/Logo_proveo_final_small.png"
				alt="proveo" style="margin-left: 10px;" />
			<p/>
			<fieldset>
				<label class="graytitle" for="name"><%=LanguageUtil.get(pageContext, "login")%>:</label>
				<ul class="pageitem">
					<li class="bigfield"><input name="login" style="width: 150px;"
						type="text" value="" id="loginInput">
					</p></li>
				</ul>
				<label class="graytitle" for="password"><%=LanguageUtil.get(pageContext, "password")%>:</label>
				<ul class="pageitem">
					<li class="bigfield"><input name="password"
						style="width: 150px" type="password" value="" id="passwordInput">
					</li>
				</ul>
				
				<table>
			<tr>
				<td><c:if
						test="<%=SessionErrors.contains(request,
						AuthException.class.getName())%>">

						<span class="proveo_portlet-msg-error" > <%=LanguageUtil
						.get(pageContext, "authentication-failed")%></span>

						
					</c:if> <c:if
						test="<%=SessionErrors.contains(request,
						CookieNotSupportedException.class.getName())%>">
						<span class="proveo_portlet-msg-error"
							> <%=LanguageUtil.get(pageContext,
						"authentication-failed-please-enable-browser-cookies")%>
						</span>

						<br>
					</c:if> <c:if
						test="<%=SessionErrors.contains(request,
						NoSuchUserException.class.getName())%>">
						<span class="proveo_portlet-msg-error"
							> <%=LanguageUtil.get(pageContext,
						"please-enter-a-valid-login")%>
						</span>

						<br>
					</c:if> <c:if
						test="<%=SessionErrors.contains(request,
						PrincipalException.class.getName())%>">
						<span class="proveo_portlet-msg-error"
							> <%=LanguageUtil
						.get(pageContext,
								"you-have-attempted-to-access-a-section-of-the-site-that-requires-authentication")%>
							<%=LanguageUtil.get(pageContext,
						"please-sign-in-to-continue")%>
						</span>

						<br>
					</c:if> <c:if
						test='<%=SessionErrors.contains(request,
						UserEmailAddressException.class.getName())%>'>
						<span class="proveo_portlet-msg-error"
							> <%=LanguageUtil.get(pageContext,
						"please-enter-a-valid-login")%>
						</span>

						<br>
					</c:if> <c:if
						test="<%=SessionErrors.contains(request,
						UserPasswordException.class.getName())%>">
						<span class="proveo_portlet-msg-error"
							> <%=LanguageUtil.get(pageContext,
						"please-enter-a-valid-password")%>
						</span>

						<br>
					</c:if> <c:if
						test="<%=SessionErrors.contains(request,
						MaxFailedLoginsException.class.getName())%>">
						<span class="proveo_portlet-msg-error"
							> <%=LanguageUtil.get(pageContext,
						"maximum-failed-login-limit-reached")%>
						</span>

						<br>
					</c:if> <c:if
						test="<%=SessionErrors.contains(request,
						MaxSimultanousSessionException.class.getName())%>">
						<span class="proveo_portlet-msg-error"
							> <%=LanguageUtil.get(pageContext,
						"maximum-simultanous-sessions-limit-exceeded")%>
						</span>

						
						<br>
					</c:if> <c:if
						test="<%=SessionErrors.contains(request,
						UserDisabledException.class.getName())%>">
						<span class="proveo_portlet-msg-error"
							> <%=LanguageUtil.get(pageContext, "user-is-disabled")%>
						</span>

						<br>
					</c:if> <c:if
						test="<%=SessionErrors.contains(request,
						WebAppDisabledException.class.getName())%>">
						<span class="proveo_portlet-msg-error"
							> <%=LanguageUtil.get(pageContext, "webapp-is-disabled")%>
						</span>

						<br>
					</c:if></td>
				<td></td>
			</tr>
		</table>
				
				
		</fieldset>
		</div>

		<div id="footer">
			<input type="submit"
					value="<%=LanguageUtil.get(pageContext, "sign-in")%>"
					id="loginButton" style="width: 100%" class="grayButton"/>
			
		
			<p align="left">
				<b>Version </b> <span> <%=RtsUtil.getShortVersionString()%></span>
			</p>
		</div>
		

	</form>
</body>
</html>



<script type="text/javascript">
	
</script>