%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/alliance/domains/sedl.alnetis.fr/public_html/js/
Upload File :
Create Path :
Current File : /home/alliance/domains/sedl.alnetis.fr/public_html/js/admin.js

$(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);
		}
	});
	
	$('.adminlist').each(function() {
		if($(this).children().length == 0) {
			$(this).hide();
		}
	});
	
	$(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({
        'buttonImage' : '../images/upload2.png',
        'swf'         : 'uploadify/uploadify.swf',
        'uploader'    : '../uploadify/uploadify.php'
    }); 
	$('#file_docs').uploadify({
		'uploader'  : '../uploadify/uploadify.swf',
		'script'    : '../uploadify/uploadify.php',
		//'checkScript': 'uploadify/check.php',
		'cancelImg' : 'uploadify/cancel.png',
		'buttonImage'	: '../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);
       }
	});
	
	$('#file_docactu').uploadify({
		'uploader'  : 'uploadify/uploadify.swf',
		'script'    : '../uploadify/uploadify.php',
		//'checkScript': 'uploadify/check.php',
		'cancelImg' : 'uploadify/cancel.png',
		'buttonImage'	: '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("");
		}
	});
	*/
	
});

Zerion Mini Shell 1.0