<%@ include file="/plugins/setup/setup_include_header.jsp" %> <%-- #RevizeProperties USE REVIZE MENU (DOCUMENT PROPERTIES) TO EDIT DATA BELOW: status=edit options= server=localhost:8080 projectName=willoughbyhills label=banners_flash location=banners/banners.banners_flash.include.jsp version= docType=include subType=include moduleName= fieldName= channels=revize| description= --%><%-- __________________________________________________________________________________________ banners_flash Code used to include plugin on Revize page: put flash banner on home page or dependent template (e.g. freeform) Parameters: width (required) String that defines width of flash banner height (required) String that defines height of flash banner padding (optional) padding added to flash div style attributes section (optional) "home" to use home section banner; otherwise blank (default) If home specified, The edit button only appears on the home page debug (optional) true to enable debug println statements; otherwise false __________________________________________________________________________________________ --%><% String VERSION = "v01-27-2012"; %><%-- Allows DW to load revize.css, display hints & apply source formatting (but NOT published) --%><% //----- input parameters -----\\ <%-- --%> <% %>
<%-- #BeginRZ-ActionImage --%> <%-- Option:type=EditListEditImage --%> <%-- Option:imageSrcURL=../images/edit/edit_this_flash.jpg --%> <%-- #EndRZ-ActionImage --%>
<% { //contain scope of jsp variables to this code //TODO: replace with rz.pagesectiontop when available String parentsectionid = rz.pagesectionid; String myparentid = rz.pageparentid; int cnt = 0; while (true && !rz.pagerecordid.equals("")) //not top section or home page { cnt++; rz.fetch("links","linktosectionid", "_recordid="+parentsectionid); if (rz.content.equals("0")) break; //parent section is home parentsectionid = rz.content; if (cnt == 10) break; } //TODO: parentsectionid="0"; %><% //out.println("parentsectionid="+parentsectionid+" "+rz.content+" "+rz.nodata); if (!rz.nodata && rz.content.indexOf("noimage.gif") == -1) { %>
> <% //TODO: where="<%="pagesectionid=0"+parentsectionid if (width.equals("") || width.equals("")) out.print("both height and width are required
width=" + width + "
height=" + height); else { %>
<% } } } %>