Software: Apache/2.2.22 (Debian). PHP/5.6.36 uname -a: Linux h05.hvosting.ua 4.9.110-amd64 #3 SMP Sun Nov 4 16:27:09 UTC 2018 x86_64 uid=1389(h33678) gid=1099(h33678) groups=1099(h33678),502(mgrsecure) Safe-mode: OFF (not secure) /home/h33678/data/www/msdp.undp.org.ua/js/ drwxr-xr-x |
Viewing file: Select action/file-type: Globalite.language("rus", { delete_question: "Удалить?" }); Globalite.language("ukr", { delete_question: "Видалити?" }); $(document).ready(function() { $("button, input[type=submit]").button(); $("#auth-form").ajaxForm(function() { form = $("#auth-form").serialize(); $.post("/admin-asynch.php?mod=Admins&auth", form, function(data) { if(data.status == 'error') { $("#auth-error-message").fadeIn(1000); $("#auth-error-message").text(data.error); } if (data.status == 'ok') { $("#auth-error-message").hide(); $("html").fadeOut(1000, function() { location.reload(); }); } }, 'json'); }); $("#current-language").buttonset(); $("#current-language input").click(function() { lang = $("input[@name='current-language']:checked").val(); $(".ukr, .rus, .eng").css('display', 'none'); $("."+lang).css('display', 'block'); }); $("table.sortable").tableDnD( { onDragClass: "selected", onDrop: function(table, row) { if (table) { $.post("/admin-asynch.php?mod="+$(table).attr("mod"), {"table": $(table).attr("table"), "ids": $.tableDnD.serialize(), "oper" : "sorting"}); } } }); $(".admin-table .ajax").click(function() { if ($(this).hasClass('delete')) if (!confirm("delete_question".l())) return false; id = ($(this).parent("td").parent("tr").attr('id')); table = $(this).parent("").parent("").parent("").parent("").attr('table'); mod = $(this).parent("").parent("").parent("").parent("").attr('mod'); oper = $(this).attr('oper'); $.post("/admin-asynch.php", { "mod" : mod, "oper" : oper, 'id' : id, 'table' : table }, function(data) { if (data.status != 'ok') return; $("table tr[id="+data.code+"] td").animate({"background-color" : "#EFF39E"}, 1000,"", function(data){ $(this).parent("tr").remove(); }); }, "json"); return false; }); $(".admin-table .ajax-photomanager-main-photo").click(function() { if ($(this).hasClass('delete')) if (!confirm("delete_question".l())) return false; id = ($(this).parent("td").parent("tr").attr('id')); table = $(this).parent("").parent("").parent("").parent("").attr('table'); mod = $(this).parent("").parent("").parent("").parent("").attr('mod'); oper = $(this).attr('oper'); $.post("/admin-asynch.php", { "mod" : mod, "oper" : oper, 'id' : id, 'table' : table }, function(data) { if (data.status != 'ok') return; $("table tr[id="+data.code+"] td").children("textarea,input").attr("value", ""); $("#mainphoto_image").attr("src","/data/photomanager/empty.jpg"); }, "json"); return false; }); $(".admin-table .ajax-photomanager-photo").live('click', myfn); /* $("input[name='mainphoto']").change( function(){ $("#mainphoto_image").attr("src", "/data/photomanager/change.jpg"); }); $("input[name='photo[]']").change( function(){ $("img[name='photo_image[]']").attr("src", "/data/photomanager/change.jpg"); });*/ $("#photomanager-add-photo-link").click(function() { $("#photomanager-photos-table > thead tr:eq(1)").after("<tr>"+$("#photomanager-photos-table > thead tr:eq(1)").html()+"</tr>"); $("img[name='photo_image[]']:eq(1)").attr("src","/data/photomanager/empty.jpg"); $("textarea[name='photo_title_rus[]']:eq(1)").attr("value",""); $("textarea[name='photo_title_ukr[]']:eq(1)").attr("value",""); $("textarea[name='photo_title_eng[]']:eq(1)").attr("value",""); $("textarea[name='photo_description_rus[]']:eq(1)").attr("value",""); $("textarea[name='photo_description_ukr[]']:eq(1)").attr("value",""); $("textarea[name='photo_description_eng[]']:eq(1)").attr("value",""); $("input[name='photo_id[]']:eq(1)").attr("value","new"); // $(".admin-table .ajax-photomanager-photo").click(myfn); return false; }); }); function myfn() { if ($(this).hasClass('delete')) if (!confirm("delete_question".l())) return false; id = ($(this).parent("td").parent("tr").attr('id')); table = $(this).parent("").parent("").parent("").parent("").attr('table'); mod = $(this).parent("").parent("").parent("").parent("").attr('mod'); oper = $(this).attr('oper'); lnk = $(this); $.post("/admin-asynch.php", { "mod" : mod, "oper" : oper, 'id' : id, 'table' : table }, function(data) { // if (data.status != 'ok') // return; // alert(lnk.parent("tr")); lnk.parent().parent().children().animate({"background-color" : "#EFF39E"}, 300,"", function(data){ lnk.parent().parent().remove();}); }, "json"); return false; } |
:: Command execute :: | |
--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by PinoyWH1Z | C99Shell Github | Generation time: 0.0371 ]-- |