<%-- #RevizeProperties USE REVIZE MENU (DOCUMENT PROPERTIES) TO EDIT DATA BELOW: status=edit options= server=localhost:8080 projectName=calendar_app_RELEASE label= location=calendar_app/editpages/calendar_display_events.jsp version= docType=editpage subType=list moduleName= fieldName= channels=| description=List all events of one calendar at one place --%><%-- #BeginRZ-PageHeader --%><%@ page language="java" %><%@ include file="/util/setup_editlist_header.jsp" %><%-- #EndRZ-PageHeader --%> Calendar Events <%-- ___________________________________________________________________________________ This Edit Page deviates from standard Revize editform as follows: ___________________________________________________________________________________ --%><%@ include file="/util/setup_editlist_javascript.jsp" %><%@ include file="/plugins/calendar/calendar.version_include.jsp" %><% //----- Page specific JSP code String groupid = StringUtils.getParameter(request,"groupid"); String calendarid = StringUtils.getParameter(request,"calendarid"); %><%-- //-------------------------------------------------------------------------------\\ Following script, link and style tags just for DW reference, They are NOT published. Javascript functions run from homepage; CSS cloned from the homepage during setup(). --%><% if (false) { %> <% //-------------------------------------------------------------------------------// } %> <%-- @@no-source-format@@ /***************************************************/ /**/ .RZhidden class hides elements in browser /**/ /**/ ...BUT allows DW to show in design view... /**/ /**/ /* Following css does not get published */ /**/ /**/ --%><% if (false){ /**/ /**/ %><% } /**/ /**/ /* Following IS published for Browsers */ /**/ /**/ %><%-- /**/ /***************************************************/ @@no-source-format@@ --%> <%-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * DELETE standard javascript include file after the body tag (if shown above); it is included in the section for edit pages and not used on templates. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * --%> <%if(false){%>
NOTE: blocks with class=RZhidden show with this background in DW only; they are hidden when page displays in browser unless changed by javascript or other CSS.
<%}%> <%@ include file="/plugins/calendar/calendar.loading_layer_include.jsp" %>

    Events for Calendar:    

<%=rz.content%>
Only events entered for this calendar are shown (i.e. no rollup events)

<%-- #BeginRZ-ActionImage --%> <%-- Option:type=EditListInsertImage --%> <%-- Option:imageSrcURL=../images/buttons/new_sm.gif --%> <%-- #EndRZ-ActionImage --%> <% String[] monthNames = {"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"}; String calandarid = rz.fetch("calendar_names", "_recordid"); String calandarname = rz.fetch("calendar_names", "calendar_name"); %>
<% while ( rz.listnext() ) { if (rz.listindex < 0) break; %><% if (rz.isgroupheader){ //-----Below Html is Group Header-----\\ %><% } // . . . . . . . . . . \\-----Above Html is Group Header-----// %><% if (rz.isgroupfooter){ //-----Below Html is Group Footer-----\\ %><%} // . . . . . . . . . . \\-----Above Html is Group Footer-----// %><% }%>
<% String rzcontent = rz.content; String monthStr = StringUtils.sub(rz.content,4); int monthIndex = StringUtils.toInt(monthStr) - 1; if (monthIndex < 0) monthIndex = 0; String yearStr = StringUtils.sub(rzcontent,0,4); String monthDate = monthStr + "/1/" + yearStr; // mm/1/yyyy %><%=monthNames[monthIndex] + " " + yearStr%> Event Id Event Name
<%-- #BeginRZ-ActionImage --%> <%-- Option:type=EditListEditImage --%> <%-- Option:imageSrcURL=../images/buttons/edit_sm.gif --%> <%-- #EndRZ-ActionImage --%> <%-- #BeginRZ-ActionImage --%> <%-- Option:type=EditListDeleteImage --%> <%-- Option:forwardURL= --%> <%-- Option:imageSrcURL=../images/buttons/delete_sm.gif --%> <%-- #EndRZ-ActionImage --%> <%=rz.content%> <%=rz.recordid%> <%=rz.content%>