##local.define(ExportScript) ##local.define(ExportHeader)

##local.define(ExportFooter)
##local.define(ExportHeaderInclude) ##local.define(PageHeaderInclude) ##local.define(ExportFrameContentForPortal3) ##local.ExportScript
/*Needed for the callback resize*/ ##local.ExportHeader
##if Options.IsEmpty(ReportId)
##leg.ZONESOPAC.Export.NoReport
##else
##leg.ZONESOPAC.Export.ContextText
##local.define(NoImage)0 ##sessioncfg.With(formatMap,ZONES.Export.FormatChoice)
##if formatMap.item ##formatMap.ForEach(format,item) ##if format.Format ##if format.FileName ##local.define(ExportURL)APS_ZONES_REPORT?reportid=##Options.Data(ReportId)&format=##format.Format&lang=##this.StyleSetAttribute(LANG)&Filename=##format.FileName ##else ##local.define(ExportURL)APS_ZONES_REPORT?reportid=##Options.Data(ReportId)&format=##format.Format&lang=##this.StyleSetAttribute(LANG) ##endif ##local.define(ExportURLAlt) ##local.define(ExportURLTip) ##if format.Alt ##local.define(ExportURLAlt)##format.QualData(Alt) ##endif ##if format.Tip ##local.define(ExportURLTip)##format.QualData(Tip) ##endif ##if format.IMG ##else ##local.define(NoImage)1 ##endif ##endif ##else ##leg.ZONESOPAC.Export.NoFormat ##endif
##if local.IsEqual(NoImage,1)
##formatMap.ForEach(format,item) ##if format.Format ##if format.FileName ##local.define(ExportURL)APS_ZONES_REPORT?reportid=##Options.Data(ReportId)&format=##format.Format&lang=##this.StyleSetAttribute(LANG)&Filename=##format.FileName ##else ##local.define(ExportURL)APS_ZONES_REPORT?reportid=##Options.Data(ReportId)&format=##format.Format&lang=##this.StyleSetAttribute(LANG) ##endif ##local.define(ExportURLAlt) ##local.define(ExportURLTip) ##if format.Alt ##local.define(ExportURLAlt)##format.QualData(Alt) ##endif ##if format.Tip ##local.define(ExportURLTip)##format.QualData(Tip) ##endif ##if format.IMG ##else ##endif ##endif
##endif ##endif
##local.ExportFooter
##local.define(ExportFrameContent) ##local.ExportScript
##local.ExportHeader
##if Options.IsEmpty(ReportId) ##leg.ZONESOPAC.Export.NoReport ##else
##leg.ZONESOPAC.Export.ContextText

##sessioncfg.With(formatMap,ZONES.Export.FormatChoice) ##if formatMap.item ##formatMap.ForEach(format,item) ##if format.Format ##if format.FileName ##local.define(ExportURL)APS_ZONES_REPORT?reportid=##Options.Data(ReportId)&format=##format.Format&lang=##this.StyleSetAttribute(LANG)&Filename=##format.FileName ##else ##local.define(ExportURL)APS_ZONES_REPORT?reportid=##Options.Data(ReportId)&format=##format.Format&lang=##this.StyleSetAttribute(LANG) ##endif ##local.define(ExportURLAlt) ##local.define(ExportURLTip) ##if format.Alt ##local.define(ExportURLAlt)##format.QualData(Alt) ##endif ##if format.Tip ##local.define(ExportURLTip)##format.QualData(Tip) ##endif ##if format.IMG ##else ##endif ##if format.label ##endif ##endif ##else ##endif
##local.ExportURLAlt ##local.ExportURLAlt ##format.QualData(label)
##leg.ZONESOPAC.Export.NoFormat
##endif
##local.ExportFooter
##local.define(FrameContent) ##if request.IsEqual(SubStyle,ForPortal3) ##else ##endif ##if sessioncfg.ZONES.Print.Enabled ##if request.EmailOnly ##else ##endif ##endif ##if sessioncfg.DB.Config.ZONESERVICES.ReportEmailing ##if request.PrintOnly ##else ##endif ##endif
##if request.IsEqual(SubStyle,ForPortal3) ##else ##endif
##if Options.IsEqual(Export,1) ##if request.IsEqual(SubStyle,"ForPortal3") ##local.ExportHeaderInclude ##local.define(FrameContent)##local.ExportFrameContentForPortal3 ##else ##local.define(FrameContent)##local.ExportFrameContent ##endif ##endif ##include(FrameBody)