|
<%-- #BeginRZ-ActionImage --%> <%-- Option:type=EditListExitImage --%> <%-- Option:forwardURL= --%> <%-- Option:imageSrcURL=../../images/edit/exit.jpg --%>
<%-- #EndRZ-ActionImage --%> |
Category |
Seq |
Description |
Notifications |
|
<%
//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;
%>
<%
//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 filter: [" + filter + "]";
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 = " filter: [" + filter + "]";
//out.println(rz.content+note);
notify.log("orphan webspace_notifyme_subscriptions filter: [" + filter + "]");
}%>
|
<%
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);
%>
<%-- #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 --%>
id=<%=rz.recordid%> |
| <%
seqno = rz.content; %>
<% 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%>
|
<%
} %><%
if (!type.equals("") && calendarId<=0)
{
seqno = (EZ.toInt(seqno) + 1) + ""; %>
<%-- #BeginRZ-ActionButton --%>
<%-- Option:type=EditListInsertButton --%>
<%-- Option:caption=new --%>
<%-- #EndRZ-ActionButton --%>
|
<%
}
%>
<% if (rz.listindex < rz.listlength) { %>
|
<% } %>
<%}%>
* Notifications only allowed for Revize managed pages
|
|