Edit C:\galaxie\Back\galaxie\admin\label\select.jsp
<%@ page language="java" contentType="text/html; charset=UTF-8"%> <%@ page import="com.edeal.frontline.navigation.FlRequest" %> <%@ page import="com.edeal.frontline.Utils" %> <%@ page import="com.edeal.frontline.DataDictionary" %> <%@ page import="com.edeal.frontline.FlContext" %> <%@ page import="java.util.Vector" %> <%@taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl"%> <% final org.apache.commons.logging.Log logger = org.apache.commons.logging.LogFactory.getLog(getClass()); FlRequest flRequest = new FlRequest(request); FlContext context = flRequest.getContext(); DataDictionary dico = context.getDataDictionary(); String field = flRequest.getParameter("field"); String query = flRequest.getParameter("query"); String formIndex = flRequest.getParameter("formIndex"); try { Integer.parseInt(formIndex); } catch (NumberFormatException nfe) { formIndex = "0"; } formIndex = formIndex != null && !"".equals(formIndex) ? formIndex : "0"; Vector languages = dico.getRefList(session, "LblCodeLng"); %><html> <head> <link rel="stylesheet" type="text/css" href="<fl:link url="/css/grid/edeal_grid_css.jsp"/>"> <link rel="stylesheet" type="text/css" href="<fl:link url="/css/common_css.jsp"/>"> <link rel="stylesheet" type="text/css" href="<fl:link url="/common/select/select_css.jsp"/>"> <script type="text/javascript" language="javascript" src="<fl:link url="/js/edeal/libraries/jquery/jquery.js"/>"></script> <script type="text/javascript" language="javascript" src="<fl:link url="/js/ajax/sarissa.js"/>"></script> <script type="text/javascript" language="javascript" src="<fl:link url="/js/ajax/ajax.js"/>"></script> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/ac/fobAC_js.jsp"></script> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/utils.js"></script> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/checkFields.jsp"></script> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/calendar.jsp"></script> <script type="text/javascript" language="javascript"> function doSelect(id, display) { var win = window.top.opener; var f = win.document.forms[<%= formIndex %>]; f.<%= field %>.value = id; f.lbl<%= field %>.value = display; if(win.do<%= field %>Change) { win.do<%= field %>Change(); } window.top.close(); } function doSearch() { var f = window.document.forms['searchForm']; var sc = ""; if (f.LblCodeMsg && f.LblCodeMsg.value) { myAjaxURL_LABEL = replaceParam(myAjaxURL_LABEL, 'LblCodeMsg', encodeURIComponent(f.LblCodeMsg.value)); sc += '&LblCodeMsg=' + f.LblCodeMsg.value; } else { myAjaxURL_LABEL = replaceParam(myAjaxURL_LABEL, 'LblCodeMsg', ''); } if (f.LblLabel && f.LblLabel.value) { myAjaxURL_LABEL = replaceParam(myAjaxURL_LABEL, 'LblLabel', encodeURIComponent(f.LblLabel.value)); sc += '&LblLabel=' + f.LblLabel.value; } else { myAjaxURL_LABEL = replaceParam(myAjaxURL_LABEL, 'LblLabel', ''); } if (f.LblCodeLng && f.LblCodeLng.options[f.LblCodeLng.selectedIndex].value) { myAjaxURL_LABEL = replaceParam(myAjaxURL_LABEL, 'LblCodeLng', encodeURIComponent(f.LblCodeLng.options[f.LblCodeLng.selectedIndex].value)); sc += '&LblCodeLng=' + f.LblCodeLng.options[f.LblCodeLng.selectedIndex].value; } else { myAjaxURL_LABEL = replaceParam(myAjaxURL_LABEL, 'LblCodeLng', ''); } myAjaxURL_LABEL = replaceParam(myAjaxURL_LABEL, 'LABEL_sc', encodeURIComponent(sc)); _grid__LABEL_js_.callAjaxForHtml(myAjaxURL_LABEL,null,true,false,null,true); } function doSubmit() { return true; } function createLabel() { var url = "<fl:webapp/>/edit_label.fl?from=select&field=<%= field %><%= formIndex != null ? "&formIndex=" + formIndex : "" %>"; var f = document.forms['searchForm']; if (f.LblCodeLng && f.LblCodeLng.options[f.LblCodeLng.selectedIndex].value) { url += (url.indexOf("?") > -1 ? "&" : "?") + "LngID=" + f.LblCodeLng.options[f.LblCodeLng.selectedIndex].value; } if (f.LblLabel && f.LblLabel.value) { url += (url.indexOf("?") > -1 ? "&" : "?") + "Lbl=" + f.LblLabel.value; } window.location = url; } </script> </head> <body onload="document.forms[0].LblLabel.focus()"> <form action="javascript:doSearch()" name="searchForm" id="searchForm"> <table class="global" cellpadding="0"> <tr> <td class="header_top_left"></td> <td class="header_top_middle"></td> <td class="header_top_right"></td> </tr> <tr> <td class="header_center_left"></td> <td class="header_center_middle title"> <table class="container" cellpadding="0"> <tr> <td style="width: 99%; vertical-align: top;"> <table> <tr class="fieldline"> <TD class="dataLabel"> <fl:label code="F2000" forInput="Code"/> </TD> <TD class="dataValue" style="white-space: nowrap;width:10%"> <input type="text" name="LblCodeMsg" id="search_LblCodeMsg" value=""/> </TD> <TD class="dataLabel"> <fl:label code="F6002" forInput="Message"/> </TD> <TD class="dataValue" style="white-space: nowrap;width:10%"> <input type="text" name="LblLabel" size="20" id="search_LblLabel" value=""/> </TD> <TD class="dataLabel"> <fl:label code="F303F" forInput="Langue"/> </TD> <TD class="dataValue" style="white-space: nowrap;width:10%"> <select id="search_LblCodeLng" name="LblCodeLng"> <% for (int i = 0; i < languages.size(); i++) { Vector row = (Vector)languages.elementAt(i); String lngID = (String)row.elementAt(0); String lngLabel = (String)row.elementAt(1); %> <option value="<%= Utils.formatToWeb(lngID, true) %>"><%= Utils.formatToWeb(lngLabel, false) %></option> <% } %> </select> </TD> </tr> </table> </td> <td style="width: 1%;"> <input type="image" src="<fl:link url="/icons/ico/valider.gif"/>" class="search_button"> </td> </tr> </table> </td> <td class="header_center_right"></td> </tr> <tr> <td class="header_bottom_left"></td> <td class="header_bottom_middle"></td> <td class="header_bottom_right"></td> </tr> <tr> <td class="body_left"></td> <td class="body_middle"> <div style="height:310px"> <a href="javascript:createLabel();" class="dataValue"><fl:getMessage code="L60D6" alt="Nouveau"/></a> <fl:grid name="LABEL" width="100%" height="290px" hidePage="true" ajaxUrl="/select_label_ajax.fl"></fl:grid> </div> </td> <td class="body_right"></td> </tr> <tr> <td class="body_bottom_left"></td> <td class="body_bottom_middle"><img src="<fl:link url="/icons/popup/pop14.gif"/>" width="9" height="18"></td> <td class="body_bottom_right"></td> </tr> </table> </form> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de