<?php
// Calendrier
// voir http://api.jqueryui.com/datepicker/
// gérer Emploi du temps avec beforeshowdays, et onselect pour les créneaux
echo '<script>
	$( function() {
	$( ".datepick, .dateprint" ).datepicker({';
		$verif = mysqli_query($bdd,"SELECT * FROM ".$prefix."_hordemis");
		while($verif_info = mysqli_fetch_assoc($verif)) {
			if($verif_info['id']==6||$verif_info['id']==7||$verif_info['id']==13||$verif_info['id']==14) {
				if($verif_info['statut']==0) { $nowe = 1; }
				else { $nowe = 0; break; }
			}
		}
		if($nowe==1) {
			echo 'beforeShowDay: $.datepicker.noWeekends, ';
		}
		echo 'minDate: "0", 
		maxDate: "+30"
	});
	$( ".datepick" ).datepicker();
	} );

</script>';
?>
