Edit C:\Users\Administrator\AppData\Local\Microsoft\Windows\INetCache\IE\2KQ37U68\infobar_js[1].js
/* The shape of the json string is : { "body":"Grande salle de réunion formation administrati...", "dat":"16:50", "from":"", "id":"00000000000ac979", "subject":"Formation UNIX", "type":"Alarm" } */ var defaultMessage = '<label style="color: black">Bienvenue dans Galaxie !</label>'; var withScoll = "false"; var doCreateInformationPanelFunction = 'javascript:doCreateInformationPanel();' var link = '<a href="'+ doCreateInformationPanelFunction +'"><img src="/galaxie/icons/infobar/add.gif" alt="Créer" title="Créer" class="infobar-icon"></a>'; defaultMessage = '<table style="width: 100%"><tr class="infobar-body" style="width: 100%"><td style="width: 90%; text-align: center;">' + defaultMessage + '</td><td style="width: 10%; text-align: right;">' + link + '</td></tr></table>'; var objectDisplayFunction = new Object(); //Construction of the information to be displayed . Objects : Alarm and InformationPanel ... objectDisplayFunction["Alarm"] = function(information) { // attributes var infoId = "'" + information.id + "'"; var infoType = "'" + information.type + "'"; var infoBody = decodeURIComponent(information.body); var infoSubject = decodeURIComponent(information.subject); var infoDate = information.dat; // functions var openPopupFunction = 'javascript:openPopup(' + infoId + ',' + infoType + ');' var doReprogramAlarmFunction = 'javascript:doReprogramAlarm(' + infoId + ');' var doDeleteAlarmFunction = 'javascript:doDeleteAlarm(' + infoId + ');' var doReadInformationPanelFunction = 'javascript:doReadInformationPanel(' + infoId + ');' // links var link_1 = '<a href="'+ doReprogramAlarmFunction +'"><img src="/galaxie/icons/infobar/valid.gif" alt="Re-programmer" title="Re-programmer" class="infobar-icon"></a>'; var link_2 = '<a href="'+ doDeleteAlarmFunction +'"><img src="/galaxie/icons/infobar/delete.gif" alt="Supprimer" title="Supprimer" class="infobar-icon"></a>'; // informations var informationToDisplay = '<table><tr class="infobar-title"><td><a href="'+ openPopupFunction +'">' + infoDate + ' - ' + infoSubject + '</a></td><td>' + link_1 + '</td></tr><tr class="infobar-body"><td class="infobar-body-text">' + infoBody +'</td><td>' + link_2 + '</td></tr></table>'; informationToDisplay = addCommonElement(informationToDisplay, '<img src="/galaxie/icons/infobar/alarm.gif" style="border: none; margin-right: 10px" title="Alarme" >'); //Save withScoll withScoll = information.refresh; return informationToDisplay; }; objectDisplayFunction["InformationPanel"] = function(information) { // attributes var infoId = "'" + information.id + "'"; var infoType = "'" + information.type + "'"; var infoBody = decodeURIComponent(information.body); var infoSubject = decodeURIComponent(information.subject); var infoDate = information.dat; // functions var openPopupFunction = 'javascript:openPopup(' + infoId + ',' + infoType + ');' var doReprogramAlarmFunction = 'javascript:doReprogramAlarm(' + infoId + ');' var doDeleteAlarmFunction = 'javascript:doDeleteAlarm(' + infoId + ');' var doReadInformationPanelFunction = 'javascript:doReadInformationPanel(' + infoId + ');' var doCreateInformationPanelFunction = 'javascript:doCreateInformationPanel();' // links and informations var link_1 = '<a href="'+ doCreateInformationPanelFunction +'"><img src="/galaxie/icons/infobar/add.gif" alt="Créer" title="Créer" class="infobar-icon"></a>'; var link_2 = '<a href="'+ doReadInformationPanelFunction +'"><img src="/galaxie/icons/infobar/valid.gif" alt="Marquer comme lu" title="Marquer comme lu" class="infobar-icon"></a>'; informationToDisplay = '<table style="width: 100%"><tr class="infobar-title"><td><a href="'+ openPopupFunction +'" style="color: black">' + infoDate + ' - ' + infoSubject + '</a></td><td>' + link_1 + '</td></tr><tr class="infobar-body"><td class="infobar-body-text" style="font-weight:normal;">' + infoBody +'</td><td>' + link_2 + '</td></tr></table>'; informationToDisplay = addCommonElement(informationToDisplay, '<img src="/galaxie/icons/infobar/notepad.gif" style="border: none; margin-right: 10px" title="Panneau d\'information" />'); //Save withScoll withScoll = information.refresh; return informationToDisplay; }; function getInformationToDisplay(information){ return ((information.type != null) && (information.type != '')) ? objectDisplayFunction[information.type](information) : ''; } function displayInformationOnInfoBar(info){ $("#infobar_information").html(info); if (withScoll == "true"){ $("#infobar_information").slideUp("normal"); $("#infobar_information").slideDown("normal"); } } function getInfoBarInformation(forceupdate) { if ((forceupdate == null) || (typeof forceupdate == 'undefined')){ forceupdate = "false"; } else { forceupdate = "true"; } $.ajax({ url:"/galaxie/get_infobar_information.fl?forceupdate=" + forceupdate, dataType: 'json', success: analyseResponse, type: "POST", timeout: 20000 }); function analyseResponse(information) { if ((information != null) && (information.type != null) && (information.type != '')) { var informationToDisplay = getInformationToDisplay(information); if (informationToDisplay == '') displayInformationOnInfoBar(addCommonElement(defaultMessage)); else displayInformationOnInfoBar(getInformationToDisplay(information)); } else { displayInformationOnInfoBar(addCommonElement(defaultMessage)); } } } function addCommonElement(info, imag){ if (imag == null) imag = '<img src="/galaxie/icons/infobar/notepad.gif" style="border: none; margin-right: 10px"/>'; contentHTML = '<table><tr><td style="vertical-align: middle; text-align: left;">'+ imag + '</td><td style="height: 30px; text-align: center">' + info + '</td></tr></table>'; return contentHTML; } $.setupJMPopups({ screenLockerBackground: "#222222", screenLockerOpacity: "0.3" }); function openPopup(id, type) { if ((id == null) || (type == null)) return; if (type == "Alarm") { namePopup = "alarmPopup"; urlPopup = "/galaxie/open_popup_alarm.fl?id=" + id; openAjaxPopup(namePopup, urlPopup); } else if (type == "InformationPanel") { //modification namePopup = "informationpanelPopup"; urlPopup = "/galaxie/open_popup_informationpanel.fl?id=" + id; openJSPopup(namePopup, urlPopup); } } function openAjaxPopup(namePopup, urlPopup){ jQuery.openPopupLayer({ name: namePopup, width: 800, height: 250, url: urlPopup, cache: true, success: function (data) { }, error: function () { alert("Erreur lors de l'ouverture de la popup !"); } }); } function openJSPopup(namePopup, urlPopup){ var win = window.open(urlPopup, namePopup, 'menubar=no,status=no,toolbar=no,scrollbars=yes,resizable=yes,width=850,height=650'); } function doDeleteAlarm(id) { urlAjax("/galaxie/delete_alarm_shortcut.fl?id=" + id); } function doReprogramAlarm(id, newdate) { url = "/galaxie/reprogram_alarm_shortcut.fl?id=" + id if (newdate != null) url = url + "&newdate=" + newdate; urlAjax(url); } function doReadInformationPanel(id) { urlAjax("/galaxie/mark_read_informationpanel.fl?id=" + id); } function doCreateInformationPanel() { namePopup = "informationpanelPopup"; urlPopup = "/galaxie/open_popup_informationpanel.fl"; openJSPopup(namePopup, urlPopup); } function urlAjax(url){ $.ajax({ url: url, dataType:'text', async: false, success: analyseResponse }); function analyseResponse(response) { if (response != null){ switch(response) { case 'alarm_ok_delete': //displayMessage('L\'alarme a été bien supprimée'); break; case 'alarm_no_delete': displayMessage('Erreur lors de la suppression de l\'alarme'); break; case 'alarm_ok_reprogram': //displayMessage('L\'alarme a été reprogrammée'); break; case 'alarm_no_reprogram': displayMessage('Erreur lors de la reprogrammation de l\'alarme'); break; case 'informationpabel_ok_read': //displayMessage('Le panneau d\'information a été marqué comme lu'); break; case 'informationpanel_no_read': displayMessage('Erreur lors de la mise en lecture du panneau d\'information'); break; default: break; } } } //forcer la mise à jour des infos getInfoBarInformation("force_update"); } function displayMessage(message) { window.alert(message); }
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de