File "organiseur-rv.html"

Full path: /home/argothem/www/v4_old/fichiers_obsoletes_20220627_043105/plugins-dist/organiseur/prive/squelettes/inclure/organiseur-rv.html
File size: 1.48 KB
MIME-type: text/html
Charset: utf-8

<div id="loading" style="position:absolute;top:20px;left:350px;padding:5px 30px;display:none;border:1px solid #ddd;background:#eee;z-index:100;"><:organiseur:loading:></div>
<div id="calendrier"></div>
<link rel='stylesheet' type='text/css' href='#CHEMIN{lib/fullcalendar/fullcalendar.min.css}' />
<link rel='stylesheet' type='text/css' href='#CHEMIN{calendrier.css}' />
<script type='text/javascript' src='#CHEMIN{lib/moment/moment-with-locales.min.js}'></script>
<script type='text/javascript' src='#CHEMIN{lib/fullcalendar/fullcalendar.min.js}'></script>
<script type='text/javascript' src='#CHEMIN{lib/fullcalendar/locale-all.js}'></script>
<script type="text/javascript">
jQuery(function($) {

	// page is now ready, initialize the calendar...
	$('#calendrier').fullCalendar({
		locale: '[(#LANG|strtolower)]',
		editable: false,
		events: "[(#URL_ACTION_AUTEUR{quete_calendrier_prive,calendrier}|parametre_url{quoi,rv,&})]",
		header: {
			left: 'prev,next today',
			center: 'title',
			right: 'month,agendaWeek,agendaDay'
		},
		loading: function(bool) {
			if (bool) $('#loading').show();
			else $('#loading').hide();
		},
		dayClick: function(date, jsEvent, view) {
			if (view.name == 'month') {
				$('.fc-agendaWeek-button').click();
				$('#calendrier').fullCalendar( 'gotoDate', date );
			} else if (view.name == 'agendaWeek') {
				$('.fc-agendaDay-button').click();
				$('#calendrier').fullCalendar( 'gotoDate', date );
			}
		},
		isRTL : [(#LANG_DIR|=={rtl}|?{true,false})]
	})

});
</script>