| 1 |
<%@ page contentType="text/xml;charset=UTF-8" buffer="none" language="java" %> |
|---|
| 2 |
<%@ taglib uri='struts-bean' prefix='bean' %> |
|---|
| 3 |
<%@ taglib uri='struts-logic' prefix='logic' %> |
|---|
| 4 |
<%@ taglib uri='struts-html' prefix='html' %> |
|---|
| 5 |
<%@ taglib uri='struts-genurl' prefix='genurl' %> |
|---|
| 6 |
<html:xhtml/> |
|---|
| 7 |
|
|---|
| 8 |
<%-- Load the header common to all pages --%> |
|---|
| 9 |
<%@ include file="/docs/header.jsp" %> |
|---|
| 10 |
|
|---|
| 11 |
<%-- the <page> element allows us to branch in our XSLT based on what page |
|---|
| 12 |
(what "state") we are in. The value is hard coded into the top-level |
|---|
| 13 |
JSP pages for the calendar. It has four possible values: |
|---|
| 14 |
|
|---|
| 15 |
1. eventscalendar - the event calendar tree from which we build our |
|---|
| 16 |
day, week, month, and year views (main.jsp) |
|---|
| 17 |
2. event - a single event (see eventMore.jsp) |
|---|
| 18 |
3. calendars - the listing of calendars (see calendars.jsp) |
|---|
| 19 |
4. other - an arbitrary page (see showPage.jsp) |
|---|
| 20 |
--%> |
|---|
| 21 |
<page>eventscalendar</page> |
|---|
| 22 |
<bean:define id="dayViewName" name="calForm" property="viewTypeName[1]"/> |
|---|
| 23 |
|
|---|
| 24 |
<%-- The events listing in a calendar tree --%> |
|---|
| 25 |
<eventscalendar> |
|---|
| 26 |
<%-- |
|---|
| 27 |
<bean:define id="timeInfo" name="calForm" |
|---|
| 28 |
property="curTimeView.timePeriodInfo"/> |
|---|
| 29 |
--%> |
|---|
| 30 |
<bean:define id="curTimeView" name="calForm" property="curTimeViewRefreshed"/> |
|---|
| 31 |
<bean:define id="timeInfo" name="curTimeView" property="timePeriodInfo"/> |
|---|
| 32 |
<logic:iterate id="yearInfo" name="timeInfo" > |
|---|
| 33 |
<year> |
|---|
| 34 |
<value><bean:write name="yearInfo" property="year"/></value> |
|---|
| 35 |
<logic:iterate id="monthInfo" name="yearInfo" property="entries" > |
|---|
| 36 |
<month> |
|---|
| 37 |
<value><bean:write name="monthInfo" property="month"/></value> |
|---|
| 38 |
<longname><bean:write name="monthInfo" property="monthName"/></longname> |
|---|
| 39 |
<shortname><bean:write name="monthInfo" property="monthName"/></shortname> |
|---|
| 40 |
<logic:iterate id="weekInfo" name="monthInfo" property="entries" > |
|---|
| 41 |
<week> |
|---|
| 42 |
<value><bean:write name="weekInfo" property="weekOfYear"/></value> |
|---|
| 43 |
<logic:iterate id="dayInfo" name="weekInfo" property="entries" > |
|---|
| 44 |
<day> |
|---|
| 45 |
<filler><bean:write name="dayInfo" property="filler"/></filler> |
|---|
| 46 |
<%/* Fillers currently have no information */%> |
|---|
| 47 |
<logic:equal name="dayInfo" property="filler" value="false"> |
|---|
| 48 |
<value><bean:write name="dayInfo" property="dayOfMonth"/></value> |
|---|
| 49 |
<name><bean:write name="dayInfo" property="dayName"/></name> |
|---|
| 50 |
<date><bean:write name="dayInfo" property="date"/></date> |
|---|
| 51 |
<longdate><bean:write name="dayInfo" property="dateLong"/></longdate> |
|---|
| 52 |
<shortdate><bean:write name="dayInfo" property="dateShort"/></shortdate> |
|---|
| 53 |
<%-- Do not produce events if we are in the year view |
|---|
| 54 |
<logic:equal name="calForm" |
|---|
| 55 |
property="curTimeView.showData" value="true"> |
|---|
| 56 |
--%> |
|---|
| 57 |
<logic:equal name="curTimeView" property="showData" value="true"> |
|---|
| 58 |
<logic:iterate id="eventFmt" name="dayInfo" |
|---|
| 59 |
property="eventFormatters" > |
|---|
| 60 |
<bean:define id="eventFormatter" name="eventFmt" |
|---|
| 61 |
toScope="request" /> |
|---|
| 62 |
<jsp:include page="/docs/event/emitEvent.jsp" /> |
|---|
| 63 |
</logic:iterate> |
|---|
| 64 |
</logic:equal> |
|---|
| 65 |
</logic:equal> |
|---|
| 66 |
</day> |
|---|
| 67 |
</logic:iterate> |
|---|
| 68 |
</week> |
|---|
| 69 |
</logic:iterate> |
|---|
| 70 |
</month> |
|---|
| 71 |
</logic:iterate> |
|---|
| 72 |
</year> |
|---|
| 73 |
</logic:iterate> |
|---|
| 74 |
</eventscalendar> |
|---|
| 75 |
|
|---|
| 76 |
<%-- Produce date and time form elements for personal calendar to be used |
|---|
| 77 |
for creating the personal event entry form. Uncomment this code to |
|---|
| 78 |
use an entry form on a page other than the formal "add event" page. --%> |
|---|
| 79 |
|
|---|
| 80 |
<%-- |
|---|
| 81 |
<logic:equal name="calForm" property="guest" value="false"> |
|---|
| 82 |
<eventform> |
|---|
| 83 |
<genurl:form action="event/addEvent"> |
|---|
| 84 |
<title> |
|---|
| 85 |
<html:text property="newEvent.summary"/> |
|---|
| 86 |
</title> |
|---|
| 87 |
<description> |
|---|
| 88 |
<html:textarea property="description"/> |
|---|
| 89 |
</description> |
|---|
| 90 |
<link> |
|---|
| 91 |
<html:text property="newEvent.link"/> |
|---|
| 92 |
</link> |
|---|
| 93 |
<location> |
|---|
| 94 |
<locationmenu> |
|---|
| 95 |
<html:select property="locationId"> |
|---|
| 96 |
<html:optionsCollection property="locations" |
|---|
| 97 |
label="address" |
|---|
| 98 |
value="id"/> |
|---|
| 99 |
</html:select> |
|---|
| 100 |
</locationmenu> |
|---|
| 101 |
<locationtext> |
|---|
| 102 |
<html:text property="locationAddress.vaalue" /> |
|---|
| 103 |
</locationtext> |
|---|
| 104 |
</location> |
|---|
| 105 |
<startdate> |
|---|
| 106 |
<html:select property="eventStartDate.month"> |
|---|
| 107 |
<html:options labelProperty="eventStartDate.monthLabels" |
|---|
| 108 |
property="eventStartDate.monthVals"/> |
|---|
| 109 |
</html:select> |
|---|
| 110 |
<html:select property="eventStartDate.day"> |
|---|
| 111 |
<html:options labelProperty="eventStartDate.dayLabels" |
|---|
| 112 |
property="eventStartDate.dayVals"/> |
|---|
| 113 |
</html:select> |
|---|
| 114 |
<html:select property="eventStartDate.year"> |
|---|
| 115 |
<html:options property="yearVals"/> |
|---|
| 116 |
</html:select> |
|---|
| 117 |
</startdate> |
|---|
| 118 |
<starttime> |
|---|
| 119 |
<html:select property="eventStartDate.hour"> |
|---|
| 120 |
<html:options labelProperty="eventStartDate.hourLabels" |
|---|
| 121 |
property="eventStartDate.hourVals"/> |
|---|
| 122 |
</html:select> |
|---|
| 123 |
<html:select property="eventStartDate.minute"> |
|---|
| 124 |
<html:options labelProperty="eventStartDate.minuteLabels" |
|---|
| 125 |
property="eventStartDate.minuteVals"/> |
|---|
| 126 |
</html:select> |
|---|
| 127 |
<logic:notEqual name="calForm" property="hour24" value="true" > |
|---|
| 128 |
<html:select property="eventStartDate.ampm"> |
|---|
| 129 |
<html:options property="eventStartDate.ampmLabels"/> |
|---|
| 130 |
</html:select> |
|---|
| 131 |
</logic:notEqual> |
|---|
| 132 |
</starttime> |
|---|
| 133 |
<enddate> |
|---|
| 134 |
<html:select property="eventEndDate.month"> |
|---|
| 135 |
<html:options labelProperty="eventEndDate.monthLabels" |
|---|
| 136 |
property="eventEndDate.monthVals"/> |
|---|
| 137 |
</html:select> |
|---|
| 138 |
<html:select property="eventEndDate.day"> |
|---|
| 139 |
<html:options labelProperty="eventEndDate.dayLabels" |
|---|
| 140 |
property="eventEndDate.dayVals"/> |
|---|
| 141 |
</html:select> |
|---|
| 142 |
<html:select property="eventEndDate.year"> |
|---|
| 143 |
<html:options property="yearVals"/> |
|---|
| 144 |
</html:select> |
|---|
| 145 |
</enddate> |
|---|
| 146 |
<endtime> |
|---|
| 147 |
<html:select property="eventEndDate.hour"> |
|---|
| 148 |
<html:options labelProperty="eventEndDate.hourLabels" |
|---|
| 149 |
property="eventEndDate.hourVals"/> |
|---|
| 150 |
</html:select> |
|---|
| 151 |
<html:select property="eventEndDate.minute"> |
|---|
| 152 |
<html:options labelProperty="eventEndDate.minuteLabels" |
|---|
| 153 |
property="eventEndDate.minuteVals"/> |
|---|
| 154 |
</html:select> |
|---|
| 155 |
<logic:notEqual name="calForm" property="hour24" value="true" > |
|---|
| 156 |
<html:select property="eventEndDate.ampm"> |
|---|
| 157 |
<html:options property="eventEndDate.ampmLabels"/> |
|---|
| 158 |
</html:select> |
|---|
| 159 |
</logic:notEqual> |
|---|
| 160 |
</endtime> |
|---|
| 161 |
</genurl:form> |
|---|
| 162 |
</eventform> |
|---|
| 163 |
</logic:equal> |
|---|
| 164 |
--%> |
|---|
| 165 |
|
|---|
| 166 |
<%@ include file="/docs/footer.jsp" %> |
|---|
| 167 |
|
|---|