Edit C:\galaxie\deploy\Tomcat6\work\Catalina\localhost\galaxie\old\org\apache\jsp\common\calendar\calendar_005fjs_jsp.java
package org.apache.jsp.common.calendar; import javax.servlet.*; import javax.servlet.http.*; import javax.servlet.jsp.*; import com.edeal.frontline.*; import com.edeal.frontline.navigation.FlRequest; import java.util.*; public final class calendar_005fjs_jsp extends org.apache.jasper.runtime.HttpJspBase implements org.apache.jasper.runtime.JspSourceDependent { private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory(); private static java.util.List _jspx_dependants; static { _jspx_dependants = new java.util.ArrayList(1); _jspx_dependants.add("/WEB-INF/taglib.tld"); } private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005ffl_005flink_0026_005furl_005fnobody; private javax.el.ExpressionFactory _el_expressionfactory; private org.apache.AnnotationProcessor _jsp_annotationprocessor; public Object getDependants() { return _jspx_dependants; } public void _jspInit() { _005fjspx_005ftagPool_005ffl_005flink_0026_005furl_005fnobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig()); _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory(); _jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName()); } public void _jspDestroy() { _005fjspx_005ftagPool_005ffl_005flink_0026_005furl_005fnobody.release(); } public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException { PageContext pageContext = null; HttpSession session = null; ServletContext application = null; ServletConfig config = null; JspWriter out = null; Object page = this; JspWriter _jspx_out = null; PageContext _jspx_page_context = null; try { response.setContentType("text/html"); pageContext = _jspxFactory.getPageContext(this, request, response, null, true, 8192, true); _jspx_page_context = pageContext; application = pageContext.getServletContext(); config = pageContext.getServletConfig(); session = pageContext.getSession(); out = pageContext.getOut(); _jspx_out = out; /****************************************************************************** * Copyright (c) 2000-2008 e-Deal * * e-Deal S.A. * 55 rue Brillat Savarin * 75013 Paris * France * * T: +33 (0)1 53 80 80 30 * F: +33 (0)1 73 01 69 77 * http://www.e-deal.com * * La diffusion de ce code source sous quelque forme que ce soit sans * l'autorisation de E-DEAL est interdite. * * Vous êtes autorisés à modifier ce code source uniquement pour votre usage * propre et sous réserve que les mentions de copyright demeurent intactes. * * Ce code est fourni en l'état. Aucune garantie d'aucune sorte, explicite ou * implicite n'est donnée. En aucun cas E-DEAL ne pourra être tenu pour * responsable des dommages pouvant résulter de l'utilisation de ce code * source. ******************************************************************************/ out.write('\n'); out.write('\n'); final org.apache.commons.logging.Log logger = org.apache.commons.logging.LogFactory.getLog(getClass()); FlLocale userLocale = FlLocale.getInstance(session); FlRequest flRequest = new FlRequest(request); FlContext context = flRequest.getContext(); String weekStartDay = "1"; try { weekStartDay = Integer.toString(userLocale.getFirstDayOfWeek() - 1); } catch (Exception e) { weekStartDay = "1"; } String dayLetter = ""; try { String[] locShortWeekdays = userLocale.getShortWeekdays(); for (int i=1 ; i <= 7 ; i++) { dayLetter += (i==1 ? "" : ", ") + "\"" + locShortWeekdays[i].substring(0, 1).toUpperCase() + "\""; } } catch (Exception e) { logger.warn("Pour les lettres des jours, pas reussi on prend le francais."); dayLetter = "\"D\", \"L\", \"M\", \"M\", \"J\", \"V\", \"S\""; } String monthName = ""; try { String[] locMonths = userLocale.getMonths(); for (int i=0 ; i < 12 ; i++) { monthName += (i==0 ? "" : ", ") + "\"" + locMonths[i].substring(0, 1).toUpperCase() + locMonths[i].substring(1) + "\""; } } catch (Exception e) { monthName = "\"Janvier\", \"Fevrier\", \"Mars\", \"Avril\", \"Mai\", \"Juin\", \"Juillet\", \"Août\", \"Septembre\", \"Octobre\", \"Novembre\", \"Décembre\""; } String mois = context.getContextParameter("DefaultMonthNumber"); int _mois = Integer.parseInt(mois); String aim = flRequest.getParameter("aim"); String dateFormat = "dd/MM/yyyy"; if (request.getParameter("df") != null) { dateFormat = Utils.getRequestParameter(context, request, "df"); } else { try { dateFormat = userLocale.getDateFormat().toPattern(); } catch (Exception e) { dateFormat = "dd/MM/yyyy"; } } String fldName = null; if (request.getParameter("fn") != null) { fldName = Utils.getRequestParameter(context, request, "fn"); } String formPos = "0"; if (request.getParameter("fp") != null) { formPos = Utils.getRequestParameter(context, request, "fp"); } String weekLinks = Utils.getRequestParameter(context, request, "weekLinks"); out.write('\n'); out.write("\n"); out.write("minimalDaysInFirstWeek = 4;\n"); out.write("\n"); out.write("\n"); out.write("weekStartDay = "); out.print( weekStartDay ); out.write(';'); out.write('\n'); out.write('\n'); out.write("\n"); out.write("dayLetter = ["); out.print( dayLetter ); out.write("];\n"); out.write("\n"); out.write("\n"); out.write("monthName = ["); out.print( monthName ); out.write("];\n"); out.write("\n"); out.write("function ComputeDate(){\n"); out.write("// valeur de l'option\n"); out.write("var n=\""); out.print(_mois); out.write("\";\n"); out.write("n = parseInt(n);\n"); out.write("\n"); out.write("// date du calenrier \n"); out.write("var date= document.getElementById('in').value;\n"); out.write("var tab = date.split(\" \")\n"); out.write("var month = tab[0];\n"); out.write("var year = tab[1];\n"); out.write("var Mtab= new Array();\n"); out.write("var Stab= new Array();\n"); out.write("// calcul de n dates après \n"); out.write("for (var pos =0;pos<parseInt(n)+1;pos++)\n"); out.write("{\n"); out.write("var mt = parseInt(month)+parseInt(pos);\n"); out.write("if (parseInt(mt) > 12)\n"); out.write("{\n"); out.write("Mtab.push((mt%12)+\" \"+(parseInt(year)+1)); \n"); out.write("}\n"); out.write("else\n"); out.write("{\n"); out.write("Mtab.push(mt+\" \"+year); \n"); out.write("}\n"); out.write("}\n"); out.write("\n"); out.write("year = tab[1];\n"); out.write("// calcul de date avant\n"); out.write("for (var pos =1;pos<parseInt(n)+1;pos++)\n"); out.write("{\n"); out.write("mt = parseInt(month)-parseInt(pos);\n"); out.write("if (parseInt(mt) < 1)\n"); out.write("{\n"); out.write("Stab.push(((mt%12)+12)+\" \"+(parseInt(year)-1)); \n"); out.write("}\n"); out.write("else\n"); out.write("{\n"); out.write("Stab.push(mt+\" \"+year); \n"); out.write("}\n"); out.write("\n"); out.write("}\n"); out.write("Stab=Stab.reverse();\n"); out.write("Stab=Stab.concat(Mtab);\n"); out.write("return Stab;\n"); out.write("}\n"); out.write("\n"); out.write("function select()\n"); out.write("{\n"); out.write(" var element = document.getElementById('select');\n"); out.write(" var ele = document.getElementById('lblMonth');\n"); out.write(" var n=\""); out.print(_mois); out.write("\";\n"); out.write(" n = parseInt(n);\n"); out.write(" Rtab = new Array();\n"); out.write(" Rtab= ComputeDate();\n"); out.write(" html = '<select name=\\\"month\\\" class=\"select\" id=\"month\" onchange=\"Unselect();blur();\">';\n"); out.write(" \n"); out.write(" for (var pos=0;pos<Rtab.length;pos++) {\n"); out.write(" var ligne = Rtab[pos];\n"); out.write(" var tab = ligne.split(\" \");\n"); out.write(" var month = tab[0];\n"); out.write(" var year = tab[1];\n"); out.write(" var code_=month+\" \"+year;\n"); out.write(" //alert(year);\n"); out.write(" year = year.substring(2);\n"); out.write(" //alert(year);\n"); out.write(" var code = monthName[parseInt(month)-1]+\" \"+year;\n"); out.write(" if (pos != n)\n"); out.write(" {\n"); out.write(" html += '<option value=\\\"' + code_ + '\\\"> ' + code + '</option>';\n"); out.write(" }\n"); out.write(" else\n"); out.write(" {\n"); out.write(" html += '<option value=\\\"' + code_ + '\\\" selected> ' + code + '</option>';\n"); out.write(" }\n"); out.write(" };\n"); out.write(" html += '</select>';\n"); out.write(" document.getElementById('select').innerHTML = html;\n"); out.write(" ele.style.display = \"none\";\n"); out.write(" element.style.display = \"block\";\n"); out.write("}\n"); out.write("function Unselect() {\n"); out.write("var node = document.getElementById('month');\n"); out.write("var divNode = document.getElementById(\"select\");\n"); out.write("var ele = document.getElementById('lblMonth');\n"); out.write("\n"); out.write("if(node != null){\n"); out.write("\tvar code =node.value;\n"); out.write("\tvar tab= new Array();\n"); out.write("\ttab = code.split(\" \");\n"); out.write("\tvar year = tab[1];\n"); out.write("\tvar month = tab[0];\n"); out.write("\tgoTo(year,month);\n"); out.write("}\n"); out.write("if(divNode != null){\n"); out.write("\tdivNode.style.display = \"none\";\n"); out.write("}\n"); out.write("if(ele != null){\n"); out.write("ele.style.display = \"block\";\n"); out.write("}\n"); out.write("}\n"); out.write("\n"); out.write("function chosenw(y, m, d) {\n"); out.write("\t"); if (weekLinks != null && "false".equalsIgnoreCase(weekLinks)) { out.write("\n"); out.write("\t\treturn; // We're in a pop, so this method is not needed\n"); out.write("\t"); } out.write('\n'); out.write('\n'); out.write(' '); if ("sidebar".equals(aim)) { out.write("\n"); out.write("\t// ouverture de l'agenda à la date choisie\n"); out.write("\t\n"); out.write("\twindow.open('"); if (_jspx_meth_fl_005flink_005f0(_jspx_page_context)) return; out.write("&date=' + getFormatedDate(y, m, d, \""); out.print( dateFormat ); out.write("\"), 'Agenda', 'width=1024,height=660,scrollbars=yes,resizable=no,toolbar=no,location=no,menubar=no,status=no');\n"); out.write("\t\n"); out.write("\t//window.open('"); if (_jspx_meth_fl_005flink_005f1(_jspx_page_context)) return; out.write("&date=' + getFormatedDate(y, m, d, \""); out.print( dateFormat ); out.write("\"), 'Agenda', 'width=1024,height=660,scrollbars=yes,resizable=no,toolbar=no,location=no,menubar=no,status=no');\n"); out.write("\t"); } else if ("agenda".equals(aim)) { out.write("\n"); out.write("\ttry {\n"); out.write("\t\tchangeDay(y, m, d);\n"); out.write("\t} catch (error) {\n"); out.write("\t\twindow.alert(\"Cannot change the day to \" + d + \"/\" + m + \"/\" + y + \"\\nCause : \" + error.toString());\n"); out.write("\t}\n"); out.write("\t"); } else { out.write("\n"); out.write("\t//window.opener.document.forms["); out.print( formPos ); out.write("].elements[\""); out.print( fldName ); out.write("\"].value = getFormatedDate(y, m, d, \""); out.print( dateFormat ); out.write("\");\n"); out.write("\t\n"); out.write("\ttry {\n"); out.write("\t\twindow.opener.on"); out.print( fldName ); out.write("Change();\n"); out.write("\t} catch (error) {\n"); out.write("\t\ttry {\n"); out.write("\t\t\twindow.opener.do"); out.print( fldName ); out.write("Change();\n"); out.write("\t\t} catch (error2) {\n"); out.write("\t\t}\n"); out.write("\t}\n"); out.write("\n"); out.write("\twindow.close();\n"); out.write("\t"); } out.write("\n"); out.write("}\n"); out.write("\n"); out.write("function chosen(y, m, d) {\n"); out.write("\t"); if ("sidebar".equals(aim)) { out.write("\n"); out.write("\t// ouverture de l'agenda à la date choisie\n"); out.write("\t//window.open('"); if (_jspx_meth_fl_005flink_005f2(_jspx_page_context)) return; out.write("&date=' + getFormatedDate(y, m, d, \""); out.print( dateFormat ); out.write("\"), 'Agenda', 'width=1024,height=660,scrollbars=yes,resizable=no,toolbar=no,location=no,menubar=no,status=no');\n"); out.write("\t\n"); out.write("\twindow.open('"); if (_jspx_meth_fl_005flink_005f3(_jspx_page_context)) return; out.write("&date=' + getFormatedDate(y, m, d, \""); out.print( dateFormat ); out.write("\"), 'Agenda', 'width=1024,height=660,scrollbars=yes,resizable=no,toolbar=no,location=no,menubar=no,status=no');\n"); out.write("\t"); } else if ("agenda".equals(aim)) { out.write("\n"); out.write("\ttry {\n"); out.write("\t\tchangeDay(y, m, d);\n"); out.write("\t} catch (error) {\n"); out.write("\t\twindow.alert(\"Cannot change the day to \" + d + \"/\" + m + \"/\" + y + \"\\nCause : \" + error.toString());\n"); out.write("\t}\n"); out.write("\t"); } else { out.write("\n"); out.write("\twindow.opener.document.forms["); out.print( formPos ); out.write("].elements[\""); out.print( fldName ); out.write("\"].value = getFormatedDate(y, m, d, \""); out.print( dateFormat ); out.write("\");\n"); out.write("\n"); out.write("\ttry {\n"); out.write("\t\n"); out.write("\t\twindow.opener.document.forms["); out.print( formPos ); out.write("].elements[\""); out.print( fldName ); out.write("\"].onchange();\n"); out.write("\t} catch (error) {\n"); out.write("\t\ttry {\n"); out.write("\t\t\twindow.opener.do"); out.print( fldName ); out.write("Change();\n"); out.write("\t\t} catch (error2) {\n"); out.write("\t\t}\n"); out.write("\t}\n"); out.write("\n"); out.write("\twindow.close();\n"); out.write("\t"); } out.write("\n"); out.write("}\n"); out.write(" "); } catch (Throwable t) { if (!(t instanceof SkipPageException)){ out = _jspx_out; if (out != null && out.getBufferSize() != 0) try { out.clearBuffer(); } catch (java.io.IOException e) {} if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); else log(t.getMessage(), t); } } finally { _jspxFactory.releasePageContext(_jspx_page_context); } } private boolean _jspx_meth_fl_005flink_005f0(PageContext _jspx_page_context) throws Throwable { PageContext pageContext = _jspx_page_context; JspWriter out = _jspx_page_context.getOut(); // fl:link com.edeal.frontline.navigation.UrlTag _jspx_th_fl_005flink_005f0 = (com.edeal.frontline.navigation.UrlTag) _005fjspx_005ftagPool_005ffl_005flink_0026_005furl_005fnobody.get(com.edeal.frontline.navigation.UrlTag.class); _jspx_th_fl_005flink_005f0.setPageContext(_jspx_page_context); _jspx_th_fl_005flink_005f0.setParent(null); // /common/calendar/calendar_js.jsp(232,14) name = url type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null _jspx_th_fl_005flink_005f0.setUrl("/workweek_agenda.fl?1=1"); int _jspx_eval_fl_005flink_005f0 = _jspx_th_fl_005flink_005f0.doStartTag(); if (_jspx_th_fl_005flink_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { _005fjspx_005ftagPool_005ffl_005flink_0026_005furl_005fnobody.reuse(_jspx_th_fl_005flink_005f0); return true; } _005fjspx_005ftagPool_005ffl_005flink_0026_005furl_005fnobody.reuse(_jspx_th_fl_005flink_005f0); return false; } private boolean _jspx_meth_fl_005flink_005f1(PageContext _jspx_page_context) throws Throwable { PageContext pageContext = _jspx_page_context; JspWriter out = _jspx_page_context.getOut(); // fl:link com.edeal.frontline.navigation.UrlTag _jspx_th_fl_005flink_005f1 = (com.edeal.frontline.navigation.UrlTag) _005fjspx_005ftagPool_005ffl_005flink_0026_005furl_005fnobody.get(com.edeal.frontline.navigation.UrlTag.class); _jspx_th_fl_005flink_005f1.setPageContext(_jspx_page_context); _jspx_th_fl_005flink_005f1.setParent(null); // /common/calendar/calendar_js.jsp(234,16) name = url type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null _jspx_th_fl_005flink_005f1.setUrl("/day_agenda.fl?1=1"); int _jspx_eval_fl_005flink_005f1 = _jspx_th_fl_005flink_005f1.doStartTag(); if (_jspx_th_fl_005flink_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { _005fjspx_005ftagPool_005ffl_005flink_0026_005furl_005fnobody.reuse(_jspx_th_fl_005flink_005f1); return true; } _005fjspx_005ftagPool_005ffl_005flink_0026_005furl_005fnobody.reuse(_jspx_th_fl_005flink_005f1); return false; } private boolean _jspx_meth_fl_005flink_005f2(PageContext _jspx_page_context) throws Throwable { PageContext pageContext = _jspx_page_context; JspWriter out = _jspx_page_context.getOut(); // fl:link com.edeal.frontline.navigation.UrlTag _jspx_th_fl_005flink_005f2 = (com.edeal.frontline.navigation.UrlTag) _005fjspx_005ftagPool_005ffl_005flink_0026_005furl_005fnobody.get(com.edeal.frontline.navigation.UrlTag.class); _jspx_th_fl_005flink_005f2.setPageContext(_jspx_page_context); _jspx_th_fl_005flink_005f2.setParent(null); // /common/calendar/calendar_js.jsp(260,16) name = url type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null _jspx_th_fl_005flink_005f2.setUrl("/workweek_agenda.fl?1=1"); int _jspx_eval_fl_005flink_005f2 = _jspx_th_fl_005flink_005f2.doStartTag(); if (_jspx_th_fl_005flink_005f2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { _005fjspx_005ftagPool_005ffl_005flink_0026_005furl_005fnobody.reuse(_jspx_th_fl_005flink_005f2); return true; } _005fjspx_005ftagPool_005ffl_005flink_0026_005furl_005fnobody.reuse(_jspx_th_fl_005flink_005f2); return false; } private boolean _jspx_meth_fl_005flink_005f3(PageContext _jspx_page_context) throws Throwable { PageContext pageContext = _jspx_page_context; JspWriter out = _jspx_page_context.getOut(); // fl:link com.edeal.frontline.navigation.UrlTag _jspx_th_fl_005flink_005f3 = (com.edeal.frontline.navigation.UrlTag) _005fjspx_005ftagPool_005ffl_005flink_0026_005furl_005fnobody.get(com.edeal.frontline.navigation.UrlTag.class); _jspx_th_fl_005flink_005f3.setPageContext(_jspx_page_context); _jspx_th_fl_005flink_005f3.setParent(null); // /common/calendar/calendar_js.jsp(262,14) name = url type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null _jspx_th_fl_005flink_005f3.setUrl("/day_agenda.fl?1=1"); int _jspx_eval_fl_005flink_005f3 = _jspx_th_fl_005flink_005f3.doStartTag(); if (_jspx_th_fl_005flink_005f3.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { _005fjspx_005ftagPool_005ffl_005flink_0026_005furl_005fnobody.reuse(_jspx_th_fl_005flink_005f3); return true; } _005fjspx_005ftagPool_005ffl_005flink_0026_005furl_005fnobody.reuse(_jspx_th_fl_005flink_005f3); return false; } }
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de