<%-- #RevizeProperties USE REVIZE MENU (DOCUMENT PROPERTIES) TO EDIT DATA BELOW: status=new options= server=localhost:8080 projectName=jamesisland label= location=notify-editlist.jsp version= docType=editpage subType=list moduleName= fieldName= channels=| description= --%><%-- #BeginRZ-PageHeader --%><%@page language="java" %><%@include file="/util/setup_editlist_header.jsp" %><%-- #EndRZ-PageHeader --%><%@ include file = "/security/page_authentication.jsp" %> Email Notify Administration<%@ include file="/util/setup_editlist_javascript.jsp" %> <%@ include file="notify_head_include.jsp" %><% /******************************/ /*BOOKMARK Page specific jsp */ /****************************/ int categoryCount = 0; List categoryList = new ArrayList(); String naNote = "none"; /************************************/ /*BOOKMARK Page Specific Javascript*/ /**********************************/ %> <%@ include file="/util/setup_editlist_before_endhead.jsp" %> <% boolean supportsNewSub = !org.apache.commons.lang.StringUtils.startsWithIgnoreCase(rz.fetch("webspace_notifyme_categories","calendar_id"), "Unknown Field"); %>

Available Notify Subscriptions

Loading . . .


 
<% //arguments: module, ?, ?, sort [seq [asc|desc]... rz.listsetup("webspace_notifyme_subscriptions","", "", ""); while ( rz.listnext() ) { if (rz.listindex < 0) continue; rz.fetch("webspace_notifyme_subscriptions", "type"); if (!categoryList.contains(rz.content)) categoryList.add(rz.content); } rz.listcomplete(); notify.log("categories referenced by subscription records: " + categoryList); %><% categoryCount = rz.listlength; rz.listlimit++; //if (categoryList.size() > 0) rz.listlimit++; String filter = ""; while ( rz.listnext() ) { if (rz.listindex < 0) continue; %> <% while ( rz.listnext() ) { if (rz.listindex < 0) continue; rz.fetch("webspace_notifyme_subscriptions", "type"); categoryList.remove(rz.content); notify.log("removed category: " + rz.content + " ... " + categoryList); %> <% seqno = rz.content; %> <% } %><% if (!type.equals("") && calendarId<=0) { seqno = (EZ.toInt(seqno) + 1) + ""; %> <% } %> <% if (rz.listindex < rz.listlength) { %> <% } %> <%}%>
<%-- #BeginRZ-ActionImage --%> <%-- Option:type=EditListExitImage --%> <%-- Option:forwardURL= --%> <%-- Option:imageSrcURL=../../images/edit/exit.jpg --%> <%-- #EndRZ-ActionImage --%>
Category Seq Description Notifications

<% //out.println(rz.listindex+"/"+rz.listlimit+": "+rz.fetch("webspace_notifyme_categories", "desc")); //-------------------------------------------------------------- // last category list item shows orphan pages not listed above //-------------------------------------------------------------- String seqno = "0.00"; String desc = ""; String type = ""; int calendarId = -1; if (rz.listindex == rz.listlimit) { if (categoryList.size() == 0) filter = "type=x"; else { filter = ""; for (int i=0;i"; out.println("Inactive Pages -- Category Deleted" + note); } notify.log("orphan webspace_notifyme_subscriptions filter: [" + filter + "]"); } else { if(supportsNewSub){ calendarId = org.apache.commons.lang.math.NumberUtils.toInt(rz.fetch("webspace_notifyme_categories","calendar_id")); } rz.fetch("webspace_notifyme_categories","desc"); desc = rz.content; type = rz.recordid; filter = "type=" + rz.recordid; rz.fetch("webspace_notifyme_subscriptions", "desc", "raw", filter); out.print("• " + desc); if (rz.nodata) out.print(" - no pages"); String note = ""; //out.println(rz.content+note); notify.log("orphan webspace_notifyme_subscriptions filter: [" + filter + "]"); }%>
<%-- #BeginRZ-ActionImage --%> <%-- Option:type=EditListEditImage --%> <%-- Option:imageSrcURL=../../images/edit/edit_small.jpg --%> <%-- #EndRZ-ActionImage --%><%-- #BeginRZ-ActionImage --%> <%-- Option:type=EditListDeleteImage --%> <%-- Option:forwardURL= --%> <%-- Option:imageSrcURL=../../images/edit/delete_small.jpg --%> <%-- #EndRZ-ActionImage --%>   <% String url = rz.content; %> <%= rz.content.equals("") ? url : rz.content %> <% String star = ""; if (rz.content.equalsIgnoreCase("NA")) { naNote = "block"; star = " *"; } %><%=NotifyMe.NOTIFICATION_CHOICES.get(rz.content)+""%><%=star%>
<%-- #BeginRZ-ActionButton --%> <%-- Option:type=EditListInsertButton --%> <%-- Option:caption=new --%> <%-- #EndRZ-ActionButton --%>

* Notifications only allowed for Revize managed pages
 
webspace_config settings <%-- #BeginRZ-ActionButton --%> <%-- Option:type=ForwardEditFormImage --%> <%-- Option:caption=Update --%> <%-- #EndRZ-ActionButton --%>
Email From :
From: email address for any notify email sent to any subscriber
(webspace_config.admin_email)
Email To:

To: email address for notify email sent to any subscriber (optional)
(webspace_config.to_email)
 
* Manage Subscriptions Web Page for Webspace: <%=rz.webspace%>
<% String url = rz.content; if (url.length() == 0) { url = "--unknown--"; out.print(rtn.channels.revizeBaseUrl + url); if (rtn.channels.live != null) out.println("
" + rtn.channels.liveBaseUrl + url); } else { String html = "" + rtn.channels.revizeBaseUrl + url + ""; if (rtn.channels.live != null) html += "
" + rtn.channels.liveBaseUrl + url + ""; out.println(html); }%>
Used for Email Link to Manage Subscriptions Web Page
page containing iframe src="notify.jsp"

* webspace css file:
from css parameter on iframe tag
e.g. <iframe src="notify.jsp?css=css/notify.css" ...>

* automatically saved whenever iframe updated.

 
<%@ include file="notify_footer_include.jsp" %> <%@ include file="/util/setup_editlist_before_endbody.jsp" %>