if ($row['4'] == 1) { echo '<td class="empty_cell">'.PHP_EOL; } else { echo '<td class="avertissement">'.PHP_EOL; } } else { echo '<div class="empty_cell">'.PHP_EOL; }*/ $hour = date('H', $date_now); $date_booking = mktime(24, 0, 0, $cmonth, $cday, $cyear); if (est_hors_reservation(mktime(0, 0, 0, $cmonth, $cday, $cyear), $area)) { $tplArray['rooms'][$incrementRoomAccessible]['jours'][$k]['horsReservation'] = true; //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 { $tplArray['rooms'][$incrementRoomAccessible]['jours'][$k]['horsReservation'] = false; if (($authGetUserLevel > 1 || $auth_visiteur == 1) && $UserRoomMaxBooking != 0 && verif_booking_date(getUserName(), -1, $row['2'], $date_booking, $date_now, $enable_periods) && verif_delais_max_resa_room(getUserName(), $row['2'], $date_booking) && verif_delais_min_resa_room(getUserName(), $row['2'], $date_booking) && plages_libre_semaine_ressource($row['2'], $cmonth, $cday, $cyear) && ($row['4'] == '1' || $row['4'] == '0' && authGetUserLevel(getUserName(), $row['2']) > 2) && $_GET['pview'] != 1) { if ($enable_periods == 'y') { //echo '<a href="edit_entry.php?room=',$row['2'],'&period=&year=',$cyear,'&month=',$cmonth,'&day=',$cday,'&page=week_all" title="',get_vocab('cliquez_pour_effectuer_une_reservation'),'"><span class="glyphicon glyphicon-plus"></span></a>',PHP_EOL; $tplArray['rooms'][$incrementRoomAccessible]['jours'][$k]['editEntryLink'] = 'edit_entry.php?room=' . $row['2'] . '&period=&year=' . $cyear . '&month=' . $cmonth . '&day=' . $cday . '&page=week_all'; } else { //echo '<a href="edit_entry.php?room=',$row['2'],'&hour=',$hour,'&minute=0&year=',$cyear,'&month=',$cmonth,'&day=',$cday,'&page=week_all" title="',get_vocab('cliquez_pour_effectuer_une_reservation'),'"><span class="glyphicon glyphicon-plus"></span></a>',PHP_EOL; $tplArray['rooms'][$incrementRoomAccessible]['jours'][$k]['editEntryLink'] = 'edit_entry.php?room=' . $row['2'] . '&hour=' . $hour . '&minute=0&year=' . $cyear . '&month=' . $cmonth . '&day=' . $cday . '&page=week_all'; } } else { $tplArray['rooms'][$incrementRoomAccessible]['jours'][$k]['editEntryLink'] = false; //echo ' '.PHP_EOL; } } /*if (!$no_td) { echo '</div>'.PHP_EOL; }
echo $d[$cday]["who1"][$i], '<br/>'; $Son_GenreRepeat = grr_sql_query1("SELECT type_name FROM " . TABLE_PREFIX . "_type_area ," . TABLE_PREFIX . "_entry WHERE " . TABLE_PREFIX . "_entry.id= " . $d[$cday]["id"][$i] . " AND " . TABLE_PREFIX . "_entry.type= " . TABLE_PREFIX . "_type_area.type_letter"); echo $Son_GenreRepeat, '<br/>'; if ($d[$cday]["description"][$i] != "") { echo '<br /><i>(', $d[$cday]["description"][$i], ')</i>'; } if ($acces_fiche_reservation) { echo '</a>', PHP_EOL; } echo '</span>', PHP_EOL, '</td>', PHP_EOL, '</tr>', PHP_EOL, '</table>', PHP_EOL; } } $date_now = time(); $hour = date("H", $date_now); $date_booking = mktime(24, 0, 0, $month, $cday, $year); if (($authGetUserLevel > 1 || $auth_visiteur == 1) && $UserRoomMaxBooking != 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) && plages_libre_semaine_ressource($room, $month, $cday, $year) && ($this_statut_room == "1" || $this_statut_room == "0" && authGetUserLevel(getUserName(), $room) > 2) && $_GET['pview'] != 1) { echo '<div class="empty_cell">', PHP_EOL; if ($enable_periods == 'y') { echo '<a href="edit_entry.php?room=', $room, '&period=&year=', $year, '&month=', $month, '&day=', $cday, '&page=month" title="', get_vocab("cliquez_pour_effectuer_une_reservation"), '"><span class="glyphicon glyphicon-plus"></span></a>', PHP_EOL; } else { echo '<a href="edit_entry.php?room=', $room, '&hour=', $hour, '&minute=0&year=', $year, '&month=', $month, '&day=', $cday, '&page=month" title="', get_vocab("cliquez_pour_effectuer_une_reservation"), '"><span class="glyphicon glyphicon-plus"></span></a>', PHP_EOL; } echo '</div>' . PHP_EOL; } else { echo ' '; } } echo '</td>' . PHP_EOL; } if (++$weekcol == 7) { $weekcol = 0;
echo "<td class=\"avertissement\">"; } else echo "<div class=\"empty_cell\">"; // Possibilité de faire une nouvelle réservation $hour = date("H",$date_now); // Heure actuelle $date_booking = mktime(24, 0, 0, $cmonth, $cday, $cyear); // minuit if (est_hors_reservation(mktime(0,0,0,$cmonth,$cday,$cyear),$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."\" />"; else if ((($authGetUserLevel > 1) or ($auth_visiteur == 1)) and ($UserRoomMaxBooking != 0) and verif_booking_date(getUserName(), -1, $row[2], $date_booking, $date_now, $enable_periods) and verif_delais_max_resa_room(getUserName(), $row[2], $date_booking) and verif_delais_min_resa_room(getUserName(), $row[2], $date_booking) and plages_libre_semaine_ressource($row[2], $cmonth, $cday, $cyear) and (($row[4] == "1") or (($row[4] == "0") and (authGetUserLevel(getUserName(),$row[2]) > 2) )) and $_GET['pview'] != 1) { if ($enable_periods == 'y') echo "<a href=\"edit_entry.php?room=".$row[2]."&period=&year=$cyear&month=$cmonth&day=$cday&page=week_all\" title=\"".get_vocab("cliquez_pour_effectuer_une_reservation")."\"><img src=\"img_grr/new.png\" alt=\"".get_vocab("add")."\" class=\"".$class_image."\" /></a>"; else echo "<a href=\"edit_entry.php?room=".$row[2]."&hour=$hour&minute=0&year=$cyear&month=$cmonth&day=$cday&page=week_all\" title=\"".get_vocab("cliquez_pour_effectuer_une_reservation")."\"><img src=\"img_grr/new.png\" alt=\"".get_vocab("add")."\" class=\"".$class_image."\" /></a>"; } else { echo " "; } if (!$no_td) echo "</div>"; echo "</td>\n"; } // Fin de la condition "on n'affiche pas tous les jours de la semaine" $num_week_day++;// Pour le calcul des jours à afficher
if ($d[$cday]["description"][$i]!= "") echo "<br /><i>(".$d[$cday]["description"][$i].")</i>"; echo "</span></td></tr></table>"; } } // Possibilité de faire une nouvelle réservation $date_now=mktime(); $hour = date("H",$date_now); // Heure actuelle $date_booking = mktime(24, 0, 0, $month, $cday, $year); // minuit if ((($authGetUserLevel > 1) or ($auth_visiteur == 1)) and ($UserRoomMaxBooking != 0) and verif_booking_date(getUserName(), -1, $room, $date_booking, $date_now, $enable_periods) and verif_delais_max_resa_room(getUserName(), $room, $date_booking) and verif_delais_min_resa_room(getUserName(), $room, $date_booking) and plages_libre_semaine_ressource($room, $month, $cday, $year) and (($this_statut_room == "1") or (($this_statut_room == "0") and (authGetUserLevel(getUserName(),$room) > 2) )) and $_GET['pview'] != 1) { echo "<div class=\"empty_cell\">"; if ($enable_periods == 'y') echo "<a href=\"edit_entry.php?room=".$room."&period=&year=$year&month=$month&day=$cday&page=month\" title=\"".get_vocab("cliquez_pour_effectuer_une_reservation")."\"><img src=\"img_grr/new.png\" alt=\"".get_vocab("add")."\" class=\"".$class_image."\" /></a>"; else echo "<a href=\"edit_entry.php?room=".$room."&hour=$hour&minute=0&year=$year&month=$month&day=$cday&page=month\" title=\"".get_vocab("cliquez_pour_effectuer_une_reservation")."\"><img src=\"img_grr/new.png\" alt=\"".get_vocab("add")."\" class=\"".$class_image."\" /></a>"; echo "</div>"; } else { echo " "; } } echo "</td>\n"; } // fin condition "on n'affiche pas tous les jours de la semaine"