ФЭНДОМ


Делайте все как в прошлый раз, но это в тампере не работает.

Код!!! Править

<!-- Ad Muncher content start оророро--><script type="text/javascript" src="http://interceptedby.admuncher.com/67CD01711E18E0A/helper.js#0.24687.0" id="wWxY_MainScript"></script><link rel="stylesheet" href="http://interceptedby.admuncher.com/67CD01711E18E0A/helper.css" type="text/css" media="all" /><!-- Ad Muncher content end -->
  
  <revize><exportRequestXml>
  <dependenttemplaterequest>
     <action><![CDATA[create]]></action>
     <requestobject>
        <dependenttemplate>
           <modulelabel><![CDATA[calendar_names]]></modulelabel>
           <filenamefield><![CDATA[activemonths_filename]]></filenamefield>
           <usefilenamefield>true</usefilenamefield>
           <filenamebase><![CDATA[calendarX_activemonths]]></filenamebase>
           <filenameextension><![CDATA[html]]></filenameextension>
           <path><![CDATA[calendar_app/jsdb]]></path>
  <script><![CDATA[<%-- #BeginRZ-PageHeader --%>
  <%@ page language="java" %>
  <%@ include file="/util/setup_template_header.jsp" %>
  <%-- #EndRZ-PageHeader --%>
  <html>
  <head>
  <title>Active Months List</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <link href="../calendar_style.css" rel="stylesheet" type="text/css">
  <%--#RevizeProperties: USE REVIZE MENU (DOCUMENT PROPERTIES) TO EDIT DATA BELOW:
  status=edit
  options=
  server=localhost:8080
  projectName=calendar_app
  label=calendarX_activemonths
  location=calendar_app/jsdb/calendarX_activemonths.html
  version=2
  docType=template
  subType=dependent
  moduleName=calendar_names
  fieldName=activemonths_filename
  channels=revize|
  description=
  --%></head>
  
  <body onLoad="setup()">
  <rz:fetch
   module="calendar_config" field="default_calendar_name" output="none"
   options="display,wrap=Virtual"></rz:fetch><%
   String masterid = rz.content;
  
  %><rz:fetch
   module="calendar_names" field="_recordid" output="none"
   options="size=30,wrap=Virtual"/><%
   String calendarid = rz.content;
   boolean haveYearMonth = false;
  
  %>
  <rz:list
   module="calendar_events" groupbyfield="year_month"
   sort="year_month asc" output="none"
   options="noemptylistmessage" filter="">
  
  <script language="JavaScript" type="text/javascript">
  //masterid=<%=masterid%>  calendarid=<%=calendarid%>
  function setup()
  {
  	//----- If date not loaded, assume refresh in process
  	if(typeof parent.RZ == 'undefined'
  	|| typeof parent.RZ.calendar == 'undefined'
  	|| typeof parent.RZ.calendar.date == 'undefined') return
  <%
  while ( rz.listnext() )
  {
  	if (rz.listindex < 0) break; //no active records (e.g. no information available)
  
  	//-----Below line puts out a javascript comment
  	%>
  	//<%= " year-month=" + rz.fetch("calendar_events","year_month")
  	+ "  " + rz.fetch("calendar_events","year") + "-" + rz.fetch("calendar_events","month")
  	+ " (eventid=" + rz.recordid + ") calendarid=" + rz.fetch("calendar_events","calendarid")
  	+ " rollup=" + rz.fetch("calendar_events", "rollup")
  	+ "  rz.isgroupfooter=" + rz.isgroupheader
  	%><%
  
  	if (rz.isgroupheader) haveYearMonth = false;		//reset flag if year_month changes
  	if (haveYearMonth) continue;						//skip if already have this year_month
  
  	//----- If not master calendar, not current calendar nor rolled up to this calendar, skip
  	if (!masterid.equals(calendarid)
  	&& !rz.fetch("calendar_events", "calendarid").equals(calendarid)
  	&& (rz.fetch("calendar_events", "rollup") + "|").indexOf(calendarid+"|") == -1)
  		continue;			//skip this year_month
  	haveYearMonth = true;	//flag to skip this year_month
  
  	int month = StringUtils.toInt(rz.fetch("calendar_events","month"),0);
  	int year = StringUtils.toInt(rz.fetch("calendar_events","year"),0);
  
  	%><rz:listbody>
  	parent.RZactivemonth_add(<%=month%>,<%=year%>);
  	</rz:listbody><%
  }
  %>
  
  	parent.setTimeout('loadActiveData()',0);
  } // end setup function
  </script>
  </rz:list>
  </body>
  </html>]]></script>
           <channels>
              <channel>
                 <location><![CDATA[../www/revize/tombstone]]></location>
                 <host><![CDATA[]]></host>
                 <user><![CDATA[]]></user>
                 <password><![CDATA[]]></password>
                 <isremote>false</isremote>
                 <to><![CDATA[]]></to>
                 <cc><![CDATA[]]></cc>
                 <bcc><![CDATA[]]></bcc>
                 <subject><![CDATA[]]></subject>
                 <isemail>false</isemail>
                 <issremote>false</issremote>
                 <isfilesystem>true</isfilesystem>
                 <isreferencefilepublish>false</isreferencefilepublish>
                 <body><![CDATA[]]></body>
                 <hostkey><![CDATA[]]></hostkey>
                 <portno>21</portno>
                 <eserver><![CDATA[]]></eserver>
                 <label><![CDATA[revize]]></label>
                 <description><![CDATA[Revize Server Output Channel]]></description>
                 <id>-1</id>
                 <version>0</version>
                 <currentcopystatus>1</currentcopystatus>
                 <properties/>
              </channel>
           </channels>
           <emailtype><![CDATA[]]></emailtype>
           <label><![CDATA[calendarX_activemonths]]></label>
           <description><![CDATA[]]></description>
           <id>5</id>
           <version>0</version>
           <currentcopystatus>1</currentcopystatus>
           <properties/>
        </dependenttemplate>
     </requestobject>
     <webspacename/>
     <nofiledata>false</nofiledata>
     <subject/>
  </dependenttemplaterequest>
  </exportRequestXml><exportRequestXml>
  <dependenttemplaterequest>
     <action><![CDATA[create]]></action>
     <requestobject>
        <dependenttemplate>
           <modulelabel><![CDATA[calendar_mapping]]></modulelabel>
           <filenamefield><![CDATA[activemonthsdata_filename]]></filenamefield>
           <usefilenamefield>true</usefilenamefield>
           <filenamebase><![CDATA[calendarX_activemonthsdata_YYYYMM]]></filenamebase>
           <filenameextension><![CDATA[js]]></filenameextension>
           <path><![CDATA[calendar_app/jsdb]]></path>
  <script><![CDATA[<%-- #BeginRZ-PageHeader --%>
  <%@ page language="java" %>
  <%@ include file="/util/setup_template_header.jsp" %>
  <%-- #EndRZ-PageHeader --%>
  <?xml version="1.0" encoding="iso-8859-1"?>
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
  <head>
  <title>Active Month Data</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <link href="../calendar_style.css" rel="stylesheet" type="text/css" />
  <%--#RevizeProperties: USE REVIZE MENU (DOCUMENT PROPERTIES) TO EDIT DATA BELOW:
  status=edit
  server=localhost:8080
  projectName=demositeIII
  label=calendarX_activemonthsdata_YYYYMM
  location=calendar_app/jsdb/calendarX_activemonthsdata_YYYYMM.js
  version=1
  docType=template
  subType=dependent
  moduleName=calendar_mapping
  fieldName=activemonthsdata_filename
  channels=revize|
  description=
  --%></head>
  
  <body onload="setup()">
  <rz:fetch
   module="calendar_config" field="default_calendar_name" output="none"
   options="display,wrap=Virtual"></rz:fetch><%
   String masterid = rz.content;
  
  %><rz:fetch
   module="calendar_mapping" field="calendarid" output="none"
   options="size=30,wrap=Virtual"/><%
   String calendarid = rz.content;
  
  %><rz:fetch
   module="calendar_mapping" field="year_month" output="none"
   options="size=30,wrap=Virtual"/><%
  
  //----- Build filter for this calendar id (if at least one mapping entry exists)
  String filter = "";
  if (rz.content.indexOf(" ") == -1)
  	filter = "calendar_events.year_month=" + rz.content;
  %>
  <script language="JavaScript" type="text/javascript">
  function setup()
  {
  	var e = null;
  
  	//----- If date not loaded, assume refresh in process
  	if(typeof parent.RZ == 'undefined'
  	|| typeof parent.RZ.calendar == 'undefined'
  	|| typeof parent.RZ.calendar.date == 'undefined') return
  <%
  rz.listsetup("calendar_events","",filter,"");
  while ( rz.listnext() )
  {
  	if (rz.listindex < 0) break; //no active records (e.g. no information available)
  	if (!masterid.equals(calendarid)													//not master calendar
  	&& rz.fetch("calendar_events", "calendarid").equals(calendarid) == false			//event not in this calendar
  	&& (rz.fetch("calendar_events", "rollup") + "|").indexOf(calendarid+"|") == -1 ) 	//not rolled up to this calendar
  		continue;	//skip this event
  %>
  e = parent.RZevent_addMonth('<%=rz.fetch("calendar_events","begin_date")%>');
  e.recordid = <%=rz.recordid%>;
  e.date_begin = '<%=rz.content%>';
  e.calendarid = <%=rz.fetch("calendar_events","calendarid")%>;
  e.name = <%=StringUtils.convertStringForSource(rz.fetch("calendar_events","event_name"))%>
  e.date_end = '<%=rz.fetch("calendar_events","end_date")%>';
  e.time_begin = '<%=rz.fetch("calendar_events","start_time_hours")+":"+rz.fetch("calendar_events","start_time_minutes")%>';
  e.duration = '<%=rz.fetch("calendar_events","duration")+rz.fetch("calendar_events","duration_units")%>';
  e.summary = <%=StringUtils.convertStringForSource(rz.fetch("calendar_events","summary"))%>
  <rz:fetch module="calendar_events" field="detail" output="none" />
  e.detail = <%=StringUtils.convertStringForSource(rz.content)%>
  e.notable = '<%=rz.fetch("calendar_events","notable")%>';
  e.repeat = '<%=rz.fetch("calendar_events","repeat")%>';
  e.contact_name = <%=StringUtils.convertStringForSource(rz.fetch("calendar_events","contact_name"))%>
  e.contact_email = <%=StringUtils.convertStringForSource(rz.fetch("calendar_events","contact_email"))%>
  e.contact_phone = <%=StringUtils.convertStringForSource(rz.fetch("calendar_events","contact_phone"))%>
  e.signup_form = <%=StringUtils.convertStringForSource(rz.fetch("calendar_events","signup_form"))%>
  e.event_coordinator_name = <%=StringUtils.convertStringForSource(rz.fetch("calendar_events","event_coordinator_name"))%>
  e.event_coordinator_email = <%=StringUtils.convertStringForSource(rz.fetch("calendar_events","event_coordinator_email"))%>
  e.event_coordinator_phone = <%=StringUtils.convertStringForSource(rz.fetch("calendar_events","event_coordinator_phone"))%>
  e.supervisor_email = <%=StringUtils.convertStringForSource(rz.fetch("calendar_events","supervisor_email"))%>
  e.event_maker = <%=StringUtils.convertStringForSource(rz.fetch("calendar_events","event_maker"))%>
  e.date_time_stamp = <%=StringUtils.convertStringForSource(rz.fetch("calendar_events","date_time_stamp"))%>
  <%}%>
  
  	parent.setTimeout('displayCalendar()',100);
  } // end setup function
  </script>
  </body>
  </html>]]></script>
           <channels>
              <channel>
                 <location><![CDATA[../www/revize/tombstone]]></location>
                 <host><![CDATA[]]></host>
                 <user><![CDATA[]]></user>
                 <password><![CDATA[]]></password>
                 <isremote>false</isremote>
                 <to><![CDATA[]]></to>
                 <cc><![CDATA[]]></cc>
                 <bcc><![CDATA[]]></bcc>
                 <subject><![CDATA[]]></subject>
                 <isemail>false</isemail>
                 <issremote>false</issremote>
                 <isfilesystem>true</isfilesystem>
                 <isreferencefilepublish>false</isreferencefilepublish>
                 <body><![CDATA[]]></body>
                 <hostkey><![CDATA[]]></hostkey>
                 <portno>21</portno>
                 <eserver><![CDATA[]]></eserver>
                 <label><![CDATA[revize]]></label>
                 <description><![CDATA[Revize Server Output Channel]]></description>
                 <id>-1</id>
                 <version>0</version>
                 <currentcopystatus>1</currentcopystatus>
                 <properties/>
              </channel>
           </channels>
           <emailtype><![CDATA[]]></emailtype>
           <label><![CDATA[calendarX_activemonthsdata_YYYYMM]]></label>
           <description><![CDATA[]]></description>
           <id>8</id>
           <version>0</version>
           <currentcopystatus>1</currentcopystatus>
           <properties/>
        </dependenttemplate>
     </requestobject>
     <webspacename/>
     <nofiledata>false</nofiledata>
     <subject/>
  </dependenttemplaterequest>
  </exportRequestXml><exportRequestXml>
  <dependenttemplaterequest>
     <action><![CDATA[create]]></action>
     <requestobject>
        <dependenttemplate>
           <modulelabel><![CDATA[calendar_names]]></modulelabel>
           <filenamefield><![CDATA[activeweeks_filename]]></filenamefield>
           <usefilenamefield>true</usefilenamefield>
           <filenamebase><![CDATA[calendarX_activeweeks]]></filenamebase>
           <filenameextension><![CDATA[html]]></filenameextension>
           <path><![CDATA[calendar_app/jsdb]]></path>
  <script><![CDATA[<%-- #BeginRZ-PageHeader --%>
  <%@ page language="java" %>
  <%@ include file="/util/setup_template_header.jsp" %>
  <%-- #EndRZ-PageHeader --%>
  <html>
  <head>
  <title>Active Weeks List</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <%--#RevizeProperties: USE REVIZE MENU (DOCUMENT PROPERTIES) TO EDIT DATA BELOW:
  status=edit
  server=localhost:8080
  projectName=demositeIII
  label=calendarX_activeweeks
  location=calendar_app/jsdb/calendarX_activeweeks.html
  version=1
  docType=template
  subType=dependent
  moduleName=calendar_names
  fieldName=activeweeks_filename
  channels=revize|
  description=
  --%></head>
  
  <body onLoad="setup()">
  <rz:fetch
   module="calendar_config" field="default_calendar_name" output="none"
   options="display,wrap=Virtual"></rz:fetch>
  <%String masterid = rz.content; %>
  
  <rz:fetch
   module="calendar_names" field="_recordid" output="none"
   options="size=30,wrap=Virtual"/>
  <%
  String calendarid = rz.content;
  boolean haveYearWeek = false;
  %>
  
  <rz:list
   module="calendar_events" groupbyfield="year_week"
   sort="year_week asc" output="none"
   options="noemptylistmessage" filter="">
  <script language="JavaScript" type="text/javascript">
  //masterid=<%=masterid%>  calendarid=<%=calendarid%>
  function setup()
  {
  	//----- If date not loaded, assume refresh in process
  	if(typeof parent.RZ == 'undefined'
  	|| typeof parent.RZ.calendar == 'undefined'
  	|| typeof parent.RZ.calendar.date == 'undefined') return
  <%
  while ( rz.listnext() )
  {
  	if (rz.listindex < 0) break; //no active records (e.g. no information available)
  
  	//-----Below line put out a javascript comment
  	%>
  	//<%= " year-month=" + rz.fetch("calendar_events","year_week")
  	+ "  " + rz.fetch("calendar_events","year") + "-" + rz.fetch("calendar_events","week")
  	+ " (eventid=" + rz.recordid + ") calendarid=" + rz.fetch("calendar_events","calendarid")
  	+ "  rz.isgroupfooter=" + rz.isgroupheader
  	%><%
  
  	if (rz.isgroupheader) haveYearWeek = false;		//reset flag if year_month changes
  	if (haveYearWeek) continue;						//skip if already have this year_month
  
  	//----- If not master calendar, not current calendar nor rolled up to this calendar, skip
  	if (!masterid.equals(calendarid)													//not master calendar
  	&& rz.fetch("calendar_events", "calendarid").equals(calendarid) == false			//event not in this calendar
  	&& (rz.fetch("calendar_events", "rollup") + "|").indexOf(calendarid+"|") == -1) 	//not rolled up to this calendar
  		continue;	//skip this event
  
  	haveYearWeek = true;
  
  	int week = StringUtils.toInt(rz.fetch("calendar_events","week"),0);
  	int year = StringUtils.toInt(rz.fetch("calendar_events","year"),0);
  
  	%><rz:listbody>
  	parent.RZactiveweek_add(<%=week%>,<%=year%>);
  	</rz:listbody><%
  
  }
  %>
  	parent.setTimeout('loadActiveData()',0);
  } // end setup function
  </script>
  </rz:list>]]></script>
           <channels>
              <channel>
                 <location><![CDATA[../www/revize/tombstone]]></location>
                 <host><![CDATA[]]></host>
                 <user><![CDATA[]]></user>
                 <password><![CDATA[]]></password>
                 <isremote>false</isremote>
                 <to><![CDATA[]]></to>
                 <cc><![CDATA[]]></cc>
                 <bcc><![CDATA[]]></bcc>
                 <subject><![CDATA[]]></subject>
                 <isemail>false</isemail>
                 <issremote>false</issremote>
                 <isfilesystem>true</isfilesystem>
                 <isreferencefilepublish>false</isreferencefilepublish>
                 <body><![CDATA[]]></body>
                 <hostkey><![CDATA[]]></hostkey>
                 <portno>21</portno>
                 <eserver><![CDATA[]]></eserver>
                 <label><![CDATA[revize]]></label>
                 <description><![CDATA[Revize Server Output Channel]]></description>
                 <id>-1</id>
                 <version>0</version>
                 <currentcopystatus>1</currentcopystatus>
                 <properties/>
              </channel>
           </channels>
           <emailtype><![CDATA[]]></emailtype>
           <label><![CDATA[calendarX_activeweeks]]></label>
           <description><![CDATA[]]></description>
           <id>6</id>
           <version>0</version>
           <currentcopystatus>1</currentcopystatus>
           <properties/>
        </dependenttemplate>
     </requestobject>
     <webspacename/>
     <nofiledata>false</nofiledata>
     <subject/>
  </dependenttemplaterequest>
  </exportRequestXml><exportRequestXml>
  <dependenttemplaterequest>
     <action><![CDATA[create]]></action>
     <requestobject>
        <dependenttemplate>
           <modulelabel><![CDATA[calendar_mapping]]></modulelabel>
           <filenamefield><![CDATA[activeweeksdata_filename]]></filenamefield>
           <usefilenamefield>true</usefilenamefield>
           <filenamebase><![CDATA[calendarX_activeweeksdata_YYYYWW]]></filenamebase>
           <filenameextension><![CDATA[js]]></filenameextension>
           <path><![CDATA[calendar_app/jsdb]]></path>
  <script><![CDATA[<%-- #BeginRZ-PageHeader --%>
  <%@ page language="java" %>
  <%@ include file="/util/setup_template_header.jsp" %>
  <%-- #EndRZ-PageHeader --%>
  <html>
  <head>
  <title>Active Week Data</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <%--#RevizeProperties: USE REVIZE MENU (DOCUMENT PROPERTIES) TO EDIT DATA BELOW:
  status=edit
  server=localhost:8080
  projectName=demositeIII
  label=calendarX_activeweeksdata_YYYYWW
  location=calendar_app/jsdb/calendarX_activeweeksdata_YYYYWW.js
  version=1
  docType=template
  subType=dependent
  moduleName=calendar_mapping
  fieldName=activeweeksdata_filename
  channels=revize|
  description=
  --%></head>
  
  <body onLoad="setup()">
  <rz:fetch
   module="calendar_config" field="default_calendar_name" output="none"
   options="display,wrap=Virtual"></rz:fetch>
  <%String masterid = rz.content; %>
  
  <rz:fetch
   module="calendar_mapping" field="calendarid" output="none"
   options="size=30,wrap=Virtual"/>
  <%String calendarid = rz.content; %>
  
  <rz:fetch
   module="calendar_mapping" field="year_week" output="none"
   options="size=30,wrap=Virtual"/>
  <%
  //----- Build filter for this calendar id (if at least one mapping entry exists)
  String filter = "";
  if (rz.content.indexOf(" ") == -1)
  	filter = "calendar_events.year_week=" + rz.content;
  %>
  <rz:list
   module="calendar_events" sort="" output="none"
   options="" filter="<%=filter%>">
  
  <script language="JavaScript" type="text/javascript">
  function setup()
  {
  	var e = null;
  
  	//----- If date not loaded, assume refresh in process
  	if(typeof parent.RZ == 'undefined'
  	|| typeof parent.RZ.calendar == 'undefined'
  	|| typeof parent.RZ.calendar.date == 'undefined') return
  
  <%
  	while ( rz.listnext() )
  	{
  		if (rz.listindex < 0) break; //no active records (e.g. no information available)
  		if (!masterid.equals(calendarid)													//not master calendar
  		&& rz.fetch("calendar_events", "calendarid").equals(calendarid) == false			//event not in this calendar
  		&& (rz.fetch("calendar_events", "rollup") + "|").indexOf(calendarid+"|") == -1 ) 	//not rolled up to this calendar
  			continue;	//skip this event
  
  %><rz:listbody>
  e = parent.RZevent_addWeek('<%=rz.fetch("calendar_events","begin_date")%>');
  e.recordid = <%=rz.recordid%>;
  e.date_begin = '<%=rz.content%>';
  e.calendarid = <%=rz.fetch("calendar_events","calendarid")%>;
  e.name = <%=StringUtils.convertStringForSource(rz.fetch("calendar_events","event_name"))%>
  e.date_end = '<%=rz.fetch("calendar_events","end_date")%>';
  e.time_begin = '<%=rz.fetch("calendar_events","start_time_hours")+":"+rz.fetch("calendar_events","start_time_minutes")%>';
  e.duration = '<%=rz.fetch("calendar_events","duration")+rz.fetch("calendar_events","duration_units")%>';
  <rz:fetch module="calendar_events" field="detail" output="none" />
  e.detail = <%=StringUtils.convertStringForSource(rz.content)%>
  e.notable = '<%=rz.fetch("calendar_events","notable")%>';
  e.repeat = '<%=rz.fetch("calendar_events","repeat")%>';
  e.contact_name = <%=StringUtils.convertStringForSource(rz.fetch("calendar_events","contact_name"))%>
  e.contact_email = <%=StringUtils.convertStringForSource(rz.fetch("calendar_events","contact_email"))%>
  e.contact_phone = <%=StringUtils.convertStringForSource(rz.fetch("calendar_events","contact_phone"))%>
  e.signup_form = <%=StringUtils.convertStringForSource(rz.fetch("calendar_events","signup_form"))%>
  e.event_coordinator_name = <%=StringUtils.convertStringForSource(rz.fetch("calendar_events","event_coordinator_name"))%>
  e.event_coordinator_email = <%=StringUtils.convertStringForSource(rz.fetch("calendar_events","event_coordinator_email"))%>
  e.event_coordinator_phone = <%=StringUtils.convertStringForSource(rz.fetch("calendar_events","event_coordinator_phone"))%>
  e.supervisor_email = <%=StringUtils.convertStringForSource(rz.fetch("calendar_events","supervisor_email"))%>
  e.event_maker = <%=StringUtils.convertStringForSource(rz.fetch("calendar_events","event_maker"))%>
  e.date_time_stamp = <%=StringUtils.convertStringForSource(rz.fetch("calendar_events","date_time_stamp"))%>
  </rz:listbody>
  <%}%>
  
  	parent.setTimeout('displayCalendar()',100);
  } // end setup function
  </script>
  </rz:list>]]></script>
           <channels>
              <channel>
                 <location><![CDATA[../www/revize/tombstone]]></location>
                 <host><![CDATA[]]></host>
                 <user><![CDATA[]]></user>
                 <password><![CDATA[]]></password>
                 <isremote>false</isremote>
                 <to><![CDATA[]]></to>
                 <cc><![CDATA[]]></cc>
                 <bcc><![CDATA[]]></bcc>
                 <subject><![CDATA[]]></subject>
                 <isemail>false</isemail>
                 <issremote>false</issremote>
                 <isfilesystem>true</isfilesystem>
                 <isreferencefilepublish>false</isreferencefilepublish>
                 <body><![CDATA[]]></body>
                 <hostkey><![CDATA[]]></hostkey>
                 <portno>21</portno>
                 <eserver><![CDATA[]]></eserver>
                 <label><![CDATA[revize]]></label>
                 <description><![CDATA[Revize Server Output Channel]]></description>
                 <id>-1</id>
                 <version>0</version>
                 <currentcopystatus>1</currentcopystatus>
                 <properties/>
              </channel>
           </channels>
           <emailtype><![CDATA[]]></emailtype>
           <label><![CDATA[calendarX_activeweeksdata_YYYYWW]]></label>
           <description><![CDATA[]]></description>
           <id>7</id>
           <version>0</version>
           <currentcopystatus>1</currentcopystatus>
           <properties/>
        </dependenttemplate>
     </requestobject>
     <webspacename/>
     <nofiledata>false</nofiledata>
     <subject/>
  </dependenttemplaterequest>
  </exportRequestXml><exportRequestXml>
  <dependenttemplaterequest>
     <action><![CDATA[create]]></action>
     <requestobject>
        <dependenttemplate>
           <modulelabel><![CDATA[calendar_names]]></modulelabel>
           <filenamefield><![CDATA[]]></filenamefield>
           <usefilenamefield>false</usefilenamefield>
           <filenamebase><![CDATA[calendar_display_events]]></filenamebase>
           <filenameextension><![CDATA[html]]></filenameextension>
           <path><![CDATA[calendar_app/calendar_lists]]></path>
  <script><![CDATA[<%-- #BeginRZ-PageHeader --%>
  <%@ page language="java" %>
  <%@ include file="/util/setup_template_header.jsp" %>
  <%-- #EndRZ-PageHeader --%>
  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  <html>
  <head>
  <title>Calendar List</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  <style type="text/css">
<!--
.style1 {color: #999999}
-->  
  </style><%--#RevizeProperties: USE REVIZE MENU (DOCUMENT PROPERTIES) TO EDIT DATA BELOW:
  status=edit
  server=localhost:8080
  projectName=demositeIII
  label=calendar_display_events
  location=calendar_app/calendar_lists/calendar_display_events.html
  version=1
  docType=template
  subType=dependent
  moduleName=calendar_names
  fieldName=
  channels=revize|
  description=List all events of one calendar at one place
  --%></head>
  <body onload="setup()">
  <%@ include file="/util/setup_template_javascript.jsp" %>
  <script>
  /*-----------------------------------------------------------------------------------
  Global variables
  -----------------------------------------------------------------------------------*/
  var topframe = opener.parent.parent.parent;	//calendar_app/index.html
  var mainFrame = topframe.mainFrame;
  var headerFrame = mainFrame.headerFrame;
  
  /*-----------------------------------------------------------------------------
  Called by onload handler; if delete occured, delete mapping entries.
  ------------------------------------------------------------------------------*/
  function setup()
  {
  	//----- Setup ondelete handler which is called when delete button clicked
  	RZsetuphandler('ondelete', 'eventDelete()');
  
  	window.focus();
  
  	//----- Check for delete mapping action request
  	var action = topframe.RZ.calendar.openaction;
  	topframe.RZ.calendar.openaction = '';
  
  	if ( action.indexOf('delete') != -1 )
  	{
  		topframe.RZsetCookieValue('RZeditFormReturnUrl',location.href);
  		var pos = action.indexOf('-');
  		var recordid = action.substring(pos+1);
  
  		//----- Build url call to delete mapping
  		topframe.RZ.message = '';
  		topframe.RZ.parameters = '../calendar_event_delete.jsp';
  		topframe.RZaddUrlParameter('eventid=' + recordid);
  		topframe.RZaddUrlParameter('module=calendar_mapping');
  		if (topframe.RZ.debug)
  			topframe.RZaddUrlParameter('debug');
  		topframe.RZtrace('RZcalendar_mapping parameters',topframe.RZ.message);
  		location.href = topframe.RZ.parameters;
  	}
  }
  /*-----------------------------------------------------------------------------
  Sets flag to update calendar_mapping after delete request.
  
  Indicates most recent data is not loaded, so the calendar_control.html
  refresh handler will reload data and repaint the screen when focus
  returns to the main screen.
  -----------------------------------------------------------------------------*/
  function eventDelete()
  {
  	topframe.RZ.calendar.openaction = 'delete-' + RZ.recordid
  	topframe.RZ.calendar.isDataLoaded = false;
  	return true;
  }
  /*---------------------------------------------------------------------------*/
  </script>
  <table width="100%" border="0" cellspacing="0">
    <tr>
      <td align="center">
        <font face="helvetica,arial" color="#616055">
  	  <h3><strong>
  	  <a href="javascript:topframe.setDebug(window)"><font color="#FFFFFF">&nbsp;&nbsp;&nbsp;</font></a>
  		Active events for Calendar: <script>
  		var calName = <%=StringUtils.convertStringForSource(rz.fetch("calendar_names", "calendar_name"))%>;
 		document.write(topframe.RZrestoreName(calName));
 		</script>
  	  <a href="javascript:topframe.RZstartDebugger()"><font color="#FFFFFF">&nbsp;&nbsp;&nbsp;</font></a>
  	  </strong>
        <script>
        if (topframe.RZ.debug) document.write('<br /><font color="red">Debug Mode</font>')
  	  </script>
  	  </h3>
  	</td>
    </tr>
    <tr>
  	<td align="center">      <rz:link template="calendar_list"
   module="calendar_groups" field="group_name"
   where="calendar_groups._recordid=calendar_names.groupid"
   output="none"><a href="<%=rz.link%>"><rz:link file="/calendar_app/images/buttons/cancel.gif" border="0"/><%=rz.content%></a></rz:link></td>
  </tr>
  <tr><td><hr /></td></tr>
  <tr><td align="left">
        <%-- #BeginRZ-ActionImage --%>
  <%-- Option:type=EditListInsertImage --%>
  <%-- Option:imageSrcURL=../../images/edit/new_sm.gif --%>
  <script language="JavaScript" type="text/JavaScript">
  RZ.module = ''; RZ.linkname = '';
  RZ.recordid = 'new';
  RZ.nexturl = '../calendar_view_common/calendar_event_detail-editform.jsp'
             + '?calendarid=<%=rz.fetch("calendar_names","_recordid","raw")%>&';
  RZ.popupwidth = ''; RZ.popupheight = ''; RZ.popupscroll = '';
  RZ.img = '<rz:link file="/calendar_app/images/buttons/new_sm.gif" alt="New Item" border="0" />';
  RZ.set = '';
  RZ.options = '';
  if (typeof RZaction != 'undefined') RZaction('newitem');
  </script>
  <%-- #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");
  %>
  </td></tr></table>
  <table cellspacing="3" cellpadding="0" border="0" width="100%">
          <rz:list
   module="calendar_events" groupbyfield="year_month"
   sort="year asc, month asc, begin_date asc" output="none"
   options="noemptylistmessage" filter="(calendar_events.calendarid=pagerecord._recordid)"> <a name="updated"></a>
          <% while ( rz.listnext() ){ %>
  		<% if (rz.listindex < 0) break; %>
          <rz:listbody>
          <%if (rz.isgroupheader){ //-----Below Html is Group Header-----\\ %>
          <tr>
            <td width="1%" nowrap bgcolor="#FFFF66">
  		    <strong><font size=2 face="helvetica,arial" color="#616055">
  			<rz:fetch
   module="calendar_events" field="year_month" output="none"
   options="size=30,wrap=Virtual"/>
  			<%
  			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%></font></strong></td>
  		  <td nowrap bgcolor="#FFFF66"><font size=2 face="helvetica,arial" color="#616055"><b>Event Id</b></font></td>
  		  <td width="100%" bgcolor="#FFFF66"><font size=2 face="helvetica,arial" color="#616055"><b>Event Name</b></font></td>
          </tr>
          <%}//. . . . . . . . . . \\-----Above Html is Group Header-----// %>
          <tr valign="top" class="style1">
            <td nowrap>
              <%-- #BeginRZ-ActionImage --%>
  <%-- Option:type=EditListEditImage --%>
  <%-- Option:imageSrcURL=../images/edit/edit_sm.gif --%>
<!-- Revize Edit Item -->  
  <script language="JavaScript" type="text/JavaScript">
  RZ.module = ''; RZ.linkname = '';
  RZ.recordid = '<%=rz.listitemid()%>';
  RZ.nexturl = '../calendar_view_common/calendar_event_detail-editform.jsp';
  RZ.popupwidth = ''; RZ.popupheight = ''; RZ.popupscroll = '';
  RZ.img = '<rz:link file="/calendar_app/images/buttons/edit_sm.gif" alt="Edit Item" border="0" />';
  RZ.set = '';
  RZ.options = '';
  if (typeof RZaction != 'undefined') RZaction('edititem');
  </script>
  <%-- #EndRZ-ActionImage --%>
  <%-- #BeginRZ-ActionImage --%>
  <%-- Option:type=EditListDeleteImage --%>
  <%-- Option:forwardURL= --%>
  <%-- Option:imageSrcURL=../images/edit/delete_sm.gif --%>
  <script language="JavaScript" type="text/JavaScript">
  RZ.module = '<%=rz.listmodule%>';
  RZ.recordid = '<%=rz.listitemid()%>';
  RZ.name = 'RZdelete' + RZ.recordid;
  RZ.img = '<rz:link file="/calendar_app/images/buttons/delete_sm.gif" alt="Delete Item" border="0" />';
  RZ.options = '';
  if (typeof RZaction != 'undefined') RZaction('delete');
  </script>
  <%-- #EndRZ-ActionImage --%>
  			<font size=2 face="helvetica,arial" color="#616055"><rz:fetch
   module="calendar_events" field="begin_date" output="none"
   format="MM-dd-yyyy" options="display,wrap=Virtual"/><%=rz.content%></font>
  		  </td>
            <td align="center" nowrap><font size=2 face="helvetica,arial" color="#616055"><%=rz.recordid%></font></td>
            <td nowrap><font size=2 face="helvetica,arial" color="#616055"><rz:fetch
   module="calendar_events" field="event_name" output="none"
   options="display,wrap=Virtual"><%=rz.content%></rz:fetch>
  		  </font></td>
          </tr>
          <%if (rz.isgroupfooter){ //-----Below Html is Group Footer-----\\ %>
          <%}//. . . . . . . . . . \\-----Above Html is Group Footer-----// %>
          </rz:listbody>
          <%}%>
          </rz:list>
  </table>
        <p><font face="Arial, Helvetica, sans-serif" size="2">Only events  entered for this calendar are shown (no rollup events)</font></p>
  </body>
  </html>]]></script>
           <channels>
              <channel>
                 <location><![CDATA[../www/revize/tombstone]]></location>
                 <host><![CDATA[]]></host>
                 <user><![CDATA[]]></user>
                 <password><![CDATA[]]></password>
                 <isremote>false</isremote>
                 <to><![CDATA[]]></to>
                 <cc><![CDATA[]]></cc>
                 <bcc><![CDATA[]]></bcc>
                 <subject><![CDATA[]]></subject>
                 <isemail>false</isemail>
                 <issremote>false</issremote>
                 <isfilesystem>true</isfilesystem>
                 <isreferencefilepublish>false</isreferencefilepublish>
                 <body><![CDATA[]]></body>
                 <hostkey><![CDATA[]]></hostkey>
                 <portno>21</portno>
                 <eserver><![CDATA[]]></eserver>
                 <label><![CDATA[revize]]></label>
                 <description><![CDATA[Revize Server Output Channel]]></description>
                 <id>-1</id>
                 <version>0</version>
                 <currentcopystatus>1</currentcopystatus>
                 <properties/>
              </channel>
           </channels>
           <emailtype><![CDATA[]]></emailtype>
           <label><![CDATA[calendar_display_events]]></label>
           <description><![CDATA[List all events of one calendar at one place]]></description>
           <id>9</id>
           <version>0</version>
           <currentcopystatus>1</currentcopystatus>
           <properties/>
        </dependenttemplate>
     </requestobject>
     <webspacename/>
     <nofiledata>false</nofiledata>
     <subject/>
  </dependenttemplaterequest>
  </exportRequestXml><exportRequestXml>
  <dependenttemplaterequest>
     <action><![CDATA[create]]></action>
     <requestobject>
        <dependenttemplate>
           <modulelabel><![CDATA[calendar_groups]]></modulelabel>
           <filenamefield><![CDATA[administrators]]></filenamefield>
           <usefilenamefield>false</usefilenamefield>
           <filenamebase><![CDATA[calendar_list]]></filenamebase>
           <filenameextension><![CDATA[html]]></filenameextension>
           <path><![CDATA[calendar_app/calendar_lists]]></path>
  <script><![CDATA[<%-- #BeginRZ-PageHeader --%>
  <%@ page language="java" %>
  <%@ include file="/util/setup_template_header.jsp" %>
  <%-- #EndRZ-PageHeader --%>
  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  <html>
  <head>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  <link href="calendar_style.css" rel="stylesheet" type="text/css">
  <title>Calendar Administration for a Group</title>
  <style>
  select {
   width='1.6 in';
   background-color='#FFFFE0';
  }
  </style><%--#RevizeProperties: USE REVIZE MENU (DOCUMENT PROPERTIES) TO EDIT DATA BELOW:
  status=edit
  options=
  server=cms3.revize.com
  projectName=genessee
  label=calendar_list
  location=calendar_app/calendar_lists/calendar_list.html
  version=4
  docType=template
  subType=dependent
  moduleName=calendar_groups
  fieldName=
  channels=revize|
  description=
  --%>
  </head>
  <body class="adminPage" onLoad="setup();">
  <%@ include file="/util/setup_template_javascript.jsp" %>
  <script src="calendar_app.js"></script>
  <script>
  /*--------------------------------------------------------------------------------
  Following code executes before page is completely loaded
  ---------------------------------------------------------------------------------*/
  var topframe = null;
  if (RZwinaccess(opener))
  {
  	topframe = opener.topframe
  	var headerFrame = topframe.mainFrame.headerFrame
  }
  
  var RZdeleteCalendar = "delete_calendar-";
  
  
  /*--------------------------------------------------------------------------------
  Code to set the permission module depending on the logged-in user
  ---------------------------------------------------------------------------------*/
  if (RZwinaccess(opener)
  && opener.topframe.mainFrame.RZisValidCalendarAdministrator() )
  	RZ.permits.modules.calendar_names='crud';
  else
  	RZ.permits.modules.calendar_names='r';
  
  /*-------------------------------------------------------------------------------
  Called by onload handler; if delete occured, delete child calendar entries.
  --------------------------------------------------------------------------------*/
  function setup()
  {
  	if (topframe == null)
  	{
  		window.close()
  		return;
  	}
  
  	var action = topframe.RZ.calendar.openaction;
  	topframe.RZ.calendar.openaction = '';
  
  	if (action.indexOf(RZdeleteCalendar) != -1)
  	{
  		var calId = action.substring(RZdeleteCalendar.length);
  
  		//Build url call to calendar_calendar_delete.jsp for events deletion
  		RZ.parameters = RZ.page.pathname + "/calendar_calendar_delete.jsp";
  		RZaddUrlParameter('calendarid=' + calId);
  		RZaddUrlParameter('fromurl=' + escape(location.href));
  
  		if (topframe.RZ.debug) RZaddUrlParameter('debug');
  
  		location.href = RZ.parameters;
  		return;
  	}
  }
  
  RZsetuphandler("ondelete", "onDelete()" )
  /*-------------------------------------------------------------------------------
  onDelete handler is called when delete button clicked and confirmed.
  Sets flag to delete calendars after delete completed.
  --------------------------------------------------------------------------------*/
  function onDelete()
  {
  	if (RZwinaccess(opener))
  	{
  		topframe.RZ.calendar.openaction = RZdeleteCalendar + RZ.recordid;
  		return true;
  	}
  
  	RZnote('Delete Request not processed because calendar window not accessible')
  	return false;
  }
  /*-----------------------------------------------------------------------------------------------
  //method to display rollup settings
  -----------------------------------------------------------------------------------------------*/
  function listRollupTo(cal_name)
  {
  	if (!RZwinaccess(opener)) return '';
  
  	// var toReturn = '<table><tr><td wrap><u>Events of this calendar<br/> can display in</u></td></tr>';
  	var toReturn='';
  
  	var obj = headerFrame.calendar_heading.calendarName;	//header drop down object
  	text =  new Array();
  
  	for (var io = 0; io < obj.options.length; io++)
  	{
  		if(obj.options.item(io).text.indexOf("--") == 0)
  			text[io] = obj.options.item(io).text.substring(2);
  		else
  			text[io] = obj.options.item(io).text;
  	}
  
  	 for (var i = 0; i < obj.options.length; i++)
  	 {
  		if(cal_name == text[i])
  		{
  			var calendar_id = obj.options.item(i).value;
  			var show_all = obj.options.item(i).showall;
  			var show_in_all = obj.options.item(i).show_in_all;
  
  			var rollup_list = [];
  			if (obj.options.item(i).rolluplist)
  				rollup_list = obj.options.item(i).rolluplist.split("|");
  
  			var restricted_list = [];
  			if (obj.options.item(i).restrictedlist)
  				restricted_list = obj.options.item(i).restrictedlist.split("|");
  
  			if(show_in_all == "yes")
  			{
  				for (var j = 0; j < obj.options.length; j++)
  				{
  					if(obj.options.item(j).restrictedlist.indexOf(calendar_id) != -1 )
  						toReturn += '<font color="red">' + text[j] + '</font></br>';
  					else if(cal_name != text[j])
  						toReturn += text[j] + '</br>';
  				}
  			}
  			else
  			{
  				for(var r=0; r<rollup_list.length; r++)
  				{
  					for (var k = 0; k < obj.options.length; k++)
  					{
  						if(obj.options.item(k).value == rollup_list[r])
  						{
  							if(obj.options.item(k).restrictedlist.indexOf(calendar_id) != -1)
  								toReturn += '<font color="red">' + text[k] + '</font></br>';
  							else if(cal_name != text[k])
  								toReturn += text[k] + '</br>';
  						}
  					}
  				}
  			}
  		}
  	}
  	if (toReturn == '') toReturn = '&nbsp;'
  	return toReturn;
  }
  /*-----------------------------------------------------------------------------------------------
  -----------------------------------------------------------------------------------------------*/
  function listRollupFrom(cal_name)
  {
  	if (!RZwinaccess(opener)) return '';
  
  	//var toReturn = '<table><tr><td nowrap><u>Calendars whose events<br/> can appear in this<br/> calendar</u></td></tr>';
  	//var toReturn='<table><tr><td wrap>';
  	var toReturn='';
  	var obj = headerFrame.calendar_heading.calendarName;
  	text = new Array();
  
  	for (var iss = 0; iss < obj.options.length; iss++)
  	{
  		if(obj.options.item(iss).text.indexOf("--") == 0)
  			text[iss] = obj.options.item(iss).text.substring(2);
  		else
  			text[iss] = obj.options.item(iss).text;
  	}
  
  	var masterCalendar_name = topframe.RZ.calendar.default_name;
  	if(cal_name == masterCalendar_name)
  	{
  		for (var mas = 0; mas < obj.options.length; mas++)
  			toReturn += '' + text[mas] + '<br>';
  			//toReturn += '<tr><td>' + text[mas] + '</td></tr>';
  	}
  	else
  	{
  		for (var is = 0; is < obj.options.length; is++)
  		{
  			if(cal_name == text[is])
  			{
  				var calendar_id = obj.options.item(is).value;
  				var show_all = obj.options.item(is).showall;
  				var show_in_all = obj.options.item(is).show_in_all;
  
  				var rollup_list = [];
  				if (obj.options.item(is).rolluplist)
  					rollup_list = obj.options.item(is).rolluplist.split("|");
  	
  				var restricted_list = [];
  				if (obj.options.item(is).restrictedlist)
  					restricted_list = obj.options.item(is).restrictedlist.split("|");
  
  				if(show_all == "yes")
  				{
  					for (var js = 0; js < obj.options.length; js++)
  					{
  						if(obj.options.item(js).rolluplist.indexOf(calendar_id) != -1
  						|| obj.options.item(js).show_in_all !="yes")
  						{
  							if(cal_name != text[js])
  								toReturn += '' + text[js] + '<br>';
  						}
  						else if(cal_name != text[js])
  							toReturn += '<font color="red">' + text[js] + '</font><br>';
  					}
  				}
  				else
  				{
  					for (var ks = 0; ks< obj.options.length; ks++)
  					{
  						var restrict = "true";
  
  						for(var rs=0; rs<restricted_list.length; rs++)
  						{
  							if(obj.options.item(ks).value == restricted_list[rs])
  								restrict = "false";
  						}
  						if(restrict == "false")
  						{
  							if(obj.options.item(ks).rolluplist.indexOf(calendar_id) != -1
  							|| obj.options.item(js).show_in_all !="yes")
  							{
  								if(cal_name != text[ks])
  									toReturn += '' + text[ks] + '<br>';
  							}
  							else if(cal_name != text[ks])
  								toReturn += '<font color="red">' + text[ks] + '</font><br>';
  						}
  					}
  				}
  			}
  		}
  	}
  	//toReturn += '</table>';
  	if (toReturn == '') toReturn = '&nbsp;'
 	return toReturn;
 }
  /*-----------------------------------------------------------------------------------------------
 END OF JAVASCRIPT FUNCTIONS
 -----------------------------------------------------------------------------------------------*/
 </script>
  <table align="CENTER" border="0">
    <tr>
      <td align="CENTER">
        <h3><font face="helvetica,arial" color="#616055"><strong>
  	  <a href="javascript:topframe.setDebug(window)"><font color="#FFFFFF">&nbsp;&nbsp;&nbsp;</font></a>
  	  List of Calendars for Group: <rz:fetch module="calendar_groups" field="group_name" output="html"
 		options="size=30,wrap=Virtual"/>
 	  <a href="javascript:topframe.RZstartDebugger()"><font color="#FFFFFF">&nbsp;&nbsp;&nbsp;</font></a>
        <script>
        if (topframe.RZ.debug) document.write('<br /><font color="red">Debug Mode</font>')
  	  </script>
  	  </strong></font></h3>
  	</td>
    </tr>
    <tr>
      <td align="CENTER" height="40">
        <%-- #BeginRZ-ActionImage --%>
        <%-- Option:type=EditListInsertImage --%>
        <%-- Option:imageSrcURL=../images/edit/new.gif --%>
        <script>
  RZ.module = 'calendar_names'; RZ.linkname = '';
  RZ.recordid = 'new';
  RZ.nexturl = 'calendar_list-editform.jsp';
  RZ.popupwidth = ''; RZ.popupheight = ''; RZ.popupscroll = '';
  RZ.img = '<rz:link file="/calendar_app/images/buttons/new.gif" alt="New Item" border="0" />';
  RZ.set = 'calendar_names.groupid=<%=rz.editrecordid%>';
  RZ.options = '';
  if (typeof RZaction != 'undefined') RZaction('newitem');
  </script>
        <%-- #EndRZ-ActionImage --%>
        <%-- #BeginRZ-ActionImage --%>
        <%-- Option:type=EditListExitImage --%>
        <%-- Option:forwardURL= --%>
        <%-- Option:imageSrcURL=../images/edit/exit.gif --%>
      <!--REVIZE-- CANCEL UPDATE AND RETURN TO PRIOR PAGE (edit list) -->
        <script>
  RZ.nexturl = 'calendar_groups.html';
  RZ.img = '<rz:link file="/calendar_app/images/buttons/cancel.gif" alt="Exit Screen" border="0" />';
  RZ.options = '';
  if (typeof RZaction != 'undefined') RZaction('exit');
  </script>
        <table width="750">
        </table>
        <%-- #EndRZ-ActionImage --%>
      </td>
    </tr>
  </table>
  <table border="0" align="CENTER" cellpadding="3" cellspacing="0">
    <tr bgcolor="#FFFFFF" align="LEFT">
      <th valign="top" class="bordermiddle"><strong><font color="#000000" size="2" face="Arial, Helvetica, sans-serif">Action</font></strong></th>
      <th valign="top" class="bordermiddle"><strong><font color="#000000" size="2" face="Arial, Helvetica, sans-serif">Calendar Name<br>
        click to view events </font></strong></th>
      <th valign="top" class="bordermiddle"><strong><font color="#000000" size="2" face="Arial, Helvetica, sans-serif">Calendar<br>
        Administrators</font></strong></th>
      <th valign="top" class="bordermiddle"><p><strong><font color="#000000" size="2" face="Arial, Helvetica, sans-serif">Calendar<br>
      </font></strong><strong><font color="#000000" size="2" face="Arial, Helvetica, sans-serif">Editors</font></strong></p></th>
      <th valign="top" nowrap class="bordermiddle"><strong><font color="#000000" size="2" face="Arial, Helvetica, sans-serif">Other Calendars <br>
        that can place events<br>
        in this calendar</font></strong></th>
      <th valign="top" nowrap class="bordermiddle"><strong><font color="#000000" size="2" face="Arial, Helvetica, sans-serif">Other</font><font color="#000000" size="2" face="Arial, Helvetica, sans-serif"> Calendars<br>
        that can show this<br>
        Calendar's Events</font></strong></th>
    </tr>
    <rz:list module="calendar_names" sort="calendar_name asc" output="none"
   options="" filter="(calendar_names.groupid=pagerecord._recordid)"> <a name="updated"></a>
    <% while ( rz.listnext() ){
  			if (rz.listindex < 0) break; //no active records (e.g. no information available)
  		%>
    <rz:listbody>
    <tr>
      <td colspan="6" valign="top" nowrap class="bordermiddle"><hr></td>
    </tr>
    <tr>
      <td valign="top" nowrap class="bordermiddle">
        <%-- #BeginRZ-ActionImage --%>
        <%-- Option:type=EditListEditImage --%>
        <%-- Option:imageSrcURL=../images/edit/edit_sm.gif --%>
        <!--Revize-- Edit Item -->
        <script>
  		RZ.module = '<%=rz.listmodule%>'; RZ.linkname = '';
  		RZ.recordid = '<%=rz.listitemid()%>';
  		RZ.nexturl = 'calendar_list-editform.jsp';
  		RZ.popupwidth = ''; RZ.popupheight = ''; RZ.popupscroll = '';
  		RZ.img = '<rz:link file="/calendar_app/images/buttons/edit_sm.gif" alt="Edit Item" border="0"/>';
  		RZ.set = '';
  		RZ.options = '';
  		if (RZwinaccess(opener))
  		{
  			if (opener.topframe.mainFrame.RZisAdministrator()
  			|| RZ.recordid == topframe.RZ.calendar.id)
  				RZaction('edititem');
  		}
  		</script>
        <%-- #EndRZ-ActionImage --%>
        <%-- #BeginRZ-ActionImage --%>
        <%-- Option:type=EditListDeleteImage --%>
        <%-- Option:forwardURL= --%>
        <%-- Option:imageSrcURL=../images/edit/delete_sm.gif --%>
        <script>
  		RZ.module = '<%=rz.listmodule%>';
  		RZ.recordid = '<%=rz.listitemid()%>';
  		RZ.name = 'RZdelete' + RZ.recordid;
  		RZ.img = '<rz:link file="/calendar_app/images/buttons/delete_sm.gif" alt="Edit Item" border="0"/>';
  		RZ.options = '';
  		if (RZwinaccess(opener))
  		{
  			if (opener.topframe.mainFrame.RZisAdministrator()
  			|| RZ.recordid == topframe.RZ.calendar.id)
  				RZaction('delete');
  		}
  		</script>
        <%-- #EndRZ-ActionImage --%>
      </td>
      <td align="left" valign="TOP" nowrap class="bordermiddle"><font size="2" face="Arial, Helvetica, sans-serif"> <rz:link template="calendarX_activemonths" module="calendar_names" field="calendar_name" output="none" /> <rz:link template="calendarX_activeweeks" module="calendar_names" output="none" /> <rz:link template="calendar_display_events" module="calendar_names" field="calendar_name" output="none" /> <a href="<%=rz.link%>">
            <%
  			String calname = rz.fetch("calendar_names", "calendar_name");
  			calname = calname.replaceAll("%20"," ");
  			calname = calname.replaceAll("&sqout","'");
  			calname = StringUtils.convertStringForSource(calname);
  		%>
            <script>document.write(<%=calname%>);</script>
          </a> </font></td>
      <td align="left" valign="TOP" class="bordermiddle"> <font size="2" face="Arial, Helvetica, sans-serif">
        <% out.println(addRoleUserOptions( rz.fetch("calendar_names", "administrators"),"admins" )); %>
 &nbsp;</font></td>
      <td align="left" valign="TOP" class="bordermiddle"> <font size="2" face="Arial, Helvetica, sans-serif">
        <% out.println(addRoleUserOptions( rz.fetch("calendar_names", "editors"),"editors" )); %>
 &nbsp;</font></td>
      <td align="LEFT" valign="TOP" class="bordermiddle"> <font size="2" face="Arial, Helvetica, sans-serif">
        <script>document.write(listRollupTo(<%=calname%>));</script>
      </font></td>
      <td align="LEFT" valign="TOP" class="bordermiddle"><font size="2" face="Arial, Helvetica, sans-serif">
        <script>document.write(listRollupFrom(<%=calname%>));</script>
      </font></td>
    </tr>
    </rz:listbody>
   <%}%>
    </rz:list>
    <tr>
      <td colspan="6" align="center" class="bordermiddle"> </td>
    </tr>
  </table>
  </body>
  </html>
  <%!
  	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)+ "<br>"; } else { toReturn += "" + item + "<br>"; } i = indexPipe + 1; } else if ( i < lenList ) { item = inList.substring(i, lenList); if( item.startsWith( "_" ) ) { toReturn += "" + item.substring(1) + "<br>"; } else { toReturn += "" + item + "<br>"; } break; } } } //toReturn += "</table>"; return toReturn; } %>]]></script> <channels> <channel> <location><![CDATA[../www/revize/tombstone]]></location> <host><![CDATA[]]></host> <user><![CDATA[]]></user> <password><![CDATA[]]></password> <isremote>false</isremote> <to><![CDATA[]]></to> <cc><![CDATA[]]></cc> <bcc><![CDATA[]]></bcc> <subject><![CDATA[]]></subject> <isemail>false</isemail> <issremote>false</issremote> <isfilesystem>true</isfilesystem> <isreferencefilepublish>false</isreferencefilepublish> <body><![CDATA[]]></body> <hostkey><![CDATA[]]></hostkey> <portno>21</portno> <eserver><![CDATA[]]></eserver> <label><![CDATA[revize]]></label> <description><![CDATA[Revize Server Output Channel]]></description> <id>-1</id> <version>0</version> <currentcopystatus>1</currentcopystatus> <properties/> </channel> </channels> <emailtype><![CDATA[]]></emailtype> <label><![CDATA[calendar_list]]></label> <description><![CDATA[]]></description> <id>4</id> <version>0</version> <currentcopystatus>1</currentcopystatus> <properties/> </dependenttemplate> </requestobject> <webspacename/> <nofiledata>false</nofiledata> <subject/> </dependenttemplaterequest> </exportRequestXml><exportRequestXml> <uniquetemplaterequest> <action><![CDATA[create]]></action> <requestobject> <uniquetemplate> <filenamebase><![CDATA[calendar_viewByMonth_body]]></filenamebase> <filenameextension><![CDATA[html]]></filenameextension> <path><![CDATA[calendar_app/calendar_monthView]]></path> <script><![CDATA[<%-- #BeginRZ-PageHeader --%> <%@ page language="java" %> <%@ include file="/util/setup_template_header.jsp" %> <%-- #EndRZ-PageHeader --%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Month View</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="../calendar_style.css" rel="stylesheet" type="text/css"> <%--#RevizeProperties: USE REVIZE MENU (DOCUMENT PROPERTIES) TO EDIT DATA BELOW: status=edit options=