%@ include file="/plugins/setup/setup_include_header.jsp" %><%--
__________________________________________________________________________________________
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
__________________________________________________________________________________________
--%>
<%
String width = StringUtils.getParameter(request,"width");
String height = StringUtils.getParameter(request,"height");
String padding = StringUtils.getParameter(request,"padding");
if (!padding.equals("")) padding = " class=\"" + padding + "\"";
%>
<%
{ //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;
}
parentsectionid="0";
%>