/* 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.db.ActionLogger;
import ro.emid.common.utils.ObjectUtils;
import ro.emid.common.constants.AppConstants;
import java.sql.Date;
import java.util.Calendar;
import ro.emid.common.types.LogEntry;
import java.util.Hashtable;
import ro.emid.common.db.CategoryAccessDB;
import ro.emid.common.db.framework.DatabaseException;
import ro.emid.common.types.Category;
import ro.emid.common.constants.AppConstants;

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

public class JEE_jsp_WEB_2d_INF_pagelet_admin_showLog_1471592527545 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/showLog.jsp";from=(87,0);to=(145,7)]

    private final java.text.SimpleDateFormat sdf1 = new java.text.SimpleDateFormat("dd.MM.yyyy k:mm");

    private String getLogEntryText(final LogEntry entry) throws DatabaseException {
        final Hashtable hSucursale = CategoryAccessDB.getHashAllSucursale();
        final StringBuffer item = new StringBuffer("");
        final long date = entry.getData().getTime();
        int action = entry.getAction();
        final String autor = entry.getAutor();
        final long sucursala_id = entry.getSucursalaId();
        final String objectId = entry.getObjectId();
        final int objectType = entry.getObjectType();
        item.append(sdf1.format(new Date(date)));
        String saction = "[not defined]";
        if (action == ActionLogger.ACTION_DELETE) saction = "sters";
        if (action == ActionLogger.ACTION_EDIT) saction = "modificat";
        if (action == ActionLogger.ACTION_INSERT) saction = "inserat";
        if (action == ActionLogger.ACTION_DEZARHIVAT) saction = "dezarhivat";
        if (action == ActionLogger.ACTION_ARHIVAT) saction = "arhivat";
        if (action == ActionLogger.ACTION_CONVERTIT_INCIDENT) saction = "trimis la incidente";
        if (action == ActionLogger.ACTION_CONVERTIT_ECHIPAMENT) saction = "trimis la echipamente";
        if (action == ActionLogger.ACTION_TRIMIS_LA_ALT_CENTRU) saction = "trimis";
        if (action == ActionLogger.ACTION_ATASAT_RECLAMATIE) saction = "atasat";
        if (action == ActionLogger.ACTION_SCOS_RECLAMATIE) saction = "scos";
        if (action == ActionLogger.ACTION_TRIMIS_APARAT_CENTRAL) saction = "a trimis la aparat central";

        Category sucursala = null;
        try {
            sucursala = (Category) hSucursale.get(new Long(sucursala_id));
        } catch (Exception e) {
        }

        if (action == ActionLogger.ACTION_LOGIN) {
            item.append(" useru ").append(autor).append(" s-a autentificat");
        } else if (
                objectType == ActionLogger.OBJECT_TYPE_USER ||
                        objectType == ActionLogger.OBJECT_TYPE_CLIENT_ELIGIBIL ||
                        objectType == ActionLogger.OBJECT_TYPE_NOMENCLATOR
                ) {
            item.append(" userul ").append(autor).append(" a ").append(saction).append(' ').append(ActionLogger.getObjectNameByType(objectType)).append(' ').append(objectId);
        } else if (
                objectType == ActionLogger.OBJECT_TYPE_INCIDENT ||
                        objectType == ActionLogger.OBJECT_TYPE_ECHIPAMENT ||
                        objectType == ActionLogger.OBJECT_TYPE_DERANJAMENT

                ) {
            item.append(" userul ").append(autor).append(" a ").append(saction).append(' ').append(ActionLogger.getObjectNameByType(objectType)).append(" nr. ").append(objectId).append(" in sucursala ").append(sucursala == null ? "[null]" : sucursala.getName());
        } else if (
                objectType == ActionLogger.OBJECT_TYPE_EVENIMENT ||
                        objectType == ActionLogger.OBJECT_TYPE_LITTLE_INCIDENT ||
                        objectType == ActionLogger.OBJECT_TYPE_LUCRARE_PROGRAMATA ||
                        objectType == ActionLogger.OBJECT_TYPE_RECLAMATIE
                ) {
            item.append(" userul ").append(autor).append(" a ").append(saction).append(' ').append(ActionLogger.getObjectNameByType(objectType)).append(" nr.").append(objectId);
        } else {
            item.append(" TIP OBIECT NECUNOSCUT !!! ");
        }
        return item.toString();
    }// 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/showLog.jsp";from=(1,51);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/showLog.jsp";from=(2,53);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/showLog.jsp";from=(3,58);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/showLog.jsp";from=(4,34);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/showLog.jsp";from=(5,39);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/showLog.jsp";from=(6,50);to=(7,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/showLog.jsp";from=(7,40);to=(8,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/showLog.jsp";from=(8,55);to=(9,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/showLog.jsp";from=(9,66);to=(10,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/showLog.jsp";from=(10,50);to=(11,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/showLog.jsp";from=(11,58);to=(16,44)]
			out.print("\r\n\r\n\r\n<SPAN style=\"FONT-SIZE: 12px; FONT-WEIGHT: bold\">\r\n    Log-uri\r\n    &nbsp;&nbsp;&nbsp;<a class=\"link\" href=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showLog.jsp";from=(16,44);to=(16,70)]
			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/showLog.jsp";from=(16,70);to=(17,44)]
			out.print("?action=showLogs\" >Incidente</a>\r\n    &nbsp;&nbsp;&nbsp;<a class=\"link\" href=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showLog.jsp";from=(17,44);to=(17,70)]
			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/showLog.jsp";from=(17,70);to=(18,44)]
			out.print("?action=showLogs\" >Callcenter / Deranjamente</a>\r\n    &nbsp;&nbsp;&nbsp;<a class=\"link\" href=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showLog.jsp";from=(18,44);to=(18,70)]
			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/showLog.jsp";from=(18,70);to=(19,44)]
			out.print("?action=showLogsLPD\" >Lucrari Programate</a>\r\n    &nbsp;&nbsp;&nbsp;<a class=\"link\" href=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showLog.jsp";from=(19,44);to=(19,70)]
			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/showLog.jsp";from=(19,70);to=(22,0)]
			out.print("?action=showLogsLPD\" >Operatiuni Dispecer</a>\r\n</SPAN>\r\n<br />\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/showLog.jsp";from=(22,0);to=(82,2)]
			

    final String selectedAutor = ObjectUtils.getStringValue(request.getParameter("autor"));
    final int selectedAppObiect = ObjectUtils.getIntValue(request.getParameter("app_obiect"), -100);
    Date dataStart = ObjectUtils.getDateValue(ObjectUtils.getStringValue(request.getParameter("dataStart")), AppConstants.FORMAT_DATA_TIME);
    Date dataStop = ObjectUtils.getDateValue(ObjectUtils.getStringValue(request.getParameter("dataStop")), AppConstants.FORMAT_DATA_TIME);


    if (dataStart == null) {
        final Calendar c = Calendar.getInstance();
        c.set(Calendar.HOUR_OF_DAY, 7);
        c.set(Calendar.MINUTE, 0);
        c.set(Calendar.SECOND, 0);
        c.set(Calendar.MILLISECOND, 0);
        dataStart = new Date(c.getTime().getTime());
    }
    if (dataStop == null) dataStop = new Date(System.currentTimeMillis());

    String condSql = "";
    if (selectedAutor != null && selectedAutor.trim().length() > 0) {
        condSql += " AND autor = '" + ro.emid.common.utils.Util.escapeToSql(selectedAutor) + '\'';
    }

    if (selectedAppObiect != -100) {
        if (selectedAppObiect == -1) {    // App. Incidente
            condSql +=
                    " AND object_type IN ("
                            + ActionLogger.OBJECT_TYPE_INCIDENT + ", "
                            + ActionLogger.OBJECT_TYPE_ECHIPAMENT + ", "
                            + ActionLogger.OBJECT_TYPE_EVENIMENT + ", "
                            + ActionLogger.OBJECT_TYPE_NOMENCLATOR + ", "
                            + ActionLogger.OBJECT_TYPE_USER
                            + ") ";
        } else if (selectedAppObiect == -2) {  //App. deranjamente
            condSql +=
                    " AND object_type IN ("
                            + ActionLogger.OBJECT_TYPE_DERANJAMENT + ", "
                            + ActionLogger.OBJECT_TYPE_LITTLE_INCIDENT + ", "
                            + ActionLogger.OBJECT_TYPE_LUCRARE_PROGRAMATA + ", "
                            + ActionLogger.OBJECT_TYPE_CLIENT_ELIGIBIL
                            + ") ";
        } else if (selectedAppObiect == -3) {   //App. Call center
            condSql +=
                    " AND object_type IN ("
                            + ActionLogger.OBJECT_TYPE_RECLAMATIE
                            + ") ";
        } else if (
                selectedAppObiect == ActionLogger.OBJECT_TYPE_INCIDENT ||
                        selectedAppObiect == ActionLogger.OBJECT_TYPE_ECHIPAMENT ||
                        selectedAppObiect == ActionLogger.OBJECT_TYPE_EVENIMENT ||
                        selectedAppObiect == ActionLogger.OBJECT_TYPE_USER ||
                        selectedAppObiect == ActionLogger.OBJECT_TYPE_NOMENCLATOR ||
                        selectedAppObiect == ActionLogger.OBJECT_TYPE_DERANJAMENT ||
                        selectedAppObiect == ActionLogger.OBJECT_TYPE_CLIENT_ELIGIBIL ||
                        selectedAppObiect == ActionLogger.OBJECT_TYPE_LITTLE_INCIDENT ||
                        selectedAppObiect == ActionLogger.OBJECT_TYPE_LUCRARE_PROGRAMATA
                ) {
            condSql += " AND object_type =  " + selectedAppObiect;
        }
    }

// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showLog.jsp";from=(82,2);to=(85,0)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showLog.jsp";from=(85,0);to=(85,89)]
			 final LogEntry[] entries = ActionLogger.getLogEntries(dataStart, dataStop, condSql);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showLog.jsp";from=(85,89);to=(87,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/showLog.jsp";from=(145,7);to=(153,34)]
			out.print("\r\n\r\n\r\n\r\n\r\n        <table width=\"100%\" class=\"gsaptd\">\r\n            <tr>\r\n                <td valign=\"middle\">\r\n                    <form action=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showLog.jsp";from=(153,34);to=(153,60)]
			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/showLog.jsp";from=(153,60);to=(158,28)]
			out.print("\" method=\"post\">\r\n                        <input type=\"hidden\" name=\"action\" value=\"showLogs\">\r\n                        Utilizator:\r\n                        <select class=\"gSAPSelect\" name=\"autor\">\r\n                            <option value=\"\">Selectati:</option>\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/showLog.jsp";from=(158,28);to=(158,90)]
			 final String[] autori = ActionLogger.getDistinctUsers(); 
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showLog.jsp";from=(158,90);to=(159,28)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showLog.jsp";from=(159,28);to=(159,74)]
			 for (int i = 0; i < autori.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/admin/showLog.jsp";from=(159,74);to=(160,43)]
			out.print("\r\n                            <option value=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showLog.jsp";from=(160,43);to=(160,57)]
			out.print(autori[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/showLog.jsp";from=(160,57);to=(160,59)]
			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/showLog.jsp";from=(160,59);to=(160,134)]
			out.print(autori[i] != null && autori[i].equals(selectedAutor) ? "selected" : "");
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showLog.jsp";from=(160,134);to=(160,135)]
			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/showLog.jsp";from=(160,135);to=(160,149)]
			out.print(autori[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/showLog.jsp";from=(160,149);to=(162,28)]
			out.print("\r\n                            </option>\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/showLog.jsp";from=(162,28);to=(162,33)]
			}
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showLog.jsp";from=(162,33);to=(168,47)]
			out.print("\r\n                        </select>\r\n                        &nbsp;&nbsp;&nbsp;\r\n                        Applicatie/Obiect:\r\n                        <select class=\"gSAPSelect\" name=\"app_obiect\">\r\n                            <option value=\"\">Selectati:</option>\r\n                            <option value=\"-1\" ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showLog.jsp";from=(168,47);to=(168,93)]
			out.print(selectedAppObiect == -1 ? "selected" : "");
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showLog.jsp";from=(168,93);to=(169,43)]
			out.print(" >Ap. Incidente</option>\r\n                            <option value=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showLog.jsp";from=(169,43);to=(169,81)]
			out.print(ActionLogger.OBJECT_TYPE_INCIDENT);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showLog.jsp";from=(169,81);to=(169,84)]
			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/showLog.jsp";from=(169,84);to=(169,161)]
			out.print(selectedAppObiect == ActionLogger.OBJECT_TYPE_INCIDENT ? "selected" : "");
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showLog.jsp";from=(169,161);to=(172,43)]
			out.print("  >\r\n                                &nbsp;&nbsp;Incidente\r\n                            </option>\r\n                            <option value=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showLog.jsp";from=(172,43);to=(172,83)]
			out.print(ActionLogger.OBJECT_TYPE_ECHIPAMENT);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showLog.jsp";from=(172,83);to=(172,85)]
			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/showLog.jsp";from=(172,85);to=(172,164)]
			out.print(selectedAppObiect == ActionLogger.OBJECT_TYPE_ECHIPAMENT ? "selected" : "");
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showLog.jsp";from=(172,164);to=(175,43)]
			out.print(">\r\n                                &nbsp;&nbsp;Echipamente\r\n                            </option>\r\n                            <option value=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showLog.jsp";from=(175,43);to=(175,82)]
			out.print(ActionLogger.OBJECT_TYPE_EVENIMENT);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showLog.jsp";from=(175,82);to=(175,84)]
			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/showLog.jsp";from=(175,84);to=(175,162)]
			out.print(selectedAppObiect == ActionLogger.OBJECT_TYPE_EVENIMENT ? "selected" : "");
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showLog.jsp";from=(175,162);to=(178,43)]
			out.print(">\r\n                                &nbsp;&nbsp;Evenimente\r\n                            </option>\r\n                            <option value=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showLog.jsp";from=(178,43);to=(178,77)]
			out.print(ActionLogger.OBJECT_TYPE_USER);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showLog.jsp";from=(178,77);to=(178,79)]
			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/showLog.jsp";from=(178,79);to=(178,152)]
			out.print(selectedAppObiect == ActionLogger.OBJECT_TYPE_USER ? "selected" : "");
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showLog.jsp";from=(178,152);to=(181,43)]
			out.print(" >\r\n                                &nbsp;&nbsp;User\r\n                            </option>\r\n                            <option value=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showLog.jsp";from=(181,43);to=(181,84)]
			out.print(ActionLogger.OBJECT_TYPE_NOMENCLATOR);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showLog.jsp";from=(181,84);to=(181,86)]
			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/showLog.jsp";from=(181,86);to=(181,166)]
			out.print(selectedAppObiect == ActionLogger.OBJECT_TYPE_NOMENCLATOR ? "selected" : "");
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showLog.jsp";from=(181,166);to=(184,47)]
			out.print(" >\r\n                                &nbsp;&nbsp;Nomenclator\r\n                            </option>\r\n                            <option value=\"-2\" ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showLog.jsp";from=(184,47);to=(184,93)]
			out.print(selectedAppObiect == -2 ? "selected" : "");
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showLog.jsp";from=(184,93);to=(186,43)]
			out.print("  >Ap. Deranjamente\r\n                            </option>\r\n                            <option value=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showLog.jsp";from=(186,43);to=(186,91)]
			out.print(ActionLogger.OBJECT_TYPE_LUCRARE_PROGRAMATA);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showLog.jsp";from=(186,91);to=(186,93)]
			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/showLog.jsp";from=(186,93);to=(186,180)]
			out.print(selectedAppObiect == ActionLogger.OBJECT_TYPE_LUCRARE_PROGRAMATA ? "selected" : "");
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showLog.jsp";from=(186,180);to=(189,43)]
			out.print(">\r\n                                &nbsp;&nbsp;Lucrari programate\r\n                            </option>\r\n                            <option value=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showLog.jsp";from=(189,43);to=(189,88)]
			out.print(ActionLogger.OBJECT_TYPE_LITTLE_INCIDENT);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showLog.jsp";from=(189,88);to=(189,90)]
			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/showLog.jsp";from=(189,90);to=(189,174)]
			out.print(selectedAppObiect == ActionLogger.OBJECT_TYPE_LITTLE_INCIDENT ? "selected" : "");
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showLog.jsp";from=(189,174);to=(192,43)]
			out.print(">\r\n                                &nbsp;&nbsp;Incidente\r\n                            </option>\r\n                            <option value=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showLog.jsp";from=(192,43);to=(192,84)]
			out.print(ActionLogger.OBJECT_TYPE_DERANJAMENT);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showLog.jsp";from=(192,84);to=(192,86)]
			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/showLog.jsp";from=(192,86);to=(192,166)]
			out.print(selectedAppObiect == ActionLogger.OBJECT_TYPE_DERANJAMENT ? "selected" : "");
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showLog.jsp";from=(192,166);to=(195,43)]
			out.print(">\r\n                                &nbsp;&nbsp;Deranjamente\r\n                            </option>\r\n                            <option value=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showLog.jsp";from=(195,43);to=(195,88)]
			out.print(ActionLogger.OBJECT_TYPE_CLIENT_ELIGIBIL);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showLog.jsp";from=(195,88);to=(195,90)]
			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/showLog.jsp";from=(195,90);to=(195,174)]
			out.print(selectedAppObiect == ActionLogger.OBJECT_TYPE_CLIENT_ELIGIBIL ? "selected" : "");
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showLog.jsp";from=(195,174);to=(198,47)]
			out.print(" >\r\n                                &nbsp;&nbsp;Clienti eligibili\r\n                            </option>\r\n                            <option value=\"-3\" ");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showLog.jsp";from=(198,47);to=(198,93)]
			out.print(selectedAppObiect == -3 ? "selected" : "");
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showLog.jsp";from=(198,93);to=(203,38)]
			out.print(" >Ap. Call Center</option>\r\n                        </select>\r\n                        &nbsp;&nbsp;&nbsp;\r\n                        Data start:\r\n                        <INPUT class=\"gsapinputtext\" size=\"17\" id=\"dataStart\" name=\"dataStart\"\r\n                               value=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showLog.jsp";from=(203,38);to=(203,75)]
			out.print(AppConstants.formatx( dataStart));
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showLog.jsp";from=(203,75);to=(204,68)]
			out.print("\">\r\n                        <a id=\"dataStartTrigger\" href=\"#\"><img src=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showLog.jsp";from=(204,68);to=(204,103)]
			out.print(AppConstants.WEB_RESOURCE_PATH);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showLog.jsp";from=(204,103);to=(210,38)]
			out.print("/images/cal.gif\" width=\"16\"\r\n                                                               height=\"16\" border=\"0\"\r\n                                                               alt=\"Apasa pt. a selecta data\"></a>\r\n                        &nbsp;&nbsp;\r\n                        Data stop:\r\n                        <INPUT class=\"gsapinputtext\" size=\"17\" id=\"dataStop\" name=\"dataStop\"\r\n                               value=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showLog.jsp";from=(210,38);to=(210,73)]
			out.print(AppConstants.formatx(dataStop));
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showLog.jsp";from=(210,73);to=(211,67)]
			out.print("\">\r\n                        <a id=\"dataStopTrigger\" href=\"#\"><img src=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showLog.jsp";from=(211,67);to=(211,102)]
			out.print(AppConstants.WEB_RESOURCE_PATH);
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showLog.jsp";from=(211,102);to=(246,20)]
			out.print("/images/cal.gif\" width=\"16\"\r\n                                                              height=\"16\" border=\"0\" alt=\"Apasa pt. a selecta data\"></a>\r\n                        &nbsp;&nbsp;&nbsp;\r\n                        <input type=\"submit\" value=\"Aplica\">\r\n                    </form>\r\n                </td>\r\n            </tr>\r\n        </table>\r\n        <script type=\"text/javascript\">\r\n            Calendar.setup(\r\n                    {\r\n                        inputField:\"dataStart\", // ID of the input field\r\n                        ifFormat:\"%d.%m.%Y %H:%M\", // the date format\r\n                        button:\"dataStartTrigger\", // ID of the button\r\n                        showsTime:true\r\n                    }\r\n            );\r\n\r\n            Calendar.setup(\r\n                    {\r\n                        inputField:\"dataStop\", // ID of the input field\r\n                        ifFormat:\"%d.%m.%Y %H:%M\", // the date format\r\n                        button:\"dataStopTrigger\", // ID of the button\r\n                        showsTime:true\r\n                    }\r\n            );\r\n        </script>\r\n\r\n        <div class=\"spacer\"></div>\r\n        <TABLE border=1 cellPadding=2 cellSpacing=1 width=\"100%\" class=\"gSAPTHEAD\">\r\n            <TR>\r\n                <TH class=\"gsapthead\" colSpan=2 height=25 noWrap align=\"left\">&nbsp;Log&nbsp;</TH>\r\n            </TR>\r\n            <TR>\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/showLog.jsp";from=(246,20);to=(246,51)]
			 if (entries.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/admin/showLog.jsp";from=(246,51);to=(248,20)]
			out.print("\r\n                    Nu exista informatii...\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/showLog.jsp";from=(248,20);to=(248,32)]
			} else {
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showLog.jsp";from=(248,32);to=(249,20)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showLog.jsp";from=(249,20);to=(249,67)]
			 for (int i = 0; i < entries.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/admin/showLog.jsp";from=(249,67);to=(250,20)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showLog.jsp";from=(250,20);to=(250,52)]
			out.print(getLogEntryText(entries[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/showLog.jsp";from=(250,52);to=(251,20)]
			out.print("<BR>\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/showLog.jsp";from=(251,20);to=(251,25)]
			}
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showLog.jsp";from=(251,25);to=(252,20)]
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showLog.jsp";from=(252,20);to=(252,25)]
			}
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-admin/servlet_jsp/emid-admin/root/WEB-INF/pagelet/admin/showLog.jsp";from=(252,25);to=(257,0)]
			out.print("\r\n                </TD>\r\n            </TR>\r\n        </TABLE>\r\n\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);
		}
	}

}
