index.xhtml 2.27 KB
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
	xmlns:tools="http://java.sun.com/jsf/composite/tools"
>
<h:head>
	<title></title>

</h:head>
<h:body>
	<ui:composition template="/layout/template.xhtml">
		<f:metadata>
			<f:event type="preRenderView" listener="#{requestCalendarView.initCalendars()}" />
		</f:metadata>
		<ui:define name="content">
	

			<h:outputText value="#{sessionHandler.getDynatext('calendar-top')}" escape="false" />
			<table border="0" class="dateformtable">
				<tr>
					<td id="datepickedcell">
					<h:outputScript target="head" library="script" name="jquery.min.js" /> 
					<h:outputScript target="head" library="script" name="clockscript.js" />
					<div class="clock bigclock">&nbsp;</div>

					<tools:dateselect id="dselect" submitaction="#{calendarView.sendDate()}" datefield="#{calendarView.currentDate}" /></td>
					<td>
					<h2><h:outputText value="#{requestCalendarView.date.time}">
						<f:convertDateTime timeZone="#{userprefs.timezone}" pattern="#{sessionHandler.datePattern}" />
					</h:outputText></h2>

					<h1>Alakerta</h1>
					<tools:locationDaytableSimple id="alalyonti" actionview="#{calendarView}"
						calendar="#{requestCalendarView.getCalendar('alakerta')}"
					/></td>
				</tr>
				<tr>
					<td>
					<h2><h:outputText value="#{calendarView.currentDate.time}">
						<f:convertDateTime timeZone="#{userprefs.timezone}" pattern="#{sessionHandler.datePattern}" />
					</h:outputText></h2>
					<h1>Simulaattori</h1>
					<tools:locationDaytableSimple id="simut" actionview="#{calendarView}"
						calendar="#{requestCalendarView.getCalendar('simut')}"
					/></td>
					<td>
					<h2><h:outputText value="#{calendarView.currentDate.time}">
						<f:convertDateTime timeZone="#{userprefs.timezone}" pattern="#{sessionHandler.datePattern}" />
					</h:outputText></h2>
					<h1>Yläkerta</h1>
					<tools:locationDaytableSimple id="ylalyonti" actionview="#{calendarView}"
						calendar="#{requestCalendarView.getCalendar('ylakerta')}"
					/></td>

				</tr>
			</table>
		</ui:define>
	</ui:composition>
</h:body>
</html>