package org.apache.jsp.webcontent.birt.pages.dialog;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.eclipse.birt.report.presentation.aggregation.IFragment;
import org.eclipse.birt.report.context.BaseAttributeBean;
import org.eclipse.birt.report.IBirtConstants;
import org.eclipse.birt.report.utility.ParameterAccessor;
import org.eclipse.birt.report.resource.BirtResources;

public final class DialogContainerFragment_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static final javax.servlet.jsp.JspFactory _jspxFactory =
          javax.servlet.jsp.JspFactory.getDefaultFactory();

  private static java.util.List<java.lang.String> _jspx_dependants;

  private javax.el.ExpressionFactory _el_expressionfactory;
  private org.apache.tomcat.InstanceManager _jsp_instancemanager;

  public java.util.List<java.lang.String> getDependants() {
    return _jspx_dependants;
  }

  public void _jspInit() {
    _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
    _jsp_instancemanager = org.apache.jasper.runtime.InstanceManagerFactory.getInstanceManager(getServletConfig());
  }

  public void _jspDestroy() {
  }

  public void _jspService(final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response)
        throws java.io.IOException, javax.servlet.ServletException {

    final javax.servlet.jsp.PageContext pageContext;
    final javax.servlet.ServletContext application;
    final javax.servlet.ServletConfig config;
    javax.servlet.jsp.JspWriter out = null;
    final java.lang.Object page = this;
    javax.servlet.jsp.JspWriter _jspx_out = null;
    javax.servlet.jsp.PageContext _jspx_page_context = null;


    try {
      response.setContentType("text/html; charset=utf-8");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, false, 0, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write('\n');
      org.eclipse.birt.report.presentation.aggregation.IFragment fragment = null;
      fragment = (org.eclipse.birt.report.presentation.aggregation.IFragment) _jspx_page_context.getAttribute("fragment", javax.servlet.jsp.PageContext.REQUEST_SCOPE);
      if (fragment == null){
        throw new java.lang.InstantiationException("bean fragment not found within scope");
      }
      out.write('\n');
      org.eclipse.birt.report.context.BaseAttributeBean attributeBean = null;
      attributeBean = (org.eclipse.birt.report.context.BaseAttributeBean) _jspx_page_context.getAttribute("attributeBean", javax.servlet.jsp.PageContext.REQUEST_SCOPE);
      if (attributeBean == null){
        throw new java.lang.InstantiationException("bean attributeBean not found within scope");
      }
      out.write('\n');
      out.write('\n');
      out.write("\n");
      out.write("<div id=\"");
      out.print( fragment.getClientId( ) );
      out.write("\" class=\"dialogBorder\" style=\"display:none;position:absolute;z-index:220\">\n");
      out.write("\t<iframe id=\"");
      out.print( fragment.getClientId( ) );
      out.write("iframe\"  name=\"");
      out.print( fragment.getClientId( ) );
      out.write("iframe\" style=\"z-index:-1; display: none; left:0px; top:0px;\n");
      out.write("\t\t\t\t\t background-color: #ff0000; opacity: .0; filter: alpha(opacity = 0); position: absolute;\" frameBorder=\"0\" scrolling=\"no\" src=\"birt/pages/common/blank.html\">\n");
      out.write("\t</iframe>\t\n");
      out.write("\t<div id=\"");
      out.print( fragment.getClientId( ) );
      out.write("dialogTitleBar\" class=\"dialogTitleBar dTitleBar\">\n");
      out.write("\t\t<div class=\"dTitleTextContainer\">\n");
      out.write("\t\t\t<table style=\"width: 100%; height: 100%;\">\n");
      out.write("\t\t\t\t<tr>\n");
      out.write("\t\t\t\t\t<td class=\"dialogTitleText dTitleText\">\n");
      out.write("\t\t\t\t\t\t");
      out.print( fragment.getTitle( ) );
      out.write("\n");
      out.write("\t\t\t\t\t</td>\n");
      out.write("\t\t\t\t</tr>\n");
      out.write("\t\t\t</table>\n");
      out.write("\t\t</div>\n");
      out.write("\t\t<div class=\"dialogCloseBtnContainer dCloseBtnContainer\">\n");
      out.write("\t\t\t<table style=\"width: 100%; height: 100%; border-collapse: collapse\">\n");
      out.write("\t\t\t\t<tr>\n");
      out.write("\t\t\t\t\t<td>\n");
      out.write("\t\t\t\t\t\t<label class=\"birtviewer_hidden_label\" for=\"");
      out.print( fragment.getClientId( ) );
      out.write("dialogCloseBtn\">\n");
      out.write("\t\t\t\t\t\t\t");
      out.print( 
								BirtResources.getMessage( "birt.viewer.dialog.close" )
							);
      out.write("\n");
      out.write("\t\t\t\t\t\t</label>\t\t\t\t\t\t\n");
      out.write("\t\t\t\t\t\t<div id=\"");
      out.print( fragment.getClientId( ) );
      out.write("dialogCloseBtn\" class=\"dialogCloseBtn dCloseBtn\"/>\n");
      out.write("\t\t\t\t\t</td>\n");
      out.write("\t\t\t\t</tr>\n");
      out.write("\t\t\t</table>\n");
      out.write("\t\t</div>\n");
      out.write("\t</div>\n");
      out.write("\t<!-- overflow is set as workaround for Mozilla bug https://bugzilla.mozilla.org/show_bug.cgi?id=167801 -->\t\t\n");
      out.write("\t<div  class=\"dialogBackground\" style=\"overflow: auto;\"> \n");
      out.write("\t\t<div class=\"dBackground\">\n");
      out.write("\t\t\t<div class=\"dialogContentContainer\" id=\"");
      out.print( fragment.getClientId( ) );
      out.write("dialogContentContainer\">\n");
      out.write("\t\t\t\t");

					if ( fragment != null )
					{
						fragment.callBack( request, response );
					}
				
      out.write("\n");
      out.write("\t\t\t</div>\n");
      out.write("\t\t\t<div class=\"dialogBtnBarContainer\">\n");
      out.write("\t\t\t\t<div>\n");
      out.write("\t\t\t\t\t<div class=\"dBtnBarDividerTop\">\n");
      out.write("\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t<div class=\"dBtnBarDividerBottom\">\n");
      out.write("\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t</div>\n");
      out.write("\t\t\t\t<div class=\"dialogBtnBar\">\n");
      out.write("\t\t\t\t\t<div id=\"");
      out.print( fragment.getClientId( ) );
      out.write("dialogCustomButtonContainer\" class=\"dialogBtnBarButtonContainer\">\n");
      out.write("\t\t\t\t\t\t<div id=\"");
      out.print( fragment.getClientId( ) );
      out.write("okButton\">\n");
      out.write("\t\t\t\t\t\t\t<div id=\"");
      out.print( fragment.getClientId( ) );
      out.write("okButtonLeft\" class=\"dialogBtnBarButtonLeftBackgroundEnabled\"></div>\n");
      out.write("\t\t\t\t\t\t\t<div id=\"");
      out.print( fragment.getClientId( ) );
      out.write("okButtonRight\" class=\"dialogBtnBarButtonRightBackgroundEnabled\"></div>\n");
      out.write("\t\t\t\t\t\t\t<input type=\"button\" value=\"");
      out.print( BirtResources.getHtmlMessage( "birt.viewer.dialog.ok" ) );
      out.write("\" \n");
      out.write("\t\t\t\t\t\t\t\ttitle=\"");
      out.print( BirtResources.getHtmlMessage( "birt.viewer.dialog.ok" ) );
      out.write("\"  \n");
      out.write("\t\t\t\t\t\t\t\tclass=\"dialogBtnBarButtonText dialogBtnBarButtonEnabled\"/>\n");
      out.write("\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t\t<div class=\"dialogBtnBarDivider\"></div>\n");
      out.write("\t\t\t\t\t\t<div id=\"");
      out.print( fragment.getClientId( ) );
      out.write("cancelButton\">\n");
      out.write("\t\t\t\t\t\t\t<div class=\"dialogBtnBarButtonLeftBackgroundEnabled\"></div>\n");
      out.write("\t\t\t\t\t\t\t<div class=\"dialogBtnBarButtonRightBackgroundEnabled\"></div>\n");
      out.write("\t\t\t\t\t\t\t<input type=\"button\" value=\"");
      out.print( BirtResources.getHtmlMessage( "birt.viewer.dialog.cancel" ));
      out.write("\" \n");
      out.write("\t\t\t\t\t\t\t\ttitle=\"");
      out.print( BirtResources.getHtmlMessage( "birt.viewer.dialog.cancel" ));
      out.write("\"  \n");
      out.write("\t\t\t\t\t\t\t\tclass=\"dialogBtnBarButtonText dialogBtnBarButtonEnabled\"/>\n");
      out.write("\t\t\t\t\t\t</div> \n");
      out.write("\t\t\t\t\t</div>\t\t\t\t\t\t\t\n");
      out.write("\t\t\t\t</div>\n");
      out.write("\t\t\t</div>\n");
      out.write("\t\t</div>\n");
      out.write("\t</div>\n");
      out.write("</div>\n");
      out.write("\n");
    } catch (java.lang.Throwable t) {
      if (!(t instanceof javax.servlet.jsp.SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try { out.clearBuffer(); } catch (java.io.IOException e) {}
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}
