var changedContent = false; var trv_dialogContentChanged = false; var trv_multiContentChanged = new Object(); var trv_core_progressFetch = new Object(); var trv_core_progressInlineFetch = new Object(); Date.now = Date.now || function() { return +new Date(); }; $(function() { initTooltip();}); /**********************************************************************************************/ function initTooltip() { if ($.isFunction($.fn.tooltip)) { $('.trovarit_tooltip[title]').tooltip({ showURL: false, id: "trovarit_tooltip", showBody: "; ", fade: 250 }); $('.trovarit_tooltip_width[title]').tooltip({ showURL: false, id: "trovarit_tooltip", showBody: "; ", fade: 250, extraClass: "tooltip_width" }); } } /**********************************************************************************************/ function showBockscreenProgressBar(alternativeLable) { if (alternativeLable != null) { $(".trv_uploadProgressbar").parent().prev().text(alternativeLable); } $(".trv_uploadProgressbar").progressbar({ value: false, change: function() { $(".trv_uploadProgressbar .progress-label").text( $(".trv_uploadProgressbar").progressbar( "value" ) + "%" ); } }); $(".trv_uploadProgressbar").append('
'); $("#trv_blockScreenProgress").show(); } /**********************************************************************************************/ function hideBockscreenProgressBar() { $(".trv_uploadProgressbar .ui-progressbar-overlay").remove(); $("#trv_blockScreenProgress").hide(); } /**********************************************************************************************/ function setBockscreenText(text) { if (isScreenBlocked) { $("table td.trovarit_wait_dialog").html(text); } } /**********************************************************************************************/ function setBockscreenProgressValue(setPercent) { if (setPercent >= 0) { if (setPercent == 0 && $(".trv_uploadProgressbar .progress-label").text() == "") { $(".trv_uploadProgressbar .progress-label").text("0%"); } $(".trv_uploadProgressbar .ui-progressbar-overlay").remove(); } else if($(".trv_uploadProgressbar .ui-progressbar-overlay").length == 0) { $(".trv_uploadProgressbar").append('
'); } $(".trv_uploadProgressbar").progressbar( "option", {value:setPercent}); } /**********************************************************************************************/ function callOnEnter(e,functionToCall,argArray) { var keycode; if (window.event) keycode = window.event.keyCode; else if (e) keycode = e.which; else return true; if (keycode == 13) { if ((argArray == null) || (argArray == "")) { argArray = new Array(); } functionToCall.apply(this, argArray); return false; } else return true; } /**********************************************************************************************/ function submitEnter(myfield,e) { var keycode; if (window.event) keycode = window.event.keyCode; else if (e) keycode = e.which; else return true; if (keycode == 13) { myfield.form.submit(); return false; } else return true; } /**********************************************************************************************/ function confirmDialog(title, onYesClick, question, height, width, onNoClick, position) { if (height == null) { height="auto"; } if (width == null) { width=350; } if (onNoClick == null) { onNoClick=""; } if (position == null) { position="center"; } var currentTime = Date.now(); $("body").append(""); var dialogContent = "
question
JA NEIN
"; dialogContent = dialogContent.replace(/-CurrentTimeID-/g, currentTime); dialogContent = dialogContent.replace(/onYesClick/, onYesClick); dialogContent = dialogContent.replace(/onNoClick/, onNoClick); dialogContent = dialogContent.replace(/question/, question); $("#trv_core_confirm_dialog_"+currentTime).html(dialogContent); $("#trv_core_confirm_dialog_"+currentTime).dialog({ close: function(event, ui) { $(this).dialog('destroy'); $("#trv_core_confirm_dialog_"+currentTime).remove(); }, resizable: false, draggable: false, height: height, width: width, bgiframe: true, modal: true, position: position, title: title }); return currentTime; } /**********************************************************************************************/ function infoDialog(title, content, height, width, onCloseClick, position, alternativeButtonText, isErrorInfo) { if (height == null) { height="auto"; } if (width == null) { width=400; } if (onCloseClick == null) { onCloseClick=""; } if (position == null) { position="center"; } var currentTime = Date.now(); $("body").append(""); var dialogContent = "
boxcontent
SCHLIESSEN
"; if (alternativeButtonText != null) { dialogContent = dialogContent.replace("SCHLIESSEN", alternativeButtonText); } if (isErrorInfo == true) { dialogContent = dialogContent.replace(/trovarit_dialog_info/, 'trovarit_dialog_error'); } if (height!="auto") { dialogContent = dialogContent.replace(/height: 150px/, 'height: '+(height-100)+'px;'); } else { dialogContent = dialogContent.replace(/height: 150px/, ''); } dialogContent = dialogContent.replace(/-CurrentTimeID-/g, currentTime); dialogContent = dialogContent.replace(/boxcontent/, content); $("#trv_core_info_dialog_"+currentTime).html(dialogContent); $("#trv_core_info_dialog_"+currentTime).dialog({ close: function(event, ui) { if (typeof shortcut == "object") { shortcut.remove("Return"); } eval(onCloseClick); $(this).dialog('destroy'); $("#trv_core_info_dialog_"+currentTime).remove(); }, resizable: false, draggable: false, height: height, minHeight: 130, width: width, bgiframe: true, modal: true, position: position, title: title }); } /**********************************************************************************************/ function checkCookiesActive() { $.post( "http://doi-ibm.portal.it-matchmaker.com/core/ajax/ajax.php?PHPSESSID=c2917429daff95f4358120a9ff96757a", { type: "CHECK_COOKIES", app_language: "de", page_charset: "utf-8" }, function(html) { if (html != 1) { $(".trovarit_cookies_error").html(html); } }); } /**********************************************************************************************/ function encode_utf8( s ) { return unescape( encodeURIComponent( s ) ); } /**********************************************************************************************/ function decode_utf8( s ) { return decodeURIComponent( escape( s ) ); } /**********************************************************************************************/ function addslashes(str) { str=str.replace(/\\/g,'\\\\'); str=str.replace(/\"/g,'\\"'); str=str.replace(/\0/g,'\\0'); str=str.replace(/\n/g,''); str=str.replace(/\t/g,''); return str; } function stripslashes(str) { str=str.replace(/\\'/g,'\''); str=str.replace(/\\"/g,'"'); str=str.replace(/\\0/g,'\0'); str=str.replace(/\\\\/g,'\\'); return str; } /**********************************************************************************************/ function exportTableToExcel(tableID, savename) { if (savename == null || savename == '') { savename = "export" } if ($('#'+tableID).length > 0) { blockScreen(); var headerData = '"header":['; $('#'+tableID+' >thead>tr>th:not(.noExport)').each(function (index, element) { if ($(element).find("span").length != 0 && $(element).html().indexOf("data-index")==-1) { var idTH = $(element).attr("id"); var headerSet = 0; $('#'+idTH+' span:not(.noExport) ').each(function (secondIndex, test) { headerData += '"'+addslashes($(this).text().replace(/^\s+|\s+$/g, ''))+'",'; headerSet = 1; }); if(headerSet == 0) { headerData += '"'+addslashes($(this).text().replace(/^\s+|\s+$/g, ''))+'",'; } } else { headerData += '"'+addslashes($(this).text().replace(/^\s+|\s+$/g, ''))+'",'; } }); headerData = headerData.slice(0, -1) + '],'; var tableData = '"data": ['; $('#'+tableID+'>tbody>tr:visible:not([class*=repated-header])').each(function (i) { var rowData = '['; $("td:not(.noExport)",this).each(function(j) { var tdContent = ""; tdContent = addslashes($(".exportThis",this).text().replace(/^\s+|\s+$/g, '')); if (tdContent == "") { tdContent = addslashes($(".sortThis",this).text().replace(/^\s+|\s+$/g, '')); } rowData += '"'+tdContent+'",'; }); rowData = rowData.slice(0, -1) + '],'; tableData = tableData + rowData; }); tableData = tableData.slice(0, -1) + ']'; alldata = "{"+headerData+tableData+"}"; $.post( "http://doi-ibm.portal.it-matchmaker.com/core/ajax/ajax.php?PHPSESSID=c2917429daff95f4358120a9ff96757a", { type: "CREATE_EXCEL_FROM_TABLE", page_charset: "utf-8", app_language: "de", data: alldata, savename: savename }, function(data) { unblockScreen(); if (data.length != 32) { infoDialog("FEHLER", data); } else { var tempChangedContent = changedContent; var tempDialogContentChanged = trv_dialogContentChanged; if (tempChangedContent) { contentChanged(false); } if (tempDialogContentChanged) { dialogContentChanged(false); } location.href = "http://doi-ibm.portal.it-matchmaker.com/core/get_generated_file.php?file="+data; if (tempChangedContent) { contentChanged(true); } if (tempDialogContentChanged) { dialogContentChanged(true); } } }); } else { infoDialog("FEHLER", "Die Tabelle mit der ID existiert nicht!"); } } /**********************************************************************************************/ function tableToolbarFilter(tableID, callbackAfterSet) { if (!excelFilterExists(tableID)) { blockScreen(true); setTimeout(function(){callTableToolbarFilter(tableID,callbackAfterSet);}, 150); } else { $("div.trovarit_excel_filter_dialog").dialog('close'); if (eval(tableID+"_filter").getData().length) { eval(tableID+"_filter").clearExcelFilterData(); eval(tableID+"_filter").setFilter(); } } } /**********************************************************************************************/ function excelFilterExists(tableID) { return $('#'+tableID+' .trovarit_table_excel_filter').length > 0; } /**********************************************************************************************/ function callTableToolbarFilter(tableID,callbackAfterSet) { if (!excelFilterExists(tableID)) { var filterText = $('input#'+tableID+'_input_filter').val().trim(); $('table#'+tableID+'>tbody>tr:visible').removeHighlight(); if (!filterText.length && $("table#"+tableID+">tbody>tr:hidden").length) { $('table#'+tableID+'>tbody>tr').show(); setToolbarInfo(tableID, false); reinitTablesorter(tableID, false); } else if (filterText.length) { $('table#'+tableID+'>tbody>tr:containsNC("'+filterText+'")').show(); $('table#'+tableID+'>tbody>tr:not(:containsNC("'+filterText+'"))').hide(); $('table#'+tableID+'>tbody>tr:visible').highlight(filterText); setToolbarInfo(tableID, false); reinitTablesorter(tableID, false); } if (callbackAfterSet != null) { eval(callbackAfterSet); } unblockScreen(true); } } $.extend($.expr[":"], { "containsNC": function(elem, i, match, array) { return (elem.textContent || elem.innerText || "").toLowerCase().indexOf((match[3] || "").toLowerCase()) >= 0; } }); /**********************************************************************************************/ function setToolbarInfo(tableID, initTotalCount) { if ($('table#'+tableID+'>tbody>tr:not([class*="table_toolbar_no_count"])').length == 0) { $('#'+tableID+'_visible_count').text(0); } else { $('#'+tableID+'_visible_count').text($('table#'+tableID+'>tbody>tr:not([class*="table_toolbar_no_count"]):visible').length); } if (initTotalCount) { $('#'+tableID+'_all_count').text($('table#'+tableID+'>tbody>tr:not([class*="table_toolbar_no_count"])').length); } } /**********************************************************************************************/ function tableToolbarFilterReset(tableID,callbackAfterSet) { if (!excelFilterExists(tableID)) { $('input#'+tableID+'_input_filter').val(""); } tableToolbarFilter(tableID,callbackAfterSet); } /**********************************************************************************************/ function addTableToolbar(tableID, filename, legendeContent, helpLink, disableExcelFilter) { if (disableExcelFilter == null) { disableExcelFilter = false; } if (($('#'+tableID).length == 1) && ($('#'+tableID).prev().attr("class") != "trovarit_table_toolbar_container")) { $.post( "http://doi-ibm.portal.it-matchmaker.com/core/ajax/ajax.php?PHPSESSID=c2917429daff95f4358120a9ff96757a", { type: "GET_TABLE_TOOLBAR", page_charset: "utf-8", app_language: "de", tableID: tableID, filename: filename, disableExcelFilter: disableExcelFilter, legendeTemplate: legendeContent, helpLink: helpLink }, function(html) { $('#'+tableID).before(html); }); } else { infoDialog("FEHLER", "Die Tabelle mit der ID existiert nicht!"); } } /**********************************************************************************************/ function addTableExcelFilter(tableID, callbackAfterFilter,callbackAfterFilterToggle) { if (($('#'+tableID).length) && !excelFilterExists(tableID)) { var dialogPositions = ""; $('#'+tableID+'>thead:first th').each(function() { dialogPositions = dialogPositions + ($(this).is(":visible")?1:0).toString()+";"; }); $.trv_postJson({ url: "http://doi-ibm.portal.it-matchmaker.com/core/ajax/ajax.php?PHPSESSID=c2917429daff95f4358120a9ff96757a", ajax_type: "ADD_EXCEL_TABLE_FILTER", disableErrorOnReload: true, parameter: { page_charset: "utf-8", app_language: "de", appName: "itm-portal", tableID: tableID, callbackAfterFilter: callbackAfterFilter, dialogPositions: dialogPositions.rtrim(";") }, onSuccess: function(data) { $('#'+tableID+'>thead:first').prepend(data.filterContent); if (callbackAfterFilterToggle != null) { eval(callbackAfterFilterToggle); } if (data.filterData != "") { eval(tableID+"_filter").setJsonFilter(data.filterData); eval(tableID+"_filter").filterTable(); } } }); } else { infoDialog("FEHLER", "Die Tabelle mit der ID existiert nicht!"); } } /**********************************************************************************************/ function reinitTablesorter(tableID, tableUpdate = true) { if ($("table#"+tableID).length) { if (tableUpdate) { $("table#"+tableID).trigger("update"); $("table#"+tableID).trigger("appendCache"); } if ($("table#"+tableID)[0].config != null) { $("table#"+tableID).trigger("sorton", [$("table#"+tableID)[0].config.sortList]); } setZebraTableSorter(tableID); } } /**********************************************************************************************/ function initTablesorter(tableID, sortRow, sortDescending,sortList) { if (sortRow == null) { sortRow = 0; } if (sortDescending == null) { sortDescending = 0; } var sortArray = [[sortRow,sortDescending]]; if (sortList != null) sortArray = sortList; $('table#'+tableID).tablesorter({ widgets: ['zebra'], sortList: sortArray, delayInit: true, textExtraction: function(node) { return $("span.sortThis", node).text(); } }); setZebraTableSorter(tableID); } function setZebraTableSorter(tableID) { if ($('table#'+tableID+'>tbody>tr:visible').length == 1) { setTableZebra(tableID); } } function initTablesorterWithChilds(tableID, sortRow, sortDescending, collapsed) { if (sortRow == null) { sortRow = 0; } if (sortDescending == null) { sortDescending = 0; } $('table#'+tableID).collapsible("td.collapsible", {collapse: collapsed}); $('table#'+tableID).tablesorter ({ sortList: [[sortRow,sortDescending]], widgets: ['zebra'], headers: {0: {sorter: false}}, textExtraction: function(node) {return $("span.sortThis", node).text();} }); setZebraTableSorter(tableID); } /**********************************************************************************************/ function initFormValidator(formID, errorClass, ignoreElements) { if (errorClass == null) { errorClass = "trovarit_validation_error"; } if (ignoreElements == null) { ignoreElements = ":hidden"; } return $("#"+formID).validate({ meta: "validate", errorClass: errorClass, ignore: ignoreElements, errorPlacement: function(error, element) { } }); } /**********************************************************************************************/ function isFormValid(formID, position, isIFrame, focusErrorClassAfterClose, showFirstTabWithError, alternativeMessage) { if ($('#'+formID).length > 0) { if ($('#'+formID).valid()) { return true; } else { if (isIFrame == true) { setIframeTop(); } if (focusErrorClassAfterClose != null) { focusErrorClassAfterClose = "$('."+focusErrorClassAfterClose+":first').focus();"; } if (showFirstTabWithError == true) { findFirstTabWithError(formID); } if (alternativeMessage != null && alternativeMessage != "") { infoDialog("FEHLER", alternativeMessage, null, null, focusErrorClassAfterClose,position); } else { infoDialog("FEHLER","Bitte füllen Sie alle rot markierten Felder korrekt aus!", null, null, focusErrorClassAfterClose,position); } return false; } } else { infoDialog("FEHLER", "isFormValid(): Kein Formular mit der ID '"+formID+"' gefunden!", null, null, null,position); } } /**********************************************************************************************/ function findFirstTabWithError(formID) { $("#"+formID+" ul.tabs li.tabs a").each(function(tabIndex, domEle) { if ($(this).parents(".trv_core_tabs").find($(this).attr("href")).find(".trv_core_input_white_validator_error:first").length == 1) { $(this).parents(".trv_core_tabs").tabs("select",tabIndex); return false; } }); } /**********************************************************************************************/ function dialogContentChanged(changed) { multiContentChanged(changed); } /**********************************************************************************************/ function multiContentChanged(changed,contentID) { if (changed) { if (contentID != null) { trv_multiContentChanged[contentID] = changed; } trv_dialogContentChanged = changed; setUnload(changed); } else { if (contentID != null) { delete trv_multiContentChanged[contentID]; } if (Object.keys(trv_multiContentChanged).length == 0) { trv_dialogContentChanged = changed; setUnload(changed); } } } /**********************************************************************************************/ function contentChanged(changed) { changedContent = changed; setUnload(changed); } /**********************************************************************************************/ function setUnload(enabled, infoText) { if (enabled) { if (!isSetUnload()) { $("a.trv_core_show_block_screen").unbind("click"); $(window).bind('beforeunload', function() { if (infoText == null) { return 'Daten haben sich geändert und wurden noch nicht gespeichert!'; } else { return infoText; } }); $("body").data('setBeforeUnload',true); } } else if(!changedContent && !trv_dialogContentChanged && Object.keys(trv_multiContentChanged).length == 0) { if (isSetUnload()) { $(window).unbind('beforeunload'); $("a.trv_core_show_block_screen").bind("click", function(){blockScreen();}); $("body").data('setBeforeUnload',false); } } } /**********************************************************************************************/ function isSetUnload() { return $("body").data('setBeforeUnload')==true?true:false; } /**********************************************************************************************/ function trv_confirmClose(onYesFunction,type,isIFrame,contentID) { if ((type == 1 && (trv_dialogContentChanged || (contentID != null && trv_multiContentChanged[contentID]))) || (type == 0 && changedContent)) { isIFrame = (isIFrame == null || !isIFrame) ? 0:1; var position = getIFramePosition(isIFrame); var disableContentChanged = "dialogContentChanged(false);" if (contentID != null && type == 1) { disableContentChanged = "multiContentChanged(false,'"+contentID+"');" } if (type == 0) { disableContentChanged = "contentChanged(false);" } confirmDialog("BESTÄTIGUNG",disableContentChanged+onYesFunction,"Daten wurden geändert und noch nicht gespeichert!

Ohne speichern fortfahren?",null,400,null,position); return false; } else if (type == 1 || type == 0) { eval(onYesFunction); return true; } } /**********************************************************************************************/ function addValidatorCombobox() { jQuery.validator.addMethod("selectCombobox", function(value, element) { if (value == "") { return false; } return true; }, " "); } /**********************************************************************************************/ function addValidatorPositivNumber() { jQuery.validator.addMethod("numberPositiv", function(value, element) { return this.optional(element) || /^(?:0|[1-9][0-9]*)(?:[,][0-9]+)?$/.test(value); }, " "); } /**********************************************************************************************/ function addValidatorDateDE() { jQuery.validator.addMethod("dateDE", function(value, element) { var check = false; var re = /^\d{2}\.\d{2}\.\d{4}$/; if(value == "") { check = true; } else if( re.test(value)) { var adata = value.split('.'); var gg = parseInt(adata[0],10); var mm = parseInt(adata[1],10); var aaaa = parseInt(adata[2],10); var xdata = new Date(aaaa,mm-1,gg); if ( ( xdata.getFullYear() == aaaa ) && ( xdata.getMonth () == mm - 1 ) && ( xdata.getDate() == gg ) ) check = true; else check = false; } else check = false; return this.optional(element) || check; }, " "); } /**********************************************************************************************/ function addValidatorCurrency() { jQuery.validator.addMethod("currency", function(value, element) { if(value != "") { return String(value).search (/^-?\d{1,3}(?:\.?\d{3})*(?:,\d{1,2})?$/) != -1; } else { return true; } }, " "); } /**********************************************************************************************/ // this function Valitate a phone number. The right form must be +länderkennung(max 3 zahlen) (vorwahl(max 5 zahlen))nummer function addValidatorPhoneNumber() { jQuery.validator.addMethod("phoneNumber", function(value, element) { if (value != '' ) { var regPhone = new RegExp(/^\+[\d]{1,3} [\d (]{2,6}[)][\d]+$/); if (value.match(regPhone) == null) { return false; } return true; } return true; }, " "); } /**********************************************************************************************/ String.prototype.rtrim = function(chars) { chars = chars || "\\s"; return this.replace(new RegExp("[" + chars + "]+$", "g"), ""); } /**********************************************************************************************/ String.prototype.ltrim = function(chars) { chars = chars || "\\s"; return this.replace(new RegExp("^[" + chars + "]+", "g"), ""); } /**********************************************************************************************/ String.prototype.trim = function(chars) { return this.ltrim(chars).rtrim(chars); } /**********************************************************************************************/ /**********************************************************************************************/ function getTableCellText(tableCell) { if (jQuery(".multiSelectFilterData",tableCell).length) { var cellText = jQuery(".multiSelectFilterData",tableCell).text().trim(); return cellText.split("#;#"); } else { return (jQuery(".exportThis",tableCell).text().trim() || jQuery(".sortThis",tableCell).text().trim() || tableCell.textContent.trim() || ''); } } /**********************************************************************************************/ if(!Array.indexOf){ Array.prototype.indexOf = function(obj){ for(var i=0; i < this.length; i++){ if(this[i]==obj){ return i; } } return -1; } } /**********************************************************************************************/ function removeTableExcelFilter(tableID) { if (excelFilterExists(tableID)) { setExcelFilterVisible(tableID,0); if (eval(tableID+"_filter").hasExcelFilterData()) { $("#"+tableID+">tbody>tr").show(); setToolbarInfo(tableID,false); reinitTablesorter(tableID, false); } eval(tableID+"_filter = null"); $("div.trovarit_excel_filter_dialog").dialog('close'); $('table#'+tableID+'>thead>tr:first').remove(); } } /**********************************************************************************************/ function removeExcelFilterData(tableID) { $.post( "http://doi-ibm.portal.it-matchmaker.com/core/ajax/ajax.php?PHPSESSID=c2917429daff95f4358120a9ff96757a", { type: "REMOVE_EXCEL_TABLE_FILTER_DATA", app_language: "de", appName: "itm-portal", tableID: tableID }); } /**********************************************************************************************/ function saveExcelFilterData(tableID,filterData) { $.post( "http://doi-ibm.portal.it-matchmaker.com/core/ajax/ajax.php?PHPSESSID=c2917429daff95f4358120a9ff96757a", { type: "SAVE_EXCEL_TABLE_FILTER_DATA", page_charset: "utf-8", app_language: "de", appName: "itm-portal", tableID: tableID, filterData: filterData }); } /**********************************************************************************************/ function setExcelFilterVisible(tableID, filterVisible) { $.post( "http://doi-ibm.portal.it-matchmaker.com/core/ajax/ajax.php?PHPSESSID=c2917429daff95f4358120a9ff96757a", { type: "SET_EXCEL_TABLE_FILTER_VISIBLE", page_charset: "utf-8", app_language: "de", appName: "itm-portal", tableID: tableID, filterVisible: filterVisible }); } /**********************************************************************************************/ function getExcelFilterVisible(tableID,callbackAfterFilter,callbackAfterFilterToggle) { $.post( "http://doi-ibm.portal.it-matchmaker.com/core/ajax/ajax.php?PHPSESSID=c2917429daff95f4358120a9ff96757a", { type: "GET_EXCEL_TABLE_FILTER_VISIBLE", page_charset: "utf-8", app_language: "de", appName: "itm-portal", tableID: tableID }, function(data) { if (data == 1 && !excelFilterExists(tableID)) { toggleTableExcelFilter(tableID,callbackAfterFilter,callbackAfterFilterToggle); } }); } /**********************************************************************************************/ function toggleTableExcelFilter(tableID, callbackAfterFilter,callbackAfterFilterToggle) { blockScreen(true); if (excelFilterExists(tableID)) { removeTableExcelFilter(tableID); $('#'+tableID+'_excel_filter').removeClass('trovarit_toolbar_button_active'); eval(tableID+"_toggleSearch(true);"); if (callbackAfterFilterToggle != null) { eval(callbackAfterFilterToggle); } } else { $('input#'+tableID+'_input_filter').val(""); blockScreen(true);callTableToolbarFilter(tableID); addTableExcelFilter(tableID, callbackAfterFilter,callbackAfterFilterToggle); $('#'+tableID+'_excel_filter').addClass('trovarit_toolbar_button_active'); eval(tableID+"_toggleSearch(false);"); } unblockScreen(true); } /**********************************************************************************************/ function excelFilter(tableID, callbackAfterFilter) { var filterData = new Array(); var tableID = tableID; var colMapping = new Array(); var callbackAfterFilter = callbackAfterFilter; this.getFilterDialog = function(element,position) { if ($("div.trovarit_excel_filter_dialog:visible").length == 1) { $("div.trovarit_excel_filter_dialog").dialog('close'); } else { blockScreen(true); $.post( "http://doi-ibm.portal.it-matchmaker.com/core/ajax/ajax.php?PHPSESSID=c2917429daff95f4358120a9ff96757a", { type: "GET_EXCEL_FILTER_DIALOG", page_charset: "utf-8", app_language: "de", tableID: tableID, position: position, possibleFilter: JSON.stringify(this.getAllFilterData(element,position)) }, function(data) { openExcelSelectDialog(element,data, tableID, position); }); } } /**********************************************************************************************/ this.filterTable = function() { blockScreen(true); eval("setTimeout(function(){"+tableID+"_filter.filterTableNow();}, 150)"); } /**********************************************************************************************/ function openExcelSelectDialog(element,content, tableID,position) { var posElement = $(element).parent().parent(); $("body").append("
"); $("div.trovarit_excel_filter_dialog").hide().html(content); var pageOffsetTop = window.pageYOffset || document.documentElement && document.documentElement.scrollTop || document.body.scrollTop; var pageOffsetLeft = window.pageXOffset || document.documentElement && document.documentElement.scrollLeft || document.body.scrollLeft; var dialogWidth = 330; var dialogLeft = posElement.offset().left-1; if (dialogLeft+dialogWidth > ($('#'+tableID).position().left+$('#'+tableID).innerWidth())) { dialogLeft = posElement.offset().left+posElement.innerWidth()-dialogWidth-pageOffsetLeft-1; } $("div.trovarit_excel_filter_dialog").dialog({ close: function(event, ui) { $(this).dialog('destroy'); $("div.trovarit_excel_filter_dialog").remove(); }, resize: function(event, ui) { var tableHeight = $('.trovarit_excel_filter_dialog.ui-dialog-content').height()-$('.trovarit_excel_filter_dialog.ui-dialog-content .trovarit_table_toolbar_container').height()-8; $('div#trovarit_excel_filter_select').height(tableHeight); }, resizable: true, draggable: true, height: 300, width: 370, minWidth: 300, dialogClass: 'trovarit_filter_dialog', position: [Math.round(dialogLeft),Math.round(posElement.offset().top+posElement.innerHeight()-pageOffsetTop)+3], bgiframe: true, modal: false, buttons: { "Löschen": function() { $("#trovarit_excel_filter_select input:checked").removeAttr("checked");eval(tableID+"_filter").setFilter(position);$(this).dialog('close');},"Abbr.": function() { $(this).dialog("close"); },"OK": function() { eval(tableID+"_filter").setFilter(position);$(this).dialog('close'); } } }); } /**********************************************************************************************/ function getExcelFilterData(position, filterData) { if (position == null) { return filterData; } else { return filterData[position]; } } /**********************************************************************************************/ this.getData = function() { return filterData; } /**********************************************************************************************/ this.setData = function(newFilterData) { filterData = newFilterData; } /**********************************************************************************************/ this.setExcelFilterData = function(position, filter) { filterData[position] = filter; } /**********************************************************************************************/ this.clearExcelFilterData = function() { filterData = new Array(); } /**********************************************************************************************/ this.hasExcelFilterData = function() { for ( i=0; i < filterData.length; i++ ) { if (filterData[i] != 'undefined' && filterData[i] != null) { return true; } } return false; } /**********************************************************************************************/ this.getExcelFilterCount = function() { var filterCount = 0; for ( i=0; i < filterData.length; i++ ) { if (filterData[i] != 'undefined' && filterData[i] != null) { filterCount++; } } return filterCount; } /**********************************************************************************************/ this.getAllFilterData = function(element,position) { var filterData = {}; var table = $(element).parents(".trovarit_sort_table"); $("tbody tr td:nth-child("+position+")",table).each(function() { var rowText = getTableCellText(this); var isVisible = $(this).is(":visible"); var rowData = {}; if (rowText instanceof Array) { for( var k=0; k < rowText.length; k++ ) { rowText[k]=rowText[k].replace(/(\r\n|\n|\r)/gm,"").trim(); if (filterData[rowText[k]] == null) { filterData[rowText[k]] = {"isVisible": isVisible}; } else if (isVisible) { filterData[rowText[k]].isVisible = true; } } } else { rowText=rowText.replace(/(\r\n|\n|\r)/gm,"").trim(); if (filterData[rowText] == null) { filterData[rowText] = {"isVisible": isVisible}; } else if (isVisible) { filterData[rowText].isVisible = true; } } }); return filterData; } /**********************************************************************************************/ this.setCheckedDialogFilter = function(position) { var values = getExcelFilterData(position,filterData); if ((values != null) && (values != 'undefined')) { $.each(values, function(key, value) { $("input[value='"+value.replace(/\'/g,"\\'")+"']").attr("checked","checked"); }); } } /**********************************************************************************************/ this.setFilterHeader = function() { if (this.hasExcelFilterData()) { $.each(filterData, function(col, value) { if (value != 'undefined' && value != null) { $('#'+tableID+' thead .trv_excel_filter-'+(col-1)).addClass("trovarit_table_excel_filter_active"); $('#'+tableID+' thead .trv_excel_filter-'+(col-1)+" .trv_core_header_lable").text(value.length); $('#'+tableID+' thead .trv_excel_filter-'+(col-1)+" .trv_core_excel_filter_delete_header").show(); } else { $('#'+tableID+' thead .trv_excel_filter-'+(col-1)).removeClass("trovarit_table_excel_filter_active"); $('#'+tableID+' thead .trv_excel_filter-'+(col-1)+" .trv_core_header_lable").text(""); $('#'+tableID+' thead .trv_excel_filter-'+(col-1)+" .trv_core_excel_filter_delete_header").hide(); } }); } else { $('#'+tableID+' thead .trovarit_table_excel_filter').removeClass("trovarit_table_excel_filter_active"); $('#'+tableID+' thead .trovarit_table_excel_filter .trv_core_header_lable').text(""); $('#'+tableID+' thead .trovarit_table_excel_filter .trv_core_excel_filter_delete_header').hide(); } } /**********************************************************************************************/ this.setFilter = function(position) { var filterArray = new Array(); $("input[name='filter']:checked").each(function(key, value) { filterArray.push($(this).val()); }); if (filterArray.length == 0) { filterArray = null; } this.setExcelFilterData(position,filterArray); if (filterData.length == 0) { removeExcelFilterData(tableID); } else { saveExcelFilterData(tableID, this.getJsonFilter()); } this.filterTable(); } /**********************************************************************************************/ this.setHeaderLabel = function() { $.each(getExcelFilterData(position, filterData), function(key, value) { $("input[value='"+value+"']").attr("checked","checked"); }); } /**********************************************************************************************/ this.getFilterPositions = function() { var positions = new Array(); $.each(filterData, function(key, value) { if (value != 'undefined' && value != null) { positions.push(key); } }); return positions; } /**********************************************************************************************/ this.getJsonFilter = function() { var jsonString = '{"length":'+filterData.length+','; $.each(filterData, function(key, value) { if (value != 'undefined' && value != null) { jsonString += '"'+key+'":['; $.each(value, function(innerKey, innerValue) { jsonString += '"'+addslashes(innerValue)+'",'; }); jsonString = jsonString.rtrim(","); jsonString += '],'; } }); jsonString = jsonString.rtrim(","); jsonString += '}'; return jsonString; } /**********************************************************************************************/ this.setJsonFilter = function(jsonString) { var data = $.parseJSON(jsonString); this.clearExcelFilterData(); for(var i=0; i< data["length"]; i++) { if (data[i] != 'undefined' && data[i] != null) { this.setExcelFilterData(i,data[i]); } } } /**********************************************************************************************/ this.filterTableNow = function() { this.setFilterHeader(); $("#"+tableID+">tbody>tr").removeClass("trv_found"); if (this.hasExcelFilterData()) { var colPositions = this.getFilterPositions(); var foundRowsArray = new Array; var preselectFilter = new Array; $.each(colPositions, function(keyCol,colPosition) { preselectFilter.push(["#"+tableID+">tbody>tr>td:nth-child("+colPosition+")",":tableCellContains('"+filterData[colPosition].join("','")+"')"]); }); $.each(preselectFilter, function(index,selector) { var innerRows = new Array(); $(selector[0]).filter(selector[1]).each(function(){ innerRows.push($(this).parents("tr:first")); }); foundRowsArray.push(innerRows); }); var foundRows = foundRowsArray.shift().reduce(function(res, v) { if (!trv_isObjectInArray(v,res) && foundRowsArray.every(function(a) { return trv_isObjectInArray(v,a); })) res.push(v[0]); return res; }, []); $(foundRows).addClass("trv_found").show(); $("#"+tableID+">tbody>tr:visible:not('.trv_found')").hide(); } else { $("#"+tableID+">tbody>tr").show(); } setToolbarInfo(tableID,false); reinitTablesorter(tableID, false); if (callbackAfterFilter != null) { eval(callbackAfterFilter); } unblockScreen(true); } } function trv_isObjectInArray(obj, searchArray) { returnValue = false; $.each(searchArray, function(index,arrayObject) { if (obj.is(arrayObject)) { returnValue = true; return; } }); return returnValue; } jQuery.expr[':'].tableCellContains = function(obj, index, meta, stack){ var theList = []; if (meta[3].indexOf("','") !== -1) { theList = meta[3].substring(1, meta[3].length-1).split("','"); } else { theList.push(meta[3]); } if (jQuery(".multiSelectFilterData",obj).length) { var content = jQuery(".multiSelectFilterData",obj).text().trim(); } else { var content = (jQuery(".exportThis",obj).text().trim() || jQuery(".sortThis",obj).text().trim() || obj.textContent.trim() || ''); } content = content.replace(/(\r\n|\n|\r)/gm,""); if (content.indexOf("#;#") !== -1) { content = content.split("#;#"); if (theList.length == 1) { return content.indexOf(theList[0]) !== -1; } else { returnVal = false; $.each(content, function (index, searchText) { if (theList.indexOf(searchText) !== -1) { returnVal = true; return; } }); return returnVal; } } else { return theList.indexOf(content) !== -1; } }; /**********************************************************************************************/ function setTableZebra(tableID) { $("#"+tableID+">tbody>tr:not([class*='table_toolbar_no_count']):visible:even").removeClass("even odd").addClass("odd"); $("#"+tableID+">tbody>tr:not([class*='table_toolbar_no_count']):visible:odd").removeClass("even odd").addClass("even"); } /**********************************************************************************************/ function setIframeTop(jquerySelectorTag, offsetPixel) { var topPosition = 0; if (jquerySelectorTag == null) { jquerySelectorTag = "body,html,document"; } else { topPosition = $(jquerySelectorTag).position().top; } if (offsetPixel != null) { topPosition += offsetPixel; } $("body").append(''); $('#trv_top_scroll_dummy').focus(); $('#trv_top_scroll_dummy').remove(); } /**********************************************************************************************/ function getIFramePosition(isIFrame) { var position = "center"; if (isIFrame) { position = ['center',20]; setIframeTop(); } return position; } /**********************************************************************************************/ $.fn.animateHighlight = function(highlightColor, duration, onComplete) { var highlightBg = highlightColor || "#FF6060"; var animateMs = duration || 2000; var originalBg = this.css("backgroundColor"); this.stop().css("background-color", highlightBg).animate({backgroundColor: originalBg}, animateMs, function() {$(this).css({"background-color":""});eval(onComplete)}); }; /**********************************************************************************************/ function trv_setPiwik(url,title) { if (typeof _paq !== 'undefined') { _paq.push(['trackPageView',title]); } } /**********************************************************************************************/ $.extend({ getUrlVars: function(){ var vars = [], hash; var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); for(var i = 0; i < hashes.length; i++) { hash = hashes[i].split('='); vars.push(hash[0]); vars[hash[0]] = hash[1]; } return vars; }, getUrlVar: function(name){ return $.getUrlVars()[name]; } }); /**********************************************************************************************/ $(document).ready( function() { var trvShowInfo = $.getUrlVar('trvShowInfo'); var isIFrame = $.getUrlVar('isIFrame'); $("._blank").attr("target", "_blank"); if (trvShowInfo != null && trvShowInfo.length > 0) { isIFrame = (isIFrame == null || !isIFrame) ? 0:1; var position = getIFramePosition(isIFrame); infoDialog("INFORMATION",decodeURIComponent(trvShowInfo),null,null,null, position); } }); /**********************************************************************************************/ function showServiceWarning() { var serviceContainer = '
'; $(".trv_core_service_warning_container").html(serviceContainer); } /**********************************************************************************************/ function trv_printTable(tableID) { if ($('#'+tableID).prev().attr("class") != "trv_core_print_additional_info") { $('#'+tableID).before('
'); } if ($('#'+tableID).prev(".trv_core_print_additional_info").find(".trv_core_print_logo").length == 0) { $('#'+tableID).prev().prepend('
Gedruckt am:
Anzahl Einträge:
'); } $('#'+tableID).prev().find(".trv_core_print_row_count").text($('#'+tableID+"_visible_count").text()); $('#'+tableID).prev().find(".trv_core_print_lable_create_date").text(trv_core_get_current_date()); $('#'+tableID).parent().printElement( { printMode:'popup', leaveOpen:true, overrideElementCSS:['http://doi-ibm.portal.it-matchmaker.com/core/styles/table_print.css', {href:'http://doi-ibm.portal.it-matchmaker.com/core/styles/table_print.css',media:'print'}, 'http://doi-ibm.portal.it-matchmaker.com/core/modules/bar_chart/styles/bar_chart_print.css', {href:'http://doi-ibm.portal.it-matchmaker.com/core/modules/bar_chart/styles/bar_chart_print.css',media:'print'}] }); } /**********************************************************************************************/ function trv_core_get_current_date() { var now = new Date(); var month = (now.getMonth()+1)<10?"0"+(now.getMonth()+1):(now.getMonth()+1); var day = now.getDate()<10?"0"+now.getDate():now.getDate(); var year = now.getFullYear(); var hour = now.getHours()<10?"0"+now.getHours():now.getHours(); var min = now.getMinutes()<10?"0"+now.getMinutes():now.getMinutes(); return day+"."+month+"."+year+" - "+hour+":"+min; } /**********************************************************************************************/ function ie_fix_HrefJSLinks() { if (navigator.appVersion.indexOf("MSIE") != -1) { $('a').filter(function() { return (/^javascript\:/i).test($(this).attr('href')); }).each(function() { var hrefscript = $(this).attr('href'); hrefscript = hrefscript.substr(11); $(this).data('hrefscript', hrefscript); }).click(function() { var hrefscript = $(this).data('hrefscript'); eval(hrefscript); return false; }).attr('href', '#'); } } /**********************************************************************************************/ $.fn.focusToEnd = function(addSpaceAtEnd) { return this.each(function() { var v = $(this).val(); if (addSpaceAtEnd == true && v.length > 0) { v = v.rtrim()+" "; } $(this).focus().val("").val(v); }); }; function initTinyMCE(selector,afterInit, readonly_status, showTableEdit, showAddUserNameAndDate, showSerialLetterVariables, enableFullScreen) { var tablePlugin = ""; var tableToolbar = ""; var userNameAndDatePlugin = ""; var userNameAndDateToolbar = ""; var serialLetterVariablesPlugin = ""; var serialLetterVariablesToolbar = ""; var fullscreenPlugin = ""; var fullscreenToolbar = ""; if (selector == null) { selector = "textarea"; } if(readonly_status == null) { readonly_status = false; } if(showTableEdit == null) { showTableEdit = false; } if(showAddUserNameAndDate == null) { showAddUserNameAndDate = false; } if(enableFullScreen == null) { enableFullScreen = false; } if (showTableEdit) { tablePlugin = " table"; tableToolbar = " | table"; } if (showAddUserNameAndDate) { userNameAndDatePlugin = "user_and_date "; userNameAndDateToolbar = "user_and_date_on_top user_and_date_cursor | "; } if (showSerialLetterVariables != null) { serialLetterVariablesPlugin = " serial_letter_variables "; serialLetterVariablesToolbar = " | serial_letter_variables "; } if (enableFullScreen) { fullscreenPlugin = " fullscreen "; fullscreenToolbar = " | fullscreen"; } tinymce.baseURL = "http://doi-ibm.portal.it-matchmaker.com/core/jscripts/tinymce/"; tinymce.suffix = '.min'; tinymce.init({ readonly: readonly_status, selector: selector, skin_url: 'http://doi-ibm.portal.it-matchmaker.com/core/jscripts/tinymce/skins/lightgray', entity_encoding : "raw", elementpath: false, resize:true, branding: false, content_css: 'http://doi-ibm.portal.it-matchmaker.com/core/styles/tinymce_content_fix.css', menubar : false, plugins: [ userNameAndDatePlugin+"advlist autolink lists charmap hr searchreplace wordcount visualblocks visualchars code textcolor paste preview noneditable link"+tablePlugin+serialLetterVariablesPlugin+fullscreenPlugin ], toolbar: userNameAndDateToolbar+"undo redo | visualblocks | formatselect fontsizeselect forecolor | bold italic underline strikethrough | removeformat | alignleft aligncenter alignright alignjustify | hr | cut copy paste pastetext | bullist numlist | searchreplace | code preview | link"+tableToolbar+serialLetterVariablesToolbar+fullscreenToolbar, language : "de", paste_word_valid_elements: "@[style],-strong/b,-em/i,-span,-p,-ol,-ul,-li,-table,-tr,-td[colspan|rowspan],-th,-thead,-tfoot,-tbody,-a[href|name],sub,sup,strike,br,u", setup : function(editor) { editor.on("change", tinyOnChangeHandler); editor.on("init", afterInit); } }); } function tinyOnChangeHandler() { //JB 11.08.2014: Platzhalter, damit es keinen Fehler gibt, wenn die Funktion nicht gesetzt wird } function trv_getPossibleSerialLetterVars() { //JB 14.08.2018: Platzhalter, damit es keinen Fehler gibt, wenn die Funktion nicht gesetzt wird } function trv_core_jump_top() { if ($(".ui-dialog-titlebar").length > 0) { setIframeTop('.ui-dialog-titlebar:last'); } else { setIframeTop(); } } function trv_setLastViewedTableRowMarker(tableRowID) { $('tr#'+tableRowID).parent().find("tr").removeClass("trv_core_last_viewed_marker"); $('tr#'+tableRowID).addClass("trv_core_last_viewed_marker"); } function trv_number_format(nummer,nachkommastellen,seperator,tausender_seperator) { var isNegativNummer = false; if (nummer < 0) { isNegativNummer = true; nummer = nummer * (-1); } nummer = Math.round( nummer * Math.pow(10, nachkommastellen) ) / Math.pow(10, nachkommastellen); str_nummer = nummer+""; arr_int = str_nummer.split("."); if(!arr_int[0]) arr_int[0] = "0"; if(!arr_int[1]) arr_int[1] = ""; if(arr_int[1].length < nachkommastellen){ nachkomma = arr_int[1]; for(i=arr_int[1].length+1; i <= nachkommastellen; i++){ nachkomma += "0"; } arr_int[1] = nachkomma; } if(tausender_seperator != "" && arr_int[0].length > 3){ Begriff = arr_int[0]; arr_int[0] = ""; for(j = 3; j < Begriff.length ; j+=3){ Extrakt = Begriff.slice(Begriff.length - j, Begriff.length - j + 3); arr_int[0] = tausender_seperator + Extrakt + arr_int[0] + ""; } str_first = Begriff.substr(0, (Begriff.length % 3 == 0)?3:(Begriff.length % 3)); arr_int[0] = str_first + arr_int[0]; } return (isNegativNummer?"-":"")+arr_int[0]+seperator+arr_int[1]; } function nl2br (str) { var breakTag = '
'; return (str + '').replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g, '$1' + breakTag + '$2'); } (function ( $ ) { jQuery.trv_postJson = function (options) { var fullPath = "NVlFXzhjbUlsYDx5b3JMaH1gPksraD43NSs8Yy1FfXtCIF1wNWplPEkpSGFCe05rKHx9ST13UzZ6a3N8WmQhMHFDYUg,"; var logAjaxError = function (url,parameter,errorStatus,errorStatusText,errorResponseText,requestStatusText) { var errorData = new Object(); errorData["errorStatus"] = errorStatus; errorData["errorStatusText"] = errorStatusText; errorData["errorResponseText"] = errorResponseText; errorData["requestStatusText"] = requestStatusText; $.post( "http://doi-ibm.portal.it-matchmaker.com/core/ajax/ajax.php?PHPSESSID=c2917429daff95f4358120a9ff96757a",{ ajax_type: "LOG_AJAX_ERROR", full_path: fullPath, url: url, parameter: $.toJSON(parameter), error: $.toJSON(errorData) }); } var toggleSaveInfo = function(actionType) { if (settings.showSavingInfoIn != null) { trv_toggleSaveInfo($(settings.showSavingInfoIn),actionType,settings.alternativeSavingInfoText); } } var settings = $.extend({ disableErrorOnReload: false, errorDailogPosition: "top", errorDailogWidth: 950, errorDailogCenterText: false, alternativeErrorMessage: null, blockScreen: true, ajax_type: null, showSavingInfoIn: null, // must be element alternativeSavingInfoText: null, module_name: null, url: null, ajaxFile: "ajax.php", full_path: fullPath, parameter: null, onSuccess: function(data) {}, onErrorFirst:function(data) {} }, options ); if (settings.blockScreen) { blockScreen(true); } toggleSaveInfo("show"); if (settings.parameter == null) { settings.parameter = new Object(); } if (settings.full_path != null) { settings.parameter.full_path = settings.full_path; } if (settings.ajax_type != null) { settings.parameter.ajax_type = settings.ajax_type; } if (settings.url == null) { if (settings.module_name == null) { settings.url = "/ajax/"+settings.ajaxFile+"?PHPSESSID=c2917429daff95f4358120a9ff96757a"; } else { settings.url = "http://doi-ibm.portal.it-matchmaker.com/core/modules/"+settings.module_name+"/ajax/"+settings.ajaxFile+"?app_language=de&PHPSESSID=c2917429daff95f4358120a9ff96757a"; } } var internalErrorText = "INTERNER FEHLER: Wurde vielleicht Ihre Internetverbindung unterbrochen?

Bitte versuchen Sie Ihre Aktion zu wiederholen ...


Bitte überprüfen Sie Ihre Firewall oder Ihren Virusscanner! Diese können auch die Verbindung unterbrechen falls die Inhalte dieser Seite als gefährlich eingestuft worden sind. Das kann auch zu dieser Fehlermeldung führen."; $.post( settings.url, settings.parameter, function(data, status, xhr) { if (status == "success") { toggleSaveInfo("hide"); if (data === null || (!isNaN(parseFloat(data)) && typeof(data) !== 'object')) { settings.onErrorFirst.call(this,xhr); unblockScreen(); infoDialog("FEHLER",settings.alternativeErrorMessage || internalErrorText,null,600,null,settings.errorDailogPosition); var info = "Number returned"; if (data == null) { info = "NULL returned"; } logAjaxError(settings.url,settings.parameter,xhr.status,xhr.statusText,"",info); } else if (data.postJsonMessage != null) { settings.onErrorFirst.call(this,xhr); var messageTitle = "FEHLER"; var messageDialogWidth = 400; if (data.postJsonMessageTitle != null) { messageTitle = data.postJsonMessageTitle; } if (data.postJsonMessageDialogWidth != null) { messageDialogWidth = data.postJsonMessageDialogWidth; } unblockScreen(); infoDialog(messageTitle,data.postJsonMessage,null,messageDialogWidth,null,settings.errorDailogPosition,null,!settings.errorDailogCenterText); } else { settings.onSuccess.call(this,data); } } if (status == "error" || status == "timeout" || status == "parsererror") { settings.onErrorFirst.call(this,xhr); var statusResponseText = xhr.responseText; if (statusResponseText == "" || statusResponseText == null) { statusResponseText = internalErrorText; } toggleSaveInfo("hide"); unblockScreen(); infoDialog("FEHLER",settings.alternativeErrorMessage || (status+"
"+xhr.statusText+" ("+xhr.status+")
"+statusResponseText),null,settings.errorDailogWidth,null,settings.errorDailogPosition,null,!settings.errorDailogCenterText); logAjaxError(settings.url,settings.parameter,xhr.status,xhr.statusText,statusResponseText,status); } if (settings.blockScreen) { unblockScreen(true); } },"json").error(function (error) { settings.onErrorFirst.call(this,error); if (!settings.disableErrorOnReload || (settings.disableErrorOnReload && error.readyState != 0 && error.status != 0)) { toggleSaveInfo("hide"); unblockScreen(); var responseText = error.responseText; if (responseText == "" || responseText == null) { responseText = internalErrorText; } infoDialog("FEHLER",settings.alternativeErrorMessage || responseText,null,settings.errorDailogWidth,null,settings.errorDailogPosition,null,!settings.errorDailogCenterText); logAjaxError(settings.url,settings.parameter,error.status,error.statusText,responseText,"Is not a JSON string"); } }); } $.fn.trv_load = function (options) { var fullPath = "NVlFXzhjbUlsYDx5b3JMaH1gPksraD43NSs8Yy1FfXtCIF1wNWplPEkpSGFCe05rKHx9ST13UzZ6a3N8WmQhMHFDYUg,"; var logLoadError = function (url,errorStatus,errorStatusText,errorResponseText,requestStatusText) { var errorData = new Object(); errorData["errorStatus"] = errorStatus; errorData["errorStatusText"] = errorStatusText; errorData["errorResponseText"] = errorResponseText; errorData["requestStatusText"] = requestStatusText; $.post( "http://doi-ibm.portal.it-matchmaker.com/core/ajax/ajax.php?PHPSESSID=c2917429daff95f4358120a9ff96757a",{ ajax_type: "LOG_LOAD_ERROR", full_path: fullPath, url: url, error: $.toJSON(errorData) }); } var settings = $.extend({ disableErrorOnReload: false, errorDailogPosition: "top", errorDailogWidth: 750, errorDailogCenterText: false, blockScreen: true, div_id: null, path: null }, options ); var internalErrorText = "INTERNER FEHLER: Wurde vielleicht Ihre Internetverbindung unterbrochen?

Bitte versuchen Sie Ihre Aktion zu wiederholen ...


Bitte überprüfen Sie Ihre Firewall oder Ihren Virusscanner! Diese können auch die Verbindung unterbrechen falls die Inhalte dieser Seite als gefährlich eingestuft worden sind. Das kann auch zu dieser Fehlermeldung führen."; $("#"+settings.div_id).load(settings.path, function(response, status, xhr) { if(status == "error" || status == "timeout" || status == "parsererror") { unblockScreen(); var responseText = xhr.responseText; if (responseText == "" || responseText == null) { responseText = internalErrorText; } infoDialog("FEHLER",responseText,null,null,null,null,null,null); logLoadError('http://doi-ibm.portal.it-matchmaker.com',xhr.status,xhr.statusText,responseText,"Something is wrong in "+settings.div_id, 'NVlFXzhjbUlsYDx5b3JMaH1gPksraD43NSs8Yy1FfXtCIF1wNWplPEkpSGFCe05rKHx9ST13UzZ6a3N8WmQhMHFDYUg,'); $("#"+settings.div_id).remove(); } } ); return this; }; $.fn.trv_tinyMCE_isLengthValid = function(showInvalidInfo) { var invalidText = "Mindestens eine Texteingabe überschreitet die erlaubte Länge oder ist ein Pflichtfeld und muss einen Eintrag enthalten.

Bitte korrigieren Sie Ihre Eingabe ..."; var allValid = true; var foundElement = this; $(tinyMCE.editors).each(function(index,editor){ $(foundElement).each(function() { var textLength = editor.getContent().length; var textRequired = $(editor.targetElm).hasClass("{validate: {required:true}}"); if ($(editor.targetElm).get(0) == $(this).get(0) && (!editor.plugins.charcount_with_limit.isLengthValid() || (textRequired && textLength == 0))) { if (textRequired && textLength == 0) { var statusPanel = editor.theme.panel.find('#statusbar'); statusPanel.addClass("charcount_limit"); } allValid = false; return false; } }) if (!allValid) return false; }) if (!allValid && showInvalidInfo) { infoDialog("FEHLER",invalidText,null,500); } return allValid; } $.fn.trv_tinyMCE_destroy = function(){ var foundElement = this; $(tinyMCE.editors).each(function(index,editor){ $(foundElement).each(function() { if ($(editor.targetElm).get(0) == $(this).get(0)) { editor.destroy(); } }) }) } $.fn.trv_tinyMCE_init = function(options){ var settings = $.extend({ readOnly: false, enableFullscreen: false, enableMedia: false, showTableEdit: false, enablePasteImages: false, showAddUserNameAndDate: false, showSerialLetterVariables: false, maxChar: 0, afterInit: function(data) {}, onChange:function(data) {} }, options ); var tablePlugin = ""; var tableToolbar = ""; var userNameAndDatePlugin = ""; var userNameAndDateToolbar = ""; var serialLetterVariablesPlugin = ""; var serialLetterVariablesToolbar = ""; var fullscreenPlugin = ""; var fullscreenToolbar = ""; var mediaPlugin = ""; var mediaToolbar = ""; if (settings.showTableEdit) { tablePlugin = " table"; tableToolbar = " | table"; } if (settings.enableFullscreen) { fullscreenPlugin = " fullscreen "; fullscreenToolbar = " | fullscreen"; } if (settings.showAddUserNameAndDate) { userNameAndDatePlugin = "user_and_date "; userNameAndDateToolbar = "user_and_date_on_top user_and_date_cursor | "; } if (settings.showSerialLetterVariables) { serialLetterVariablesPlugin = " serial_letter_variables "; serialLetterVariablesToolbar = " | serial_letter_variables "; } if (settings.enableMedia) { mediaPlugin = " media "; mediaToolbar = " | media "; } tinymce.baseURL = "http://doi-ibm.portal.it-matchmaker.com/core/jscripts/tinymce"; tinymce.suffix = '.min'; tinymce.init({ readonly: settings.readOnly, selector: this.selector, content_css: 'http://doi-ibm.portal.it-matchmaker.com/core/styles/tinymce_content_fix.css', branding: false, skin_url: 'http://doi-ibm.portal.it-matchmaker.com/core/jscripts/tinymce/skins/lightgray', entity_encoding : "raw", elementpath: false, resize: true, paste_data_images: settings.enablePasteImages, menubar : false, max_char: settings.maxChar, plugins: [ userNameAndDatePlugin+"advlist autolink lists charmap hr searchreplace charcount_with_limit visualblocks visualchars code textcolor paste preview noneditable link"+tablePlugin+serialLetterVariablesPlugin+fullscreenPlugin+mediaPlugin ], toolbar: userNameAndDateToolbar+"undo redo | visualblocks | formatselect fontsizeselect forecolor | bold italic underline strikethrough | removeformat | alignleft aligncenter alignright alignjustify | hr | cut copy paste pastetext | bullist numlist | searchreplace | code preview | link"+tableToolbar+serialLetterVariablesToolbar+fullscreenToolbar+mediaToolbar, language : "de", paste_word_valid_elements: "@[style],-strong/b,-em/i,-span,-p,-ol,-ul,-li,-table,-tr,-td[colspan|rowspan],-th,-thead,-tfoot,-tbody,-a[href|name],sub,sup,strike,br,u", setup : function(editor) { editor.on("change", settings.onChange); editor.on("init", settings.afterInit); } }); } $.fn.trv_scrollTo = function( target, options, callback ){ if(typeof options == 'function' && arguments.length == 2){ callback = options; options = target; } var settings = $.extend({ scrollTarget : target, offsetTop : 50, duration : 500, easing : 'swing' }, options); return this.each(function(){ var scrollPane = $(this); var scrollTarget = (typeof settings.scrollTarget == "number") ? settings.scrollTarget : $(settings.scrollTarget); var scrollY = (typeof scrollTarget == "number") ? scrollTarget : scrollTarget.offset().top + scrollPane.scrollTop() - parseInt(settings.offsetTop); scrollPane.animate({scrollTop : scrollY }, parseInt(settings.duration), settings.easing, function(){ if (typeof callback == 'function') { callback.call(this); } }); }); } }( jQuery )); function trv_toggleSaveInfo(element,actionType,alternativeText) { var infoText = "Daten werden gespeichert ..."; if (actionType == null) { actionType = "auto"; } if (alternativeText != null) { infoText = alternativeText; } $(element).each(function() { var elementHeight = $(this).innerHeight(); var elementWidth = $(this).innerWidth(); var tableRowStyle = ''; var saveInfoPanel = '
'+infoText+'
'; if ($(this).css("position") == "static") { $(this).css("position","relative"); } if ($(this).find(".trv_core_save_info_overlay").length == 0 && (actionType == "show" || actionType == "auto")) { $(this).append(saveInfoPanel); } else if (actionType == "hide" || actionType == "auto") { $(this).find(".trv_core_save_info_overlay").remove(); } }); } function trv_searchTree(treeID,searchText) { if ($("#"+treeID).length > 0) { $("#"+treeID).jstree(true).search(searchText); } } function trv_core_startProgressFetch(progressID, alternativeLable) { showBockscreenProgressBar(alternativeLable); trv_core_progressFetch.currentProgressValue = 0; trv_core_progressFetch.progressID = progressID; trv_core_progressFetch.instance = setInterval(function() { $.get( "http://doi-ibm.portal.it-matchmaker.com/core/ajax/progress.php?id="+trv_core_progressFetch.progressID, function(data) { data = parseInt(data); if (data >= 0 && data <= 100 && data >= trv_core_progressFetch.currentProgressValue) { setBockscreenProgressValue(data); trv_core_progressFetch.currentProgressValue = data; } }); }, 150); } function trv_core_stopProgressBar() { if (trv_core_progressFetch != null) { clearInterval(trv_core_progressFetch.instance); hideBockscreenProgressBar(); trv_core_progressFetch = new Object(); } } function trv_core_startProgressInlilneFetch(progressID) { trv_core_progressInlineFetch.currentProgressValue = 0; trv_core_progressInlineFetch.progressID = progressID; trv_core_progressInlineFetch.instance = setInterval(function() { $.get( "http://doi-ibm.portal.it-matchmaker.com/core/ajax/progress.php?id="+trv_core_progressInlineFetch.progressID, function(data) { if (data.startsWith("intervall")) { if (trv_core_progressInlineFetch.intervall == null || (trv_core_progressInlineFetch.intervall != null && data != trv_core_progressInlineFetch.intervall.intervalName)) { trv_core_startIntervallProgressInline(data); } } else { if (trv_core_progressInlineFetch.intervall != null) { trv_core_stopIntervallProgressInline(); } trv_core_setProgressInline(data); } }); }, 150); } function trv_core_setProgressInline(percentValue) { percentValue = parseInt(percentValue); if (percentValue >= 0 && percentValue <= 100 && percentValue > trv_core_progressInlineFetch.currentProgressValue) { $(".trv_core_progress_inline_line").width(percentValue+"%").text(percentValue+"%"); trv_core_progressInlineFetch.currentProgressValue = percentValue; } } function trv_core_stopIntervallProgressInline() { if (trv_core_progressInlineFetch.intervall != null) { clearInterval(trv_core_progressInlineFetch.intervall.instance); trv_core_progressInlineFetch.intervall = null; } } function trv_core_startIntervallProgressInline(intervallData) { trv_core_stopIntervallProgressInline(); trv_core_progressInlineFetch.intervall = new Object(); trv_core_progressInlineFetch.intervall.intervalName = intervallData; $splitIntervallData = intervallData.split("-"); $startStop = $splitIntervallData[1].split("_"); trv_core_progressInlineFetch.intervall.currentProgressValue = parseInt($startStop[0]); trv_core_progressInlineFetch.intervall.intervalEnd = parseInt($startStop[1]); trv_core_progressInlineFetch.intervall.updateMilliseconds = parseInt($splitIntervallData[2]); trv_core_progressInlineFetch.intervall.instance = setInterval(function() { if (trv_core_progressInlineFetch.intervall.currentProgressValue == trv_core_progressInlineFetch.intervall.intervalEnd) { trv_core_stopIntervallProgressInline(); } else { trv_core_setProgressInline(trv_core_progressInlineFetch.intervall.currentProgressValue); trv_core_progressInlineFetch.intervall.currentProgressValue++; } }, trv_core_progressInlineFetch.intervall.updateMilliseconds); } function trv_core_stopProgressInline() { if (trv_core_progressInlineFetch != null) { trv_core_stopIntervallProgressInline(); clearInterval(trv_core_progressInlineFetch.instance); trv_core_progressInlineFetch = new Object(); } } function trv_core_calculate_table_sum(tableID) { if ($("#"+tableID+" tfoot tr.trv_core_table_row_sum").length) { $("#"+tableID+" tfoot tr.trv_core_table_row_sum td.trv_core_sum_this").each(function(index,element){ var colSum = 0; var countDigits = 0; $("#"+tableID+" tbody tr:visible td:nth-child("+($(element).data("column")+1)+")").each(function(indexRow, tableData){ var content = $('*:not(:has(*)):visible', tableData).text().trim(); if (content != "") { var splitDigits = content.split(","); content = content.replace(/\./g,"").replace(",","."); if (splitDigits[1] != null) { if (splitDigits[1].length != countDigits) { countDigits = splitDigits[1].length; } } colSum += parseFloat(content); } }); if ($(element).data("sum-digits") != null) { countDigits = $(element).data("sum-digits"); } colSum = trv_number_format(colSum,countDigits,countDigits > 0?",":"","."); if (colSum.indexOf("NaN") != -1) { colSum = "Keine Zahl"; } $(element).text(colSum); }); } } function trv_core_getRawNumber(value,returnFormated,numberDecimalDigits) { var returnValue = ""; if (value.trim() != "") { value = value.split(","); $.each(value, function(position,numberValue) { value[position] = numberValue.replace(/[^0-9]/g,''); }); if (value.length > 1) { var returnValue = ""; $.each(value, function(position,numberValue) { returnValue = returnValue+numberValue; if (position == 0) { returnValue = returnValue+"."; } }); if (numberDecimalDigits == null) { numberDecimalDigits = returnValue.split("."); numberDecimalDigits = numberDecimalDigits.length > 1?numberDecimalDigits[1].length:0; numberDecimalDigits = numberDecimalDigits > 3?3:numberDecimalDigits; } if (returnFormated) { returnValue = $.number(returnValue, numberDecimalDigits, "," ,"."); } else { returnValue = $.number(returnValue, numberDecimalDigits, "," ,""); } } else { if (returnFormated) { returnValue = $.number(value[0], numberDecimalDigits, "," ,"."); } else { returnValue = value[0]; } } } return returnValue; } function isInputNumber(event,element) { var hasKomma = $(element).val().indexOf(",") > -1; if ((event.keyCode > 36 && event.keyCode < 58) || (event.keyCode > 95 && event.keyCode < 106) || event.keyCode == 110|| event.keyCode == 8 || event.keyCode == 13 || event.keyCode == 9 || (event.keyCode == 188 && !hasKomma) || event.keyCode == 27 || event.keyCode == 35 || event.keyCode == 36 || (event.ctrlKey && event.keyCode == 65) || (event.ctrlKey && event.keyCode == 86) || (event.ctrlKey && event.keyCode == 67)) { return true; } return false; } /**********************************************************************************************/ function addValidatorNumberPositivDigits() { jQuery.validator.addMethod("numberPositivDigits", function(value, element, parameter) { const testExpression = new RegExp('^(?:0|[1-9][0-9]*)(?:[,][0-9]{1,'+parameter+'})?$'); return this.optional(element) || testExpression.test(value); }, " "); } /**********************************************************************************************/ function addValidatorNumberDigits() { jQuery.validator.addMethod("numberDigits", function(value, element, parameter) { const testExpression = new RegExp('^-?(?:0|[-1-9][0-9]*)(?:[,][0-9]{1,'+parameter+'})?$'); return this.optional(element) || testExpression.test(value); }, " "); } jQuery.expr[':'].icontains = function(a, i, m) { return jQuery(a).text().toLowerCase() .indexOf(m[3].toLowerCase()) >= 0; }; function checkUsernameModule(userName, inputFormID, errorClass, showSelectDialog, isIFrame, callbackOnValidUserName, checkUpperCase) { var position = getIFramePosition(isIFrame); if (checkUpperCase == null) { checkUpperCase = 1; } checkUpperCase = checkUpperCase?1:0; $.trv_postJson({ errorDailogPosition: position, module_name: "check_username", ajax_type: "CHECK_USER_NAME", parameter: { userName: userName, checkUpperCase: checkUpperCase }, onSuccess: function(data) { if (data.userValid == 1) { $("#"+inputFormID).removeClass(errorClass); if(callbackOnValidUserName != null && (typeof callbackOnValidUserName == "function")) { callbackOnValidUserName(); } } else if (data.userValid == 0) { $("#"+inputFormID).addClass(errorClass); if (showSelectDialog) { openSelectNewUserNameDialog(userName, inputFormID, errorClass, isIFrame); } } } }); } function openSelectNewUserNameDialog(userName, inputFormID, errorClass, isIFrame) { if ($("#trv_module_dialog_check_user_name").length == 0) { blockScreen(); isIFrame = (isIFrame == null || !isIFrame) ? 0:1; var position = getIFramePosition(isIFrame); $("body").append(""); $("#trv_module_dialog_check_user_name").load("http://doi-ibm.portal.it-matchmaker.com/core/modules/check_username/components/dialog_select_user_name.php?userName="+encodeURI(userName)+"&inputFormID="+encodeURI(inputFormID)+"&errorClass="+encodeURI(errorClass)+"&full_path=NVlFXzhjbUlsYDx5b3JMaH1gPksraD43NSs8Yy1FfXtCIF1wNWplPEkpSGFCe05rKHx9ST13UzZ6a3N8WmQhMHFDYUg,&app_language=de&PHPSESSID=c2917429daff95f4358120a9ff96757a").dialog({ close: function(event, ui) { $(this).dialog('destroy'); $("#trv_module_dialog_check_user_name").remove(); $("#"+inputFormID).focus(); $("#"+inputFormID).select(); }, closeOnEscape: true, resizable: false, position: position, minHeight: 300, height: 'auto', width: 400, modal: true, bgiframe: true, title: "Auswahl eines anderen Benutzernames" }); } } function openModuleContactDialog(mailSubject,isIFrame,useSessionData,mailAdressSelector,mailAdressCCSelector,mailAdressBCCSelector,portalName,userCoreHeaderImages,additionalText) { if ($("#trv_module_dialog_contact").length == 0) { var width = '530'; blockScreen(); mailAdressSelector = mailAdressSelector == null?"":mailAdressSelector; mailAdressCCSelector = mailAdressCCSelector == null?"":mailAdressCCSelector; mailAdressBCCSelector = mailAdressBCCSelector == null?"":mailAdressBCCSelector; portalName = portalName == null?"":portalName; additionalText = additionalText == null?"":additionalText; userCoreHeaderImages = userCoreHeaderImages == null || userCoreHeaderImages == 1?1:0; var dialogHeight = 470; useSessionData = (useSessionData == null || !useSessionData) ? 0:1; mailSubject = (mailSubject == null) ? "":mailSubject; isIFrame = (isIFrame == null || !isIFrame) ? 0:1; var position = getIFramePosition(isIFrame); if (useSessionData) { dialogHeight = 330; } $("body").append(""); $("#trv_module_dialog_contact").load("http://doi-ibm.portal.it-matchmaker.com/core/modules/contact/components/dialog_contact.php?userCoreHeaderImages="+encodeURIComponent(userCoreHeaderImages)+"&portalName="+encodeURIComponent(portalName)+"&additionalText="+encodeURIComponent(additionalText)+"&mailAdressSelector="+encodeURIComponent(mailAdressSelector)+"&mailAdressCCSelector="+encodeURIComponent(mailAdressCCSelector)+"&mailAdressBCCSelector="+encodeURIComponent(mailAdressBCCSelector)+"&isIFrame="+isIFrame+"&useSessionData="+useSessionData+"&mailSubject="+encodeURIComponent(mailSubject)+"&full_path=NVlFXzhjbUlsYDx5b3JMaH1gPksraD43NSs8Yy1FfXtCIF1wNWplPEkpSGFCe05rKHx9ST13UzZ6a3N8WmQhMHFDYUg,&app_language=de&PHPSESSID=c2917429daff95f4358120a9ff96757a").dialog({ close: function(event, ui) { moduleContactContentChanged(false); $(this).dialog('destroy'); $("#trv_module_dialog_contact").remove(); }, beforeClose: function(event, ui) { return closeContactDialog(isIFrame); }, closeOnEscape: false, resizable: false, position: position, minHeight: dialogHeight, height: 'auto', width: width, modal: true, bgiframe: true, title: "Kontakt" }); } } function moduleContactSend(isIFrame,mailAdressSelector,mailAdressCCSelector,mailAdressBCCSelector) { isIFrame = (isIFrame == null || !isIFrame) ? 0:1; var position = getIFramePosition(isIFrame); if (isFormValid('trv_module_contact_form',position, isIFrame,'trv_core_input_white_validator_error')) { mailAdressSelector = mailAdressSelector == null?"":mailAdressSelector; mailAdressCCSelector = mailAdressCCSelector == null?"":mailAdressCCSelector; mailAdressBCCSelector = mailAdressBCCSelector == null?"":mailAdressBCCSelector; $.trv_postJson({ module_name: "contact", ajax_type: "SEND_CONTACT", parameter: { mailAdressSelector: mailAdressSelector, mailAdressCCSelector: mailAdressCCSelector, mailAdressBCCSelector: mailAdressBCCSelector, contactData: $('#trv_module_contact_form').serialize() }, onSuccess: function(data) { moduleContactContentChanged(false); $("#trv_module_dialog_contact").dialog("close"); infoDialog("INFORMATION","Ihre Kontaktanfrage wurde an uns gesendet.
Wir setzen uns mit Ihnen schnellstmöglich in Verbindung.",null,null,null, position); } }); } } var moduleContactContentChangedVar = false; function moduleContactContentChanged(changed) { moduleContactContentChangedVar = changed; setUnload(changed, "Das Kontaktformular wurde ausgefüllt aber nicht abgesendet!"); } function closeContactDialog(isIFrame) { if (moduleContactContentChangedVar) { confirmCloseContactDialog(isIFrame); return false; } return true; } function confirmCloseContactDialog(isIFrame) { isIFrame = (isIFrame == null || !isIFrame) ? 0:1; var position = getIFramePosition(isIFrame); confirmDialog("BESTÄTIGUNG","moduleContactContentChanged(false);$('#trv_module_dialog_contact').dialog('close');","Das Kontaktformular wurde ausgefüllt aber nicht abgesendet!

Wollen Sie den Kontaktvorgang wirklich beenden?",null,400,null,position); } function setModuleMatchmakerLightProfileInput(element, itemID, inputTyp, forceValue, isIFrame) { if ($(element).length > 0) { blockScreen(true); var vorgaengerID = 0; if (inputTyp == "TMP_MEMO") { var value = $(element).val(); } else { var value = $(element).is(":checked")?1:0; } if (inputTyp == "TMP_RADIO") { vorgaengerID = itemID; itemID = $(element).val(); value = forceValue; } $.post( "http://doi-ibm.portal.it-matchmaker.com/core/modules/matchmaker_light/ajax/ajax.php?app_language=de&PHPSESSID=c2917429daff95f4358120a9ff96757a", { full_path: "NVlFXzhjbUlsYDx5b3JMaH1gPksraD43NSs8Yy1FfXtCIF1wNWplPEkpSGFCe05rKHx9ST13UzZ6a3N8WmQhMHFDYUg,", ajax_type: "SET_PROFILE_INPUT", inputTyp: inputTyp, itemID: itemID, value: value, vorgaengerID: vorgaengerID }, function(data) { if ((data == 1) || (data == 0)) { getModuleMatchmakerLightResultCount(); if (inputTyp != "TMP_MEMO") { if (data == 1) { $(element).each(function(){ this.checked = true; }); } else { $(element).each(function(){ this.checked = false; }); } } unblockScreen(true); } else { unblockScreen(true); var position = getIFramePosition(isIFrame); infoDialog("FEHLER", data, null,600, null, position); } }); } } function getModuleMatchmakerLightResultCount() { blockScreen(true); $.post( "http://doi-ibm.portal.it-matchmaker.com/core/modules/matchmaker_light/ajax/ajax.php?app_language=de&PHPSESSID=c2917429daff95f4358120a9ff96757a", { full_path: "NVlFXzhjbUlsYDx5b3JMaH1gPksraD43NSs8Yy1FfXtCIF1wNWplPEkpSGFCe05rKHx9ST13UzZ6a3N8WmQhMHFDYUg,", ajax_type: "GET_RESULT_COUNT" }, function(data) { $(".trv_module_matchmaker_light_profile_count").text(data); unblockScreen(true); }); } function openSelectLanguageDialog(isIFrame) { if ($("#trv_module_dialog_select_language").length == 0) { blockScreen(); isIFrame = (isIFrame == null || !isIFrame) ? 0:1; var position = getIFramePosition(isIFrame); $("body").append(""); $("#trv_module_dialog_select_language").load("http://doi-ibm.portal.it-matchmaker.com/core/modules/matchmaker_light/components/dialog_select_language.php?full_path=NVlFXzhjbUlsYDx5b3JMaH1gPksraD43NSs8Yy1FfXtCIF1wNWplPEkpSGFCe05rKHx9ST13UzZ6a3N8WmQhMHFDYUg,&app_language=de&PHPSESSID=c2917429daff95f4358120a9ff96757a").dialog({ close: function(event, ui) { $(this).dialog('destroy'); $("#trv_module_dialog_select_language").remove(); }, closeOnEscape: true, resizable: false, position: position, minHeight: 240, height: 'auto', width: 250, modal: true, bgiframe: true, title: "Land wechseln" }); } } function trvToggleFavorit(companyID, productID, isIFrame) { $.post( "http://doi-ibm.portal.it-matchmaker.com/core/ajax/ajax.php?app_language=de&PHPSESSID=c2917429daff95f4358120a9ff96757a", { full_path: "NVlFXzhjbUlsYDx5b3JMaH1gPksraD43NSs8Yy1FfXtCIF1wNWplPEkpSGFCe05rKHx9ST13UzZ6a3N8WmQhMHFDYUg,", ajax_type: "TOGGLE_ITM_FAVORITE", productID: productID, companyID: companyID }, function(data) { if ((data == 1) || (data == 0)) { if (data == 1) { $("#trv_favorite_"+companyID+"_"+productID).attr("src","http://doi-ibm.portal.it-matchmaker.com/core/images/icons/star.png"); } else { $("#trv_favorite_"+companyID+"_"+productID).attr("src","http://doi-ibm.portal.it-matchmaker.com/core/images/icons/star_off.png"); } trvSetFavoriteCount(isIFrame); } else { var position = getIFramePosition(isIFrame); infoDialog("FEHLER", data, null,600, null, position); } }); } function trvSetFavoriteCount(isIFrame) { $.post( "http://doi-ibm.portal.it-matchmaker.com/core/ajax/ajax.php?app_language=de&PHPSESSID=c2917429daff95f4358120a9ff96757a", { full_path: "NVlFXzhjbUlsYDx5b3JMaH1gPksraD43NSs8Yy1FfXtCIF1wNWplPEkpSGFCe05rKHx9ST13UzZ6a3N8WmQhMHFDYUg,", ajax_type: "GET_ITM_FAVORITE_COUNT" }, function(data) { if (isNaN(data)) { var position = getIFramePosition(isIFrame); infoDialog("FEHLER", data, null,600, null, position); } else { if ($(".trv_module_product_list_button_order_report").length > 0) { if ((data == 0) && ($(".trv_module_product_list_button_order_report .trv_itm_favcount").length > 0)) { $(".trv_module_product_list_button_order_report").replaceWith("Keine Favoriten ausgewählt!"); $(".trv_module_matchmaker_light_search_button").attr("href","#"); } else if ((data > 0) && ($(".trv_module_product_list_button_order_report .trv_itm_favcount").length == 0)) { $(".trv_module_product_list_button_order_report").replaceWith("Jetzt Report bestellen [{$favcount}]"); $(".trv_module_matchmaker_light_search_button").attr("href",trvSavedReportOrderLink); } } $(".trv_itm_favcount").text(data); if(0) { changeNaviIconFavorite(data); } } }); } var trvSavedReportOrderLink = "#"; $(document).ready( function() { if ($(".trv_module_product_list_button_order_report").length > 0) { trvSavedReportOrderLink = $(".trv_module_matchmaker_light_search_button").attr("href"); } }); function changeNaviIconFavorite(anzFav) { if(anzFav > 0) { $(".trv_module_matchmaker_light_navi_icon").attr("src", "http://doi-ibm.portal.it-matchmaker.com/core/images/icons/star.png"); } else { $(".trv_module_matchmaker_light_navi_icon").attr("src","http://doi-ibm.portal.it-matchmaker.com/core/images/icons/star_off.png"); } } function openModuleLoginDialog(isIFrame) { if ($("#trv_module_dialog_login:visible").length == 0) { isIFrame = (isIFrame == null || !isIFrame) ? 0:1; var position = getIFramePosition(isIFrame); $("#trv_module_dialog_login").dialog({ close: function(event, ui) { $(this).dialog('destroy'); moduleLoginClearForwardLoginUrl(); }, open: function(event, ui) { var loginValidator = initFormValidator('trv_module_login_form','trv_core_input_white_validator_error'); loginValidator.resetForm(); $('#moduleLoginInputUsername').select(); }, closeOnEscape: true, resizable: false, position: position, minHeight: 210, height: 'auto', width: 350, modal: true, bgiframe: true, title: "Login" }); } } function openModulePasswordForgotDialog(isIFrame) { if ($("#trv_module_dialog_password_forgot").length != 0) { $('#trv_module_dialog_login').dialog('close'); } if ($("#trv_module_dialog_password_forgot").length == 0) { blockScreen(); isIFrame = (isIFrame == null || !isIFrame) ? 0:1; var position = getIFramePosition(isIFrame); $("body").append(""); $("#trv_module_dialog_password_forgot").load("http://doi-ibm.portal.it-matchmaker.com/core/modules/matchmaker_login/components/dialog_password_forgot.php?isIFrame="+isIFrame+"&full_path=NVlFXzhjbUlsYDx5b3JMaH1gPksraD43NSs8Yy1FfXtCIF1wNWplPEkpSGFCe05rKHx9ST13UzZ6a3N8WmQhMHFDYUg,&app_language=de&PHPSESSID=c2917429daff95f4358120a9ff96757a").dialog({ close: function(event, ui) { $(this).dialog('destroy'); $("#trv_module_dialog_password_forgot").remove(); }, closeOnEscape: true, resizable: false, position: position, minHeight: 250, height: 'auto', width: 400, modal: true, bgiframe: true, title: "Passwort vergessen?" }); } } function moduleLoginSend(isIFrame) { isIFrame = (isIFrame == null || !isIFrame) ? 0:1; var position = getIFramePosition(isIFrame); if (isFormValid('trv_module_login_form',position, isIFrame,'trv_core_input_white_validator_error')) { blockScreen(); $.trv_postJson({ blockScreen: false, module_name: "matchmaker_login", errorDailogPosition: position, errorDailogCenterText: true, ajax_type: "LOGIN", parameter: { userName: $('input#moduleLoginInputUsername').val(), userPassword: $('input#moduleLoginInputPassword').val() }, onSuccess: function(data) { if (data.code == 0) { if (data.domainSwitchLogin != null) { $("form#trv_module_login_form").attr("action", "http://www.it-matchmaker.com/quick_login.php?md5="+data.message+"&fromDomain="+data.domainSwitchLogin); } else if (data.forwardLoginUrl != null) { if (data.hasForwardUrlParams) { $("form#trv_module_login_form").attr("action", data.forwardLoginUrl+"?PHPSESSID=c2917429daff95f4358120a9ff96757a"); } else { $("form#trv_module_login_form").attr("action", data.forwardLoginUrl+"&PHPSESSID=c2917429daff95f4358120a9ff96757a"); } } else { $("form#trv_module_login_form").attr("action", "http://doi-ibm.portal.it-matchmaker.com/index.php?PHPSESSID=c2917429daff95f4358120a9ff96757a"); } $("form#trv_module_login_form").submit(); } else if (data.code == 20 || data.code == 21 || data.code == 22) { unblockScreen(); $("#trv_module_dialog_login").dialog("close"); var loginFunction = "moduleLoginVendorLogin('"+data.message+"')"; var infoText = "Sie werden automatisch auf Ihren Hersteller- bzw. Vertriebspartner-Account auf dem IT-Matchmaker® weitergeleitet!"; if (data.code == 21) { infoText = "Sie werden automatisch zu Ihrem Professional-Account auf dem IT-Matchmaker® weitergeleitet!"; } else if (data.code == 22) { infoText = "Sie werden automatisch zu Ihrem Account auf dem IT-Matchmaker® weitergeleitet!"; loginFunction = "moduleLoginPortalLogin('"+data.message+"','"+data.logoutUrl+"')"; } infoDialog("INFORMATION",infoText,null,null,loginFunction, position, "WEITER"); } } }); } } function moduleLoginJumpToITMWithDialog(md5, isIFrame, logoutUrl) { isIFrame = (isIFrame == null || !isIFrame) ? 0:1; var position = getIFramePosition(isIFrame); infoDialog("INFORMATION","Sie werden automatisch zu Ihrem Account auf dem IT-Matchmaker® weitergeleitet!",null,null,"moduleLoginPortalLogin('"+md5+"','"+logoutUrl+"')", position, "WEITER"); } function moduleLoginVendorLogin(md5) { var newWindow = window.open("http://www.it-matchmaker.com/quick_login.php?md5="+md5, "itmatchmaker"); newWindow.focus(); } function moduleLoginPortalLogin(md5, logoutUrl) { var newWindow = window.open("http://www.it-matchmaker.com/quick_login.php?md5="+md5+"&logoutUrl="+logoutUrl, "itmatchmaker"); newWindow.focus(); } function moduleLoginPasswordSend(isIFrame) { isIFrame = (isIFrame == null || !isIFrame) ? 0:1; var position = getIFramePosition(isIFrame); if (isFormValid('trv_module_login_password_forgoten_form',position, isIFrame,'trv_core_input_white_validator_error')) { $.trv_postJson({ module_name: "matchmaker_login", ajax_type: "NEW_PASSWORD", errorDailogPosition: position, errorDailogCenterText: true, parameter: { userName: $('input#moduleLoginForgotenInputUsername').val(), userEmail: $('input#moduleLoginInputEMail').val() }, onSuccess: function(data) { $("#trv_module_dialog_password_forgot").dialog("close"); infoDialog("INFORMATION","Das Passwort wurde ihnen per E-Mail zugestellt.",null,null,null, position); } }); } } function moduleLoginClearForwardLoginUrl() { $.trv_postJson({ blockScreen: false, module_name: "matchmaker_login", ajax_type: "CLEAR_FORWARD_LOGIN" }); } function moduleProductListToggleDetails(id) { if ($('#trv_module_product_list_products_'+id).css("display") == "none") { $('#trv_module_product_list_products_'+id).slideDown(500, function(){ $('#trv_module_product_list_button_'+id).html("ꜛ Zuklappen ꜛ"); $('#trv_module_product_list_button_'+id).addClass("trv_module_product_list_link_close"); }); } else { $('#trv_module_product_list_products_'+id).slideUp(500, function(){ $('#trv_module_product_list_button_'+id).removeClass("trv_module_product_list_link_close"); $('#trv_module_product_list_button_'+id).html("ꜜ Aufklappen ꜜ"); }); } } function moduleProductListFilter(isIFrame) { blockScreen(); setTimeout("callModuleProductListFilter("+isIFrame+")", 150); } function callModuleProductListFilter(isIFrame) { var filterText = $('input#trv_module_product_list_input_filter').val().trim(); $('.trv_module_product_list_search_text').removeHighlight(); if (filterText.length == 0) { $(".trv_module_product_list_box_container").show(); $('.trv_module_product_list_teaser').show(); } else { $(".trv_module_product_list_box_container").each( function (column) { var searchText = ""; $(".trv_module_product_list_search_text",this).each(function() { searchText += $(this).text()+" "; }); if (searchText.toLowerCase().indexOf(filterText.toLowerCase()) >= 0) { $(this).show(); } else { $(this).hide(); } }); $('.trv_module_product_list_search_text').highlight(filterText); $('.trv_module_product_list_teaser:not(:first)').hide(); } count = $(".trv_module_product_list_box_container:visible").length; $('.trv_module_product_list_result_systems').text(count); $('.trv_module_product_list_result_products').text($(".trv_module_product_list_box_container:visible .trv_module_product_list_count").length); if (count == 0) { $('.trv_module_product_list_result').addClass('trv_module_product_list_result_red'); } else { $('.trv_module_product_list_result').removeClass('trv_module_product_list_result_red'); } if (isIFrame) { setIframeTop(); setIFrameHeight(); } unblockScreen(); } function moduleProductListFilterReset(isIFrame) { $('input#trv_module_product_list_input_filter').val(""); moduleProductListFilter(isIFrame); } function moduleProductListSetProductLable() { $('.trv_module_product_list_product_count').each(function(){ $(this).html($(this).text()+" Produkte"); }); } function toogleHelpWindow(element, name) { var toggleElement = $(element).next(); if ($(toggleElement).is(":visible")) { $(toggleElement).hide(); $(element).parent().addClass("trv_help_container_hidden"); $(element).addClass("trv_help_container_navi_closed"); } else { $(toggleElement).show(); $(element).parent().removeClass("trv_help_container_hidden"); $(element).removeClass("trv_help_container_navi_closed"); } $.trv_postJson({ blockScreen: false, url: "http://doi-ibm.portal.it-matchmaker.com/core/ajax/ajax.php?app_language=de&PHPSESSID=c2917429daff95f4358120a9ff96757a", ajax_type: "SET_HELP_HIDDEN", parameter: { page_charset: "utf-8", appName: "itm-portal", hidden: $(toggleElement).is(":visible")?0:1, helpName: name }, onSuccess: function(data) { } }); } /************************************************************************ ************************************************************************* @Name : jRating - jQuery Plugin @Revison : 3.0 @Date : 28/01/2013 @Author: ALPIXEL - (www.myjqueryplugins.com - www.alpixel.fr) @License : Open Source - MIT License : http://www.opensource.org/licenses/mit-license.php ************************************************************************** *************************************************************************/ (function($) { $.fn.jRating = function(op) { var defaults = { /** String vars **/ bigStarsPath : 'jquery/icons/stars.png', // path of the icon stars.png smallStarsPath : 'jquery/icons/small.png', // path of the icon small.png phpPath : 'php/jRating.php', // path of the php file jRating.php type : 'big', // can be set to 'small' or 'big' /** Boolean vars **/ step:false, // if true, mouseover binded star by star, isDisabled:false, showRateInfo: true, canRateAgain : false, /** Integer vars **/ length:5, // number of star to display decimalLength : 0, // number of decimals.. Max 3, but you can complete the function 'getNote' rateMax : 20, // maximal rate - integer from 0 to 9999 (or more) rateInfosX : -45, // relative position in X axis of the info box when mouseover rateInfosY : 5, // relative position in Y axis of the info box when mouseover nbRates : 1, /** Functions **/ onSuccess : null, onError : null }; if(this.length>0) return this.each(function() { /*vars*/ var opts = $.extend(defaults, op), newWidth = 0, starWidth = 0, starHeight = 0, bgPath = '', hasRated = false, globalWidth = 0, nbOfRates = opts.nbRates; if($(this).hasClass('jDisabled') || opts.isDisabled) var jDisabled = true; else var jDisabled = false; getStarWidth(); $(this).height(starHeight); var average = parseFloat($(this).attr('data-average')), // get the average of all rates idBox = parseInt($(this).attr('data-id')), // get the id of the box widthRatingContainer = starWidth*opts.length, // Width of the Container widthColor = average/opts.rateMax*widthRatingContainer, // Width of the color Container quotient = $('
', { 'class' : 'jRatingColor', css:{ width:widthColor } }).appendTo($(this)), average = $('
', { 'class' : 'jRatingAverage', css:{ width:0, top:- starHeight } }).appendTo($(this)), jstar = $('
', { 'class' : 'jStar', css:{ width:widthRatingContainer, height:starHeight, top:- (starHeight*2), background: 'url('+bgPath+') repeat-x' } }).appendTo($(this)); $(this).css({width: widthRatingContainer,overflow:'hidden',zIndex:1,position:'relative'}); if(!jDisabled) $(this).unbind().bind({ mouseenter : function(e){ var realOffsetLeft = findRealLeft(this); var relativeX = e.pageX - realOffsetLeft; if (opts.showRateInfo) var tooltip = $('

',{ 'class' : 'jRatingInfos', html : getNote(relativeX)+' / '+opts.rateMax+'', css : { top: (e.pageY + opts.rateInfosY), left: (e.pageX + opts.rateInfosX) } }).appendTo('body').show(); }, mouseover : function(e){ $(this).css('cursor','pointer'); }, mouseout : function(){ $(this).css('cursor','default'); if(hasRated) average.width(globalWidth); else average.width(0); }, mousemove : function(e){ var realOffsetLeft = findRealLeft(this); var relativeX = e.pageX - realOffsetLeft; if(opts.step) newWidth = Math.floor(relativeX/starWidth)*starWidth + starWidth; else newWidth = relativeX; average.width(newWidth); if (opts.showRateInfo) $("p.jRatingInfos") .css({ left: (e.pageX + opts.rateInfosX) }) .html(getNote(newWidth) +' / '+opts.rateMax+''); }, mouseleave : function(){ $("p.jRatingInfos").remove(); }, click : function(e){ var element = this; /*set vars*/ hasRated = true; globalWidth = newWidth; nbOfRates--; if(!opts.canRateAgain || parseInt(nbOfRates) <= 0) $(this).unbind().css('cursor','default').addClass('jDisabled'); if (opts.showRateInfo) $("p.jRatingInfos").fadeOut('fast',function(){$(this).remove();}); e.preventDefault(); var rate = getNote(newWidth); average.width(newWidth); /** ONLY FOR THE DEMO, YOU CAN REMOVE THIS CODE **/ $('.datasSent p').html('idBox : '+idBox+'
rate : '+rate+'
action : rating'); $('.serverResponse p').html('Loading...'); /** END ONLY FOR THE DEMO **/ $.post(opts.phpPath,{ idBox : idBox, rate : rate, action : 'rating' }, function(data) { if(!data.error) { /** ONLY FOR THE DEMO, YOU CAN REMOVE THIS CODE **/ $('.serverResponse p').html(data.server); /** END ONLY FOR THE DEMO **/ /** Here you can display an alert box, or use the jNotify Plugin :) http://www.myqjqueryplugins.com/jNotify exemple : */ if(opts.onSuccess) opts.onSuccess( element, rate ); } else { /** ONLY FOR THE DEMO, YOU CAN REMOVE THIS CODE **/ $('.serverResponse p').html(data.server); /** END ONLY FOR THE DEMO **/ /** Here you can display an alert box, or use the jNotify Plugin :) http://www.myqjqueryplugins.com/jNotify exemple : */ if(opts.onError) opts.onError( element, rate ); } }, 'json' ); } }); function getNote(relativeX) { var noteBrut = parseFloat((relativeX*100/widthRatingContainer)*opts.rateMax/100); switch(opts.decimalLength) { case 1 : var note = Math.round(noteBrut*10)/10; break; case 2 : var note = Math.round(noteBrut*100)/100; break; case 3 : var note = Math.round(noteBrut*1000)/1000; break; default : var note = Math.round(noteBrut*1)/1; } return note; }; function getStarWidth(){ switch(opts.type) { case 'small' : starWidth = 12; // width of the picture small.png starHeight = 10; // height of the picture small.png bgPath = opts.smallStarsPath; break; default : starWidth = 23; // width of the picture stars.png starHeight = 20; // height of the picture stars.png bgPath = opts.bigStarsPath; } }; function findRealLeft(obj) { if( !obj ) return 0; return obj.offsetLeft + findRealLeft( obj.offsetParent ); }; }); } })(jQuery); function openRegistrationModule(registrationType, isIFrame, md5) { var dialogWidth=600; var dialogTeaserWidth=900; if ($("#trv_module_dialog_registration_matchmaker").length == 0) { if (($(".trv_itm_favcount:first").text() == "0") && (registrationType == "report")) { return; } blockScreen(); registrationTitle = "Registrierung"; if (registrationType == null) { registrationType = 'dsgvo'; } else if (registrationType == 'pro') { registrationTitle = "Registrierung Professional Lizenz"; } else if (registrationType == 'report') { registrationTitle = "Registrierung / Bestellung Top 20 Report"; } else if (registrationType == 'vendor') { registrationTitle = "Registrierung für Anbieter einer Business Software"; } isIFrame = (isIFrame == null || !isIFrame) ? 0:1; var position = getIFramePosition(isIFrame); if (md5 == null) { md5 = 0; } if (isIFrame && 0) { dialogMinHeight = 1100; } else { dialogMinHeight = 545; } if(registrationType == 'dsgvo') dialogMinHeight = 500; $("body").append("

"); $("#trv_module_dialog_registration_matchmaker").load("http://doi-ibm.portal.it-matchmaker.com/core/modules/registration_matchmaker/components/dialog_register.php?isIFrame="+isIFrame+"®istrationType="+registrationType+"&md5="+md5+"&full_path=NVlFXzhjbUlsYDx5b3JMaH1gPksraD43NSs8Yy1FfXtCIF1wNWplPEkpSGFCe05rKHx9ST13UzZ6a3N8WmQhMHFDYUg,&app_language=de&PHPSESSID=c2917429daff95f4358120a9ff96757a").dialog({ close: function(event, ui) { trv_setPiwik(null,"Registrierung - Dialog closed"); registrationMatchmakerContentChanged(false); shortcut.remove("Alt+r"); shortcut.remove("Alt+a"); shortcut.remove("Alt+w"); $(this).dialog('destroy'); $("#trv_module_dialog_registration_matchmaker").remove(); }, beforeClose: function(event, ui) { return closeRegistrationMatchmakerDialog(); }, open: function(event, ui) { if (isIFrame) { $("#trv_module_dialog_registration_matchmaker").css("height", "inherit"); if (isIFrame && typeof setIFrameHeight === "function") { setTimeout(function() { var dialogHeight = $("#trv_module_dialog_registration_matchmaker").parents(".ui-dialog").height(); if (dialogHeight > $('html').outerHeight( true )) { setIFrameHeight(dialogHeight+50); } },600); } } }, closeOnEscape: false, resizable: false, position: ['center',20], minHeight: dialogMinHeight, height: 'auto', width: dialogWidth, maxWidth: 600, modal: true, bgiframe: true, title: registrationTitle }); } } var changedRegistrationMatchmakerContent = false; function registrationMatchmakerContentChanged(changed) { changedRegistrationMatchmakerContent = changed; setUnload(changed, "Die Registrierung wurde ausgefüllt aber nicht abgesendet!"); } function trv_homepage_openRegistration() { if ($("body iframe#trv_portal_iframe").length) { $trv.pm({ target: window.frames[0], url: $("body iframe#trv_portal_iframe").attr("src").split("/")[2], type:"clickRegistration" }); } else { if (trv_homepage_registrationLink == "") { openRegistrationModule(); } else { location.href=trv_homepage_registrationLink; } } } /* ========================================================= // jquery.innerfade.js // Datum: 2008-02-14 // Firma: Medienfreunde Hofmann & Baldes GbR // Author: Torsten Baldes // Mail: t.baldes@medienfreunde.com // Web: http://medienfreunde.com // based on the work of Matt Oakes http://portfolio.gizone.co.uk/applications/slideshow/ // and Ralf S. Engelschall http://trainofthoughts.org/ // ========================================================= */ (function($){$.fn.innerfade=function(a){return this.each(function(){$.innerfade(this,a)})};$.innerfade=function(a,b){var c={'animationtype':'fade','speed':'normal','type':'sequence','timeout':2000,'containerheight':'auto','runningclass':'innerfade','children':null};if(b)$.extend(c,b);if(c.children===null)var d=$(a).children();else var d=$(a).children(c.children);if(d.length>1){$(a).css('position','relative').css('height',c.containerheight).addClass(c.runningclass);for(var i=0;i
"); $("#trv_module_dialog_template_display").load("http://doi-ibm.portal.it-matchmaker.com/core/modules/template_dialog_display/components/dialog_template_display.php?enablePrint="+enablePrint+"&isIFrame="+isIFrame+"&templateName="+encodeURI(templateName)+"&showContentFromID="+encodeURI(showContentFromID)+"&full_path=NVlFXzhjbUlsYDx5b3JMaH1gPksraD43NSs8Yy1FfXtCIF1wNWplPEkpSGFCe05rKHx9ST13UzZ6a3N8WmQhMHFDYUg,&app_language="+language+"&PHPSESSID=c2917429daff95f4358120a9ff96757a").dialog({ close: function(event, ui) { shortcut.remove("Return"); if (enablePrint) { shortcut.remove("Alt+d"); } $(this).dialog('destroy'); $("#trv_module_dialog_template_display").remove(); }, closeOnEscape: true, resizable: false, position: position, minHeight: 500, height: 'auto', width: 622, modal: true, bgiframe: true, title: title }); } }