/* 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.constants.WebConstants;
import java.util.Vector;
import ro.emid.common.utils.SessionUtils;
import ro.emid.common.constants.AppConstants;
import ro.emid.Application;
import ro.emid.common.AppProperties;
import ro.emid.common.utils.Util;


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




	private JspContext jspContext;
	private java.io.Writer _jspx_sout;
	private java.lang.Boolean all;


	public java.lang.Boolean getAll() {
		return this.all;
	}
	public void setAll(java.lang.Boolean all) {
		this.all = all;
	}
	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( getAll() != null ) {
			_jspx_pageContext.setAttribute("all", getAll());
		}
		try {
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/tags/messages.tag";from=(1,69);to=(2,0)]
			out.print("\r\n");
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/tags/messages.tag";from=(2,57);to=(3,0)]
			out.print("\r\n");
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/tags/messages.tag";from=(3,36);to=(4,0)]
			out.print("\r\n");
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/tags/messages.tag";from=(4,53);to=(5,0)]
			out.print("\r\n");
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/tags/messages.tag";from=(5,57);to=(6,0)]
			out.print("\r\n");
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/tags/messages.tag";from=(6,39);to=(7,0)]
			out.print("\r\n");
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/tags/messages.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-incidente/servlet_jsp/emid-incidente/root/WEB-INF/tags/messages.tag";from=(8,45);to=(11,0)]
			out.print("\r\n\r\n\r\n");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/tags/messages.tag";from=(11,0);to=(11,28)]
			if( all != null && all){
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/tags/messages.tag";from=(11,28);to=(12,4)]
			out.print("\r\n    ");
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/tags/messages.tag";from=(12,37);to=(13,4)]
			out.print("\r\n    ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/tags/messages.tag";from=(13,4);to=(22,6)]
			
        String[] MESG_ERR = null;
        String[] MESG_INFO = null;

        if (request.getAttribute(ro.emid.common.constants.WebConstants.MESG_ERR) != null) {
            MESG_ERR = (String[]) request.getAttribute(ro.emid.common.constants.WebConstants.MESG_ERR);
        } else if (request.getAttribute(ro.emid.common.constants.WebConstants.MESG_INFO) != null) {
            MESG_INFO = (String[]) request.getAttribute(ro.emid.common.constants.WebConstants.MESG_INFO);
        }
    
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/tags/messages.tag";from=(22,6);to=(23,4)]
			out.print("\r\n    ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/tags/messages.tag";from=(23,4);to=(23,56)]
			 if (MESG_ERR != null && MESG_ERR.length > 0)  {
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/tags/messages.tag";from=(23,56);to=(27,12)]
			out.print("\r\n    <fieldset style=\"width:95%; margin:10px\">\r\n        <legend style=\"font-weight: bold; color: red\">Mesaj eroare</legend>\r\n        <table align=\"left\">\r\n            ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/tags/messages.tag";from=(27,12);to=(27,61)]
			 for (int i = 0; i < MESG_ERR.length; i++ ){ 
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/tags/messages.tag";from=(27,61);to=(28,64)]
			out.print("\r\n            <TR><TD style=\"FONT: 13x Verdana, Arial, san-serif\">");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/tags/messages.tag";from=(28,64);to=(28,132)]
			out.print(ro.emid.common.constants.AppConstants.formatSimple(MESG_ERR[i]));
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/tags/messages.tag";from=(28,132);to=(29,12)]
			out.print("</TD></TR>\r\n            ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/tags/messages.tag";from=(29,12);to=(29,17)]
			}
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/tags/messages.tag";from=(29,17);to=(32,4)]
			out.print("\r\n        </table>\r\n    </fieldset>\r\n    ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/tags/messages.tag";from=(32,4);to=(33,7)]
			 request.removeAttribute(ro.emid.common.constants.WebConstants.MESG_ERR);
    }
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/tags/messages.tag";from=(33,7);to=(34,4)]
			out.print("\r\n    ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/tags/messages.tag";from=(34,4);to=(34,58)]
			 if (MESG_INFO != null && MESG_INFO.length > 0)  {
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/tags/messages.tag";from=(34,58);to=(38,12)]
			out.print("\r\n    <fieldset style=\"width:95%; margin:10px\">\r\n        <legend style=\"font-weight: bold; color: green\">Mesaj informare:</legend>\r\n        <table align=\"left\">\r\n            ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/tags/messages.tag";from=(38,12);to=(38,62)]
			 for (int i = 0; i < MESG_INFO.length; i++ ){ 
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/tags/messages.tag";from=(38,62);to=(39,66)]
			out.print("\r\n            <TR><TD style=\"FONT: 13x Verdana, Arial, san-serif; \">");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/tags/messages.tag";from=(39,66);to=(39,135)]
			out.print(ro.emid.common.constants.AppConstants.formatSimple(MESG_INFO[i]));
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/tags/messages.tag";from=(39,135);to=(40,12)]
			out.print("</TD></TR>\r\n            ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/tags/messages.tag";from=(40,12);to=(40,17)]
			}
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/tags/messages.tag";from=(40,17);to=(43,4)]
			out.print("\r\n        </table>\r\n    </fieldset>\r\n    ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/tags/messages.tag";from=(43,4);to=(43,85)]
			  request.removeAttribute(ro.emid.common.constants.WebConstants.MESG_INFO); }
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/tags/messages.tag";from=(43,85);to=(44,0)]
			out.print("\r\n");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/tags/messages.tag";from=(44,0);to=(44,5)]
			}
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/tags/messages.tag";from=(44,5);to=(46,0)]
			out.print("\r\n\r\n");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/tags/messages.tag";from=(46,0);to=(55,2)]
			
    //
    // Mesajele transmise de actiuni.
    //
    Vector MESG_ALERT = null;
    if (request.getSession().getAttribute(WebConstants.MESG_ALERT) != null) {
        MESG_ALERT = (Vector) request.getSession().getAttribute(WebConstants.MESG_ALERT);
        request.getSession().removeAttribute(WebConstants.MESG_ALERT);
    }

// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/tags/messages.tag";from=(55,2);to=(67,26)]
			out.print("\r\n<div class=\"messagesWrapper hidden\">\r\n    <div class=\"close\">X</div>\r\n    <!-- messages goes here -->\r\n</div>\r\n\r\n<script type=\"text/javascript\">\r\n    /**\r\n     * Messages config\r\n     */\r\n    MessagesConfig = {\r\n        messagesWrapper : \".messagesWrapper\",\r\n        messagesService: \"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/tags/messages.tag";from=(67,26);to=(67,63)]
			out.print(Application.getLinkForAppAdmin());
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/tags/messages.tag";from=(67,63);to=(68,18)]
			out.print("\",\r\n        appName: \"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/tags/messages.tag";from=(68,18);to=(68,44)]
			out.print(AppConstants.APP_NAME);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/tags/messages.tag";from=(68,44);to=(69,23)]
			out.print("\",\r\n        currentUser : \"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/tags/messages.tag";from=(69,23);to=(69,76)]
			out.print(SessionUtils.getUserLogat(session).getUsername());
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/tags/messages.tag";from=(69,76);to=(73,4)]
			out.print("\",\r\n        messages:[]\r\n    };\r\n\r\n    ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/tags/messages.tag";from=(73,4);to=(73,58)]
			 if( MESG_ALERT != null && MESG_ALERT.size() > 0){
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/tags/messages.tag";from=(73,58);to=(74,4)]
			out.print("\r\n    ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/tags/messages.tag";from=(74,4);to=(74,39)]
			for (Object msg : MESG_ALERT) {
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/tags/messages.tag";from=(74,39);to=(77,22)]
			out.print("\r\n        MessagesConfig.messages.push({\r\n            type: 0,\r\n            message: \'");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/tags/messages.tag";from=(77,22);to=(77,58)]
			out.print(Util.escapeToJs(msg.toString()));
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/tags/messages.tag";from=(77,58);to=(79,4)]
			out.print("\'\r\n        });\r\n    ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/tags/messages.tag";from=(79,4);to=(79,9)]
			}
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/tags/messages.tag";from=(79,9);to=(80,4)]
			out.print("\r\n    ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/tags/messages.tag";from=(80,4);to=(80,9)]
			}
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/tags/messages.tag";from=(80,9);to=(82,36)]
			out.print("\r\n</script>\r\n<script type=\"text/javascript\" src=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/tags/messages.tag";from=(82,36);to=(82,71)]
			out.print(AppConstants.WEB_RESOURCE_PATH);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/tags/messages.tag";from=(82,71);to=(82,92)]
			out.print("/scripts/messages.js?");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/tags/messages.tag";from=(82,92);to=(82,137)]
			out.print(AppProperties.getInstance().getVersion());
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-incidente/servlet_jsp/emid-incidente/root/WEB-INF/tags/messages.tag";from=(82,137);to=(83,0)]
			out.print("\"></script>\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();
		}
	}
}
