window.onload = function(){ //Calendrier Gateaux if(document.getElementById("cmd_date")) {new JsDatePick({useMode:2,target:"cmd_date",dateFormat:"%d/%m/%Y",cellColorScheme:"pink",cellColorSchemeToday:"ocean_blue",yearsRange: new Array(new Date().getFullYear()-1, new Date().getFullYear()+3),limitToFuture:true,limitToFutureOffset:3,daysClosedB:[],daysClosedE:[],});} //Calendrier Impressions if(document.getElementById("cmd_imp_date")) {new JsDatePick({useMode:2,target:"cmd_imp_date",dateFormat:"%d/%m/%Y",cellColorScheme:"pink",cellColorSchemeToday:"ocean_blue",yearsRange: new Array(new Date().getFullYear()-1, new Date().getFullYear()+3),limitToFuture:true,limitToFutureOffset:2,daysClosedB:[],daysClosedE:[],});} //Calendrier formation groupe if(document.getElementById("cmd_grp_date")) {new JsDatePick({useMode:2,target:"cmd_grp_date",dateFormat:"%d/%m/%Y",cellColorScheme:"pink",cellColorSchemeToday:"ocean_blue",yearsRange: new Array(new Date().getFullYear()-1, new Date().getFullYear()+3),limitToFuture:true,limitToFutureOffset:4,daysClosedB:[20240513,20240513,20240520,20240603,20240610,20240617,20240624,20240701,20240810,20240909,20240916,20240923,20240930,20241007,20241014,20241016,20241017,20241105,20241115,20241118],daysClosedE:[20240517,20240517,20240524,20240607,20240614,20240621,20240628,20240705,20240810,20240913,20240920,20240927,20241004,20241011,20241015,20241016,20241018,20241106,20241115,20241122],});} //Calendrier administration plugin GSM if(document.getElementById("gsm_start_date")) {new JsDatePick({useMode:2,target:"gsm_start_date",dateFormat:"%d/%m/%Y",cellColorScheme:"pink",cellColorSchemeToday:"ocean_blue",});} if(document.getElementById("gsm_end_date")) {new JsDatePick({useMode:2,target:"gsm_end_date",dateFormat:"%d/%m/%Y",cellColorScheme:"pink",cellColorSchemeToday:"ocean_blue",});}};