function openLegalInfo(title, showTextWithID, isDatenschutz) { isScreenBlocked = true; $("#dialog").html(""); $("#dialog").load("/risikomanagement_app/dialog_legal_info.php?showTextWithID="+showTextWithID+"&isDatenschutz="+isDatenschutz+"&PHPSESSID=0d296e4db8afde62da7872c6f2b1d4c2").dialog({ close: function(event, ui) { $('#dialog').dialog('destroy'); }, resizable: false, height: 520, width: 700, modal: true, bgiframe: true, title: title }); isScreenBlocked = false; } function bookmark() { var url='http://www.trovarit.com/risikomanagement_app/quicklink.php?ql='; var title='HLB Stückmann - Risikomanagement - []'; if ((typeof window.sidebar == "object") && (typeof window.sidebar.addPanel == "function")) { window.sidebar.addPanel(title, url, ""); // Gecko } else if ((navigator.appName == 'Microsoft Internet Explorer') && typeof window.external == "object") { if (isIE8()) { window.external.AddToFavoritesBar(url, title); // IE 8 } else { window.external.AddFavorite(url, title); // IE <=7 } } } function isIE8() { var rv = -1; if (navigator.appName == 'Microsoft Internet Explorer') { var ua = navigator.userAgent; var re = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})"); if (re.exec(ua) != null) { rv = parseFloat(RegExp.$1); } } if (rv > - 1) { if (rv >= 8.0) { return true; } } return false; } /************************** VERBESSERUNGSPOTENTIAL **************************/ function openVerbesserung(katalogID,itemID, userID, preselectID, navi) { blockScreen(); if (userID == null) { userID = 0; } if (navi == null) { navi = 1; } var width = 790; if (navi == 0) { width = 550; } if (preselectID == null) { preselectID = 0; } $("#dialogTwo").html(""); $("#dialogTwo").load("/risikomanagement_app/dialog_verbesserung.php?katalogID="+katalogID+"&itemID="+itemID+"&userID="+userID+"&preselectID="+preselectID+"&navi="+navi+"&PHPSESSID=0d296e4db8afde62da7872c6f2b1d4c2").dialog({ close: function(event, ui) { $(this).dialog('destroy'); }, resizable: false, height: "auto", closeOnEscape: false, width: width, position: "top", minHeight: 320, modal: true, bgiframe: true, title: "Verbesserungspotentiale" }); } function openDokument(katalogID,itemID, preselectID, showNavi) { blockScreen(); if (showNavi == null) { showNavi = 1; } var width = 790; if (showNavi == 0) { width = 550; } if (preselectID == null) { preselectID = 0; } $("#dialogTwo").html(""); $("#dialogTwo").load("/risikomanagement_app/dialog_dokumente.php?katalogID="+katalogID+"&itemID="+itemID+"&preselectID="+preselectID+"&showNavi="+showNavi+"&PHPSESSID=0d296e4db8afde62da7872c6f2b1d4c2").dialog({ close: function(event, ui) { $(this).dialog('destroy'); }, resizable: false, height: "auto", closeOnEscape: false, width: width, position: "top", minHeight: 410, modal: true, bgiframe: true, title: "Dokumente" }); } function openSystem(katalogID,itemID, type, title) { blockScreen(); $("#dialogTwo").html(""); $("#dialogTwo").load("/risikomanagement_app/dialog_systeme.php?katalogID="+katalogID+"&itemID="+itemID+"&typ="+type+"&PHPSESSID=0d296e4db8afde62da7872c6f2b1d4c2").dialog({ close: function(event, ui) { $(this).dialog('destroy'); }, resizable: false, height: "auto", closeOnEscape: false, width: 400, position: "top", minHeight: 310, modal: true, bgiframe: true, title: "Genutzte Systeme/Applikationen: "+title }); } function openSapProdukte(katalogID,itemID, title) { blockScreen(); $("#dialogTwo").html(""); $("#dialogTwo").load("/risikomanagement_app/dialog_sap_produkte.php?katalogID="+katalogID+"&itemID="+itemID+"&PHPSESSID=0d296e4db8afde62da7872c6f2b1d4c2").dialog({ close: function(event, ui) { $(this).dialog('destroy'); }, resizable: false, height: "auto", closeOnEscape: false, width: 950, position: "top", minHeight: 310, modal: true, bgiframe: true, title: "Genutzte SAP Produkte: "+title }); } function openContact() { blockScreen(); $("#dialogTwo").html(""); $("#dialogTwo").load("/risikomanagement_app/dialog_contact.php?PHPSESSID=0d296e4db8afde62da7872c6f2b1d4c2").dialog({ resizable: false, close: function(event, ui) { $('#dialogTwo').dialog('destroy'); }, height: 380, closeOnEscape: false, width: 500, modal: true, bgiframe: true, title: "Kontakt mit der Trovarit" }); } function sendContact() { if ($('#contactForm').valid()) { $.post( "/risikomanagement_app/ajax/ajax.php?PHPSESSID=0d296e4db8afde62da7872c6f2b1d4c2", { type: "SEND_CONTACT", inputContactSubject: $('#inputContactSubject').val(), inputContactMessage: $('#inputContactMessage').val() }, function(data) { if (data == 0) { $("#dialogTwo").dialog("close"); infoDialog("INFORMATION","Ihre Kontaktanfrage wurde an uns gesendet.
Wir setzten uns mit Ihnen schnellstmöglich in Verbindung."); } else { infoDialog("FEHLER",data); } } ); } else { infoDialog("FEHLER","Bitte füllen Sie alle rot markierten Felder korrekt aus!"); } } function updateStatusBar(percent) { $.post( "/risikomanagement_app/ajax/ajax.php?PHPSESSID=0d296e4db8afde62da7872c6f2b1d4c2", { type: "GET_STATUS_BAR", percent: percent }, function(html) { $('#trovarit_statusbar').replaceWith(html); } ); } function setNodeStatus(itemID,katalogID, type) { $('#node_'+itemID+"_"+katalogID).attr("src","/risikomanagement_app/images/icons/tree/tree_node_"+type+".gif"); } function saveAnswer(katalogID, targetID, itemID, fragenTyp, value, loesungID, element, relItemID, relKatalogID) { if (loesungID == null) { loesungID = 0; } resetAnswerTooltip(itemID); $.post( "/risikomanagement_app/ajax/ajax.php?PHPSESSID=0d296e4db8afde62da7872c6f2b1d4c2", { type: "SAVE_ANSWER_VALUE", katalogID: katalogID, targetID: targetID, itemID: itemID, fragenTyp: fragenTyp, value: value, loesungID: loesungID }, function(data) { if ((data == -1) && (element != null) && ((fragenTyp == "RADIO") || (fragentyp == "JA-NEIN") || (fragentyp == "JA-NEIN-TEXT"))) { $(element).removeAttr("checked"); } else if ((data != "") && (data != 1)) { infoDialog("FEHLER","
"+data+"
",null,700); } else if ((relItemID != null) && (relKatalogID != null)) { unblockScreen(); openLoesungDialog(katalogID, targetID, itemID, fragenTyp, value, relItemID, relKatalogID); } } ); } function resetAnswerTooltip(itemID) { $('.trovarit_radio_'+itemID).each(function() { var title = $(this).attr("title"); var info = title.split(" =>"); $(this).attr("title", info[0]); }); } function openLoesungDialog(katalogID, targetID, itemID, fragenTyp, value, relItemID, relKatalogID) { blockScreen(); $("#dialogTwo").html(""); $("#dialogTwo").load("/risikomanagement_app/dialog_loesung_select.php?katalogID="+katalogID+"&targetID="+targetID+"&itemID="+itemID+"&fragenTyp="+fragenTyp+"&value="+value+"&relItemID="+relItemID+"&relKatalogID="+relKatalogID+"&PHPSESSID=0d296e4db8afde62da7872c6f2b1d4c2").dialog({ close: function(event, ui) { $('#dialogTwo').dialog('destroy'); }, resizable: false, height: 360, closeOnEscape: false, width: 500, modal: true, bgiframe: true, title: "Partnerprodukt zuweisen" }); } function openNeueLoesungDialog(navigationItemID, katalogID, saveKatalogID, saveTargetID, saveItemID, saveFragenTyp, saveValue) { blockScreen(); $("#dialogTwo").html(""); var saveParams=""; if (saveKatalogID != null) { saveParams="&saveKatalogID="+saveKatalogID+"&saveTargetID="+saveTargetID+"&saveItemID="+saveItemID+"&saveFragenTyp="+saveFragenTyp+"&saveValue="+saveValue; } $("#dialogTwo").load("/risikomanagement_app/dialog_loesung_neu.php?navigationItemID="+navigationItemID+"&katalogID="+katalogID+saveParams+"&PHPSESSID=0d296e4db8afde62da7872c6f2b1d4c2").dialog({ close: function(event, ui) { $('#dialogTwo').dialog('destroy'); }, resizable: false, height: 260, closeOnEscape: false, width: 500, modal: true, bgiframe: true, title: "Neues Partnerprodukt hinzufügen" }); } function reloadNavigationKatalog(katalogID) { $.post( "/risikomanagement_app/ajax/ajax.php?PHPSESSID=0d296e4db8afde62da7872c6f2b1d4c2", { type: "GET_NAVIGATION_KATALOG", katalogID: katalogID, selectedNavItemID: 0, selectedKatalogID: 0, selectedLoesungID: 0 }, function(html) { $('#trovarit_katalog_'+katalogID).replaceWith(html); initNaviHover(); } ); } function switchUserActive(userID, konzernID, konzernTochterID, kampagneID) { $.post( "/risikomanagement_app/ajax/ajax.php?PHPSESSID=0d296e4db8afde62da7872c6f2b1d4c2", { type: "SWITCH_USER_ACTIVE", userID: userID, konzernID: konzernID, konzernTochterID: konzernTochterID, kampagneID: kampagneID }, function(data) { if (data === "0") { $('#trovarit_user_aktiv_'+userID).attr("src","/risikomanagement_app/images/icons/inaktiv.gif"); $('#trovarit_user_sort_aktiv_'+userID).text(data); $("table#trovarit_potential_table").trigger("update"); } else if (data == 1) { $('#trovarit_user_aktiv_'+userID).attr("src","/risikomanagement_app/images/icons/aktiv.gif"); $('#trovarit_user_sort_aktiv_'+userID).text(data); $("table#trovarit_potential_table").trigger("update"); } else { infoDialog("FEHLER",data); } } ); } function getInputValue(element, targetID, textValue) { if (textValue == null) textValue = " "; if (($(element).is(":checked")) && ($(element).val() != "DELETE_ALL")) { return $(element).val(); } else if ($(element).attr("id") == 'trovarit_radio_'+targetID+'_0') { return textValue; } else if ($(element).attr("id") == 'trovarit_radio_'+targetID+'_1') { return " "; } else { return ""; } } //TODO Bartosz Plodowski (08.07.2009 - 14:00:46): Das Umschalten geht nicht wirklich! function switchRadioSonstiges(element,targetID) { if ($(element).val() != "DELETE_ALL") { if ($(element).attr("id") == 'trovarit_radio_'+targetID+'_1') { $(element).attr("id",'trovarit_radio_'+targetID+'_0'); } var textValue = $('#trovarit_input_freitext_'+targetID).val(); if (textValue != "") { $('#trovarit_input_freitext_'+targetID).val(""); } $('#trovarit_input_freitext_'+targetID).attr("disabled","disabled"); $('#trovarit_input_freitext_'+targetID).addClass("trovarit_input_disabled"); } else { // Ist noch nicht angeklickt $('#trovarit_input_freitext_'+targetID).removeAttr("disabled"); $('#trovarit_input_freitext_'+targetID).removeClass("trovarit_input_disabled"); $('#trovarit_input_freitext_'+targetID).focus(); $(element).attr("id",'trovarit_radio_'+targetID+'_1'); } return getInputValue(element, targetID, textValue); } function setCheckboxSonstige(katalogID, targetID, itemID, fragenTyp, element,loesungID) { if ($(element).is(":checked")) { $('#trovarit_input_freitext_'+targetID+'_'+itemID).removeAttr("disabled"); $('#trovarit_input_freitext_'+targetID+'_'+itemID).removeClass("trovarit_input_disabled"); $('#trovarit_input_freitext_'+targetID+'_'+itemID).focus(); } else { if ($('#trovarit_input_freitext_'+targetID+'_'+itemID).val() != "") { saveAnswer(katalogID, targetID, itemID, fragenTyp, "",loesungID, null); $('#trovarit_input_freitext_'+targetID+'_'+itemID).val(""); } $('#trovarit_input_freitext_'+targetID+'_'+itemID).attr("disabled","disabled"); $('#trovarit_input_freitext_'+targetID+'_'+itemID).addClass("trovarit_input_disabled"); } } function endAudit() { confirmDialog("FRAGE", "redirect(1);", "Wollen Sie sich ausloggen?", null,null, "redirect(0);"); } function redirect(type) { if (type == 0) { location.href = "index.php"; } else if (type == 1) { location.href = "logout.php"; } } function initNaviHover() { $("tr.trovarit_audit_navi_hover").hover( function () { $(this).addClass("trovarit_audit_hover"); }, function () { $(this).removeClass("trovarit_audit_hover"); }); } function checkMax(katalogID, targetID, itemID, fragenTyp, element, callMethod, max, loesungID) { if ($('.trovarit_checkbox_'+targetID+':checked').length > max) { $(element).removeAttr("checked"); infoDialog("FEHLER","Sie dürfen maximal "+max+" Antworten geben!"); } else { if (callMethod == 1) { saveAnswer(katalogID, targetID, itemID, fragenTyp, getInputValue(element,targetID), loesungID, null) } else { setCheckboxSonstige(katalogID, targetID, itemID, fragenTyp, element,loesungID); } } } function setTitleLable(itemID,value,loesungBezeichung) { var element = $('.trovarit_radio_'+itemID+'[value="'+value+'"]'); $(element).attr("title", $(element).attr("title") + " => "+loesungBezeichung); } function potentialFilter() { blockScreen(); setTimeout(callPotentialFilter, 150); } function callPotentialFilter() { var filterText = $('input#trovarit_potential_input_filter').val(); $('.trovarit_search_text').removeHighlight(); if (filterText.length == 0) { $(".trovarit_search_text").show(); } else { $(".trovarit_search_text").each( function (column) { var searchText = ""; searchText += $(this).text()+" "; if (searchText.toLowerCase().indexOf(filterText.toLowerCase()) >= 0) { $(this).show(); } else { $(this).hide(); } }); $('.trovarit_search_text').highlight(filterText); } $('#potShownCount').text($("tr.trovarit_search_text td:visible").length / $("tr.trovarit_search_text:first td").length); $("table#trovarit_potential_table").trigger("appendCache"); unblockScreen(); } function potentialFilterReset() { $('input#trovarit_potential_input_filter').val(""); potentialFilter(); } function anonymiseAndClose() { //confirmDialog(title, onYesClick, question, height, width, onNoClick) confirmDialog("FRAGE", "anonymiseAndCloseConfirmed();", "
Achtung! Nach dem Beenden der Befragung wird Ihr Zugang gelöscht und Ihre Bewertungen anonymisiert für die Auswertung gespeichert.

Falls Sie mit der Bewertung noch nicht abschließend fertig sind, können Sie sich über 'Später Fortfahren' ausloggen und über Ihre Zugangsdaten später wieder einloggen.


Wollen Sie die Befragung beenden?", null,500); } function anonymiseAndCloseConfirmed() { $.post( "/risikomanagement_app/ajax/ajax.php?PHPSESSID=0d296e4db8afde62da7872c6f2b1d4c2", { type: "ANONYMISE_USER" }, function(data) { if (data == 1) { location.href = "logout.php?a=1"; } else { infoDialog("FEHLER",data, null,500); } }); } function openKennzahlenDialog(katalogID,itemID, titleDesc) { blockScreen(); var dialogWidth = 1100; $("#dialogTwo").html(""); $("#dialogTwo").load("/risikomanagement_app/dialog_kennzahlen.php?katalogID="+katalogID+"&itemID="+itemID+"&PHPSESSID=0d296e4db8afde62da7872c6f2b1d4c2").dialog({ close: function(event, ui) { $(this).dialog('destroy'); }, resizable: false, height: "auto", closeOnEscape: false, width: dialogWidth, position: "top", minHeight: 210, modal: true, bgiframe: true, title: "Bewertung: "+titleDesc }); } function openDatenblattDialog(katalogID,itemID,titleDesc) { if ($("#trv_dialog_datenblatt").length == 0) { blockScreen(); $("body").append(""); var dialogWidth = 650; $("#trv_dialog_datenblatt").load("/risikomanagement_app/dialog_datenblatt.php?katalogID="+katalogID+"&itemID="+itemID+"&PHPSESSID=0d296e4db8afde62da7872c6f2b1d4c2").dialog({ close: function(event, ui) { $(this).dialog('destroy'); $("#trv_dialog_datenblatt").remove(); }, resizable: false, height: "auto", closeOnEscape: false, width: dialogWidth, position: "top", minHeight: 190, modal: true, bgiframe: true, title: "Datenblatt: "+titleDesc }); } }