%PDF- %PDF-
Direktori : /home/alliance/domains/congress-pact1in5.eu/public_html/js/ |
Current File : /home/alliance/domains/congress-pact1in5.eu/public_html/js/admin.js |
$(window).load(function() { }); $(document).ready(function() { if($('.evenement #type3').is(':checked')) { $('table .news').hide(); $('table .even').show(); } if($('.evenement #type2').is(':checked')) { $('table .even').hide(); $('table .news').show(); } $('.colorpick').ColorPicker({ onSubmit: function(hsb, hex, rgb, el) { $(el).val(hex); $(el).ColorPickerHide(); }, onBeforeShow: function () { $(this).ColorPickerSetColor(this.value); } }); $("#categorie_change").change(function() { $("#modifier_page").submit(); }); $(function() { $("#bloc_sort").sortable({ opacity: 0.6, cursor: 'move', update: function() { var order = $(this).sortable("serialize") + '&action=updateRecordsListings&page=' + $("#pageid").val(); $.post("a-ordre-bloc.php", order, function(theResponse){ //callback //$("#test").html(theResponse); }); }, placeholder: 'bloc_place', handle: '.bloc1_admin' }); }); $(".datepick").datepicker({ dateFormat: 'dd/mm/yy' }); //$(".datepick").datepicker({ dateFormat: 'yy-mm-dd' }); $(".datepick").datepicker($.datepicker.regional['fr']); $('.evenement #type2').click(function() { $('table .even').hide(); $('table .news').show(); }); $('.evenement #type3').click(function() { $('table .news').hide(); $('table .even').show(); }); $('.evenement #type1').click(function() { $('table .even').show(); $('table .news').show(); }); /*$('#file_1').uploadify({ 'uploader' : '/uploadify/uploadify.swf', 'script' : '/uploadify/uploadify.php', //'checkScript': 'uploadify/check.php', 'cancelImg' : 'uploadify/cancel.png', 'buttonImg' : 'images/upload.png', 'folder' : '../temp', 'width' : 156, 'height' : 40, 'fileExt' : '*.jpg;*.gif;*.png', 'fileDesc' : 'Images seulement', 'wmode' : 'transparent', 'removeCompleted' : false, 'auto' : true, 'multi' : false, onComplete: function(event, queueID, fileObj, response, data) { $('#photo1').val(fileObj.name) }, onCancel: function(event, ID, fileObj, data) { $('#photo1').val(""); } }); $('#file_2').uploadify({ 'uploader' : '../uploadify/uploadify.swf', 'script' : '../uploadify/uploadify.php', //'checkScript': 'uploadify/check.php', 'cancelImg' : 'uploadify/cancel.png', 'buttonImg' : 'images/upload.png', 'folder' : '../temp', 'width' : 156, 'height' : 40, 'fileExt' : '*.jpg;*.gif;*.png', 'fileDesc' : 'Images seulement', 'wmode' : 'transparent', 'removeCompleted' : false, 'auto' : true, 'multi' : false, onComplete: function(event, queueID, fileObj, response, data) { $('#photo2').val(fileObj.name); }, onCancel: function(event, ID, fileObj, data) { $('#photo2').val(""); } }); $('#file_3').uploadify({ 'uploader' : '../uploadify/uploadify.swf', 'script' : '../uploadify/uploadify.php', //'checkScript': 'uploadify/check.php', 'cancelImg' : 'uploadify/cancel.png', 'buttonImg' : 'images/upload.png', 'folder' : '../temp', 'width' : 156, 'height' : 40, 'fileExt' : '*.jpg;*.gif;*.png', 'fileDesc' : 'Images seulement', 'wmode' : 'transparent', 'removeCompleted' : false, 'auto' : true, 'multi' : false, onComplete: function(event, queueID, fileObj, response, data) { $('#photo3').val(fileObj.name); }, onCancel: function(event, ID, fileObj, data) { $('#photo3').val(""); } }); $('#file_4').uploadify({ 'uploader' : '../uploadify/uploadify.swf', 'script' : '../uploadify/uploadify.php', //'checkScript': 'uploadify/check.php', 'cancelImg' : 'uploadify/cancel.png', 'buttonImg' : 'images/upload.png', 'folder' : '../temp', 'width' : 156, 'height' : 40, 'fileExt' : '*.jpg;*.gif;*.png', 'fileDesc' : 'Images seulement', 'wmode' : 'transparent', 'removeCompleted' : false, 'auto' : true, 'multi' : false, onComplete: function(event, queueID, fileObj, response, data) { $('#photo4').val(fileObj.name); }, onCancel: function(event, ID, fileObj, data) { $('#photo4').val(""); } });*/ /* $("#file_docs").uploadify({ 'swf' : 'uploadify/uploadify.swf', 'uploader' : '../uploadify/uploadify.php', 'buttonImage' : '../images/upload2.png', 'cancelImage' : 'uploadify/cancel.png', 'folder' : '../uploads/'+$('#file_folder').val(), 'width' : 156, 'height' : 40, 'wmode' : 'transparent', 'removeCompleted' : false, 'auto' : true, 'multi' : true, onComplete: function(event, queueID, fileObj, response, data) { //$('#photo4').val(fileObj.name); } }); */ /* $('#file_docs').uploadify({ 'uploader' : '../uploadify/uploadify.swf', 'script' : '../uploadify/uploadify.php', //'checkScript': 'uploadify/check.php', 'cancelImg' : 'uploadify/cancel.png', 'buttonImg' : 'images/upload2.png', 'folder' : '../uploads/'+$('#file_folder').val(), 'width' : 156, 'height' : 40, 'wmode' : 'transparent', 'removeCompleted' : false, 'auto' : true, 'multi' : true, onComplete: function(event, queueID, fileObj, response, data) { //$('#photo4').val(fileObj.name); } }); var url = 'uploads/'+$('#file_folder').val(); $('#file_docactu').fileupload({ url: url, dataType: 'json', done: function (e, data) { $.each(data.result.files, function (index, file) { $('<p/>').text(file.name).appendTo(document.body); }); }, progressall: function (e, data) { var progress = parseInt(data.loaded / data.total * 100, 10); $('#progress .progress-bar').css( 'width', progress + '%' ); } }).prop('disabled', !$.support.fileInput) .parent().addClass($.support.fileInput ? undefined : 'disabled'); */ /*$('#file_docactu').uploadify({ 'uploader' : '../uploadify/uploadify.swf', 'script' : '../uploadify/uploadify.php', //'checkScript': 'uploadify/check.php', 'cancelImg' : 'uploadify/cancel.png', 'buttonImg' : 'images/upload.png', 'folder' : '../temp', 'width' : 156, 'height' : 40, 'wmode' : 'transparent', 'removeCompleted' : false, 'auto' : true, 'multi' : false, onComplete: function(event, queueID, fileObj, response, data) { $('#docactu').val(fileObj.name); }, onCancel: function(event, ID, fileObj, data) { $('#docactu').val(""); } });*/ });