package jeus_jspwork._moniter._template;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.kldp.ebmsh.moniter.permission.PermissionManager;
import org.kldp.ebmsh.config.EbmsConstants;
import org.kldp.ebmsh.config.EbmsConstants;
import org.kldp.ebmsh.moniter.permission.PermissionManager;

public final class _500_template_5fjsp extends jeus.servlet.jsp2.runtime.HttpJspBase
    implements jeus.servlet.jsp2.runtime.JspSourceDependent {

  private static java.util.Vector _jspx_dependants;

  static {
    _jspx_dependants = new java.util.Vector(4);
    _jspx_dependants.add("/setup/setupCheck.jsp");
    _jspx_dependants.add("/authorize/loginCheck.jsp");
    _jspx_dependants.add("/moniter/common/header.jsp");
    _jspx_dependants.add("/moniter/common/bottom.jsp");
  }

  public java.util.List getDependants() {
    return _jspx_dependants;
  }

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

    JspFactory _jspxFactory = null;
    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;


    try {
      _jspxFactory = JspFactory.getDefaultFactory();
      response.setContentType("text/html; charset=euc-kr");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");

	String contentPage = request.getParameter("contentPage");

	if( contentPage == null )
		contentPage = "";

      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");

	if( !EbmsConstants.configured ) {

      out.write("\r\n");
      out.write("\t\t<script language=\"JavaScript\">\r\n");
      out.write("\t\t\tdocument.location.href = '");
      out.print( request.getContextPath() );
      out.write("/setup/setup.jsp';\r\n");
      out.write("\t\t</script>\r\n");
	
		return ;
	}

      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");

	if( !PermissionManager.isAdminLogin(session) ) {

      out.write("\r\n");
      out.write("\t\t<script language=\"JavaScript\">\r\n");
      out.write("\t\t\tdocument.location.href = '");
      out.print( request.getContextPath() );
      out.write("/authorize/login.jsp';\r\n");
      out.write("\t\t</script>\r\n");
	
		return ;
	}

      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<html>\r\n");
      out.write("\t<head>\r\n");
      out.write("\t\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=euc-kr\" />\r\n");
      out.write("\t\t\r\n");
      out.write("\t\t<link href=\"");
      out.print( request.getContextPath() );
      out.write("/css/common.css\" rel=\"stylesheet\" type=\"text/css\">\r\n");
      out.write("\t\t<link href=\"");
      out.print( request.getContextPath() );
      out.write("/moniter/css/moniter.css\" rel=\"stylesheet\" type=\"text/css\">\r\n");
      out.write("\t\t\t\r\n");
      out.write("\t\t<title>Untitled Document</title>\r\n");
      out.write("\t\t\r\n");
      out.write("\t\t<script type=\"text/JavaScript\">\r\n");
      out.write("\t\t\t<!--\r\n");
      out.write("\t\t\tfunction conditionChanged(select) {\r\n");
      out.write("\t\t\t\tvar index = select.selectedIndex;\r\n");
      out.write("\t\t\t\t\r\n");
      out.write("\t\t\t\tif( select.options[index].value == \"documentId\" ) {\r\n");
      out.write("\t\t\t\t\tdocument.getElementById(\"condition_detail\").innerHTML = \"<input name=\\\"documentId\\\" type=\\\"text\\\" size=\\\"100\\\" maxlength=\\\"255\\\"/>\";\r\n");
      out.write("\t\t\t\t}\r\n");
      out.write("\t\t\t\tif( select.options[index].value == \"messageId\" ) {\r\n");
      out.write("\t\t\t\t\tdocument.getElementById(\"condition_detail\").innerHTML = \"<input name=\\\"messageId\\\" type=\\\"text\\\" size=\\\"100\\\" maxlength=\\\"255\\\"/>\";\r\n");
      out.write("\t\t\t\t}\r\n");
      out.write("\t\t\t\telse if( select.options[index].value == \"period\" ) {\r\n");
      out.write("\t\t\t\t\tdocument.getElementById(\"condition_detail\").innerHTML = \"<input name=\\\"startYear\\\" type=\\\"text\\\" size=\\\"4\\\" maxlength=\\\"4\\\"/>년 <input name=\\\"startMonth\\\" type=\\\"text\\\" size=\\\"2\\\" maxlength=\\\"2\\\"/>월 <input name=\\\"startDay\\\" type=\\\"text\\\" size=\\\"2\\\" maxlength=\\\"2\\\"/>일 - <input name=\\\"endYear\\\" type=\\\"text\\\" size=\\\"4\\\" maxlength=\\\"4\\\"/>년 <input name=\\\"endMonth\\\" type=\\\"text\\\" size=\\\"2\\\" maxlength=\\\"2\\\"/>월 <input name=\\\"endDay\\\" type=\\\"text\\\" size=\\\"2\\\" maxlength=\\\"2\\\"/>일\";\r\n");
      out.write("\t\t\t\t}\r\n");
      out.write("\t\t\t\telse if( select.options[index].value == \"refToMessageId\" ) {\r\n");
      out.write("\t\t\t\t\tdocument.getElementById(\"condition_detail\").innerHTML = \"<input name=\\\"refToMessageId\\\" type=\\\"text\\\" size=\\\"100\\\" maxlength=\\\"255\\\"/>\";\r\n");
      out.write("\t\t\t\t}\r\n");
      out.write("\t\t\t}\r\n");
      out.write("\t\t\t\r\n");
      out.write("\t\t\tfunction popup(url) {\r\n");
      out.write("\t\t\t\twindow.open(url, \"\", \"width=800 height=600 top=100 left=100 scrollbars=no\");\r\n");
      out.write("\t\t\t}\r\n");
      out.write("\t\t\t\r\n");
      out.write("\t\t\tfunction pageMove(url) {\r\n");
      out.write("\t\t\t\tdocument.location.href = url;\r\n");
      out.write("\t\t\t}\r\n");
      out.write("\t\t\t//-->\r\n");
      out.write("\t\t</script>\r\n");
      out.write("\t\t\r\n");
      out.write("\t\t<style type=\"text/css\">\r\n");
      out.write("\t\t<!--\r\n");
      out.write("\t\t.style1 {\r\n");
      out.write("\t\t\tcolor: #0a70b0;\r\n");
      out.write("\t\t\tfont-weight: bold;\r\n");
      out.write("\t\t}\r\n");
      out.write("\t\t-->\r\n");
      out.write("\t\t</style>\r\n");
      out.write("\t</head>\r\n");
      out.write("\r\n");
      out.write("\t<body topmargin=\"0\" leftmargin=\"0\">\r\n");
      out.write("\t\t<table width=\"100%\" height=\"100%\" border=\"0\" cellpadding=\"0\"\r\n");
      out.write("\t\t\tcellspacing=\"0\">\r\n");
      out.write("\t\t\t<tr>\r\n");
      out.write("\t\t\t\t<td valign=\"top\">\r\n");
      out.write("\t\t\t\t\t<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
      out.write("\t\t\t\t\t\t<tr>\r\n");
      out.write("\t\t\t\t\t\t\t<td bgcolor=\"4D8FCF\">\r\n");
      out.write("\t\t\t\t\t\t\t\t<img src=\"");
      out.print( request.getContextPath() );
      out.write("/image/search/logo.gif\" width=\"211\" height=\"39\">\r\n");
      out.write("\t\t\t\t\t\t\t</td>\r\n");
      out.write("\t\t\t\t\t\t</tr>\r\n");
      out.write("\t\t\t\t\t\t<tr>\r\n");
      out.write("\t\t\t\t\t\t\t<td bgcolor=\"#000000\">\r\n");
      out.write("\t\t\t\t\t\t\t\t<div id=\"Menu\">\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<ul>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t<li><a href=\"");
      out.print( request.getContextPath() );
      out.write("/moniter/search/messageSearch.jsp\">받은 메시지 검색</a></li>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t<li><a href=\"");
      out.print( request.getContextPath() );
      out.write("/moniter/search/sendMessageSearch.jsp\">보낸 메시지 검색</a></li>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t<li><a href=\"");
      out.print( request.getContextPath() );
      out.write("/moniter/failHandler/engineFailHandler.jsp\">실패 메시지 처리(엔진)</a></li>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t<li><a href=\"");
      out.print( request.getContextPath() );
      out.write("/moniter/failHandler/biFailHandler.jsp\">실패 메시지 처리(비지니스 로직)</a></li>\t\t\t\t\t\t\t\t\t\t\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t<li><a href=\"");
      out.print( request.getContextPath() );
      out.write("/moniter/environment/environment.jsp\">환경 설정</a></li>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t<li><a href=\"");
      out.print( request.getContextPath() );
      out.write("/authorize/logoutProcess.jsp\">로그 아웃</a></li>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t</ul>\r\n");
      out.write("\t\t\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t\t</td>\r\n");
      out.write("\t\t\t\t\t\t</tr>\r\n");
      out.write("\t\t\t\t\t\t<tr>\r\n");
      out.write("\t\t\t\t\t\t\t<td height=\"30\"\r\n");
      out.write("\t\t\t\t\t\t\t\tstyle=\"PADDING-LEFT: 20px; PADDING-RIGHT: 20px; PADDING-TOP: 10px; PADDING-BOTTOM: 10px;\">\r\n");
      out.write("\t\t\t\t\t\t\t\t<br>");
      out.write("\r\n");
      out.write("\r\n");
      jeus.servlet.jsp2.runtime.JspRuntimeLibrary.include(request, response,  contentPage , out, false);
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t\t\t\t</td>\r\n");
      out.write("\t\t\t\t\t\t</tr>\r\n");
      out.write("\t\t\t\t\t</table>\r\n");
      out.write("\t\t\t\t</td>\r\n");
      out.write("\t\t\t</tr>\r\n");
      out.write("\t\t</table>\r\n");
      out.write("\t</body>\r\n");
      out.write("</html>");
      out.write('\r');
      out.write('\n');
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          out.clearBuffer();
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}
