function trv_download_center_download(articleID, isIFrame) { $.trv_postJson({ module_name: "download_center", ajax_type: "DOWNLOADCENTER_ENABLED", parameter: { articleID: articleID }, onSuccess: function(data) { if (data.success == 1) { if(data.text!="") { isIFrame = (isIFrame == null || !isIFrame) ? 0:1; var position = getIFramePosition(isIFrame); confirmDialog("Gizlilik politikası","trv_download_center_get_file("+articleID+", "+isIFrame+")",data.text); } else { trv_download_center_get_file(articleID, isIFrame) } } else { trv_download_center_open_registration(isIFrame); } } }); } function trv_download_center_get_file(articleID, isIFrame) { $.post( "http://www.it-matchmaker.com.tr/core/modules/download_center/ajax/ajax.php?app_language=tr&PHPSESSID=9f56beb4fa7595fc35263daad759fbe8", { ajax_type: "DOWNLOADCENTER_FILE_CHECK", full_path: "NVkzNENoeWMoUmQ1aGFGPUZgcnRvelhISD0rPktLMG0sYzJEOmlZN3ktKj5kOW9WPG5KS1phRH5HQz5aemBzbnMpbl93QjRyViYrZEBiPVpHaig3", articleID: articleID }, function(data) { if (data == 1) { if (typeof _paq !== 'undefined') { var parameter = ['trackEvent', 'downloadcenter', 'download article']; parameter.push(articleID); _paq.push(parameter); } location.href = "http://www.it-matchmaker.com.tr/core/modules/download_center/components/get_file.php?id="+articleID+"&isIFrame="+isIFrame+"&full_path=NVkzNENoeWMoUmQ1aGFGPUZgcnRvelhISD0rPktLMG0sYzJEOmlZN3ktKj5kOW9WPG5KS1phRH5HQz5aemBzbnMpbl93QjRyViYrZEBiPVpHaig3&app_language=tr&PHPSESSID=9f56beb4fa7595fc35263daad759fbe8"; } else { isIFrame = (isIFrame == null || !isIFrame) ? 0:1; var position = getIFramePosition(isIFrame); infoDialog("HATA","DAHİLİ HATA: Sunucu üzerinde dosya bulunamadı!

Web sayfa yöneticisi otomatik olarak bilgilendirilmiştir.

Geri",null,600,null, position); } }); } function trv_download_center_open_registration(isIFrame) { if ($("#trv_module_dialog_download_center_registration").length == 0) { blockScreen(); isIFrame = (isIFrame == null || !isIFrame) ? 0:1; var position = getIFramePosition(isIFrame); $("body").append(""); $("#trv_module_dialog_download_center_registration").load("http://www.it-matchmaker.com.tr/core/modules/download_center/components/dialog_registration.php?isIFrame="+isIFrame+"&full_path=NVkzNENoeWMoUmQ1aGFGPUZgcnRvelhISD0rPktLMG0sYzJEOmlZN3ktKj5kOW9WPG5KS1phRH5HQz5aemBzbnMpbl93QjRyViYrZEBiPVpHaig3&app_language=tr&PHPSESSID=9f56beb4fa7595fc35263daad759fbe8").dialog({ close: function(event, ui) { moduleDownloadCenterContentChanged(false); $(this).dialog('destroy'); $("#trv_module_dialog_download_center_registration").remove(); trv_setPiwik(null,"Downloadcenter Registration - Dialog close"); }, beforeClose: function(event, ui) { return closeDownloadCenterDialog(isIFrame); }, closeOnEscape: false, resizable: false, position: position, minHeight: 655, height: 'auto', width: 600, modal: true, bgiframe: true, title: "Download aktivasyon" }); } } var moduleDownloadCenterContentChangedVar = false; function moduleDownloadCenterContentChanged(changed) { moduleDownloadCenterContentChangedVar = changed; setUnload(changed, "Downloas aktivasyonu girildi ancak gönderilmedi"); } function closeDownloadCenterDialog(isIFrame) { if (moduleDownloadCenterContentChangedVar) { confirmCloseDownloadCenterDialog(isIFrame); return false; } return true; } function confirmCloseDownloadCenterDialog(isIFrame) { isIFrame = (isIFrame == null || !isIFrame) ? 0:1; var position = getIFramePosition(isIFrame); confirmDialog("ONAY","moduleDownloadCenterContentChanged(false);$('#trv_module_dialog_download_center_registration').dialog('close');","Downloas aktivasyonu girildi ancak gönderilmedi

İptal?",null,500,null,position); } function trv_download_center_toggle_info(articleID, isIFrame) { var source = $("#preview_picture_"+articleID).attr("data"); if (source && !$("#preview_picture_"+articleID).attr("src")) { $("#preview_picture_"+articleID).attr("src", source); } $('div#trv_module_download_center_article_'+articleID).slideToggle(500, function(){ if ($('div#trv_module_download_center_article_'+articleID+':visible').length == 1) { $('#trv_module_download_center_icon_'+articleID).attr({ src: '/homepage/themes/tr_it-matchmaker-2014/core/images/icons/minus.gif'}); } else { $('#trv_module_download_center_icon_'+articleID).attr({ src: '/homepage/themes/tr_it-matchmaker-2014/core/images/icons/plus.gif'}); } if (isIFrame) { setIFrameHeight(); } }); } function trv_download_center_get_set_tags(type) { $.post( "http://www.it-matchmaker.com.tr/core/modules/download_center/ajax/ajax.php?app_language=tr&PHPSESSID=9f56beb4fa7595fc35263daad759fbe8", { ajax_type: "GET_SET_TAG", type: type, full_path: "NVkzNENoeWMoUmQ1aGFGPUZgcnRvelhISD0rPktLMG0sYzJEOmlZN3ktKj5kOW9WPG5KS1phRH5HQz5aemBzbnMpbl93QjRyViYrZEBiPVpHaig3" }, function(data) { $('#trv_module_download_center_set_tags').html(data); trv_download_center_get_addable_tags(type); }); } function trv_download_center_get_addable_tags(type) { $.post( "http://www.it-matchmaker.com.tr/core/modules/download_center/ajax/ajax.php?app_language=tr&PHPSESSID=9f56beb4fa7595fc35263daad759fbe8", { ajax_type: "GET_ADDABLE_TAGS", type: type, full_path: "NVkzNENoeWMoUmQ1aGFGPUZgcnRvelhISD0rPktLMG0sYzJEOmlZN3ktKj5kOW9WPG5KS1phRH5HQz5aemBzbnMpbl93QjRyViYrZEBiPVpHaig3" }, function(data) { $('#trv_module_download_center_addable_tags').html(data); unblockScreen(); }); } function trv_download_center_get_article_by_tag(tag, action, type, isIFrame) { blockScreen(); $.post( "http://www.it-matchmaker.com.tr/core/modules/download_center/ajax/ajax.php?app_language=tr&PHPSESSID=9f56beb4fa7595fc35263daad759fbe8", { ajax_type: "GET_ARTICLE_BY_TAG", full_path: "NVkzNENoeWMoUmQ1aGFGPUZgcnRvelhISD0rPktLMG0sYzJEOmlZN3ktKj5kOW9WPG5KS1phRH5HQz5aemBzbnMpbl93QjRyViYrZEBiPVpHaig3", tag: tag, type: type, action:action }, function(data) { $('#trv_module_download_center_content').html(data); $('input#downloadFilterInput').val(""); trv_download_center_get_set_tags(type); setIframeTop(); if (isIFrame) { setIFrameHeight(); } }); } function trv_download_center_filter(isIFrame) { blockScreen(); setTimeout('trv_download_center_filter_call('+isIFrame+')', 150); } function trv_download_center_filter_call(isIFrame) { var filterText = $('input#downloadFilterInput').val(); if (filterText == null) { filterText = ""; } $('.trovarit_search_text').removeHighlight(); unblockScreen(); if (filterText.length == 0) { $(".trv_module_download_center_container").show(); } else { $(".trv_module_download_center_container").each( function (column) { var searchText = ""; $(".trovarit_search_text",this).each(function() { searchText += $(this).text()+" "; }); if (searchText.toLowerCase().indexOf(filterText.toLowerCase()) >= 0) { $(this).show(); } else { $(this).hide(); } }); $('.trovarit_search_text').highlight(filterText); } count = $(".trv_module_download_center_container:visible").length; $('#trv_module_download_center_result_count').text(count); if (count == 0) { $('.trv_module_download_center_result').addClass('trv_module_download_center_result_red'); } else { $('.trv_module_download_center_result').removeClass('trv_module_download_center_result_red'); } if (isIFrame) { setIFrameHeight(); } } function trv_download_center_filter_reset(isIFrame) { $('input#downloadFilterInput').val(""); trv_download_center_filter(isIFrame); } function trv_download_center_send_registration(isIFrame) { isIFrame = (isIFrame == null || !isIFrame) ? 0:1; var position = getIFramePosition(isIFrame); if (isFormValid('trv_module_download_center_registration_form',position, isIFrame,'trv_core_input_white_validator_error')) { blockScreen(); var zielgruppe = $('input[name=inputDCZielgruppe]:checked').val(); if ($('#inputDCZielgruppeSonstiges').val().length > 0) { zielgruppe = $('#inputDCZielgruppeSonstiges').val(); } var zweck = ""; $('input[name=inputDCZweck]:checked').each(function(i) { zweck = zweck + $(this).val()+";"; }); if ($('#inputDCZweckSonstiges').val() != "") { zweck = zweck + $('#inputDCZweckSonstiges').val()+";"; } $.post( "http://www.it-matchmaker.com.tr/core/modules/download_center/ajax/ajax.php?app_language=tr&PHPSESSID=9f56beb4fa7595fc35263daad759fbe8", { ajax_type: "REGISTER_DOWNLOADCENTER", full_path: "NVkzNENoeWMoUmQ1aGFGPUZgcnRvelhISD0rPktLMG0sYzJEOmlZN3ktKj5kOW9WPG5KS1phRH5HQz5aemBzbnMpbl93QjRyViYrZEBiPVpHaig3", inputDCTitle: $('#inputDCTitle').val(), inputDCFirstName: $('#inputDCFirstName').val(), inputDCName: $('#inputDCName').val(), inputDCCompany: $('#inputDCCompany').val(), inputDCStreet: $('#inputDCStreet').val(), inputDCPLZ: $('#inputDCPLZ').val(), inputDCCity: $('#inputDCCity').val(), inputDCEMail: $('#inputDCEMail').val(), inputDCTelefon: $('#inputDCTelefon').val(), inputDCZielgruppe: zielgruppe, inputDCZweck: zweck, pageLink: location.href }, function(data) { unblockScreen(); if (data == 0) { moduleDownloadCenterContentChanged(false); $("#trv_module_dialog_download_center_registration").dialog("close"); infoDialog("BİLGİ","Aktivasyon linki başarılı bir şekilde gönderildi.",null,null,null, position); trv_setPiwik(null,"Downloadcenter Registration - Complete"); } else { infoDialog("HATA",data,null,600,null, position); } }); } } function trv_dc_page_starter(preselectTagID, preselectDocumentData, type) { if (preselectTagID != "") trv_download_center_get_article_by_tag(preselectTagID,'reset',type); else if (preselectDocumentData != "") { $('#downloadFilterInput').val(preselectDocumentData); trv_download_center_filter(); } }