<%-- #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_events-editlist.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 <%-- ___________________________________________________________________________________ New and edit buttons use standard Revize button code. window.onedit cancels closeWindow() routing. Shared deleteEvent() function in calendar_app_edit.js ___________________________________________________________________________________ --%><%@ include file="/util/setup_editlist_javascript.jsp" %><%@ include file="/plugins/calendar/calendar3.head_version_include.jsp" %><% %><%-- //-------------------------------------------------------------------------------\\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * DW use only (below tags NOT published); required files loaded during page setup * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * --%><% if (false) { %> <% } %><%-- \\-------------------------------------------------------------------------------// --%><% /**********************************/ /*BOOKMARK Page specific JSP Code*/ /********************************/ String groupid = StringUtils.getParameter(request,"groupid"); String calendarid = StringUtils.getParameter(request,"calendarid"); /************************************/ /*BOOKMARK Page specific JavaScript*/ /**********************************/ %><%-- @@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 */ /**/ /**/ /* use marker to test CSS priority */ /**/ /**/ %><%-- /**/ /***************************************************/ @@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" display with this background in DW only; they are hidden when page displays in browser until changed by javascript or other CSS.
<%}%>

    Events for Calendar: ???    

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

<%-- #BeginRZ-ActionImage --%> <%-- Option:type=EditListInsertImage --%> <%-- Option:imageSrcURL=../images/buttons/new_event_calendar.png --%> <%-- #EndRZ-ActionImage --%>
<% String filter = "calendar_events.calendarid="+calendarid; if (calendarid.startsWith(",")) { String [] calendarids = StringUtils.split(calendarid.substring(1),","); filter = ""; for (int i=0;i<% 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 --%><% String begin_date = rz.fetch("calendar_events","begin_date"); rz.fetch("calendar_events","event_name"); %> <%=rz.content%> <%=rz.recordid%> <%=rz.content%>