Edit C:\Users\Administrator\Desktop\Back\galaxie\navigation\dashboard\dashboard_customization.jsp
<%@ page session="true" %> <%@ page import="com.edeal.frontline.DashboardBean, com.edeal.frontline.DashboardPageBean, com.edeal.frontline.DataDictionary, com.edeal.frontline.FieldNotInitializedException, com.edeal.frontline.FlContext, com.edeal.frontline.MenuBean, com.edeal.frontline.SoftwareBean, com.edeal.frontline.Utils, com.edeal.frontline.dashboard.DashboardPage, com.edeal.frontline.helper.custom.DashboardHelper, com.edeal.frontline.helper.DashboardPageBaseHelper, com.edeal.frontline.navigation.FlRequest, java.util.LinkedHashMap, java.util.Vector, org.apache.commons.logging.Log, org.apache.commons.logging.LogFactory" %> <%@ taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %> <jsp:useBean class="com.edeal.frontline.DashboardBean" id="Dashboard" scope="request"/> <% String actID = (String) session.getAttribute("actorID"); FlRequest flRequest = new FlRequest(request); final Log logger = LogFactory.getLog(getClass()); String afterCreation = (String) flRequest.getParameter("aftercreation"); String order = null; String isAdmin = null; String willBeModel = null; if (afterCreation != null) { isAdmin = "1"; willBeModel = "1"; } else { isAdmin = (String) flRequest.getRequestParameterOrAttribute("admin"); willBeModel = (String) flRequest.getRequestParameterOrAttribute("model"); order = (String) flRequest.getParameter("order"); } boolean isModel = Dashboard.isDshDefault(); DashboardHelper dashboardHelper = new DashboardHelper(Dashboard); Vector<DashboardPageBean> pages = dashboardHelper.collectPages(); LinkedHashMap<String, DashboardPage> availablePages = DashboardPage.collectAvailableDashboardPages(session, flRequest.getContext(), actID); DashboardPage defaultPage = null; Iterator<DashboardPage> pageIterator = availablePages.values().iterator(); while (defaultPage == null && pageIterator.hasNext()) defaultPage = pageIterator.next(); String actionBodyURL = Utils.getRequestParameter(flRequest.getContext(), request, "actionPageURL"); String bodyPageURL = Utils.getRequestParameter(flRequest.getContext(), request, "bodyPageURL"); FlContext context = flRequest.getContext(); DataDictionary dico = flRequest.getContext().getDataDictionary(); String strActDisp = null; //Vector<DashboardBean> availableDashboardBeans = DashboardHelper.toVector(DashboardHelper.collectDefaultDashboards(context, actID)); if (bodyPageURL == null) bodyPageURL = (String) request.getAttribute("body"); if (actionBodyURL == null) actionBodyURL = (String) request.getAttribute("action"); try { strActDisp = flRequest.getContext().getDataDictionary().getTable("sql", "Actor").toString(session, actID); } catch (Throwable e) { } Integer resX = (Integer) session.getAttribute("resolutionX"); String activateAlert = flRequest.getContext().getContextParameter("ActivateAlert"); boolean isAlertsActivated = ((activateAlert != null) && ("true".equalsIgnoreCase(activateAlert))); MenuBean menuBeanMaster = null; String menuIdMaster = null; SoftwareBean swBeanMaster = null; String sfwIdMaster = flRequest.getRequestParameterOrAttribute("SfwID"); flRequest.setAttribute("SfwID", sfwIdMaster); if (flRequest.getRequestParameterOrAttribute("mn") != null) menuIdMaster = flRequest.getRequestParameterOrAttribute("mn"); else if (flRequest.getRequestParameterOrAttribute("MenID") != null) menuIdMaster = flRequest.getRequestParameterOrAttribute("MenID"); // First try the menu directly, and get sfwIdMaster from that if (menuIdMaster != null) { try { menuBeanMaster = new MenuBean(menuIdMaster, flRequest.getContext()); try { sfwIdMaster = menuBeanMaster.getMenSfwID(); } catch (FieldNotInitializedException fnie) { logger.debug("Master software ID was not found in the master MenuBean", fnie); } swBeanMaster = new SoftwareBean(sfwIdMaster, flRequest.getContext()); } catch (Exception e) { menuBeanMaster = null; swBeanMaster = null; } } // Then try the getting the software and pulling the menu from there if (menuBeanMaster == null) { try { swBeanMaster = new SoftwareBean(sfwIdMaster, flRequest.getContext()); menuBeanMaster = flRequest.getContext().getMenuManager().getMenu(actID, swBeanMaster.getID()); } catch (Exception e) { menuBeanMaster = null; swBeanMaster = null; } } // If we still don't have a menu, try getting it from the default stored in the session if (menuBeanMaster == null) { try { menuBeanMaster = new MenuBean((String) session.getAttribute("DefaultMenID"), flRequest.getContext()); swBeanMaster = new SoftwareBean(menuBeanMaster.getMenSfwID(), flRequest.getContext()); } // Try to affect the first available software and visible for current actor catch (Exception e) { Vector<SoftwareBean> softwareBeans = flRequest.getContext().getLicenceManager().getSoftwareBeans(); for (SoftwareBean softwareBean : softwareBeans) { Vector sfwRoleHidden = null; try { sfwRoleHidden = (Vector)softwareBean.getSfwRoleHidden(); } catch (FieldNotInitializedException fnie) { } ActorBean actBean = ActorHelper.getSessionActor(session); Vector actRoles = null; try { actRoles = actBean.getActRoles(); } catch (FieldNotInitializedException fnie) { } Boolean isSfwRoleHidden = true; if (sfwRoleHidden != null && actRoles != null) { for (int j = 0; j < actRoles.size(); j++) { if (!sfwRoleHidden.contains(actRoles.elementAt(j))) { // if at least one of my role allows me to see a software so I can see it isSfwRoleHidden = false; break; } } } else { isSfwRoleHidden = false; } if (softwareBean.isSfwInactive() || softwareBean.isSfwHidden() || (isSfwRoleHidden)) { continue; } swBeanMaster = softwareBean; flRequest.setAttribute("SfwID", softwareBean.getSfwID()); break; } } } String sfwCodeMaster = ""; try { sfwCodeMaster = swBeanMaster.getSfwCode(); } catch (FieldNotInitializedException fnie) { logger.debug("Master software code was not found", fnie); } if (sfwCodeMaster.equals("")) sfwCodeMaster = "UNDEFINED"; FlLocale flLocale = FlLocale.getInstance(session); String language = flLocale.getLanguage(); %><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html lang="en"> <head> <title><fl:getMessage code="L2025" alt="E-DEAL"/> CRM <%= strActDisp == null ? "" : " - " + Utils.formatToWeb(strActDisp, false) %></title> <link rel="stylesheet" href="<fl:webapp/>/css/common_css.jsp" type="text/css"> <link rel="stylesheet" href="<fl:webapp/>/css/tooltip.css" type="text/css"> <link rel="stylesheet" href="<fl:webapp/>/css/master_css.jsp?sfwCode=<%= sfwCodeMaster %>" type="text/css"> <link rel="stylesheet" href="<fl:webapp/>/css/smalltabs_css.jsp" type="text/css"> <link rel="stylesheet" href="<fl:webapp/>/css/jquery-ui/jquery-ui-1.8.7.custom.css" type="text/css"> <link rel="icon" href="<fl:webapp/>/favicon.ico" type="image/x-icon"> <link rel="shortcut icon" href="<fl:webapp/>/favicon.ico" type="image/x-icon"> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/presentField.js"></script> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/ajax/sarissa.js"></script> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/ajax/ajax.js"></script> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/master_js.jsp"></script> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/global_js.jsp"></script> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/ac/fobAC_js.jsp"></script> <script type="text/javascript" src="<fl:webapp/>/js/edeal/libraries/jquery/ui/1.10.2/jquery-ui-1.10.2.custom.min.js"></script> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/infobar/infobar_js.jsp"></script> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/edeal/libraries/jquery/plugins/jquery.migrate/jquery-migrate-1.1.1.min.js"></script> <script language="javascript"> if (!window.edeal) window.edeal = {}; window.edeal.myActorId = "<%=actID%>"; window.edeal.myLocale = "<%=language%>"; </script> <script language="javascript"> var pageCount = <%= pages.size() %>; function addPage() { var options = ""; $(".page").each(function() { options += " <option value='" + $(this).attr("id") + "'>" + $(this).attr("name") + "</option>\n"; }); $("#dashboard").append ( "<div class='pageContainer'\n" + " id='pageContainer-" + pageCount + "'\n" + " style='left: 0px; top: " + this.calculateHeight() + "px'>\n" + " <div class='buttons'>\n" + " <img class='clickableIcon'\n" + " onClick='deletePage(" + pageCount + ")'\n" + " src='<fl:link url='/icons/ico/page_delete.gif'/>' />\n" + " <select class='pageSelection' id='pageSelection-" + pageCount + "' name='pageSelection'>\n" + options + " </select>\n" + " </div>\n" + " <iframe class='pageContent'\n" + " id='pageContent-" + pageCount + "'\n" + " name='<%= defaultPage.getCode() %>'\n" + " src='<%= flRequest.computeURL(defaultPage.getUrl()) %>'></iframe>\n" + "</div>\n" ); makeChangeable(pageCount); makeDraggable(); initializeDashboard(); pageCount ++; } function back() { window.location.href = "<fl:webapp/>/home.fl"; } function backToModel() { window.location.href = "copy_dashboard_model.fl?id=<%= Dashboard.getDshID() %>"; } function Box(height, width, x, y) { this.height = height; this.width = width; this.x = x; this.y = y; this.detectCollision = function(box) { if (this.x + this.width > box.x && this.x < box.x + box.width && this.y + this.height > box.y && this.y < box.y + box.height) return true; else return false; } this.drag = function(box) { this.x = box.x; this.y = box.y; } this.resize = function(box) { this.height = box.height; this.width = box.width; } this.showAsPlaceholder = function(id) { $("#" + id) .css("background-color", "lightgray") .css("display", "inline") .css("height", this.height + "px") .css("left", this.x) .css("position", "absolute") .css("top", this.y) .css("width", this.width + "px") .css("z-index", 999); } } function calculateHeight() { var currentHeight = 0; var dashboardHeight = 0; $(".pageContainer").each(function() { currentHeight = $(this).position().top + $(this).outerHeight(); if (currentHeight > dashboardHeight) dashboardHeight = currentHeight; }); return dashboardHeight; } function deletePage(page) { $("#pageContainer-" + page).remove(); } function erase() { window.location.href = "erase_dashboard.fl?id=<%= Dashboard.getDshID() %>"; } function expandDashboard() { $("#dashboard").height($("#dashboard").height() + 500); } function hidePlaceholders() { $("#destinationPlaceholder").css("display", "none"); $("#sourcePlaceholder").css("display", "none"); } function initializeDashboard() { var dashboardHeight = this.calculateHeight(); if (dashboardHeight < 3000) $("#dashboard").height(3000); else $("#dashboard").height(dashboardHeight); } function lock() { update(); var f = document.forms["form"]; var url = "<fl:webapp/>/lock_dashboard.fl?actorId=<%= actID %>&admin=<%= isAdmin %>&model=<%= willBeModel %><%= order != null ? "&order=" + order : "" %>&SfwID=<%= sfwIdMaster %>"; f.action = url; f.submit(); } function makeChangeable(page) { $("#pageSelection-" + page).change( function () { refresh(page); } ); } function makeDraggable() { $("#dashboard").resizable({ handles: 's', stop: function(event, ui) { height = ui.position.top + ui.size.height; $(".pageContainer").each(function() { if ($(this).position().top + $(this).height() > height) initializeDashboard(); }); } }); $(".pageContainer") .draggable({ collide:"block", containment: "#dashboard", cursor: "move", distance: 0, iframeFix: true, stack: ".pageContainer" }) .resizable({ containment: "#dashboard", collide: "block", distance: 0, start: function(event, ui) { //var o = $(this).data('draggable').options; jQuery("iframe").each(function() { jQuery('<div class="ui-resizable-iframeFix" style="background: #fff;"></div>') .css({ width: this.offsetWidth+"px", height: this.offsetHeight+"px", position: "absolute", opacity: "0.001", zIndex: 1000 }) .css(jQuery(this).offset()) .appendTo("body"); }); }, stop: function(event, ui) { jQuery("div.ui-resizable-iframeFix") .each(function() { this.parentNode.removeChild(this); }); //Remove frame helpers } }); } function makeEmpty() { $(".pageContainer").remove(); } function refresh(page) { var code = $("#pageSelection-" + page + " option:selected").val(); var url = $("#" + code).val(); $("#pageContent-" + page) .attr("name", code) .attr("src", url) .css("scroll", "auto"); } function snapUp() { var currentLeft = 0; var currentTop = 0; var lineHeight = 0; //var pages = new Array(); var pages = {}; $(".pageContainer").each(function() { var left = $(this).position().left; var top = $(this).position().top; if (pages[left] == null) pages[left] = new Array(); pages[left][top] = $(this); }); /*pages.sort(function(a, b) { return (a - b); });*/ for (var i in pages) { if (pages.hasOwnProperty(i)) { var currentHeight = 0; var maximumWidth = 0; var totalHeight = 0; /*pages[i].sort(function(a, b) { return (a - b); });*/ for (var j in pages[i]) { if (pages[i].hasOwnProperty(j)) { if (pages[i][j].outerWidth() > maximumWidth) maximumWidth = pages[i][j].outerWidth(); totalHeight += pages[i][j].outerHeight(); } } if ($("#dashboard").innerWidth() < currentLeft + maximumWidth) { currentLeft = 0; currentTop += lineHeight + 5; lineHeight = 0; } if (totalHeight > lineHeight) lineHeight = totalHeight + 5; for (var j in pages[i]) { if (pages[i].hasOwnProperty(j)) { pages[i][j].css("left", currentLeft); pages[i][j].css("top", currentTop + currentHeight); currentHeight += pages[i][j].outerHeight() + 5; } } currentLeft += maximumWidth + 5; } } initializeDashboard(); } function update() { var json = "{\"type\":\"Dashboard\",\"id\":\"<%= Dashboard.getDshID() %>\", \"title\":\"" + $("#title").attr("value") + "\", \"pages\":["; var jsonPages = ""; var container; var content; $(".pageContainer").each( function() { container = $(this); content = $(this).find(".pageContent").first(); if (jsonPages != "") jsonPages += ", "; jsonPages += "{" + "\"code\":\"" + content.attr("name") + "\"," + "\"height\":\"" + parseInt(container.height()) + "\"," + "\"url\":\"" + content.attr("src") + "\"," + "\"width\":\"" + parseInt(container.width()) + "\"," + "\"x\":\"" + parseInt(container.position().left) + "\"," + "\"y\":\"" + parseInt(container.position().top) + "\"" + "}"; } ); json += jsonPages + "]}"; $("#json").val(json); //return json; } $.ui.plugin.add("draggable", "collide", { drag: function(event, ui) { var draggedBox = new Box($(this).outerHeight(), $(this).outerWidth(), ui.position.left, ui.position.top); var goingToSwitch = false var initialBox = new Box($(this).outerHeight(), $(this).outerWidth(), ui.originalPosition.left, ui.originalPosition.top); var peers = $(this).siblings(".pageContainer"); $(peers).each(function (i, peer) { var peerBox = new Box($(peer).outerHeight(), $(peer).outerWidth(), $(peer).position().left, $(peer).position().top); if (draggedBox.detectCollision(peerBox)) { peerBox.showAsPlaceholder("destinationPlaceholder"); goingToSwitch = true; } }); if (goingToSwitch) initialBox.showAsPlaceholder("sourcePlaceholder"); else hidePlaceholders(); }, stop: function(event, ui) { var draggedBox = new Box($(this).outerHeight(), $(this).outerWidth(), ui.position.left, ui.position.top); var initialBox = new Box($(this).outerHeight(), $(this).outerWidth(), ui.originalPosition.left, ui.originalPosition.top); var peers = $(this).siblings(".pageContainer"); $(peers).each(function (i, peer) { var peerBox = new Box($(peer).outerHeight(), $(peer).outerWidth(), $(peer).position().left, $(peer).position().top); if (draggedBox.detectCollision(peerBox)) { draggedBox.drag(peerBox); draggedBox.resize(peerBox); peerBox.drag(initialBox); peerBox.resize(initialBox); } $(peer).height(peerBox.height - ($(peer).outerHeight() - $(peer).height())); $(peer).width(peerBox.width - ($(peer).outerWidth() - $(peer).width())); $(peer).css("left", peerBox.x); $(peer).css("top", peerBox.y); }); hidePlaceholders(); initialBox.drag(draggedBox); initialBox.resize(draggedBox); $(this).height(initialBox.height - ($(this).outerHeight() - $(this).height())); $(this).width(initialBox.width - ($(this).outerWidth() - $(this).width())); $(this).css("left", initialBox.x); $(this).css("top", initialBox.y); } }); $.ui.plugin.add("resizable", "collide", { resize: function(event, ui) { var resizedBox = new Box($(this).outerHeight(), $(this).outerWidth(), ui.position.left, ui.position.top); var peers = $(this).siblings(".pageContainer"); $(peers).each(function (i, peer) { var peerBox = new Box($(peer).outerHeight(), $(peer).outerWidth(), $(peer).position().left, $(peer).position().top); if (resizedBox.detectCollision(peerBox)) { var height = resizedBox.height; var width = resizedBox.width; if (peerBox.x < resizedBox.x + resizedBox.width) width = peerBox.x - resizedBox.x; if (peerBox.y < resizedBox.y + resizedBox.height) height = peerBox.y - resizedBox.y; if (height < ui.originalSize.height) height = ui.originalSize.height; if (width < ui.originalSize.width) width = ui.originalSize.width; var newBox = new Box(height, width, resizedBox.x, resizedBox.y); resizedBox.resize(newBox); ui.size.height = height; ui.size.width = width; } }); }, stop: function(event, ui) { var resizedBox = new Box($(this).outerHeight(), $(this).outerWidth(), ui.position.left, ui.position.top); var peers = $(this).siblings(".pageContainer"); $(peers).each(function (i, peer) { var peerBox = new Box($(peer).outerHeight(), $(peer).outerWidth(), $(peer).position().left, $(peer).position().top); if (resizedBox.detectCollision(peerBox)) { var height = resizedBox.height; var width = resizedBox.width; if (peerBox.x < resizedBox.x + resizedBox.width) width = peerBox.x - resizedBox.x; if (peerBox.y < resizedBox.y + resizedBox.height) height = peerBox.y - resizedBox.y; if (height < ui.originalSize.height) height = ui.originalSize.height; if (width < ui.originalSize.width) width = ui.originalSize.width; var newBox = new Box(height, width, resizedBox.x, resizedBox.y); resizedBox.resize(newBox); } }); $(this).height(resizedBox.height - ($(this).outerHeight() - $(this).height())); $(this).width(resizedBox.width - ($(this).outerWidth() - $(this).width())); $(this).css("left", resizedBox.x); $(this).css("top", resizedBox.y); } }); $(document).ready(function() { <% for (int i = 0; i < pages.size(); i ++) { %> makeChangeable(<%=i%>); <% } %> makeDraggable(); initializeDashboard(); }); </script> <style> .buttons { background-color: #EEF1FB; border-bottom: 1px solid rgb(160, 199, 209); border-top-left-radius: 5px; border-top-right-radius: 5px; -moz-border-radius-topleft: 5px; -moz-border-radius-topright: 5px; -webkit-border-top-left-radius: 5px; -webkit-border-top-right-radius: 5px; cursor: move; height: 23px; overflow: hidden; padding: 0px 5px 0px 5px; } .clickableIcon { cursor: pointer; margin: 0px; padding: 2px; } .dashboardMenu { background-color: #EEF1FB; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; margin: 0px 0px 5px 0px; padding: 2px 10px 2px 10px; } .dashboardSelection { background-color: #FAFDFD; border: 1px solid #A3A6AB; color: #000000 ; font-family: Arial, Verdana, sans-serif; font-size: 12px; margin: 1px 5px 1px 5px; padding: 1px; vertical-align: top; } #destinationPlaceholder { background-color: lightgray; } .menuLabel { margin: 2px 0px 0px 30px; vertical-align: top; } .pageContainer { background-image: url("<fl:webapp/>/icons/ico/resize_corner.gif"); background-position: right bottom; background-repeat: no-repeat; border: 2px solid rgb(160, 199, 209); border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; height: 348px; overflow: hidden; width: 498px; position: absolute; padding-bottom: 10px; } .pageContent { border: none; height: 100%; margin: 0px; padding: 0px; scroll: auto; width: 100%; } .pageSelection { background-color: #FAFDFD; border: 1px solid #A3A6AB; color: #000000 ; font-family: Arial, Verdana, sans-serif; font-size: 12px; margin: 1px; padding: 1px; vertical-align: top; } .placeholder { background-color: lightgray; } #sourcePlaceholder { background-color:lightgray; } .title { display: inline; vertical-align: top; } .warningModel { color: #FF0000; font-family: Arial, Verdana, sans-serif; font-size: 12px; margin: 0px 0px 0px 5px; vertical-align: top; } </style> </head> <body> <form action="" method="POST" name="form" id="form" > <input type="hidden" name="json" id="json"/> </form> <div id="header"> <div id="infobar_css"> <%@include file="/navigation/infobar/infobar.jsp" %> </div> <div id="menubar_css"> <%@include file="/navigation/menubar/menubar.jsp" %> </div> </div> <div id="object_css" style="width: 100%; padding: 0px; padding-top: 5px;"> <% for (DashboardPage pageModel : availablePages.values()) { String pageUrl = pageModel.getUrl(); pageUrl = pageUrl.toLowerCase().startsWith("http") ? pageUrl:flRequest.computeURL(pageUrl); %> <input class="page" id="<%= pageModel.getCode() %>" name="<%= pageModel.getName() %>" type="hidden" value="<%= pageUrl %>" /> <% } %> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="98%" bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="1%"><img src="<fl:webapp/>/icons/smalltabs/bd_n-w_small.gif" width="16" height="10" border="0" name="dashboards_swapPict"></td> <td id="dashboards_stab0" class="stabselected" width="98%"></td> <td width="1%"><img src="<fl:webapp/>/icons/smalltabs/bd_w-n_small.gif" width="15" height="10" name="dashboards_swapPict0"></td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td style="width: 13px; height: 13px; background: url(<fl:webapp/>/icons/smalltabs/b_left.gif)"></td> <td> <div id="<%= Dashboard.getDshID() %>" style="display: inline"> <div class="dashboardMenu"> <img class="clickableIcon" onClick="lock()" src="<fl:link url="/icons/ico/lock.gif"/>" title="<fl:getMessage code="L6638" alt="Enregistrer"/>" /> <img class="clickableIcon" onClick="backToModel()" src="<fl:link url="/icons/ico/lock_go.gif"/>" title="<fl:getMessage code="L6639" alt="Rétablir la disposition par défaut"/>" /> <img class="clickableIcon" onClick="back()" src="<fl:link url="/icons/ico/arrow_undo.gif"/>" title="<fl:getMessage code="L60AD" alt="Retour à la page d\'acceuil"/>" /> <img class="clickableIcon" id="pageAdder" onClick="addPage()" src="<fl:link url="/icons/ico/page_add.gif"/>" title="<fl:getMessage code="L6641" alt="Ajouter un bloc"/>" /> <img class="clickableIcon" onClick="makeEmpty()" src="<fl:link url="/icons/ico/page_delete.gif"/>" title="<fl:getMessage code="L6642" alt="Supprimer tous les blocs"/>" /> <img class="clickableIcon" id="layout" onClick="snapUp()" src="<fl:link url="/icons/ico/arrow_up.gif"/>" title="<fl:getMessage code="L6643" alt="Réorganisation automatique"/>" /> <img class="clickableIcon" id="expand" onClick="expandDashboard()" src="<fl:link url="/icons/ico/arrow_down.gif"/>" title="<fl:getMessage code="L6644" alt="Agrandir"/>" /> <span class="menuLabel"><fl:getMessage code="F2016" alt="Titre"/></span> <div class="title"><input id="title" value="<%= Dashboard.getDshName() %>" /></div> <% if (!isModel) { %> <fl:access operation="delete" name="Dashboard" id="<%= Dashboard.getDshID() %>"> <img class="clickableIcon" onClick="erase()" src="<fl:link url="/icons/ico/tab_delete.gif"/>" title="<fl:getMessage code="L6640" alt="Supprimer cet onglet"/>" /> </fl:access> <% } if (willBeModel.equals("1")) { %> <span class="warningModel"><fl:getMessage code="L70B3" alt="Attention, vous modifiez actuellement l\'onglet par défaut !"/></span> <% } %> </div> <div id="dashboard"> <input class="placeholder" id="gridStep" type="hidden" value="5"/> <div class="placeholder" id="destinationPlaceholder" style="display: none"></div> <div class="placeholder" id="sourcePlaceholder" style="display: none; left: 0px; top: 0px"></div> <% int pageOrder = 0; for (DashboardPageBean dashboardBeanPage : pages) { DashboardPage dashboardPage = new DashboardPage(session, context, dashboardBeanPage.getDspPage()); %> <div class="pageContainer" id="pageContainer-<%= pageOrder %>" style="left: <%= dashboardBeanPage.getDspX() %>px; height: <%= dashboardBeanPage.getDspHeight() %>px; top: <%= dashboardBeanPage.getDspY() %>px; width: <%= dashboardBeanPage.getDspWidth() %>px"> <div class="buttons"> <img class="clickableIcon" onClick="deletePage(<%= pageOrder %>)" src="<fl:link url="/icons/ico/page_delete.gif"/>" /> <select class="pageSelection" id="pageSelection-<%= pageOrder %>" name="pageSelection"> <% for (DashboardPage pageModel : availablePages.values()) { %> <option<%= dashboardPage.getCode() == pageModel.getCode() ? " selected='selected' " : "" %> value="<%= pageModel.getCode() %>"><%= pageModel.getName() %></option> <% } %> </select> </div> <% String dashUrl=dashboardPage.getUrl(); dashUrl=dashUrl.toLowerCase().startsWith("http:")?dashUrl:flRequest.computeURL(dashUrl); %> <iframe class="pageContent" id="pageContent-<%= pageOrder %>" name="<%= dashboardPage.getCode() %>" src="<%= dashUrl %>"> </iframe> </div> <% pageOrder ++; } %> </div> </div> </td> <td style="width: 15px; height: 15px; background: url(<fl:webapp/>/icons/smalltabs/b_right.gif)"></td> </tr> <tr> <td style="width: 13px; height: 15px; background: url(<fl:webapp/>/icons/smalltabs/b_bottom-left.gif)"></td> <td style="background: url(<fl:webapp/>/icons/smalltabs/b_bottom.gif)"></td> <td style="width: 15px; height: 15px; background: url(<fl:webapp/>/icons/smalltabs/b_bottom-right.gif)"></td> </tr> </table> </td> </tr> </table> <a name="bottom_smalltabs"></a> </div> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de