root/trunk/calendar3/webclient/war/docs/footer.jsp

Revision 292 (checked in by johnsa, 7 years ago)

Updates to personal client jsp to bring the event xml much more in line with the admin client (particularly in the data and time components). This could be taken further.

Mass cleanup of jsp code, including addition of xhtml output tag to produce better form elements.

Moved "add event" page in public client to be up-to-date with current date and time components; still need to fix up widgets.

Line 
1 <%@ taglib uri='struts-bean' prefix='bean' %>
2 <%@ taglib uri='struts-logic' prefix='logic' %>
3
4 <%
5 try {
6 %>
7   <%-- Generates standard calendar values for use in the client for forms, etc --%>
8
9   <bean:define id="forLabels" name="calForm" property="forLabels" />
10   <bean:define id="calInfo" name="calForm" property="today.calInfo" />
11
12   <daylabels>
13     <logic:iterate id="dayLabel" name="calInfo" property="dayLabels">
14       <val><bean:write name="dayLabel"/></val>
15     </logic:iterate>
16   </daylabels>
17   <dayvalues>
18     <logic:iterate id="dayVal" name="calInfo" property="dayVals">
19       <val><bean:write name="dayVal"/></val>
20     </logic:iterate>
21     <start><bean:write name="calForm" property="viewStartDate.day"/></start>
22   </dayvalues>
23   <daynames>
24     <logic:iterate id="dayName" name="calInfo" property="dayNamesAdjusted">
25       <val><bean:write name="dayName"/></val>
26     </logic:iterate>
27   </daynames>
28   <shortdaynames>
29     <logic:iterate id="shortDayName" name="calInfo" property="shortDayNamesAdjusted">
30       <val><bean:write name="shortDayName"/></val>
31     </logic:iterate>
32   </shortdaynames>
33   <monthlabels>
34     <logic:iterate id="monthLabel" name="calInfo" property="monthLabels">
35       <val><bean:write name="monthLabel"/></val>
36     </logic:iterate>
37   </monthlabels>
38   <monthvalues>
39     <logic:iterate id="monthVal" name="calInfo" property="monthVals">
40       <val><bean:write name="monthVal"/></val>
41     </logic:iterate>
42     <start><bean:write name="calForm" property="viewStartDate.month"/></start>
43   </monthvalues>
44   <yearvalues>
45     <logic:iterate id="yearVals" name="calForm" property="yearVals">
46       <val><bean:write name="yearVals"/></val>
47     </logic:iterate>
48     <start><bean:write name="calForm" property="viewStartDate.year"/></start>
49   </yearvalues>
50   <hourlabels>
51     <logic:iterate id="hourLabel" name="calForm" property="forLabels.hourLabels">
52       <val><bean:write name="hourLabel"/></val>
53     </logic:iterate>
54   </hourlabels>
55   <hourvalues>
56     <logic:iterate id="hourVal" name="calForm" property="forLabels.hourVals">
57       <val><bean:write name="hourVal"/></val>
58     </logic:iterate>
59     <start><bean:write name="calForm" property="viewStartDate.hour"/></start>
60   </hourvalues>
61   <minvalues>
62     <logic:iterate id="minuteVals" name="calForm" property="forLabels.minuteLabels">
63       <val><bean:write name="minuteVals"/></val>
64     </logic:iterate>
65     <start><bean:write name="calForm" property="viewStartDate.minute"/></start>
66 <%--    <logic:iterate id="minuteVals" name="calForm" property="forLabels.minuteLabels">
67  --%>
68   </minvalues>
69   <ampmvalues>
70     <logic:iterate id="ampmVals" name="calForm" property="forLabels.ampmLabels">
71       <val><bean:write name="ampmVals"/></val>
72     </logic:iterate>
73     <start><bean:write name="calForm" property="viewStartDate.ampm"/></start>
74   </ampmvalues>
75 </bedework>
76 <%
77 } catch (Throwable t) {
78   t.printStackTrace();
79 }
80 %>
81
82 <%-- Required to force write in jetspeed2 portal-struts bridge
83 < % pageContext.getOut().flush(); % >
84 --%>
85
Note: See TracBrowser for help on using the browser.