function trv_homepage_admin_save_messe_form() { MesseFormData = $('#trv_module_homepage_admin_messeform_input').serialize(); $.post( "https://news.it-matchmaker.com/core/modules/homepage_admin/ajax/ajax.php?full_path=NVlFXzhjbUlsYDx5b3JMaH1gI19ZOlQkfXhhcFgqXkF9OyhNJDw0YmthUXYkWiFMWTdEaVcyR0luMEY3LFsmR0NLSD5wNiotSFoxeA,,&app_language=de&PHPSESSID=d9a0907f39ab4a13ae710d61a88351e8", { ajax_type: "SAVE_MESSEFORM_DATA", MesseFormData: MesseFormData }, function(data) { unblockScreen(); if(data!=1) { infoDialog("FEHLER","",null,750,null,null,null,true); } else { //close_dialog(); blockScreen(); document.location.reload(); } } ); return false; } function trv_homepage_admin_sendMessetermin(preview) { form_name = "trv_module_homepage_admin_messe_form"; if(preview) { form_name += "_preview"; } if($('#'+form_name).valid()) { blockScreen(); MesseFormData = $('#trv_module_homepage_admin_messe_form').serialize(); $.post("https://news.it-matchmaker.com/core/modules/homepage_admin/ajax/ajax.php?full_path=NVlFXzhjbUlsYDx5b3JMaH1gI19ZOlQkfXhhcFgqXkF9OyhNJDw0YmthUXYkWiFMWTdEaVcyR0luMEY3LFsmR0NLSD5wNiotSFoxeA,,&app_language=de&PHPSESSID=d9a0907f39ab4a13ae710d61a88351e8", { ajax_type: "SEND_MESSETERMIN", MesseFormData: MesseFormData }, function(data) { unblockScreen(); if (data == 0) { $("#trv_module_homepage_admin_messe_form_box").dialog("close"); infoDialog("INFORMATION","Ihre Nachricht wurde an uns gesendet! Einer unserer Mitarbeiter nimmt in Kürze Kontakt mit Ihnen auf, um den Termin zu bestätigen."); } else { infoDialog("FEHLER",data); } } ); } else { infoDialog("FEHLER","Bitte füllen Sie alle rot markierten Felder korrekt aus!"); } } function trv_homepage_admin_check_form() { if($('#trv_module_homepage_admin_contact_data_form').valid()) { return true; } else { infoDialog("FEHLER","Bitte füllen Sie alle rot markierten Felder korrekt aus!"); return false; } } function trv_homepage_admin_check_messe_form(preview) { form_name = "trv_module_homepage_admin_messe_form"; if(preview) { form_name += "_preview"; } if($('#'+form_name).valid()) { return true; } else { infoDialog("FEHLER","Bitte füllen Sie alle rot markierten Felder korrekt aus!"); return false; } } function trv_homepage_admin_open_messe_form() { var title; if ($("#trv_module_homepage_admin_messe_form_box").length == 0) { $("body").append(""); } $.post( "https://news.it-matchmaker.com/core/modules/homepage_admin/ajax/ajax.php?full_path=NVlFXzhjbUlsYDx5b3JMaH1gI19ZOlQkfXhhcFgqXkF9OyhNJDw0YmthUXYkWiFMWTdEaVcyR0luMEY3LFsmR0NLSD5wNiotSFoxeA,,&app_language=de&PHPSESSID=d9a0907f39ab4a13ae710d61a88351e8", { ajax_type: "LOAD_MESSEFORM_TITLE" }, function(data) { title = data; $("#trv_module_homepage_admin_messe_form_box").html(""); $("#trv_module_homepage_admin_messe_form_box").load("https://news.it-matchmaker.com/core/modules/homepage_admin/components/MesseForm_loader.php?full_path=NVlFXzhjbUlsYDx5b3JMaH1gI19ZOlQkfXhhcFgqXkF9OyhNJDw0YmthUXYkWiFMWTdEaVcyR0luMEY3LFsmR0NLSD5wNiotSFoxeA,,&app_language=de&PHPSESSID=d9a0907f39ab4a13ae710d61a88351e8").dialog({ close: function(event, ui) { $(this).dialog('destroy'); }, closeOnEscape: false, resizable: false, minHeight:280, height: 'auto', width: 700, modal: true, bgiframe: true, title: title, position: ['center',20] }); }); blockScreen(); } function trv_homepage_admin_edit_guided_tour(guided_tours_ID) { $("#dialog").html(""); $("#dialog").load("https://news.it-matchmaker.com/core/modules/homepage_admin/components/guided_tours_editor.php?guided_tours_ID="+guided_tours_ID+"full_path=NVlFXzhjbUlsYDx5b3JMaH1gI19ZOlQkfXhhcFgqXkF9OyhNJDw0YmthUXYkWiFMWTdEaVcyR0luMEY3LFsmR0NLSD5wNiotSFoxeA,,&app_language=de&PHPSESSID=d9a0907f39ab4a13ae710d61a88351e8").dialog({ close: function(event, ui) { $(this).dialog('destroy'); }, closeOnEscape: false, resizable: false, height: 'auto', minHeight: 1100, width: 500, modal: true, bgiframe: true }); blockScreen(); } function showHomepageAdminMesseFormStep(id) { //all invisible $("div#trv_module_homepage_messeform_step_1").addClass("trv_module_homepage_admin_invisible") $("div#trv_module_homepage_messeform_step_2").addClass("trv_module_homepage_admin_invisible") $("div#trv_module_homepage_messeform_step_3").addClass("trv_module_homepage_admin_invisible") $("div#trv_module_homepage_messeform_step_"+id).removeClass("trv_module_homepage_admin_invisible") $('html, body').animate({scrollTop:$("#trv_module_homepage_admin_messe_form_box").offset().top-45}); } function showHomepageAdminFormStep(id) { //all invisible $("div#trv_module_homepage_form_step_1").addClass("trv_module_homepage_admin_invisible"); $("div#trv_module_homepage_form_step_2").addClass("trv_module_homepage_admin_invisible"); $("div#trv_module_homepage_form_step_3").addClass("trv_module_homepage_admin_invisible"); $("div#trv_module_homepage_form_step_4").addClass("trv_module_homepage_admin_invisible"); $("div#trv_module_homepage_form_step_5").addClass("trv_module_homepage_admin_invisible"); $("div#trv_module_homepage_form_step_"+id).removeClass("trv_module_homepage_admin_invisible"); $('html, body').animate({scrollTop:$("#trv_module_homepage_admin_dialog_webinar_booking").offset().top-45}); } function trv_module_homepage_admin_open_webinar_editor(webinarID) { if ($("#trv_module_homepage_admin_dialog_webinar_editor").length == 0) { if(webinarID>0) { title = 'Webinar bearbeiten'; } else { title = 'Neues Webinar anlegen'; } $("body").append(""); $("#trv_module_homepage_admin_dialog_webinar_editor").load("https://news.it-matchmaker.com/core/modules/homepage_admin/components/webinar_editor.php?webinarID="+webinarID+"&full_path=NVlFXzhjbUlsYDx5b3JMaH1gI19ZOlQkfXhhcFgqXkF9OyhNJDw0YmthUXYkWiFMWTdEaVcyR0luMEY3LFsmR0NLSD5wNiotSFoxeA,,&app_language=de&PHPSESSID=d9a0907f39ab4a13ae710d61a88351e8").dialog({ close: function(event, ui) { $(this).dialog('destroy'); $("#trv_module_homepage_admin_dialog_webinar_editor").remove(); }, beforeClose: function(event, ui) { if (trv_dialogContentChanged) { return trv_confirmClose("$('#trv_module_homepage_admin_dialog_webinar_editor').dialog('close')",1); } }, closeOnEscape: false, resizable: false, height: 'auto', minHeight: 300, width: 550, modal: true, bgiframe: true, title: title, position: ['center',60] }); blockScreen(); } return false; } function trv_module_homepage_admin_open_webinar_booking_editor(bookingID) { if ($("#trv_module_homepage_admin_dialog_webinar_booking_editor").length == 0) { title = 'Webinar Registrierung abschliessen'; $("body").append(""); $("#trv_module_homepage_admin_dialog_webinar_booking_editor").load("https://news.it-matchmaker.com/core/modules/homepage_admin/components/webinar_booking_editor.php?bookingID="+bookingID+"&full_path=NVlFXzhjbUlsYDx5b3JMaH1gI19ZOlQkfXhhcFgqXkF9OyhNJDw0YmthUXYkWiFMWTdEaVcyR0luMEY3LFsmR0NLSD5wNiotSFoxeA,,&app_language=de&PHPSESSID=d9a0907f39ab4a13ae710d61a88351e8").dialog({ close: function(event, ui) { $(this).dialog('destroy'); $("#trv_module_homepage_admin_dialog_webinar_booking_editor").remove(); }, beforeClose: function(event, ui) { if (trv_dialogContentChanged) { return trv_confirmClose("$('#trv_module_homepage_admin_dialog_webinar_booking_editor').dialog('close')",1); } }, closeOnEscape: false, resizable: false, height: 'auto', minHeight: 300, width: 550, modal: true, bgiframe: true, title: title, position: ['center',60] }); blockScreen(); } return false; } function trv_module_homepage_admin_open_references_preview() { if ($("#trv_module_homepage_admin_dialog_references_preview").length == 0) { $("body").append(""); $("#trv_module_homepage_admin_dialog_references_preview").load("https://news.it-matchmaker.com/core/modules/homepage_admin/components/references_list.php?full_path=NVlFXzhjbUlsYDx5b3JMaH1gI19ZOlQkfXhhcFgqXkF9OyhNJDw0YmthUXYkWiFMWTdEaVcyR0luMEY3LFsmR0NLSD5wNiotSFoxeA,,&app_language=de&PHPSESSID=d9a0907f39ab4a13ae710d61a88351e8").dialog({ close: function(event, ui) { $(this).dialog('destroy'); $("#trv_module_homepage_admin_dialog_references_preview").remove(); }, closeOnEscape: false, resizable: false, height: 'auto', minHeight: 300, width: 650, modal: true, bgiframe: true, title: 'Vorschau', position: ['center',60] }); unblockScreen(); } return false; } function trv_module_homepage_admin_close_webinar_editor() { $("#trv_module_homepage_admin_dialog_webinar_editor").dialog('close'); } function trv_module_homepage_admin_close_reference_editor() { $("#trv_module_homepage_admin_dialog_reference_editor").dialog('close'); } function trv_module_homepage_admin_save_webinar_editor() { if($('#trv_module_homepage_admin_dialog_webinar_editor_form').valid()) { $.trv_postJson({ blockScreen:false, module_name: "homepage_admin", ajax_type: "EDIT_WEBINAR", parameter: { webinarFormData: $('#trv_module_homepage_admin_dialog_webinar_editor_form').serialize() }, onSuccess: function(data) { if ($("#trv_webinar_row_"+data.webinarID).length == 1) { $("#trv_webinar_row_"+data.webinarID).replaceWith(data.tableRow); } else { $('#trv_module_homepage_admin_webinars_table tbody').append(data.tableRow); } reinitTablesorter('trv_module_homepage_admin_webinars_table'); setToolbarInfo("trv_module_homepage_admin_webinars_table", true); dialogContentChanged(false); trv_module_homepage_admin_close_webinar_editor(); } }); } else { infoDialog("FEHLER","Bitte füllen Sie alle rot markierten Felder korrekt aus!"); } } function trv_module_homepage_admin_save_webinar_booking_editor() { if($('#trv_module_homepage_admin_webinar_booking_status_form').valid()) { $.trv_postJson({ blockScreen:false, module_name: "homepage_admin", ajax_type: "EDIT_WEBINAR_BOOKING", parameter: { webinarFormData: $('#trv_module_homepage_admin_webinar_booking_status_form').serialize() }, onSuccess: function(data) { if ($("#trv_webinar_row_"+data.bookingID).length == 1) { $("#trv_webinar_row_"+data.bookingID).replaceWith(data.tableRow); } else { $('#trv_module_homepage_admin_webinars_table tbody').append(data.tableRow); } reinitTablesorter('trv_module_homepage_admin_webinar_bookings_table'); dialogContentChanged(false); trv_module_homepage_admin_close_webinar_booking_editor(); } }); } else { infoDialog("FEHLER","Bitte füllen Sie alle rot markierten Felder korrekt aus!"); } } function trv_module_homepage_admin_save_webinar_booking_editor_dsgvo() { if($('#trv_module_homepage_admin_webinar_booking_status_form').valid()) { $.trv_postJson({ blockScreen:false, module_name: "homepage_admin", ajax_type: "EDIT_WEBINAR_BOOKING_DSGVO", parameter: { webinarFormData: $('#trv_module_homepage_admin_webinar_booking_status_form').serialize(), gclid : localStorage.getItem("gclid") }, onSuccess: function(data) { if ($("#trv_webinar_row_"+data.bookingID).length == 1) { $("#trv_webinar_row_"+data.bookingID).replaceWith(data.tableRow); } else { $('#trv_module_homepage_admin_webinars_table tbody').append(data.tableRow); } reinitTablesorter('trv_module_homepage_admin_webinar_bookings_table'); infoDialog("Registrierung abschließen","Vielen Dank für Ihre Anmeldung. Wir prüfen die Verfügbarkeit und senden Ihnen in kürze eine Mail mit den Webinardaten."); dialogContentChanged(false); trv_module_homepage_admin_close_webinar_booking_editor(); } }); } else { infoDialog("FEHLER","Bitte füllen Sie alle rot markierten Felder korrekt aus!"); } } function trv_homepage_admin_open_portale_selector(webinarID) { if ($("#trv_module_homepage_admin_dialog_portals_editor").length == 0) { selectedPortals = $("#trv_module_homepage_admin_selected_portals").val(); $("body").append(""); $("#trv_module_homepage_admin_dialog_portals_editor").load("https://news.it-matchmaker.com/core/modules/homepage_admin/components/webinar_portals.php?webinarID="+webinarID+"&selectedPortals="+selectedPortals+"&full_path=NVlFXzhjbUlsYDx5b3JMaH1gI19ZOlQkfXhhcFgqXkF9OyhNJDw0YmthUXYkWiFMWTdEaVcyR0luMEY3LFsmR0NLSD5wNiotSFoxeA,,&app_language=de&PHPSESSID=d9a0907f39ab4a13ae710d61a88351e8").dialog({ close: function(event, ui) { $(this).dialog('destroy'); $("#trv_module_homepage_admin_dialog_portals_editor").remove(); }, closeOnEscape: false, resizable: false, height: 'auto', minHeight: 300, width: 900, modal: true, bgiframe: true, title: 'Portale wählen', position: ['center',60] }); blockScreen(); } return false; } function trv_homepage_admin_cancel_portal_selection() { $("#trv_module_homepage_admin_dialog_portals_editor").dialog('close'); } function trv_homepage_admin_save_change_portal_selection() { var selectedPortal = ""; $('input[name=productScope]:checked').each(function(i) { selectedPortal += $(this).val()+"-"; }); selectedPortal = selectedPortal.slice(0, - 1); if($("#trv_module_homepage_admin_selected_portals").val()!=selectedPortal) { dialogContentChanged(true); } $("#trv_module_homepage_admin_selected_portals").val(selectedPortal); trv_homepage_admin_cancel_portal_selection(); } var select_alternative_webinar_box_visible = 1; function toggle_select_alternative_webinar_box() { if(select_alternative_webinar_box_visible == 1) { $("tr#select_alternative_webinar_box").removeClass("trv_module_homepage_admin_invisible"); select_alternative_webinar_box_visible = 0; } else { $("tr#select_alternative_webinar_box").addClass("trv_module_homepage_admin_invisible"); select_alternative_webinar_box_visible = 1; } } function trv_module_homepage_admin_open_webinar_preview() { if ($("#trv_module_homepage_admin_dialog_webinar_preview").length == 0) { $("body").append(""); $("#trv_module_homepage_admin_dialog_webinar_preview").load("https://news.it-matchmaker.com/core/modules/homepage_admin/components/webinar_list.php?full_path=NVlFXzhjbUlsYDx5b3JMaH1gI19ZOlQkfXhhcFgqXkF9OyhNJDw0YmthUXYkWiFMWTdEaVcyR0luMEY3LFsmR0NLSD5wNiotSFoxeA,,&app_language=de&PHPSESSID=d9a0907f39ab4a13ae710d61a88351e8").dialog({ close: function(event, ui) { $(this).dialog('destroy'); $("#trv_module_homepage_admin_dialog_webinar_preview").remove(); $(this).scrollTop(); }, closeOnEscape: false, resizable: false, height: 'auto', minHeight: 300, width: 650, modal: true, bgiframe: true, title: 'Vorschau', position: ['top',20] }); blockScreen(); } return false; } function trv_module_homepage_admin_toggle_webinar_box(id) { $("div#trovarit_webinar_box_"+id).slideToggle(); $("div#trovarit_webinar_icon_plus_"+id).slideToggle(0); $("div#trovarit_webinar_icon_minus_"+id).slideToggle(0); } function trv_module_homepage_admin_open_webinar_booking(webinarID, type) { var width='550'; if(screen.width < 600) { width='98%'; } if ($("#trv_module_homepage_admin_dialog_webinar_booking").length == 0) { $("body").append(""); $("#trv_module_homepage_admin_dialog_webinar_booking").load("https://news.it-matchmaker.com/core/modules/homepage_admin/components/webinar_booking.php?webinarID="+webinarID+"&type="+type+"&full_path=NVlFXzhjbUlsYDx5b3JMaH1gI19ZOlQkfXhhcFgqXkF9OyhNJDw0YmthUXYkWiFMWTdEaVcyR0luMEY3LFsmR0NLSD5wNiotSFoxeA,,&app_language=de&PHPSESSID=d9a0907f39ab4a13ae710d61a88351e8").dialog({ close: function(event, ui) { $(this).dialog('destroy'); $("#trv_module_homepage_admin_dialog_webinar_booking").remove(); $(this).scrollTop(); }, beforeClose: function(event, ui) { if (trv_dialogContentChanged) { return trv_confirmClose("$('#trv_module_homepage_admin_dialog_webinar_booking').dialog('close')",1); } }, closeOnEscape: false, resizable: false, height: 'auto', width: width, modal: true, bgiframe: true, title: 'Webinar-Anmeldung', position: ['top',20] }); blockScreen(); } return false; } function trv_homepage_admin_book_webinar() { if($('#trv_module_homepage_admin_privacy_form').valid()) { $.trv_postJson({ module_name: "homepage_admin", ajax_type: "BOOK_WEBINAR", parameter: { webinarFormData: $('#trv_module_homepage_admin_contact_data_form').serialize(), additional_webinars: $('#trv_module_homepage_admin_additional_webinars_form').serialize() }, onSuccess: function(data) { dialogContentChanged(false); showHomepageAdminFormStep(5); } }); } else { infoDialog("FEHLER","Bitte füllen Sie alle rot markierten Felder korrekt aus!"); return false; } } function trv_homepage_admin_book_webinarDSGVO() { if(isFormValid('trv_module_homepage_admin_contact_data_form',null,false,"trv_core_input_white_validator_error")) { $.trv_postJson({ module_name: "homepage_admin", ajax_type: "BOOK_WEBINAR_DSGVO", parameter: { webinarFormData: $('#trv_module_homepage_admin_contact_data_form').serialize(), additional_webinars: $('#trv_module_homepage_admin_additional_webinars_form').serialize() }, onSuccess: function(data) { dialogContentChanged(false); showHomepageAdminFormStep(5); } }); } } function trv_module_homepage_admin_close_webinar_booking() { $("#trv_module_homepage_admin_dialog_webinar_booking").dialog('close'); } function trv_module_homepage_admin_setWebinarFilter() { blockScreen(); $.trv_postJson({ blockScreen:false, module_name: "homepage_admin", ajax_type: "SET_WEBINAR_FILTER", parameter: {new_filter: $("#webinarFilter").val()}, onSuccess: function(data) { $("#trv_module_homepage_admin_webinars_table").html(data.table); reinitTablesorter("trv_module_homepage_admin_webinars_table"); setToolbarInfo("trv_module_homepage_admin_webinars_table", true); initTooltip(); unblockScreen(); } }); } function trv_module_homepage_admin_setWebinarBookingFilter() { blockScreen(); $.trv_postJson({ blockScreen:false, module_name: "homepage_admin", ajax_type: "SET_WEBINAR_BOOKING_FILTER", parameter: {new_filter: $("#webinarBookingFilter").val()}, onSuccess: function(data) { $("#trv_module_homepage_admin_webinar_bookings_table").html(data.table); reinitTablesorter("trv_module_homepage_admin_webinar_bookings_table"); setToolbarInfo("trv_module_homepage_admin_webinar_bookings_table", true); initTooltip(); unblockScreen(); } }); } function trv_module_homepage_admin_setReferencesFilter() { blockScreen(); $.trv_postJson({ blockScreen:false, module_name: "homepage_admin", ajax_type: "SET_REFERENCES_FILTER", parameter: {new_filter: $("#referencesFilter").val()}, onSuccess: function(data) { $("#trv_module_homepage_admin_references_table").html(data.table); reinitTablesorter("trv_module_homepage_admin_references_table"); setToolbarInfo("trv_module_homepage_admin_references_table", true); initTooltip(); unblockScreen(); } }); } function trv_module_homepage_admin_setReferencesListFilter() { blockScreen(); $.trv_postJson({ blockScreen:false, module_name: "homepage_admin", ajax_type: "SET_REFERENCES_LIST_FILTER", parameter: {new_filter: $("#referencesListFilter").val()}, onSuccess: function(data) { $("#trv_module_homepage_admin_references_list_table").html(data.table); reinitTablesorter("trv_module_homepage_admin_references_table"); setToolbarInfo("trv_module_homepage_admin_references_table", true); initTooltip(); unblockScreen(); } }); } function trv_module_homepage_admin_open_reference_editor(referenceID) { if ($("#trv_module_homepage_admin_dialog_reference_editor").length == 0) { if(referenceID>0) { title = 'Referenz bearbeiten'; } else { title = 'neue Referenz anlegen'; } $("body").append(""); $("#trv_module_homepage_admin_dialog_reference_editor").load("https://news.it-matchmaker.com/core/modules/homepage_admin/components/reference_editor.php?referenceID="+referenceID+"&full_path=NVlFXzhjbUlsYDx5b3JMaH1gI19ZOlQkfXhhcFgqXkF9OyhNJDw0YmthUXYkWiFMWTdEaVcyR0luMEY3LFsmR0NLSD5wNiotSFoxeA,,&app_language=de&PHPSESSID=d9a0907f39ab4a13ae710d61a88351e8").dialog({ close: function(event, ui) { $(this).dialog('destroy'); $("#trv_module_homepage_admin_dialog_reference_editor").remove(); }, beforeClose: function(event, ui) { if (trv_dialogContentChanged) { return trv_confirmClose("$('#trv_module_homepage_admin_dialog_reference_editor').dialog('close')",1); } }, closeOnEscape: false, resizable: false, height: 'auto', minHeight: 350, width: 550, modal: true, bgiframe: true, title: title, position: ['center',60] }); blockScreen(); } return false; } function trv_homepage_admin_references_delete_logo(referenceID) { $("#logo_box_"+referenceID).slideToggle(0); $("#trv_module_homepage_admin_reference_delete_logo").val(1); $("#trv_module_homepage_admin_reference_logo_name").val(""); } function trv_homepage_admin_references_delete_logo_support(referenceID) { $("#logo_support_box_"+referenceID).slideToggle(0); $("#trv_module_homepage_admin_reference_delete_logo_support").val(1); $("#trv_module_homepage_admin_reference_logo_support_name").val(""); } function trv_module_homepage_admin_save_reference_editor(referenceID) { if($('#trv_module_homepage_admin_dialog_reference_editor_form').valid()) { new_logo = trv_module_homepage_admin_saveLogo(referenceID); new_support_logo = trv_module_homepage_admin_saveSupportLogo(referenceID); new_info_file = trv_module_homepage_admin_saveInfoFile(referenceID); $.trv_postJson({ blockScreen:false, module_name: "homepage_admin", ajax_type: "EDIT_REFERENCE", parameter: { referenceFormData: $('#trv_module_homepage_admin_dialog_reference_editor_form').serialize(), logo_name: new_logo, logo_support_name: new_support_logo, new_info_file: new_info_file }, onSuccess: function(data) { if ($("#trv_reference_row_"+data.referenceID).length == 1) { $("#trv_reference_row_"+data.referenceID).replaceWith(data.tableRow); } else { $('#trv_module_homepage_admin_references_table tbody').append(data.tableRow); } reinitTablesorter('trv_module_homepage_admin_references_table'); setToolbarInfo("trv_module_homepage_admin_references_table", true); dialogContentChanged(false); trv_module_homepage_admin_close_reference_editor(); } }); } else { infoDialog("FEHLER","Bitte füllen Sie alle rot markierten Felder korrekt aus!"); } } function trv_module_homepage_admin_saveLogo(referenceID) { logoUpload.setData( { 'deleteBeforeSaveFilename': 1, 'newFilename': $("#input_logoUpload").text() }); logoUpload.submit(); return $("#input_logoUpload").text(); } function trv_module_homepage_admin_saveInfoFile(referenceID) { infoFileUpload.setData( { 'deleteBeforeSaveFilename': 1, 'newFilename': $("#input_infoFileUpload").text() }); infoFileUpload.submit(); return $("#input_infoFileUpload").text(); } function trv_module_homepage_admin_saveSupportLogo(referenceID) { logoSupportUpload.setData( { 'deleteBeforeSaveFilename': 1, 'newFilename': $("#input_logoSupportUpload").text() }); logoSupportUpload.submit(); return $("#input_logoSupportUpload").text(); } function trv_module_homepage_admin_confirmDeleteLogo(referenceID, isIFrame) { isIFrame = (isIFrame == null || !isIFrame) ? 0:1; var position = getIFramePosition(isIFrame); confirmDialog("BESTÄTIGUNG","trv_module_homepage_admin_deleteLogo("+referenceID+");","Soll das Logo wirklich gelöscht werden?",null,400,null,position); } function trv_module_homepage_admin_deleteLogo(referenceID) { blockScreen(); $.post( "https://news.it-matchmaker.com/core/modules/homepage_admin/ajax/ajax.php?app_language=de&PHPSESSID=d9a0907f39ab4a13ae710d61a88351e8", { full_path: "NVlFXzhjbUlsYDx5b3JMaH1gI19ZOlQkfXhhcFgqXkF9OyhNJDw0YmthUXYkWiFMWTdEaVcyR0luMEY3LFsmR0NLSD5wNiotSFoxeA,,", referenceID: referenceID, ajax_type: "DELETE_LOGO" }, function(data) { unblockScreen(); $('#logoManagement').html(data); $(".trv_module_references_edit_logo").toggle(); }); } function trv_module_homepage_admin_confirmDeletePreview(downloadcenterID, isIFrame) { isIFrame = (isIFrame == null || !isIFrame) ? 0:1; var position = getIFramePosition(isIFrame); confirmDialog("BESTÄTIGUNG","trv_module_homepage_admin_deletePreview("+downloadcenterID+");","Wollen Sie diese Vorschau wirklich löschen?",null,400,null,position); } function trv_module_homepage_admin_deletePreview(downloadcenterID) { blockScreen(); $.post( "https://news.it-matchmaker.com/core/modules/homepage_admin/ajax/ajax.php?app_language=de&PHPSESSID=d9a0907f39ab4a13ae710d61a88351e8", { full_path: "NVlFXzhjbUlsYDx5b3JMaH1gI19ZOlQkfXhhcFgqXkF9OyhNJDw0YmthUXYkWiFMWTdEaVcyR0luMEY3LFsmR0NLSD5wNiotSFoxeA,,", downloadcenterID: downloadcenterID, ajax_type: "DELETE_PREVIEW" }, function(data) { unblockScreen(); $('#previewManagement').html(data); $(".trv_module_downloadcenter_edit_preview").toggle(); }); } function trv_module_homepage_admin_open_downloadcenter_editor(downloadcenterID) { if ($("#trv_module_homepage_admin_dialog_downloadcenter_editor").length == 0) { if(downloadcenterID>0) { title = 'Download bearbeiten'; } else { title = 'neuen Download anlegen'; } $("body").append(""); $("#trv_module_homepage_admin_dialog_downloadcenter_editor").load("https://news.it-matchmaker.com/core/modules/homepage_admin/components/downloadcenter_editor.php?downloadcenterID="+downloadcenterID+"&full_path=NVlFXzhjbUlsYDx5b3JMaH1gI19ZOlQkfXhhcFgqXkF9OyhNJDw0YmthUXYkWiFMWTdEaVcyR0luMEY3LFsmR0NLSD5wNiotSFoxeA,,&app_language=de&PHPSESSID=d9a0907f39ab4a13ae710d61a88351e8").dialog({ close: function(event, ui) { $(this).dialog('destroy'); $("#trv_module_homepage_admin_dialog_downloadcenter_editor").remove(); }, beforeClose: function(event, ui) { if (trv_dialogContentChanged) { return trv_confirmClose("$('#trv_module_homepage_admin_dialog_downloadcenter_editor').dialog('close')",1); } }, closeOnEscape: false, resizable: false, height: 'auto', minHeight: 350, width: 550, modal: true, bgiframe: true, title: title, position: ['center',60] }); blockScreen(); } return false; } function trv_module_homepage_admin_setDownloadcenterFilter() { blockScreen(); $.trv_postJson({ blockScreen:false, module_name: "homepage_admin", ajax_type: "SET_DOWNLOADCENTER_FILTER", parameter: {new_filter: $("#downloadcenterFilter").val()}, onSuccess: function(data) { console.log(data); $("#trv_module_homepage_admin_downloadcenter_table").html(data.table); reinitTablesorter("trv_module_homepage_admin_downloadcenter_table"); setToolbarInfo("trv_module_homepage_admin_downloadcenter_table", true); initTooltip(); unblockScreen(); } }); } function trv_module_homepage_admin_save_downloadcenter_editor(downloadcenterID) { //alert($('#trv_module_homepage_admin_dialog_downloadcenter_editor_form').serialize()); if($('#trv_module_homepage_admin_dialog_downloadcenter_editor_form').valid()) { //alert($('#trv_module_homepage_admin_dialog_downloadcenter_editor_form').serialize()); $.trv_postJson({ blockScreen:false, module_name: "homepage_admin", ajax_type: "EDIT_DOWNLOADCENTER", parameter: { downloadcenterFormData: $('#trv_module_homepage_admin_dialog_downloadcenter_editor_form').serialize(), new_download_name: $("#input_fileUpload").text(), new_preview_name: $("#input_previewUpload").text() }, onSuccess: function(data) { new_download = trv_module_homepage_admin_saveDownload(data.downloadcenterID); new_preview = trv_module_homepage_admin_savePreview(data.downloadcenterID); if ($("#trv_download_row_"+data.downloadcenterID).length == 1) { $("#trv_download_row_"+data.downloadcenterID).replaceWith(data.tableRow); } else { $('#trv_module_homepage_admin_downloadcenter_table tbody').append(data.tableRow); } reinitTablesorter('trv_module_homepage_admin_downloadcenter_table'); setToolbarInfo("trv_module_homepage_admin_downloadcenter_table", true); dialogContentChanged(false); trv_module_homepage_admin_close_downloadcenter_editor(); } }); } else { infoDialog("FEHLER","Bitte füllen Sie alle rot markierten Felder korrekt aus!"); } } function trv_module_homepage_admin_saveDownload(downloadcenterID) { fileUpload.setData( { 'deleteBeforeSaveFilename': 1, 'newFilename': downloadcenterID+"_"+$("#input_fileUpload").text() }); fileUpload.submit(); return $("#input_fileUpload").text(); } function trv_module_homepage_admin_savePreview(downloadcenterID) { previewUpload.setData( { 'deleteBeforeSaveFilename': 1, 'newFilename': downloadcenterID+"_"+$("#input_previewUpload").text() }); previewUpload.submit(); return $("#input_previewUpload").text(); } function trv_module_homepage_admin_close_downloadcenter_editor() { $("#trv_module_homepage_admin_dialog_downloadcenter_editor").dialog('close'); } function trv_module_homepage_admin_additional_webinar_selected(webinarID) { $.trv_postJson({ blockScreen:false, module_name: "homepage_admin", ajax_type: "ADDITIONAL_WEBINAR_SELECTED", parameter: { additional_webinars_data: $('#trv_module_homepage_admin_additional_webinars_form').serialize(), webinarID: webinarID }, onSuccess: function(data) { $("#privacy_text_box").html(data.privacy_text); } }); } function trv_module_homepage_admin_close_webinar_booking_editor() { $("#trv_module_homepage_admin_dialog_webinar_booking_editor").dialog('close'); } function trv_module_homepage_admin_delete_webinar_booking(bookingID) { if(confirm("Wollen Sie diese Buchung wirklich löschen?")) { $.trv_postJson({ blockScreen:false, module_name: "homepage_admin", ajax_type: "DELETE_WEBINAR_BOOKING", parameter: { bookingID: bookingID }, onSuccess: function(data) { $("#trv_webinar_row_"+data.bookingID).remove(); reinitTablesorter('trv_module_homepage_admin_webinar_bookings_table'); setToolbarInfo("trv_module_homepage_admin_webinar_bookings_table", true); dialogContentChanged(false); trv_module_homepage_admin_close_webinar_booking_editor(); } }); } } function trv_module_homepage_admin_download_webinar_bookings(webinarID) { location.href = "https://news.it-matchmaker.com/core/modules/homepage_admin/components/export_webinar_booking.php?webinarID="+webinarID+"&full_path=NVlFXzhjbUlsYDx5b3JMaH1gI19ZOlQkfXhhcFgqXkF9OyhNJDw0YmthUXYkWiFMWTdEaVcyR0luMEY3LFsmR0NLSD5wNiotSFoxeA,,&app_language=de&PHPSESSID=d9a0907f39ab4a13ae710d61a88351e8"; } function trv_homepage_admin_clone_webinar() { webinarID = $("#trv_select_webinar_clone").val(); if(confirm("Wollen Sie dieses Webinar klonen? Bereits eingegebene Daten werden überschrieben!")) { $.trv_postJson({ blockScreen:true, module_name: "homepage_admin", ajax_type: "CLONE_WEBINAR", parameter: { webinarID: webinarID }, onSuccess: function(data) { $("#trv_module_homepage_admin_webinars_title").val(data.TITLE); $("#trv_module_homepage_admin_webinars_subtitle").val(data.SUBTITLE); $("#trv_module_homepage_admin_webinars_thema").val(data.THEMA); $("#trv_module_homepage_admin_webinars_referent").val(data.REFERENT); $("#trv_module_homepage_admin_webinars_short_description").val(data.KURZBESCHREIBUNG); $("#trv_module_homepage_admin_webinars_type").val(data.TYP); $("#trv_module_homepage_admin_webinars_application_area").val(data.ANWENDUNGSBEREICH); $("#trv_module_homepage_admin_webinars_privacy_agreement").val(data.PRIVACY); $("#trv_module_homepage_admin_selected_portals").val(data.PORTALS); unblockScreen(); } }); } } function add_new_keyword() { // add new item to table and get the new ID var new_keyword = $("#new_keyword").val(); if(new_keyword != "") { $.trv_postJson({ blockScreen:true, module_name: "homepage_admin", ajax_type: "ADD_NEW_DC_KEYWORD", parameter: { new_keyword: new_keyword }, onSuccess: function(data) { if(data.success) { $('.trv_module_homepage_downloadcenter_multiselect').append( $('') .val(data.ID) .html(new_keyword) .attr("selected", "selected")); $(".trv_module_homepage_downloadcenter_multiselect").trigger("chosen:updated"); } else { infoDialog("Achtung!","Das eingegebene Schlagwort ist bereits vorhanden!"); $('.trv_module_homepage_downloadcenter_multiselect option[value='+data.ID+']').attr("selected",1).trigger("chosen:updated"); } // clear input field $("#new_keyword").val(""); } }); } } function add_new_thema() { // add new item to table and get the new ID var new_thema = $("#new_thema").val(); if(new_thema != "") { $.trv_postJson({ blockScreen:true, module_name: "homepage_admin", ajax_type: "ADD_NEW_DC_THEMA", parameter: { new_thema: new_thema }, onSuccess: function(data) { if(data.success) { $('.trv_module_homepage_downloadcenter_multiselect_thema').append( $('') .val(data.ID) .html(new_thema) .attr("selected", "selected")); $(".trv_module_homepage_downloadcenter_multiselect_thema").trigger("chosen:updated"); } else { infoDialog("Achtung!","Das eingegebene Schlagwort ist bereits vorhanden!"); $('.trv_module_homepage_downloadcenter_multiselect_thema option[value='+data.ID+']').attr("selected",1).trigger("chosen:updated"); } // clear input field $("#new_thema").val(""); } }); } } function add_new_client() { // add new item to table and get the new ID var new_client = $("#new_client").val(); if(new_client != "") { $.trv_postJson({ blockScreen:true, module_name: "homepage_admin", ajax_type: "ADD_NEW_DC_CLIENT", parameter: { new_client: new_client }, onSuccess: function(data) { if(data.success) { $('#trv_module_homepage_admin_downloadcenter_client').append( $('') .val(data.ID) .html(new_client) .attr("selected", "selected")); $("#trv_module_homepage_admin_downloadcenter_client").trigger("chosen:updated"); } else { infoDialog("Achtung!","Das eingegebene Schlagwort ist bereits vorhanden!"); $('#trv_module_homepage_admin_downloadcenter_client option[value='+data.ID+']').attr("selected",1).trigger("chosen:updated"); } // clear input field $("#new_client").val(""); } }); } } function trv_homepage_admin_open_newsletter_form() { title = 'Trovarit Newsletter Anmeldung'; $("body").append(""); $("#trv_module_homepage_admin_newsletter_form_box").load("https://news.it-matchmaker.com/core/modules/homepage_admin/components/newsletter_form.php?full_path=NVlFXzhjbUlsYDx5b3JMaH1gI19ZOlQkfXhhcFgqXkF9OyhNJDw0YmthUXYkWiFMWTdEaVcyR0luMEY3LFsmR0NLSD5wNiotSFoxeA,,&app_language=de&PHPSESSID=d9a0907f39ab4a13ae710d61a88351e8").dialog({ close: function(event, ui) { $(this).dialog('destroy'); $("#trv_module_homepage_admin_newsletter_form_box").remove(); }, closeOnEscape: true, resizable: false, height: 'auto', minHeight: 350, width: 550, modal: true, bgiframe: true, title: title, position: ['center',60] }); blockScreen(); } function trv_homepage_admin_open_newsletter_abo_form() { url = "https://evm.it-matchmaker-news.de/event.php?eh=fc781d6565559a2f41b9&status=teilnehmer&src=website" var $dialog = $('
') .html('') .dialog({ autoOpen: false, modal: true, width:750, height:750, title: "Newsletter Anmeldung" }); $dialog.dialog('open'); } function trv_homepage_admin_cancel_newsletter_form() { $("#trv_module_homepage_admin_newsletter_form_box").remove(); } function trv_homepage_admin_send_newsletter_form() { if($("#trv_module_homepage_admin_newsletter_form").valid()) { $.post( "https://news.it-matchmaker.com/core/modules/homepage_admin/ajax/ajax.php?full_path=NVlFXzhjbUlsYDx5b3JMaH1gI19ZOlQkfXhhcFgqXkF9OyhNJDw0YmthUXYkWiFMWTdEaVcyR0luMEY3LFsmR0NLSD5wNiotSFoxeA,,&app_language=de&PHPSESSID=d9a0907f39ab4a13ae710d61a88351e8", { ajax_type: "SAVE_NEWSLETTER_SUBSCRIPTION_DATA", NewsletterFormData: $('#trv_module_homepage_admin_newsletter_form').serialize() }, function(result) { unblockScreen(); data = JSON.parse(result); if (data.success == 1) { infoDialog("FEHLER","Fehler: Bei der Übermittlung Ihrer Anmeldung ist ein Fehler aufgetreten! Bitte versuchen Sie es noch einmal oder nehmen Sie Kontakt zu unserem Support auf!",null,750,null,null,null,true); } else { infoDialog("Trovarit Newsletter Anmeldung","Ihre Newsletter-Anmeldung wurde erfolgreich gespeichert!",null,750,null,null,null,true); trv_homepage_admin_cancel_newsletter_form(); } } ); } return false; } function trv_homepage_admin_open_guided_tours_anmeldung() { title = 'Anmeldung Guided Tours'; $("body").append(""); $("#trv_module_homepage_admin_guided_tours_anmeldung_box").load("https://news.it-matchmaker.com/core/modules/homepage_admin/components/guided_tours_anmeldung.php?full_path=NVlFXzhjbUlsYDx5b3JMaH1gI19ZOlQkfXhhcFgqXkF9OyhNJDw0YmthUXYkWiFMWTdEaVcyR0luMEY3LFsmR0NLSD5wNiotSFoxeA,,&app_language=de&PHPSESSID=d9a0907f39ab4a13ae710d61a88351e8").dialog({ close: function(event, ui) { $(this).dialog('destroy'); $("#trv_module_homepage_admin_guided_tours_anmeldung_box").remove(); }, closeOnEscape: true, resizable: false, height: 'auto', minHeight: 350, width: 850, modal: true, bgiframe: true, title: title, position: ['center',60] }); blockScreen(); } function trv_homepage_admin_send_guided_tours_anmeldung_form() { if(isFormValid('trv_module_homepage_admin_guided_tours_anmeldung_form',null, false,'trv_core_input_white_validator_error')) { $.post( "https://news.it-matchmaker.com/core/modules/homepage_admin/ajax/ajax.php?full_path=NVlFXzhjbUlsYDx5b3JMaH1gI19ZOlQkfXhhcFgqXkF9OyhNJDw0YmthUXYkWiFMWTdEaVcyR0luMEY3LFsmR0NLSD5wNiotSFoxeA,,&app_language=de&PHPSESSID=d9a0907f39ab4a13ae710d61a88351e8", { ajax_type: "SAVE_GUIDED_TOURS_ANMELDUNG_DATA", GuidedToursFormData: $('#trv_module_homepage_admin_guided_tours_anmeldung_form').serialize() }, function(result) { unblockScreen(); data = JSON.parse(result); if (data.success == 1) { infoDialog("Anmeldung Guided Tours","Ihre Anmeldung wurde erfolgreich abgeschickt!",null,750,null,null,null,true); trv_homepage_admin_cancel_guided_tours_anmeldung_form(); } else { infoDialog("FEHLER","Fehler: Bei der Übermittlung Ihrer Anmeldung ist ein Fehler aufgetreten! Bitte versuchen Sie es noch einmal oder nehmen Sie Kontakt zu unserem Support auf!",null,750,null,null,null,true); } } ); } return false; } function trv_homepage_admin_cancel_guided_tours_anmeldung_form() { $("#trv_module_homepage_admin_guided_tours_anmeldung_box").remove(); } function trv_homepage_admin_open_wordpress_form() { title = 'Anmeldung ERP-Challenge'; $("body").append(""); $("#trv_module_homepage_admin_wordpress_form_box").load("https://news.it-matchmaker.com/core/modules/homepage_admin/components/wordpress_form.php?full_path=NVlFXzhjbUlsYDx5b3JMaH1gI19ZOlQkfXhhcFgqXkF9OyhNJDw0YmthUXYkWiFMWTdEaVcyR0luMEY3LFsmR0NLSD5wNiotSFoxeA,,&app_language=de&PHPSESSID=d9a0907f39ab4a13ae710d61a88351e8").dialog({ close: function(event, ui) { $(this).dialog('destroy'); $("#trv_module_homepage_admin_wordpress_form_box").remove(); }, closeOnEscape: true, resizable: false, height: 'auto', minHeight: 250, width: 700, modal: true, bgiframe: true, title: title, position: ['center',60] }); blockScreen(); } function trv_homepage_admin_send_wordpress_form() { if($('#trv_module_homepage_admin_wordpress_form').valid()) { $.post( "https://news.it-matchmaker.com/core/modules/homepage_admin/ajax/ajax.php?full_path=NVlFXzhjbUlsYDx5b3JMaH1gI19ZOlQkfXhhcFgqXkF9OyhNJDw0YmthUXYkWiFMWTdEaVcyR0luMEY3LFsmR0NLSD5wNiotSFoxeA,,&app_language=de&PHPSESSID=d9a0907f39ab4a13ae710d61a88351e8", { ajax_type: "SAVE_WORDPRESS_FORM_DATA", GuidedToursFormData: $('#trv_module_homepage_admin_wordpress_form').serialize() }, function(result) { unblockScreen(); data = JSON.parse(result); if (data.success == 1) { infoDialog("Anmeldung erfolgreich","Vielen Dank für Ihre Anmeldung. Wir prüfen die Verfügbarkeit und senden Ihnen in kürze eine Mail mit den Webinardaten.",null,750,null,null,null,true); trv_homepage_admin_cancel_wordpress_form(); } else { infoDialog("FEHLER","Fehler: Bei der Übermittlung Ihrer Anmeldung ist ein Fehler aufgetreten! Bitte versuchen Sie es noch einmal oder nehmen Sie Kontakt zu unserem Support auf!",null,750,null,null,null,true); } } ); } } function trv_homepage_admin_cancel_wordpress_form() { $("#trv_module_homepage_admin_wordpress_form_box").remove(); } function copyDocumentUrl(url, id){ $.post( "https://news.it-matchmaker.com/core/modules/homepage_admin/ajax/ajax.php?id="+id+"&full_path=NVlFXzhjbUlsYDx5b3JMaH1gI19ZOlQkfXhhcFgqXkF9OyhNJDw0YmthUXYkWiFMWTdEaVcyR0luMEY3LFsmR0NLSD5wNiotSFoxeA,,&app_language=de&PHPSESSID=d9a0907f39ab4a13ae710d61a88351e8", { ajax_type: "SAVE_ONE_TIME_DOWNLOAD" }, function(result) { copyStringToClipboard(result); document.getElementById('copy_'+id).innerHTML = '
Der Download-Link wurde kopiert!'; } ); setTimeout(function(){ document.getElementById('copy_'+id).innerHTML = ''; }, 3000); } function copyStringToClipboard (str) { // Create new element var el = document.createElement('textarea'); // Set value (string to be copied) el.value = str; // Set non-editable to avoid focus and move outside of view el.setAttribute('readonly', ''); el.style = {position: 'absolute', left: '-9999px'}; document.body.appendChild(el); // Select text inside element el.select(); // Copy text to clipboard document.execCommand('copy'); // Remove temporary element document.body.removeChild(el); } function copyFreeDownload(articleID){ alert(articleID); var str = "www.it-matchmaker.local/?fid="+articleID; // Create new element var el = document.createElement('textarea'); // Set value (string to be copied) el.value = str; // Set non-editable to avoid focus and move outside of view el.setAttribute('readonly', ''); el.style = {position: 'absolute', left: '-9999px'}; document.body.appendChild(el); // Select text inside element el.select(); // Copy text to clipboard document.execCommand('copy'); // Remove temporary element document.body.removeChild(el); } function trv_module_homepage_admin_checkTyp(val){ if(val=='Sponsored Whitepaper'){ $("#client_sponsored_whitepaper_select").show(); $("#client_sponsored_whitepaper_new").show(); }else{ $("#client_sponsored_whitepaper_select").hide(); $("#client_sponsored_whitepaper_new").hide(); } } function trv_module_homepage_admin_keywords() { $('#trv_keyword_wrapper').toggle(); } function trv_module_homepage_admin_copy(txt) { copyStringToClipboard(txt); document.getElementById('copy_id_'+txt).innerHTML = '
Die ID wurde kopiert!'; setTimeout(function(){ document.getElementById('copy_id_'+txt).innerHTML = ''; }, 3000); } function trv_module_homepage_admin_search_keywords(txt) { var txt = txt.toLowerCase().trim(); $(".trv_downloadcenter_hover").each(function (index) { if (!index) return; $(this).find("td").each(function () { var id = $(this).text().toLowerCase().trim(); var not_found = (id.indexOf(txt) == -1); $(this).closest('tr').toggle(!not_found); return not_found; }); }); } function trv_module_homepage_admin_show_users_webinar_leads(id){ var stat= document.getElementById("userwrapper_"+id).style.display; if(stat=='none' || stat==''){ document.getElementById("userwrapper_"+id).style.display='contents'; document.getElementById("webinarwrapper_"+id).style.color='white'; document.getElementById("webinarwrapper_"+id).style.fontWeight='bold'; document.getElementById("webinarwrapper_"+id).style.background='#A63E00'; }else{ document.getElementById("userwrapper_"+id).style.display='none'; document.getElementById("webinarwrapper_"+id).style.color='#A63E00'; document.getElementById("webinarwrapper_"+id).style.fontWeight='normal'; document.getElementById("webinarwrapper_"+id).style.background='none'; document.getElementById("webinarwrapper_"+id).style.color='#555'; } } function trv_ha_removeEmail(email){ $('.trv_is_email').each(function(){ if($(this).text().trim() == email){ $(this).parents('tr').fadeOut(); } }); } function trv_ha_LeadToMinerva(id, type, typeID, counter){ var score = $('#score_'+id+'_'+counter).val(); var email = $('#user_mail_hidden_'+id).text().trim(); if(confirm('Soll der Nutzer mit ID: '+id+' und E-Mailadresse: '+email+' weitergeleitet werden an Minerva mit einem Score von: '+score+'?')) { $('#trv_loader').css('display','block'); $.trv_postJson({ ajax_type: "SEND_MINERVA", module_name: "homepage_admin", //showSavingInfoIn: $(element).parent(), blockScreen: false, parameter: { score: score, id: id, type: type, type_id: typeID, email: email }, onSuccess: function(data) { $('#trv_loader').css('display','none'); //alert("Die Daten wurden erfolgreich an Minerva uebertragen."); trv_ha_removeEmail(email); } }); } } function trv_ha_saveScore(id, element){ $.trv_postJson({ ajax_type: "SAVE_SCORE", module_name: "homepage_admin", showSavingInfoIn: $(element).parent(), blockScreen: false, parameter: { score: $('#score_'+id).val(), id: id, email: $('#user_mail_hidden_'+id).html() }, onSuccess: function(data) { $('#score_info_'+id).html('Score wurde gespeichert'); } }); } function trv_ha_saveScoreOracle(id, element, counter){ var score = $('#score_'+id+'_'+counter).val(); //console.log("ID: "+id+" | Element: "+element+" | Counter: "+counter+""); $.trv_postJson({ ajax_type: "SAVE_SCORE_ORACLE", module_name: "homepage_admin", showSavingInfoIn: $(element).parent(), blockScreen: false, parameter: { score: score, id: id, email: $('#user_mail_hidden_'+id).html() }, onSuccess: function(data) { $('#score_info_'+id).html('Score wurde gespeichert'); } }); } function trv_update_webinar_seen(id){ if(confirm('Ist der Nutzer komplett abgehandelt? ')) { $.trv_postJson({ ajax_type: "WEBINAR_SEEN", module_name: "homepage_admin", blockScreen: false, parameter: { id: id }, onSuccess: function(data) { $('#webinar_seen_button_'+id).html('✔'); } }); } } $(document).ready(function() { HTTP_GET_VARS=new Array(); strGET=document.location.search.substr(1,document.location.search.length); if(strGET!='') { gArr=strGET.split('&'); for(i=0;i1){v=vArr[1];} HTTP_GET_VARS[unescape(vArr[0])]=unescape(v); } } if(HTTP_GET_VARS["webhash"]) { console.log("Webhash TEST!"); var isIFrame =0; var userHash=HTTP_GET_VARS["webhash"]; //alert(userHash); // trv_module_homepage_admin_open_webinar_booking('366','');return false; if ($("#trv_module_homepage_admin_dialog_webinar_booking_editor").length == 0) { title = 'Webinar Registrierung abschliessen'; $("body").append(""); $("#trv_module_homepage_admin_dialog_webinar_booking_editor").load("https://news.it-matchmaker.com/core/modules/homepage_admin/components/webinar_booking_editor_dsgvo.php?hash="+userHash+"&full_path=NVlFXzhjbUlsYDx5b3JMaH1gI19ZOlQkfXhhcFgqXkF9OyhNJDw0YmthUXYkWiFMWTdEaVcyR0luMEY3LFsmR0NLSD5wNiotSFoxeA,,&app_language=de&PHPSESSID=d9a0907f39ab4a13ae710d61a88351e8").dialog({ close: function(event, ui) { $(this).dialog('destroy'); $("#trv_module_homepage_admin_dialog_webinar_booking_editor").remove(); }, beforeClose: function(event, ui) { if (trv_dialogContentChanged) { return trv_confirmClose("$('#trv_module_homepage_admin_dialog_webinar_booking_editor').dialog('close')",1); } }, closeOnEscape: false, resizable: false, height: 'auto', minHeight: 300, width: 550, modal: true, bgiframe: true, title: title, position: ['center',60] }); blockScreen(); } return false; } }); function trv_module_homepage_admin_open_workshop_editor(webinarID) { if ($("#trv_module_homepage_admin_dialog_webinar_editor").length == 0) { if(webinarID>0) { title = 'Workshop bearbeiten'; } else { title = 'Neuen Workshop anlegen'; } $("body").append(""); $("#trv_module_homepage_admin_dialog_webinar_editor").load("https://news.it-matchmaker.com/core/modules/homepage_admin/components/workshop_editor.php?webinarID="+webinarID+"&full_path=NVlFXzhjbUlsYDx5b3JMaH1gI19ZOlQkfXhhcFgqXkF9OyhNJDw0YmthUXYkWiFMWTdEaVcyR0luMEY3LFsmR0NLSD5wNiotSFoxeA,,&app_language=de&PHPSESSID=d9a0907f39ab4a13ae710d61a88351e8").dialog({ close: function(event, ui) { $(this).dialog('destroy'); $("#trv_module_homepage_admin_dialog_webinar_editor").remove(); }, beforeClose: function(event, ui) { if (trv_dialogContentChanged) { return trv_confirmClose("$('#trv_module_homepage_admin_dialog_webinar_editor').dialog('close')",1); } }, closeOnEscape: false, resizable: false, height: 'auto', minHeight: 300, width: 550, modal: true, bgiframe: true, title: title, position: ['center',60] }); blockScreen(); } return false; } function trv_module_homepage_admin_save_workshop_editor() { if($('#trv_module_homepage_admin_dialog_webinar_editor_form').valid()) { if (isFormValid('trv_module_homepage_admin_dialog_webinar_editor_form') && $("#trv_module_homepage_admin_dialog_webinar_editor_form textarea").trv_tinyMCE_isLengthValid(true)) { if ($("#trv_module_homepage_admin_webinars_short_description").length) { $("#trv_module_homepage_admin_webinars_short_description").val(tinymce.get('trv_module_homepage_admin_webinars_short_description').getContent()); } if ($("#trv_module_homepage_admin_webinars_privacy_agreement").length) { $("#trv_module_homepage_admin_webinars_privacy_agreement").val(tinymce.get('trv_module_homepage_admin_webinars_privacy_agreement').getContent()); } } //console.log($("#inputOpenTaskMassnahme").val(tinymce.get('inputOpenTaskMassnahme').getContent())); $.trv_postJson({ blockScreen:false, module_name: "homepage_admin", ajax_type: "EDIT_WORKSHOP", parameter: { webinarFormData: $('#trv_module_homepage_admin_dialog_webinar_editor_form').serialize() }, onSuccess: function(data) { if ($("#trv_webinar_row_"+data.webinarID).length == 1) { $("#trv_webinar_row_"+data.webinarID).replaceWith(data.tableRow); } else { $('#trv_module_homepage_admin_webinars_table tbody').append(data.tableRow); } reinitTablesorter('trv_module_homepage_admin_webinars_table'); setToolbarInfo("trv_module_homepage_admin_webinars_table", true); dialogContentChanged(false); trv_module_homepage_admin_close_webinar_editor(); } }); } else { infoDialog("FEHLER","Bitte füllen Sie alle rot markierten Felder korrekt aus!"); } } function showWorkshopForm(id){ var stat = document.getElementById("workshopform_"+id).style.maxHeight; if(stat == '0px' || stat == '') { document.getElementById("workshopform_"+id).style.maxHeight = '20000px'; } else { document.getElementById("workshopform_"+id).style.maxHeight = '0px'; } } function trv_workshop_send_registration(id) { var error=0; var formFields = ['anrede_', 'vorname_', 'nachname_', 'email_', 'unternehmen_', 'strasse_', 'plz_', 'land_']; $.each(formFields, function( index, value ) { if ($('#'+value+id).val().replace(/^\s+|\s+$/g, "").length != 0){ $('#'+value+id).css('border','1px solid #E4E4E4'); }else{ $('#'+value+id).css('border','1px solid red'); error+=1; $('#'+value+id).val(''); } }); if(!$('#dsgvo_'+id).prop('checked')){ $('#dsgvo_wrapper_'+id).css('border','1px solid red'); error+=1; }else{ $('#dsgvo_wrapper_'+id).css('border','1px solid #E4E4E4'); } if(error==0) { if ($('#dsgvo_'+id).prop('checked')) { if($('#trv_module_homepage_admin_registration_form_workshops').valid()) { console.log($('#trv_module_homepage_admin_registration_form_workshops').serialize()); $.post( "https://news.it-matchmaker.com/core/modules/homepage_admin/ajax/ajax.php?app_language=de&PHPSESSID=d9a0907f39ab4a13ae710d61a88351e8", { ajax_type: "REGISTER_WORKSHOP", full_path: "NVlFXzhjbUlsYDx5b3JMaH1gI19ZOlQkfXhhcFgqXkF9OyhNJDw0YmthUXYkWiFMWTdEaVcyR0luMEY3LFsmR0NLSD5wNiotSFoxeA,,", workshopID: id, formData: $('#trv_module_homepage_admin_registration_form_workshops').serialize(), pageLink: location.href }, function(data) { $('#sendingresult_'+id).html("Vielen Dank für Ihre Anmeldung. Wir kontaktieren Sie sobald wir ihre Anfrage verarbeitet haben."); $('#dsgvo_'+id).prop('checked', false); $('#telefon_'+id).val(''); $('#position_'+id).val(''); $('#titel_'+id).val(''); $.each(formFields, function( index, value ) { $('#'+value+id).val(''); }); console.log(data); }); } } else { $('#sendingresult_'+id).html("Sie müssen unsere Datenschutzhinweise akzeptieren."); } }else{ $('#sendingresult_'+id).html("Bitte füllen Sie alle benötigten Felder aus."); } }