/* Automatically generated.
 * Copyright (c) 2000 by SAP AG, Walldorf.,
 * http://www.sap.com
 * All rights reserved.
 *
 * This software is the confidential and proprietary information
 * of SAP AG, Walldorf. You shall not disclose such Confidential
 * Information and shall use it only in accordance with the terms
 * of the license agreement you entered into with SAP.
 * Do not edit.
 */

package web;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import ro.emid.common.AppProperties;
import ro.emid.common.constants.AppConstants;
import ro.emid.common.utils.Util;
import ro.emid.common.utils.SessionUtils;
import ro.emid.lpod.LpodSessionUtils;
import ro.emid.common.types.*;


public class tag_template_2d_od_1875650_1618159820883
	extends javax.servlet.jsp.tagext.SimpleTagSupport
{




	private JspContext jspContext;
	private java.io.Writer _jspx_sout;
	private java.lang.String title;
	private java.lang.String breadcrumb;
	private java.lang.String body;


	public java.lang.String getTitle() {
		return this.title;
	}
	public void setTitle(java.lang.String title) {
		this.title = title;
	}
	public java.lang.String getBreadcrumb() {
		return this.breadcrumb;
	}
	public void setBreadcrumb(java.lang.String breadcrumb) {
		this.breadcrumb = breadcrumb;
	}
	public java.lang.String getBody() {
		return this.body;
	}
	public void setBody(java.lang.String body) {
		this.body = body;
	}
	public void setJspContext(JspContext ctx) {
		super.setJspContext(ctx);
		java.util.ArrayList _jspx_nested = null;
		java.util.ArrayList _jspx_at_begin = null;
		java.util.ArrayList _jspx_at_end = null;
		this.jspContext = new com.sap.engine.services.servlets_jsp.lib.jspruntime.JspContextWrapper(ctx, _jspx_nested, _jspx_at_begin, _jspx_at_end, null);
	}

	public JspContext getJspContext() {
		return this.jspContext;
	}

	public void doTag() throws JspException, java.io.IOException {
		com.sap.engine.services.servlets_jsp.lib.jspruntime.PageContextImpl _jspx_pageContext = (com.sap.engine.services.servlets_jsp.lib.jspruntime.PageContextImpl)jspContext;
		HttpServletRequest request = (HttpServletRequest) _jspx_pageContext.getRequest();
		HttpServletResponse response = (HttpServletResponse) _jspx_pageContext.getResponse();
		HttpSession session = _jspx_pageContext.getSession();
		ServletContext application = _jspx_pageContext.getServletContext();
		ServletConfig config = _jspx_pageContext.getServletConfig();
		JspWriter out = jspContext.getOut();
		com.sap.engine.services.servlets_jsp.server.application.InjectionWrapper _jspx_resourceInjector = ((com.sap.engine.services.servlets_jsp.server.application.ServletContextImpl)_jspx_pageContext.getServletContext()).getApplicationContext().getInjectionWrapper();


		if( getTitle() != null ) {
			_jspx_pageContext.setAttribute("title", getTitle());
		}
		if( getBreadcrumb() != null ) {
			_jspx_pageContext.setAttribute("breadcrumb", getBreadcrumb());
		}
		if( getBody() != null ) {
			_jspx_pageContext.setAttribute("body", getBody());
		}
		try {
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/tags/template-od.tag";from=(1,30);to=(3,0)]
			out.print("\r\n\r\n");
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/tags/template-od.tag";from=(3,75);to=(4,0)]
			out.print("\r\n");
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/tags/template-od.tag";from=(4,76);to=(5,0)]
			out.print("\r\n");
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/tags/template-od.tag";from=(5,79);to=(7,0)]
			out.print("\r\n\r\n");
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/tags/template-od.tag";from=(7,48);to=(8,0)]
			out.print("\r\n");
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/tags/template-od.tag";from=(8,57);to=(9,0)]
			out.print("\r\n");
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/tags/template-od.tag";from=(9,45);to=(10,0)]
			out.print("\r\n");
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/tags/template-od.tag";from=(10,53);to=(11,0)]
			out.print("\r\n");
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/tags/template-od.tag";from=(11,49);to=(12,0)]
			out.print("\r\n");
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/tags/template-od.tag";from=(12,42);to=(14,0)]
			out.print("\r\n\r\n");
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/tags/template-od.tag";from=(14,50);to=(16,0)]
			out.print("\r\n\r\n");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/tags/template-od.tag";from=(16,0);to=(28,2)]
			
    String selectedSubTab = "";
    String action = request.getParameter("action");

    if(Util.in(action, "structura-od-evenimente", "lista-evenimente-dispecer", "edit-eveniment-dispecer", "save-eveniment-dispecer", "view-eveniment")){
        selectedSubTab = "home";
    }else if(Util.in(action, "rapoarte-od", "raport-informare-zilnica-od", "raport-evenimente-od")) {
        selectedSubTab = "rapoarte";
    }
	
	CategoryOD centru = LpodSessionUtils.OD.getLocatieCurenta(request.getSession());


// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/tags/template-od.tag";from=(28,2);to=(37,4)]
			out.print("\r\n\r\n<!DOCTYPE html>\r\n<html>\r\n<head>\r\n    <title>EMID / OD - ");
			out.print((java.lang.String) _jspx_pageContext.evaluateInternal("${title}", java.lang.String.class, false, null));
			out.print("</title>\r\n    <meta http-equiv=\"content-type\" content=\"text/html;charset=utf-8\" />\r\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\" />\r\n\r\n    ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/tags/template-od.tag";from=(37,4);to=(37,21)]
			// CustomJspTag.action() - start
			if (_jspx_method_emid_resources_0(_jspx_pageContext, null)) {
				return;
			}
			// CustomJspTag.action() - end
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/tags/template-od.tag";from=(37,21);to=(39,49)]
			out.print("\r\n\r\n    <link rel=\"stylesheet\" type=\"text/css\" href=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/tags/template-od.tag";from=(39,49);to=(39,84)]
			out.print(AppConstants.WEB_RESOURCE_PATH);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/tags/template-od.tag";from=(39,84);to=(39,94)]
			out.print("/lpod.css?");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/tags/template-od.tag";from=(39,94);to=(39,139)]
			out.print(AppProperties.getInstance().getVersion());
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/tags/template-od.tag";from=(39,139);to=(40,40)]
			out.print("\">\r\n    <script type=\"text/javascript\" src=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/tags/template-od.tag";from=(40,40);to=(40,75)]
			out.print(AppConstants.WEB_RESOURCE_PATH);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/tags/template-od.tag";from=(40,75);to=(40,84)]
			out.print("/lpod.js?");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/tags/template-od.tag";from=(40,84);to=(40,129)]
			out.print(AppProperties.getInstance().getVersion());
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/tags/template-od.tag";from=(40,129);to=(45,4)]
			out.print("\"></script>\r\n</head>\r\n<body>\r\n\r\n<div class=\"header\">\r\n    ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/tags/template-od.tag";from=(45,4);to=(45,18)]
			// CustomJspTag.action() - start
			if (_jspx_method_emid_header_0(_jspx_pageContext, null)) {
				return;
			}
			// CustomJspTag.action() - end
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/tags/template-od.tag";from=(45,18);to=(48,36)]
			out.print("\r\n    <div class=\"subTabsWrapper\">\r\n        <span class=\"button\">\r\n            <a class=\"clean subitem ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/tags/template-od.tag";from=(48,36);to=(48,84)]
			out.print(selectedSubTab.equals("home")?"selected":"");
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/tags/template-od.tag";from=(48,84);to=(48,92)]
			out.print("\" href=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/tags/template-od.tag";from=(48,92);to=(48,118)]
			out.print(AppConstants.APP_NAME);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/tags/template-od.tag";from=(48,118);to=(48,126)]
			out.print("?action=");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/tags/template-od.tag";from=(48,126);to=(48,198)]
			out.print(SessionUtils.getUserLogat(session).getProfile().getHomePageAction());
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/tags/template-od.tag";from=(48,198);to=(52,15)]
			out.print("\">Home</a>\r\n        </span>\r\n        <span class=\"divider\"></span>\r\n\t\t\r\n\t\t<span style=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/tags/template-od.tag";from=(52,15);to=(52,61)]
			out.print(centru.getId() == 1 ? "display:none" : "");
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/tags/template-od.tag";from=(52,61);to=(53,36)]
			out.print("\" class=\"button\">\r\n            <a class=\"clean subitem ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/tags/template-od.tag";from=(53,36);to=(53,163)]
			out.print(request.getParameter("action").equals("showMaifi") || request.getParameter("action").equals("editMaifi") ? "selected" : "");
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/tags/template-od.tag";from=(53,163);to=(53,171)]
			out.print("\" href=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/tags/template-od.tag";from=(53,171);to=(53,197)]
			out.print(AppConstants.APP_NAME);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/tags/template-od.tag";from=(53,197);to=(55,21)]
			out.print("?action=showMaifi\">MAIFI</a>\r\n        </span>\r\n        <span style=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/tags/template-od.tag";from=(55,21);to=(55,67)]
			out.print(centru.getId() == 1 ? "display:none" : "");
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/tags/template-od.tag";from=(55,67);to=(58,36)]
			out.print("\" class=\"divider\"></span>\r\n        \r\n\t\t<span class=\"button\">\r\n            <a class=\"clean subitem ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/tags/template-od.tag";from=(58,36);to=(58,88)]
			out.print(selectedSubTab.equals("rapoarte")?"selected":"");
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/tags/template-od.tag";from=(58,88);to=(58,96)]
			out.print("\" href=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/tags/template-od.tag";from=(58,96);to=(58,122)]
			out.print(AppConstants.APP_NAME);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/tags/template-od.tag";from=(58,122);to=(62,87)]
			out.print("?action=rapoarte-od\">Rapoarte</a>\r\n        </span>\r\n        <span class=\"divider\"></span>\r\n\t\t<span class=\"subTab\">\r\n            <a class=\"clean subitem\" href=\"http://10.30.1.60:8080/emid-rapoarte?userId=");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/tags/template-od.tag";from=(62,87);to=(62,134)]
			out.print(SessionUtils.getUserLogat(session).getId());
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/tags/template-od.tag";from=(62,134);to=(72,4)]
			out.print("\">Rapoarte 2020</a>\r\n        </span>\r\n        <span class=\"divider\"></span>\r\n    </div>\r\n</div>\r\n\r\n<div class=\"content\">\r\n    <div>\r\n        ");
			out.print((java.lang.String) _jspx_pageContext.evaluateInternal("${breadcrumb}", java.lang.String.class, false, null));
			out.print("\r\n    </div>\r\n    ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/tags/template-od.tag";from=(72,4);to=(72,31)]
			// CustomJspTag.action() - start
			if (_jspx_method_emid_messages_0(_jspx_pageContext, null)) {
				return;
			}
			// CustomJspTag.action() - end
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/tags/template-od.tag";from=(72,31);to=(78,0)]
			out.print("\r\n    ");
			out.print((java.lang.String) _jspx_pageContext.evaluateInternal("${body}", java.lang.String.class, false, null));
			out.print("\r\n</div>\r\n\r\n</body>\r\n</html>\r\n");
// end

		} catch(Throwable t) {
			if(t instanceof SkipPageException)
				throw (SkipPageException) t;
			if(t instanceof java.io.IOException)
				throw (java.io.IOException) t;
			if(t instanceof IllegalStateException)
				throw (IllegalStateException) t;
			if(t instanceof JspException)
				throw (JspException) t;
			throw new JspException(t);
		} finally {
			((com.sap.engine.services.servlets_jsp.lib.jspruntime.JspContextWrapper)jspContext).syncEndTagFile();
		}
	}

	// CustomJspTag.action() - start
	private boolean _jspx_method_emid_resources_0(com.sap.engine.services.servlets_jsp.lib.jspruntime.PageContextImpl _jspx_pageContext, javax.servlet.jsp.tagext.JspTag _jspx_parent) throws Throwable {
		JspWriter out = _jspx_pageContext.getOut();
			// TagBeginGenerator - start [emid:resources]
			/* ----  emid:resources ---- */
			web.tag_resources_1875650_1618159819990 _jspx_th_emid_resources_0 = new web.tag_resources_1875650_1618159819990();
			com.sap.engine.services.servlets_jsp.server.application.InjectionWrapper _jspx_resourceInjector = ((com.sap.engine.services.servlets_jsp.server.application.ServletContextImpl)_jspx_pageContext.getServletContext()).getApplicationContext().getInjectionWrapper();
			_jspx_resourceInjector.inject(_jspx_th_emid_resources_0);
			_jspx_th_emid_resources_0.setJspContext(_jspx_pageContext);
			_jspx_th_emid_resources_0.doTag();
			// TagBeginGenerator - end [emid:resources]
				// TagEndGenerator - start[emid:resources]
				_jspx_resourceInjector.invokePreDestroyMethod(_jspx_th_emid_resources_0);
		return false;
	}
				// TagEndGenerator - end [emid:resources]
	// CustomJspTag.action() - end


	// CustomJspTag.action() - start
	private boolean _jspx_method_emid_header_0(com.sap.engine.services.servlets_jsp.lib.jspruntime.PageContextImpl _jspx_pageContext, javax.servlet.jsp.tagext.JspTag _jspx_parent) throws Throwable {
		JspWriter out = _jspx_pageContext.getOut();
			// TagBeginGenerator - start [emid:header]
			/* ----  emid:header ---- */
			web.tag_header_1875650_1618159818751 _jspx_th_emid_header_0 = new web.tag_header_1875650_1618159818751();
			com.sap.engine.services.servlets_jsp.server.application.InjectionWrapper _jspx_resourceInjector = ((com.sap.engine.services.servlets_jsp.server.application.ServletContextImpl)_jspx_pageContext.getServletContext()).getApplicationContext().getInjectionWrapper();
			_jspx_resourceInjector.inject(_jspx_th_emid_header_0);
			_jspx_th_emid_header_0.setJspContext(_jspx_pageContext);
			_jspx_th_emid_header_0.doTag();
			// TagBeginGenerator - end [emid:header]
				// TagEndGenerator - start[emid:header]
				_jspx_resourceInjector.invokePreDestroyMethod(_jspx_th_emid_header_0);
		return false;
	}
				// TagEndGenerator - end [emid:header]
	// CustomJspTag.action() - end


	// CustomJspTag.action() - start
	private boolean _jspx_method_emid_messages_0(com.sap.engine.services.servlets_jsp.lib.jspruntime.PageContextImpl _jspx_pageContext, javax.servlet.jsp.tagext.JspTag _jspx_parent) throws Throwable {
		JspWriter out = _jspx_pageContext.getOut();
			// TagBeginGenerator - start [emid:messages]
			/* ----  emid:messages ---- */
			web.tag_messages_1875650_1618159819696 _jspx_th_emid_messages_0 = new web.tag_messages_1875650_1618159819696();
			com.sap.engine.services.servlets_jsp.server.application.InjectionWrapper _jspx_resourceInjector = ((com.sap.engine.services.servlets_jsp.server.application.ServletContextImpl)_jspx_pageContext.getServletContext()).getApplicationContext().getInjectionWrapper();
			_jspx_resourceInjector.inject(_jspx_th_emid_messages_0);
			_jspx_th_emid_messages_0.setJspContext(_jspx_pageContext);
			_jspx_th_emid_messages_0.setAll(new Boolean(true));
			_jspx_th_emid_messages_0.doTag();
			// TagBeginGenerator - end [emid:messages]
				// TagEndGenerator - start[emid:messages]
				_jspx_resourceInjector.invokePreDestroyMethod(_jspx_th_emid_messages_0);
		return false;
	}
				// TagEndGenerator - end [emid:messages]
	// CustomJspTag.action() - end

}
