Edit C:\galaxie\deploy\Tomcat6\webapps\galaxie\admin\accessmanager\accesslist.jsp
<% /****************************************************************************** * Copyright (c) 2000-2005 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. ******************************************************************************/ %> <%@ page session="true" contentType="text/html; charset=UTF-8"%> <%@ page import="com.edeal.frontline.navigation.FlRequest" %> <%@ page import="com.edeal.frontline.FlContext" %> <%@ page import="com.edeal.frontline.DataDictionary" %> <%@ page import="java.util.Vector" %> <%@ page import="java.util.Hashtable" %> <%@ page import="java.text.DecimalFormat" %> <%@ page import="java.util.Date" %> <%@ page import="java.util.GregorianCalendar" %> <%@ page import="com.edeal.frontline.RefValuesBean" %> <%@ page import="com.edeal.frontline.FlLocale" %> <%@ page import="com.edeal.frontline.Utils" %> <%@ page import="com.edeal.frontline.TablesBean" %> <%@ page import="com.edeal.frontline.FieldNotInitializedException" %> <%@ page import="com.edeal.frontline.FieldBean" %> <%@ taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %> <jsp:useBean class="com.edeal.frontline.ObjectsBean" id="Objects" scope="request"/> <% 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(); Vector values = Objects.getFieldsData(); int defaultRead = 0; try { defaultRead = Objects.getObjDefaultRead(); } catch (FieldNotInitializedException e) {} int defaultEdit = 0; try { defaultEdit = Objects.getObjDefaultEdit(); } catch (FieldNotInitializedException e) {} int defaultCreate = 0; try { defaultCreate = Objects.getObjDefaultCreate(); } catch (FieldNotInitializedException e) {} int defaultDelete = 0; try { defaultDelete = Objects.getObjDefaultDelete(); } catch (FieldNotInitializedException e) {} int ownerRead = 2; try { ownerRead = Objects.getObjOwnerRead(); } catch (FieldNotInitializedException e) {} int ownerEdit = 2; try { ownerEdit = Objects.getObjOwnerEdit(); } catch (FieldNotInitializedException e) {} int ownerCreate = 2; try { ownerCreate = Objects.getObjOwnerCreate(); } catch (FieldNotInitializedException e) {} int ownerDelete = 2; try { ownerDelete = Objects.getObjOwnerDelete(); } catch (FieldNotInitializedException e) {} Vector roles = null; try { roles = Objects.getObjRoles(); } catch (FieldNotInitializedException e) {} Vector rolesRead = null; try { rolesRead = Objects.getObjRolesRead(); } catch (FieldNotInitializedException e) {} Vector rolesEdit = null; try { rolesEdit = Objects.getObjRolesEdit(); } catch (FieldNotInitializedException e) {} Vector rolesCreate = null; try { rolesCreate = Objects.getObjRolesCreate(); } catch (FieldNotInitializedException e) {} Vector rolesDelete = null; try { rolesDelete = Objects.getObjRolesDelete(); } catch (FieldNotInitializedException e) {} Vector rolesCode = dico.getRefCodeList("ActRoles"); Vector rolesDisplay = dico.getRefList(session, "ActRoles"); boolean colorBlue = true; %> <input type="hidden" name="id" value="<%= Objects.getID() %>"> <input type="hidden" name="$$presentFields" value=""> <table class="container" cellpadding="0" style="width: 730px" id="tab1"> <tbody> <table class="container" cellpadding="0"> <tr> <td colspan="5" class="titreFiche"> <% String displayLabel = null; String objDisplay = null; try { displayLabel = Objects.getObjDisplayLabel(); } catch (FieldNotInitializedException fnie) { } try { objDisplay = Objects.getObjDisplay(); } catch (FieldNotInitializedException fnie) { } %> <%= displayLabel != null ? Utils.getMessage(session, displayLabel, null) : Utils.formatToWeb(objDisplay,false) %> </td> </tr> <tr class="ligne_separation"> <td colspan="5"></td> </tr> </table> <div class="edealGrid"> <div id="grid-data" class="data" id="tab2" style="height: 100%;"> <table class="container" cellpadding="2"> <thead> <tr style="position:relative;top: expression(offsetParent.scrollTop);background-color:white"> <td> </td> <th style="text-align: center"> <fl:getMessage code="L2076" alt="Lecture"/> </th> <th style="text-align: center"> <fl:getMessage code="L2077" alt="Edition"/> </th> <th style="text-align: center"> <fl:getMessage code="L2078" alt="Création"/> </th> <th style="text-align: center"> <fl:getMessage code="L2079" alt="Suppression"/> </th> </tr> </thead> <tbody> <tr class="<%= colorBlue ? "tabSimpleFdBleu" : "tabSimpleFdBlanc" %>" style="text-align: center"> <td class="<%= colorBlue ? "tabSimpleFdBleu" : "tabSimpleFdBlanc" %>" style="width: 1%; white-space: nowrap;"> <fl:getMessage code="L207A" alt="Par défaut"/> </td> <td class="<%= colorBlue ? "tabSimpleFdBleu" : "tabSimpleFdBlanc" %> dataValue" style="width: auto; "> <span class="dataValue" /> <select name="ObjDefaultRead"> <option value="0"<% if (defaultRead==0) { %> selected<% } %>><fl:getMessage code="L207B" alt="Interdit"/></option> <option value="1"<% if (defaultRead==1) { %> selected<% } %>><fl:getMessage code="L207C" alt="Autorisé"/></option> </select> </span> </td> <td class="<%= colorBlue ? "tabSimpleFdBleu" : "tabSimpleFdBlanc" %> dataValue" style="width: auto; "> <span class="dataValue" /> <select name="ObjDefaultEdit"> <option value="0"<% if (defaultEdit==0) { %> selected<% } %>><fl:getMessage code="L207B" alt="Interdit"/></option> <option value="1"<% if (defaultEdit==1) { %> selected<% } %>><fl:getMessage code="L207C" alt="Autorisé"/></option> </select> </span> </td> <td class="<%= colorBlue ? "tabSimpleFdBleu" : "tabSimpleFdBlanc" %> dataValue" style="width: auto; "> <span class="dataValue"/> <select name="ObjDefaultCreate"> <option value="0"<% if (defaultCreate==0) { %> selected<% } %>><fl:getMessage code="L207B" alt="Interdit"/></option> <option value="1"<% if (defaultCreate==1) { %> selected<% } %>><fl:getMessage code="L207C" alt="Autorisé"/></option> </select> </span> </td> <td class="<%= colorBlue ? "tabSimpleFdBleu" : "tabSimpleFdBlanc" %> dataValue" style="width: auto; "> <span class="dataValue"/> <select name="ObjDefaultDelete"> <option value="0"<% if (defaultDelete==0) { %> selected<% } %>><fl:getMessage code="L207B" alt="Interdit"/></option> <option value="1"<% if (defaultDelete==1) { %> selected<% } %>><fl:getMessage code="L207C" alt="Autorisé"/></option> </select> </span> </td> </tr> <% colorBlue = !colorBlue; %> <tr class="<%= colorBlue ? "tabSimpleFdBleu" : "tabSimpleFdBlanc" %>" style="text-align: center"> <td class="<%= colorBlue ? "tabSimpleFdBleu" : "tabSimpleFdBlanc" %>" style="width: 1%; white-space: nowrap;"> <fl:getMessage code="L6033" alt="Propriétaire"/> </td> <td class="<%= colorBlue ? "tabSimpleFdBleu" : "tabSimpleFdBlanc" %> dataValue" style="width: auto; "> <span class="dataValue"/> <select name="ObjOwnerRead"> <option value="0"<% if (ownerRead==0) { %> selected<% } %>><fl:getMessage code="L207B" alt="Interdit"/></option> <option value="1"<% if (ownerRead==1) { %> selected<% } %>><fl:getMessage code="L207C" alt="Autorisé"/></option> <option value="2"<% if (ownerRead==2) { %> selected<% } %>></option> </select> </span> </td> <td class="<%= colorBlue ? "tabSimpleFdBleu" : "tabSimpleFdBlanc" %> dataValue" style="width: auto; "> <span class="dataValue"/> <select name="ObjOwnerEdit"> <option value="0"<% if (ownerEdit==0) { %> selected<% } %>><fl:getMessage code="L207B" alt="Interdit"/></option> <option value="1"<% if (ownerEdit==1) { %> selected<% } %>><fl:getMessage code="L207C" alt="Autorisé"/></option> <option value="2"<% if (ownerEdit==2) { %> selected<% } %>></option> </select> </span> </td> <td class="<%= colorBlue ? "tabSimpleFdBleu" : "tabSimpleFdBlanc" %> dataValue" style="width: auto; "> <span class="dataValue"/> <select name="ObjOwnerCreate"> <option value="0"<% if (ownerCreate==0) { %> selected<% } %>><fl:getMessage code="L207B" alt="Interdit"/></option> <option value="1"<% if (ownerCreate==1) { %> selected<% } %>><fl:getMessage code="L207C" alt="Autorisé"/></option> <option value="2"<% if (ownerCreate==2) { %> selected<% } %>></option> </select> </span> </td> <td class="<%= colorBlue ? "tabSimpleFdBleu" : "tabSimpleFdBlanc" %> dataValue" style="width: auto; "> <span class="dataValue"/> <select name="ObjOwnerDelete"> <option value="0"<% if (ownerDelete==0) { %> selected<% } %>><fl:getMessage code="L207B" alt="Interdit"/></option> <option value="1"<% if (ownerDelete==1) { %> selected<% } %>><fl:getMessage code="L207C" alt="Autorisé"/></option> <option value="2"<% if (ownerDelete==2) { %> selected<% } %>></option> </select> </span> </td> </tr> <% String rolesID = ""; if (rolesCode != null && rolesDisplay != null) { for (int i = 0; i < rolesDisplay.size(); i++) { String currID = (String)((Vector)rolesDisplay.elementAt(i)).elementAt(0); rolesID += (i > 0 ? "|" : "") + currID; String currDisplay = (String)((Vector)rolesDisplay.elementAt(i)).elementAt(1); String currCode = (String)((Vector)rolesCode.elementAt(i)).elementAt(1); int index = -1; int currRoleRead = 2; int currRoleEdit = 2; int currRoleCreate = 2; int currRoleDelete = 2; if (roles != null) { index = roles.indexOf(currID); if (index != -1) { if (rolesRead!= null) { currRoleRead = ((Integer)rolesRead.elementAt(index)).intValue(); } if (rolesEdit!= null) { currRoleEdit = ((Integer)rolesEdit.elementAt(index)).intValue(); } if (rolesCreate!= null) { currRoleCreate = ((Integer)rolesCreate.elementAt(index)).intValue(); } if (rolesDelete!= null) { currRoleDelete = ((Integer)rolesDelete.elementAt(index)).intValue(); } } } colorBlue = !colorBlue; %> <tr class="<%= colorBlue ? "tabSimpleFdBleu" : "tabSimpleFdBlanc" %>" style="text-align: center"> <td class="<%= colorBlue ? "tabSimpleFdBleu" : "tabSimpleFdBlanc" %>" style="width: 1%; white-space: nowrap;"> <%= currDisplay %> </td> <td class="<%= colorBlue ? "tabSimpleFdBleu" : "tabSimpleFdBlanc" %> dataValue" style="width: auto; "> <span class="dataValue" /> <select name="Read_<%= i %>"> <option value="0"<% if (currRoleRead == 0) { %> selected<% } %>><fl:getMessage code="L207B" alt="Interdit"/></option> <option value="1"<% if (currRoleRead == 1) { %> selected<% } %>><fl:getMessage code="L207C" alt="Autorisé"/></option> <option value="2"<% if (currRoleRead == 2) { %> selected<% } %>></option> </select> </span> </td> <td class="<%= colorBlue ? "tabSimpleFdBleu" : "tabSimpleFdBlanc" %> dataValue" style="width: auto; "> <span class="dataValue" /> <select name="Edit_<%= i %>"> <option value="0"<% if (currRoleEdit == 0) { %> selected<% } %>><fl:getMessage code="L207B" alt="Interdit"/></option> <option value="1"<% if (currRoleEdit == 1) { %> selected<% } %>><fl:getMessage code="L207C" alt="Autorisé"/></option> <option value="2"<% if (currRoleEdit == 2) { %> selected<% } %>></option> </select> </span> </td> <td class="<%= colorBlue ? "tabSimpleFdBleu" : "tabSimpleFdBlanc" %> dataValue" style="width: auto; "> <span class="dataValue"/> <select name="Create_<%= i %>"> <option value="0"<% if (currRoleCreate == 0) { %> selected<% } %>><fl:getMessage code="L207B" alt="Interdit"/></option> <option value="1"<% if (currRoleCreate == 1) { %> selected<% } %>><fl:getMessage code="L207C" alt="Autorisé"/></option> <option value="2"<% if (currRoleCreate == 2) { %> selected<% } %>></option> </select> </span> </td> <td class="<%= colorBlue ? "tabSimpleFdBleu" : "tabSimpleFdBlanc" %> dataValue" style="width: auto; "> <span class="dataValue" /> <select name="Delete_<%= i %>"> <option value="0"<% if (currRoleDelete == 0) { %> selected<% } %>><fl:getMessage code="L207B" alt="Interdit"/></option> <option value="1"<% if (currRoleDelete == 1) { %> selected<% } %>><fl:getMessage code="L207C" alt="Autorisé"/></option> <option value="2"<% if (currRoleDelete == 2) { %> selected<% } %>></option> </select> </span> </td> </tr> <% } %> <% } %> <input type="hidden" name="ObjRoles" value="<%= rolesID %>"> <input type="hidden" name="ObjRolesRead" value=""> <input type="hidden" name="ObjRolesEdit" value=""> <input type="hidden" name="ObjRolesCreate" value=""> <input type="hidden" name="ObjRolesDelete" value=""> </tbody> </table> </div> </div>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de