<%@ include file="/includes.jsp" %>
<tiles:importAttribute />
	<div class="rowSmall">&nbsp;</div>
	<div class="fieldSetBox1">
		<div class="legendBox1">About eMDT</div>
		<div class="legendBoxWrapper">
			
				<div class="fieldSetLeftColumn1"><b>Ardeo eMDT software version  <c:out value="${webapp.version}"/> </b><br/></div>
				
				<div class="fieldSetLeftColumn2"><img src="../images/ardeo-emdt-logo2.jpg" alt="Ardeo eMDT logo" border="0"/></div>
				<% java.text.SimpleDateFormat crsdf = new java.text.SimpleDateFormat ("yyyy"); %>
				Copyright &#169; Ardeo Ltd. 2000-<%=crsdf.format(new java.util.Date()) %><br/>
		</div>
		<br/>
		<a href="http://www.ardeo.com/" target="_blank">www.ardeo.com</a> | <a href="callto:+442081234550" target="_blank">020 8123 4550</a> | <a href="mailto:emdt@ardeo.com">emdt@ardeo.com</a> <br/>
	</div>
	<div class="rowSmall">&nbsp;</div>
	<div class="fieldSetBox2">
		<div class="legendBox1">Registration</div>
		<div class="legendBoxWrapper">
			<c:if test="${webapp.accessProperties['registered_name'] ne null}">
				Registered User: <b><c:out value="${webapp.accessProperties['registered_name']}"/></b>.
				<br/>
				<br/>
			</c:if>
			<c:if test="${webapp.accessProperties['valid_until'] ne null}">
				This software is licensed until <b><c:out value="${webapp.accessProperties['valid_until']}"/></b><br/>
			<br/>
			</c:if>
			<c:if test="${emdt.licenseExpired == true}">
				<span class="error">The license for this software has expired.</span>
			</c:if>
			<c:if test="${emdt.licenseValid == false}">
				<span class="error">This copy of eMDT does not have valid registration details.</span>
				<br/>
			</c:if>
			<br/>
			<!-- 
			To activate this software, enter your registration key and click Activate:<br/>
			<form action="register.form" method="post">
				Registration Key: <input name="regCode" size="30" maxlength="29"/>&nbsp;<input type="submit" value="Activate"/>
			<br/>
			<c:if test="${msg != null }">
				<span class="error"><c:out value="${msg}"/></span>
			</c:if>
			</form>
			 -->
			<c:if test="${webapp.properties['registration_form_url'] ne null }">
				If you do not have a registration key, please contact <a href="mailto:emdt@ardeo.com?subject=eMDT Registration">emdt@ardeo.com</a>
				<%--
				old registration code not currently implemented on server
				<input type="submit" value="Register" onclick='window.open("<c:out value="${webapp.properties['registration_form_url']}", "registration", "width=600,height=400");'/><br/>
				 --%>
				
			</c:if>
		</div>
	</div>