$c = "avertissement"; } else { $c = "empty_cell"; } } if (isset($id) && !est_hors_reservation(mktime(0, 0, 0, $month, $day, $year), $area)) { if ($compteur[$id] == 0) { if ($cellules[$id] != 1) { if (isset($today[$room][$t + ($cellules[$id] - 1) * $resolution]["id"])) { $id_derniere_ligne_du_bloc = $today[$room][$t + ($cellules[$id] - 1) * $resolution]["id"]; if ($id_derniere_ligne_du_bloc != $id) { $cellules[$id] = $cellules[$id] - 1; } } } tdcell_rowspan($c, $cellules[$id]); } $compteur[$id] = 1; } else { tdcell($c); } if (!isset($id) || est_hors_reservation(mktime(0, 0, 0, $month, $day, $year), $area)) { $hour = date("H", $t); $minute = date("i", $t); $date_booking = mktime($hour, $minute, 0, $month, $day, $year); if (est_hors_reservation(mktime(0, 0, 0, $month, $day, $year), $area)) { echo '<img src="img_grr/stop.png" alt="' . get_vocab("reservation_impossible") . '" title="' . get_vocab("reservation_impossible") . '" width="16" height="16" class="' . $class_image . '" />' . PHP_EOL; } else { if ((authGetUserLevel(getUserName(), -1) > 1 || auth_visiteur(getUserName(), $room) == 1) && UserRoomMaxBooking(getUserName(), $room, 1) != 0 && verif_booking_date(getUserName(), -1, $room, $date_booking, $date_now, $enable_periods) && verif_delais_max_resa_room(getUserName(), $room, $date_booking) && verif_delais_min_resa_room(getUserName(), $room, $date_booking) && ($statut_room[$room] == "1" || $statut_room[$room] == "0" && authGetUserLevel(getUserName(), $room) > 2) && $_GET['pview'] != 1) { if ($enable_periods == 'y') { echo '<a href="edit_entry.php?room=' . $room . '&period=' . $time_t_stripped . '&year=' . $year . '&month=' . $month . '&day=' . $day . '&page=day" title="' . get_vocab("cliquez_pour_effectuer_une_reservation") . '" ><span class="glyphicon glyphicon-plus"></span></a>' . PHP_EOL;
} else { echo " "; } } } else { if (est_hors_reservation(mktime(0, 0, 0, $wmonth, $wday, $wyear), $area)) { echo tdcell($empty_color) . "<img src=\"img_grr/stop.png\" alt=\"" . get_vocab("reservation_impossible") . "\" title=\"" . get_vocab("reservation_impossible") . "\" width=\"16\" height=\"16\" class=\"" . $class_image . "\" />"; } else { if (isset($d[$weekday][$slot - $decale_slot * $nb_case]["id"])) { if ($enable_periods == 'y') { // Nb de case pour crénau $nbrow = ($d[$weekday][$slot - $decale_slot * $nb_case]['horaireFin'] - $d[$weekday][$slot - $decale_slot * $nb_case]['horaireDebut']) / 60; } else { $nbrow = $d[$weekday][$slot - $decale_slot * $nb_case]["duree"]; } tdcell_rowspan($d[$weekday][$slot - $decale_slot * $nb_case]["color"], $nbrow); if ($acces_fiche_reservation) { if (Settings::get("display_level_view_entry") == 0) { $currentPage = 'week'; $id = $d[$weekday][$slot - $decale_slot * $nb_case]["id"]; echo "<a title=\"" . htmlspecialchars($d[$weekday][$slot - $decale_slot * $nb_case]["who"]) . "\" data-width=\"675\" onclick=\"request({$id},{$wday},{$wmonth},{$wyear},'{$currentPage}',readData);\" data-rel=\"popup_name\" class=\"poplight\">"; } else { echo "<a class=\"lienCellule\" title=\"" . htmlspecialchars($d[$weekday][$slot - $decale_slot * $nb_case]["who"]) . "\" href=\"view_entry.php?id=" . $d[$weekday][$slot - $decale_slot * $nb_case]["id"] . "&day={$wday}&month={$wmonth}&year={$wyear}&page=week\">"; } } echo $d[$weekday][$slot - $decale_slot * $nb_case]["data"] . ""; $Son_GenreRepeat = grr_sql_query1("SELECT type_name FROM " . TABLE_PREFIX . "_type_area ," . TABLE_PREFIX . "_entry WHERE " . TABLE_PREFIX . "_entry.id= " . $d[$weekday][$slot - $decale_slot * $nb_case]['id'] . " AND " . TABLE_PREFIX . "_entry.type= " . TABLE_PREFIX . "_type_area.type_letter"); if ($Son_GenreRepeat != -1) { if ($enable_periods != 'y') { echo "<br />" . date('H:i', $d[$weekday][$slot - $decale_slot * $nb_case]["horaireDebut"]) . get_vocab("to") . date('H:i', $d[$weekday][$slot - $decale_slot * $nb_case]["horaireFin"]) . ""; }