/* Automatically generated.
 * Copyright (c) 2000-2006 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.
 */

import ro.emid.common.constants.AppConstants;
import ro.emid.common.db.AdEntryAccessDB;
import ro.emid.common.db.IncidentAccessDB;
import ro.emid.common.types.AdEntry;
import ro.emid.common.types.Category;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;

public class JEE_jsp_WEB_2d_INF_pagelet_admin_showAdEntries_1471592527404 extends com.sap.engine.services.servlets_jsp.lib.jspruntime.JspBase{
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showAdEntries.jsp";from=(18,0);to=(24,3)]
 private AdEntry getEntry(final AdEntry[] entries, final int luna){
    for (int i = 0; i < entries.length; i++) {
        final AdEntry entry = entries[i];
        if( entry.getLuna() == luna) return entry;
    }
    return null;
}// end

	public void _jspService(HttpServletRequest request, HttpServletResponse response) throws ServletException, java.io.IOException
	{
		//isXml=false
		JspFactory  _jspFactory     = JspFactory.getDefaultFactory();
		PageContext pageContext = _jspFactory.getPageContext(this,request,response,null,true,32768,true);
		ServletConfig config = pageContext.getServletConfig();
		ServletContext application = pageContext.getServletContext();
		com.sap.engine.services.servlets_jsp.lib.jspruntime.PageContextImpl _jspx_pageContext = (com.sap.engine.services.servlets_jsp.lib.jspruntime.PageContextImpl) pageContext;
		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();
		HttpSession session = pageContext.getSession();
		if (!response.isCommitted()) {
		response.setContentType("text/html;charset=UTF-8");
		}
		JspWriter   out     = pageContext.getOut();
		java.lang.Object page = this;
		try {
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showAdEntries.jsp";from=(1,58);to=(2,0)]
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showAdEntries.jsp";from=(2,54);to=(3,0)]
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showAdEntries.jsp";from=(3,55);to=(4,0)]
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showAdEntries.jsp";from=(4,49);to=(5,0)]
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showAdEntries.jsp";from=(5,50);to=(6,0)]
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showAdEntries.jsp";from=(6,50);to=(7,0)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showAdEntries.jsp";from=(7,0);to=(14,2)]
			

    //todo: filtru dupa filiala
    Category filiala = new Category();

    Integer ani[] = IncidentAccessDB.getAniProducereIncident();
    ani = ro.emid.common.utils.Util.addCurrentYear(ani);

// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showAdEntries.jsp";from=(14,2);to=(16,0)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/layout/messages.jspf";from=(1,0);to=(10,2)]
			
    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-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/layout/messages.jspf";from=(10,2);to=(11,0)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/layout/messages.jspf";from=(11,0);to=(11,52)]
			 if (MESG_ERR != null && MESG_ERR.length > 0)  {
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/layout/messages.jspf";from=(11,52);to=(15,10)]
			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-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/layout/messages.jspf";from=(15,10);to=(15,59)]
			 for (int i = 0; i < MESG_ERR.length; i++ ){ 
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/layout/messages.jspf";from=(15,59);to=(16,22)]
			out.print("\r\n              <tr><td>");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/layout/messages.jspf";from=(16,22);to=(16,90)]
			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-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/layout/messages.jspf";from=(16,90);to=(17,10)]
			out.print("</td></tr>\r\n          ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/layout/messages.jspf";from=(17,10);to=(17,15)]
			}
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/layout/messages.jspf";from=(17,15);to=(20,0)]
			out.print("\r\n        </table>\r\n    </fieldset>\r\n");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/layout/messages.jspf";from=(20,0);to=(21,3)]
			 request.removeAttribute(ro.emid.common.constants.WebConstants.MESG_ERR);
}
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/layout/messages.jspf";from=(21,3);to=(22,0)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/layout/messages.jspf";from=(22,0);to=(22,54)]
			 if (MESG_INFO != null && MESG_INFO.length > 0)  {
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/layout/messages.jspf";from=(22,54);to=(26,10)]
			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-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/layout/messages.jspf";from=(26,10);to=(26,60)]
			 for (int i = 0; i < MESG_INFO.length; i++ ){ 
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/layout/messages.jspf";from=(26,60);to=(27,24)]
			out.print("\r\n                <tr><td>");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/layout/messages.jspf";from=(27,24);to=(27,93)]
			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-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/layout/messages.jspf";from=(27,93);to=(28,10)]
			out.print("</td></tr>\r\n          ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/layout/messages.jspf";from=(28,10);to=(28,15)]
			}
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/layout/messages.jspf";from=(28,15);to=(31,0)]
			out.print("\r\n        </table>\r\n    </fieldset>\r\n");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/layout/messages.jspf";from=(31,0);to=(31,81)]
			  request.removeAttribute(ro.emid.common.constants.WebConstants.MESG_INFO); }
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showAdEntries.jsp";from=(16,44);to=(18,0)]
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showAdEntries.jsp";from=(24,3);to=(43,8)]
			out.print("\r\n\r\n<div class=\"spacer\"></div>\r\n<TABLE id=\"table\" border=0 cellPadding=2 cellSpacing=1 width=\"100%\" class=\"gSAPTHEAD\" style=\"BACKGROUND-COLOR: white\">\r\n    <col align=\"center\">\r\n    <col align=\"right\">\r\n    <col align=\"right\">\r\n    <col align=\"right\">\r\n    <col align=\"right\">\r\n    <col align=\"right\">\r\n    <col align=\"right\">\r\n    <col align=\"right\">\r\n    <col align=\"right\">\r\n    <col align=\"right\">\r\n    <col align=\"right\">\r\n    <col align=\"right\">\r\n    <col align=\"right\">\r\n    <TR>\r\n        <TH class=\"gsapthead\" noWrap >An</TH>\r\n        ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showAdEntries.jsp";from=(43,8);to=(44,64)]
			for (int i = 0; i < AppConstants.DENUMIRI_LUNI.length; i++) {
            final String luna = AppConstants.DENUMIRI_LUNI[i];
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showAdEntries.jsp";from=(44,64);to=(45,56)]
			out.print("\r\n            <TH class=\"gsapthead\" noWrap align=\"center\">");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showAdEntries.jsp";from=(45,56);to=(45,65)]
			out.print(luna);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showAdEntries.jsp";from=(45,65);to=(46,8)]
			out.print("</TH>\r\n        ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showAdEntries.jsp";from=(46,8);to=(46,13)]
			}
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showAdEntries.jsp";from=(46,13);to=(49,4)]
			out.print("\r\n    </TR>\r\n\r\n    ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showAdEntries.jsp";from=(49,4);to=(57,11)]
			 for (int k = 0; k < ani.length; k++) {
        final Integer an = ani[ k];
        String td_color = "";

        if (k % 2 == 0) {
            td_color = "BACKGROUND-COLOR: #CACADF";
        } else {
            td_color = "BACKGROUND-COLOR: #D9D9E8";
        }
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showAdEntries.jsp";from=(57,11);to=(58,19)]
			out.print("\r\n        <tr style=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showAdEntries.jsp";from=(58,19);to=(58,32)]
			out.print(td_color);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showAdEntries.jsp";from=(58,32);to=(59,16)]
			out.print("\">\r\n            <td>");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showAdEntries.jsp";from=(59,16);to=(59,23)]
			out.print(an);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showAdEntries.jsp";from=(59,23);to=(60,12)]
			out.print("</td>\r\n            ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showAdEntries.jsp";from=(60,12);to=(60,157)]
			final AdEntry []forAnEntries = AdEntryAccessDB.getAll(" AND AN=" + an +  (filiala.getId() > 0 ? " AND FILIALA_ID=" + filiala.getId() : "")); 
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showAdEntries.jsp";from=(60,157);to=(61,12)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showAdEntries.jsp";from=(61,12);to=(63,93)]
			for (int i = 0; i < AppConstants.DENUMIRI_LUNI.length; i++) {
                final AdEntry entry = getEntry( forAnEntries, i+1);
                final String value = entry != null ? String.valueOf(entry.getValue()) : "";
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showAdEntries.jsp";from=(63,93);to=(64,97)]
			out.print("\r\n                <td title=\"Dublu click pentru editare\" ondblclick=\"inlineStartEditValue(\'newValue");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showAdEntries.jsp";from=(64,97);to=(64,103)]
			out.print(k);
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showAdEntries.jsp";from=(64,103);to=(64,109)]
			out.print(i);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showAdEntries.jsp";from=(64,109);to=(64,121)]
			out.print("\', \'spanText");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showAdEntries.jsp";from=(64,121);to=(64,127)]
			out.print(k);
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showAdEntries.jsp";from=(64,127);to=(64,133)]
			out.print(i);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showAdEntries.jsp";from=(64,133);to=(66,57)]
			out.print("\')\">\r\n                    <span>\r\n                        <input class=\"gsapinputtext\" AN=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showAdEntries.jsp";from=(66,57);to=(66,64)]
			out.print(an);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showAdEntries.jsp";from=(66,64);to=(66,72)]
			out.print("\" LUNA=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showAdEntries.jsp";from=(66,72);to=(66,82)]
			out.print((i+1));
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showAdEntries.jsp";from=(66,82);to=(66,117)]
			out.print("\" size=\"5\" type=\"text\" id=\"newValue");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showAdEntries.jsp";from=(66,117);to=(66,123)]
			out.print(k);
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showAdEntries.jsp";from=(66,123);to=(66,129)]
			out.print(i);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showAdEntries.jsp";from=(66,129);to=(67,42)]
			out.print("\" style=\"display: none\" />\r\n                        <span id=\"spanText");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showAdEntries.jsp";from=(67,42);to=(67,48)]
			out.print(k);
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showAdEntries.jsp";from=(67,48);to=(67,54)]
			out.print(i);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showAdEntries.jsp";from=(67,54);to=(67,56)]
			out.print("\">");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showAdEntries.jsp";from=(67,56);to=(67,66)]
			out.print(value);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showAdEntries.jsp";from=(67,66);to=(70,12)]
			out.print("</span>\r\n                    </span>\r\n                </td>\r\n            ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showAdEntries.jsp";from=(70,12);to=(70,17)]
			}
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showAdEntries.jsp";from=(70,17);to=(73,0)]
			out.print("\r\n        </tr>\r\n        <!--<div class=\"spacer\"></div>-->\r\n");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showAdEntries.jsp";from=(73,0);to=(73,5)]
			}
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showAdEntries.jsp";from=(73,5);to=(114,21)]
			out.print("\r\n\r\n</TABLE>\r\n<div class=\"spacer\"></div>\r\n\r\n<script type=\"text/javascript\">\r\n    function inlineStartEditValue( inputId, spanTextId){\r\n        var oInput    = $( inputId);\r\n        var oSpanText = $(spanTextId);\r\n\r\n        oInput.value = oSpanText.innerText.trim();\r\n        oInput.onkeyup = function( ev){\r\n            var ev = ev || window.event;\r\n//            alert( ev.keyCode);\r\n            switch( ev.keyCode){\r\n                case Event.KEY_ESC : escapeEditValue(inputId, spanTextId); break;\r\n                case Event.KEY_RETURN : changeValue( inputId, spanTextId); break;\r\n            }\r\n        }\r\n\r\n        oInput.onblur = function(){\r\n            escapeEditValue(inputId, spanTextId);\r\n        }\r\n\r\n        Element.hide( oSpanText);\r\n        Element.show( oInput);\r\n        oInput.select();\r\n        oInput.focus();\r\n    }\r\n\r\n    function escapeEditValue( inputId, spanTextId){\r\n        Element.hide( inputId);\r\n        Element.show( spanTextId);\r\n    }\r\n\r\n    function changeValue( inputId, spanTextId){\r\n        var AN = $(inputId).getAttribute(\"AN\");\r\n        var LUNA = $(inputId).getAttribute(\"LUNA\");\r\n        var newValue = $(inputId).value;\r\n\r\n        new Ajax.Request(\r\n                    \"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showAdEntries.jsp";from=(114,21);to=(114,47)]
			out.print(AppConstants.APP_NAME);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showAdEntries.jsp";from=(114,47);to=(146,0)]
			out.print("?action=changeAdValue\",\r\n                    {\r\n                        method : \"post\",\r\n                        parameters: \"AN=\" + AN + \"&LUNA=\" + LUNA + \"&newValue=\"+ newValue+\"&inputId=\"+inputId + \"&spanTextId=\"+spanTextId,\r\n                        onComplete : onChangeValueResponse\r\n                    });\r\n    }\r\n\r\n    function onChangeValueResponse( originalRequest){\r\n        var responseText = getResponseMesg( originalRequest.responseText).trim();\r\n        var responseData = null;\r\n        try{\r\n            responseData = eval(\"(\"+responseText+\")\");\r\n        }catch(e){\r\n//            alert(\"Eroare la parsare Server Reponse :\"+ e.message);\r\n        }\r\n\r\n        if( responseData != null){\r\n//            alert( \"inputId = \" + responseData.inputId);\r\n//            alert( \"spanId  = \" + responseData.spanTextId);\r\n//            alert( \"codEMID  = \" + responseData.codEMID);\r\n\r\n            $( responseData.spanTextId).innerText = responseData.value;\r\n            Element.hide( responseData.inputId);\r\n            Element.show( responseData.spanTextId);\r\n        }else{\r\n            alert(\"Mesaj Erorare: \" + responseText);\r\n        }\r\n    }\r\n\r\n\r\n</script>\r\n");
// end
		} catch (ThreadDeath tde) { throw tde;
		} catch (OutOfMemoryError ome) { throw ome;
		} catch (Throwable t) {
			if (!(t instanceof SkipPageException)) {
				try {
					out.clear();
				} catch(java.io.IOException _jspioex) {}
				_jspx_pageContext.handlePageException(t);
			}
		}finally{
			_jspFactory.releasePageContext(pageContext);
		}
	}

}
