<%-- #RevizeProperties USE REVIZE MENU (DOCUMENT PROPERTIES) TO EDIT DATA BELOW: status=edit options= server=localhost:8080 projectName=calendar_app label= location=calendar_app/editpages/calendar_list.jsp version= docType=editpage subType=list moduleName= fieldName= channels=| description= --%><%-- #BeginRZ-PageHeader --%><%@ page language="java" %><%@ include file="/util/setup_editlist_header.jsp" %><%-- #EndRZ-PageHeader --%> Calendar Administration for a Group <%-- ___________________________________________________________________________________ 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"); %><%-- //-------------------------------------------------------------------------------\\ 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@@ --%> <%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" %>

    List of Calendars for Group:    

<%-- #BeginRZ-ActionImage --%> <%-- Option:type=EditListInsertImage --%> <%-- Option:imageSrcURL=../images/buttons/new.gif --%> <%-- #EndRZ-ActionImage --%> <%-- #BeginRZ-ActionImage --%> <%-- Option:type=EditListExitImage --%> <%-- Option:forwardURL= --%> <%-- Option:imageSrcURL=../images/buttons/cancel.gif --%> <%-- #EndRZ-ActionImage --%>
<% while ( rz.listnext() ) { if (rz.listindex < 0) break; //no active records (e.g. no information available) %> <% }%>
Action Calendar Name
click to view events
Calendar
Administrators

Calendar
Editors

Other Calendars
that can place events
in this calendar
Other Calendars
that can show this
Calendar's Events
<%-- #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%><% String calname = rz.content; calname = calname.replaceAll("%20"," "); calname = calname.replaceAll("&sqout","'"); calname = StringUtils.convertStringForSource(calname); %> <% out.println(addRoleUserOptions( rz.fetch("calendar_names", "administrators"),"admins" )); %>   <% out.println(addRoleUserOptions( rz.fetch("calendar_names", "editors"),"editors" )); %>  
<%! String addRoleUserOptions( String inList, String flag ) { //String toReturn = ""; String toReturn = ""; int lenList = inList.length(); if ( (0 < lenList) && ( !("|".equals(inList)) ) ) { String item = ""; int indexPipe = -1; int i = 0; while (true) { indexPipe = inList.indexOf('|', i); if ( 0 < indexPipe ) { item = inList.substring(i, indexPipe); if( item.startsWith( "_" ) ) { toReturn += "" + item.substring(1)+ "
"; } else { toReturn += "" + item + "
"; } i = indexPipe + 1; } else if ( i < lenList ) { item = inList.substring(i, lenList); if( item.startsWith( "_" ) ) { toReturn += "" + item.substring(1) + "
"; } else { toReturn += "" + item + "
"; } break; } } } //toReturn += "
"; return toReturn; } %>