/* 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.utils.Formatter;


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




	private JspContext jspContext;
	private java.io.Writer _jspx_sout;
	private java.lang.String name;
	private java.util.Date value;
	private java.lang.String width;


	public java.lang.String getName() {
		return this.name;
	}
	public void setName(java.lang.String name) {
		this.name = name;
	}
	public java.util.Date getValue() {
		return this.value;
	}
	public void setValue(java.util.Date value) {
		this.value = value;
	}
	public java.lang.String getWidth() {
		return this.width;
	}
	public void setWidth(java.lang.String width) {
		this.width = width;
	}
	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( getName() != null ) {
			_jspx_pageContext.setAttribute("name", getName());
		}
		if( getValue() != null ) {
			_jspx_pageContext.setAttribute("value", getValue());
		}
		if( getWidth() != null ) {
			_jspx_pageContext.setAttribute("width", getWidth());
		}
		try {
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/tags/datefield.tag";from=(1,50);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/datefield.tag";from=(3,63);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/datefield.tag";from=(4,87);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/datefield.tag";from=(5,65);to=(8,58)]
			out.print("\r\n\r\n<div style=\"vertical-align: middle; display: inline-block\">\r\n    <input type=\"text\" id=\"");
			out.print((java.lang.String) _jspx_pageContext.evaluateInternal("${name}", java.lang.String.class, false, null));
			out.print("\" name=\"");
			out.print((java.lang.String) _jspx_pageContext.evaluateInternal("${name}", java.lang.String.class, false, null));
			out.print("\" value=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/tags/datefield.tag";from=(8,58);to=(8,91)]
			out.print(Formatter.DATE.format(value));
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/tags/datefield.tag";from=(8,91);to=(10,14)]
			out.print("\" style=\"float: left;width:");
			out.print((java.lang.String) _jspx_pageContext.evaluateInternal("${empty width ? \"100px\" : width}", java.lang.String.class, false, null));
			out.print(";\"/>\r\n    <img id=\"");
			out.print((java.lang.String) _jspx_pageContext.evaluateInternal("${name}", java.lang.String.class, false, null));
			out.print("-trigger\"\r\n         src=\"");
// end
// begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/tags/datefield.tag";from=(10,14);to=(10,43)]
			out.print(request.getContextPath());
// end
// HTML // begin [file="D:/usr/sap/POR/J00/j2ee/cluster/apps/JavaEE/emid-lpod/servlet_jsp/emid-lpod/root/WEB-INF/tags/datefield.tag";from=(10,43);to=(30,0)]
			out.print("/resources/images/cal.gif\"\r\n         border=\"0\"\r\n         alt=\"Calendar\"\r\n         style=\"margin-left: 3px;float: right;cursor: pointer\"\r\n    />\r\n</div>\r\n\r\n<script type=\"text/javascript\">\r\n    //on page ready\r\n    jQuery(function(){\r\n        Calendar.setup({\r\n            inputField  : \"");
			out.print((java.lang.String) _jspx_pageContext.evaluateInternal("${name}", java.lang.String.class, false, null));
			out.print("\",         // ID of the input field\r\n            ifFormat    : \"%d.%m.%Y\",       // the date format\r\n            button      : \"");
			out.print((java.lang.String) _jspx_pageContext.evaluateInternal("${name}", java.lang.String.class, false, null));
			out.print("-trigger\",         // ID of the button\r\n            showsTime   : true\r\n            //onUpdate    : updateDurataEveniment\r\n        });\r\n    });\r\n</script>\r\n\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();
		}
	}
}
