if (date('H', $t) == '01') { $t -= 3600; } } if ($display_day[$num_week_day] == 1) { $class = ''; $title = ''; if (Settings::get('show_holidays') == 'Oui') { $ferie_true = 0; foreach ($ferie as $key => $value) { if ($tt == $value) { $ferie_true = 1; break; } } $sh = getSchoolHolidays($tt, $temp_year); if ($sh[0] == true) { $tplArray['jours'][$weekcol]['vacances'] = true; $tplArray['jours'][$weekcol]['vacancesTitle'] = $sh[1]; $class .= 'vacance '; $title = ' ' . $sh[1]; } if ($ferie_true) { $tplArray['jours'][$weekcol]['ferie'] = true; $class .= 'ferie '; } } //echo '<th class="jour_sem">'.PHP_EOL; //echo '<a class="lienPlanning '.$class.'" href="day.php?year='.$temp_year.'&month='.$temp_month.'&day='.$num_day.'&area='.$area.'" title="'.$title.'">'.day_name(($weekcol + $weekstarts) % 7).' '.$num_day.' '.$temp_month2.'</a>'.PHP_EOL; $tplArray['jours'][$weekcol]['numDay'] = $num_day; $tplArray['jours'][$weekcol]['linkHref'] = 'day.php?year=' . $temp_year . '&month=' . $temp_month . '&day=' . $num_day . '&area=' . $area;
echo '<div id="print_planning">' . PHP_EOL; } include "chargement.php"; $ferie_true = 0; $class = ""; $title = ""; if ($settings->get("show_holidays") == "Oui") { $ferie = getHolidays($year); $tt = mktime(0, 0, 0, $month, $day, $year); foreach ($ferie as $key => $value) { if ($tt == $value) { $ferie_true = 1; break; } } $sh = getSchoolHolidays($tt, $year); if ($sh['0'] == true) { $class .= "vacance "; $title = " " . $sh['1']; } if ($ferie_true) { $class .= "ferie "; } } echo '<div class="titre_planning ' . $class . '">' . PHP_EOL; if (!isset($_GET['pview']) || $_GET['pview'] != 1) { echo '<table class="table-header">', PHP_EOL, '<tr>', PHP_EOL, '<td class="left">', PHP_EOL, '<button class="btn btn-default btn-xs" onclick="charger();javascript: location.href=\'day.php?year=' . $yy . '&month=' . $ym . '&day=' . $yd . '&area=' . $area . '\';"> <span class="glyphicon glyphicon-backward"></span> ', get_vocab("daybefore"), '</button>', PHP_EOL, '</td>', PHP_EOL, '<td>', PHP_EOL; include "include/trailer.inc.php"; echo '</td>', PHP_EOL, '<td class="right">', PHP_EOL, '<button class="btn btn-default btn-xs" onclick="charger();javascript: location.href=\'day.php?year=' . $ty . '&month=' . $tm . '&day=' . $td . '&area=' . $area . '\';"> ' . get_vocab('dayafter') . ' <span class="glyphicon glyphicon-forward"></span></button>', PHP_EOL, '</td>', PHP_EOL, '</tr>', PHP_EOL, '</table>', PHP_EOL; } echo '<h4 class="titre">' . ucfirst($this_area_name) . ' - ' . get_vocab("all_areas");
$month_actuel = strftime("%m", $t); $year_actuel = date("Y", $t); $tt = mktime(0, 0, 0, $month_actuel, $num_day, $year_actuel); $jour_cycle = grr_sql_query1("SELECT Jours FROM " . TABLE_PREFIX . "_calendrier_jours_cycle WHERE DAY='{$i}'"); if ($display_day[$num_week_day] == 1) { $class = ""; $title = ""; if (Settings::get("show_holidays") == "Oui") { $ferie_true = 0; foreach ($ferie as $key => $value) { if ($tt == $value) { $ferie_true = 1; break; } } $sh = getSchoolHolidays($tt, $year_actuel); if ($sh[0] == true) { $class .= "vacance "; $title = " " . $sh[1]; } if ($ferie_true) { $class .= "ferie "; } } echo "<th style=\"width:14%;\"><a onclick=\"charger()\" class=\"lienPlanning " . $class . "\" title=\"" . $title . htmlspecialchars(get_vocab("see_all_the_rooms_for_the_day")) . "\" href=\"day.php?year={$year_actuel}&month={$month_actuel}&day={$num_day}&area={$area}\">" . utf8_strftime($dformat, $t) . "</a>"; if (Settings::get("jours_cycles_actif") == "Oui" && intval($jour_cycle) > -1) { if (intval($jour_cycle) > 0) { echo "<br />" . get_vocab("rep_type_6") . " " . $jour_cycle; } else { echo "<br />" . $jour_cycle; }