if ($statut_room[$id_room[$i]] == "0") { echo 'class="avertissement" '; } $a = $a + 1; echo '><a id="afficherBoutonSelection' . $a . '" class="lienPlanning" href="#" onclick="afficherMoisSemaine(' . $a . ')" style="display:inline;">' . htmlspecialchars($row['0']) . '</a>' . PHP_EOL; echo '<a id="cacherBoutonSelection' . $a . '" class="lienPlanning" href="#" onclick="cacherMoisSemaine(' . $a . ')" style="display:none;">' . htmlspecialchars($row['0']) . '</a>' . PHP_EOL; if (htmlspecialchars($row['3']) . $temp != '') { if (htmlspecialchars($row['3']) != '') { $saut = '<br />'; } else { $saut = ''; } echo $saut . htmlspecialchars($row['3']) . $temp . "\n"; } echo '<br />'; if (verif_display_fiche_ressource(getUserName(), $id_room[$i]) && $_GET['pview'] != 1) { echo '<a href="javascript:centrerpopup(\'view_room.php?id_room=' . $id_room[$i] . '\',600,480,"scrollbars=yes,statusbar=no,resizable=yes")" title="' . get_vocab("fiche_ressource") . '\\"> <span class="glyphcolor glyphicon glyphicon-search"></span></a>' . PHP_EOL; } if (authGetUserLevel(getUserName(), $id_room[$i]) > 2 && $_GET['pview'] != 1) { echo '<a href="./admin/admin_edit_room.php?room=' . $id_room[$i] . '"><span class="glyphcolor glyphicon glyphicon-cog"></span></a><br/>' . PHP_EOL; } affiche_ressource_empruntee($id_room[$i]); echo '<span id="boutonSelection' . $a . '" style="display:none;">' . PHP_EOL; echo '<input type="button" class="btn btn-default btn-xs" title="' . htmlspecialchars(get_vocab("see_week_for_this_room")) . '" onclick="charger();javascript: location.href=\'week.php?year=' . $year . '&month=' . $month . '&cher=' . $day . '&room=' . $id_room[$i] . '\';" value="' . get_vocab('week') . '"/>' . PHP_EOL; echo '<input type="button" class="btn btn-default btn-xs" title="' . htmlspecialchars(get_vocab("see_month_for_this_room")) . '" onclick="charger();javascript: location.href=\'month.php?year=' . $year . '&month=' . $month . '&day=' . $day . '&room=' . $id_room[$i] . '\';" value="' . get_vocab('month') . '"/>' . PHP_EOL; echo '</span>' . PHP_EOL; echo '</th>' . PHP_EOL; if (htmlspecialchars($row['3']) . $temp != '') { if (htmlspecialchars($row['3']) != '') { $saut = '<br />';
// Calcul du niveau d'accès aux fiche de réservation détaillées des ressources $acces_fiche_reservation = verif_acces_fiche_reservation(getUserName(), $row[2]); // calcul du test si l'utilisateur a la possibilité d'effectuer une réservation, compte tenu // des limitations éventuelles de la ressources et du nombre de réservations déjà effectuées. $UserRoomMaxBooking = UserRoomMaxBooking(getUserName(), $row[2], 1); // calcul du niverau de droit de réservation $authGetUserLevel = authGetUserLevel(getUserName(),-1); // Determine si un visiteur peut réserver une ressource $auth_visiteur = auth_visiteur(getUserName(),$row[2]); // Affichage de la première colonne (nom des ressources) echo "<tr>\n"; echo tdcell("cell_hours")."<a title=\"".grr_htmlSpecialChars(get_vocab("see_week_for_this_room"))."\" href='week.php?year=".$year."&month=".$month."&day=".$day."&area=".$area."&room=".$row[2]."'>" . grr_htmlSpecialChars($row[0]) ."</a><br />\n"; if ($row[4]=="0") echo "<span class=\"texte_ress_tempo_indispo\">".get_vocab("ressource_temporairement_indisponible")."</span><br />"; // Ressource temporairement indisponible if (verif_display_fiche_ressource(getUserName(), $row[2]) and $_GET['pview'] != 1) echo "<a href='javascript:centrerpopup(\"view_room.php?id_room=$row[2]\",600,480,\"scrollbars=yes,statusbar=no,resizable=yes\")' title=\"".get_vocab("fiche_ressource")."\"> <img src=\"img_grr/details.png\" alt=\"Détails\" class=\"".$class_image."\" /></a>"; if (authGetUserLevel(getUserName(),$row[2]) > 2 and $_GET['pview'] != 1) echo "<a href='admin_edit_room.php?room=$row[2]'><img src=\"img_grr/editor.png\" alt=\"configuration\" title=\"".get_vocab("Configurer la ressource")."\" width=\"30\" height=\"30\" class=\"".$class_image."\" /></a>"; // La ressource est-elle empruntée ? affiche_ressource_empruntee($row[2]); echo "</td>"; $li++; $t = $time; $t2 = $time; $num_week_day = $weekstarts; // Pour le calcul des jours à afficher for ($k = 0; $k<=6; $k++)
if ($enable_periods == 'y') { $tplArray['rooms'][$incrementRoomAccessible]['period'] = true; $tplArray['rooms'][$incrementRoomAccessible]['linkToResa'] = 'edit_entry.php?room=' . $row['2'] . '&period=' . $time_t_stripped . '&year=' . $year . '&month=' . $month . '&day=' . $day . '&page=day'; //echo '<a href="" title="'.get_vocab('cliquez_pour_effectuer_une_reservation').'" ><span class="glyphicon glyphicon-plus"></span></a>'.PHP_EOL; } else { $tplArray['rooms'][$incrementRoomAccessible]['period'] = false; $tplArray['rooms'][$incrementRoomAccessible]['linkToResa'] = 'edit_entry.php?room=' . $row['2'] . '&year=' . $year . '&month=' . $month . '&day=' . $day . '&page=day'; //echo '<a href="edit_entry.php?room='.$room.'&hour='.$hour.'&minute='.$minute.'&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; } if ($row['4'] == '0') { $tplArray['rooms'][$incrementRoomAccessible]['resaIndispo'] = true; //echo '<span class="texte_ress_tempo_indispo">'.get_vocab('ressource_temporairement_indisponible').'</span><br />'.PHP_EOL; } else { $tplArray['rooms'][$incrementRoomAccessible]['resaIndispo'] = false; } if (verif_display_fiche_ressource(getUserName(), $row['2']) && $_GET['pview'] != 1) { $tplArray['rooms'][$incrementRoomAccessible]['accessToFiche'] = true; /*echo '<a href="javascript:centrerpopup(\'view_room.php?id_room='.$row['2'].'\',600,480,\'scrollbars=yes,statusbar=no,resizable=yes\')" title="'.get_vocab('fiche_ressource').'">'.PHP_EOL; echo '<span class="glyphcolor glyphicon glyphicon-search"></span></a>'.PHP_EOL;*/ } else { $tplArray['rooms'][$incrementRoomAccessible]['accessToFiche'] = false; } if (authGetUserLevel(getUserName(), $row['2']) > 2 && $_GET['pview'] != 1) { $tplArray['rooms'][$incrementRoomAccessible]['adminAccess'] = true; /*echo '<a href="./admin/admin_edit_room.php?room='.$row['2'].'"><span class="glyphcolor glyphicon glyphicon-cog"></span></a>'.PHP_EOL;*/ } else { $tplArray['rooms'][$incrementRoomAccessible]['adminAccess'] = false; } $tplArray['rooms'][$incrementRoomAccessible]['afficheRessourceEmprunte'] = affiche_ressource_empruntee($row['2']); //echo '</td>'.PHP_EOL; /**
echo "<a href='javascript:centrerpopup(\"view_room.php?id_room=$id_room[$i]\",600,480,\"scrollbars=yes,statusbar=no,resizable=yes\")' title=\"".get_vocab("fiche_ressource")."\"> <img src=\"img_grr/details.png\" alt=\"détails\" class=\"".$class_image."\" /></a>"; if (authGetUserLevel(getUserName(),$id_room[$i]) > 2 and $_GET['pview'] != 1) echo "<a href='admin_edit_room.php?room=$id_room[$i]'><img src=\"img_grr/editor.png\" alt=\"configuration\" title=\"".get_vocab("Configurer la ressource")."\" width=\"30\" height=\"30\" class=\"".$class_image."\" /></a>"; // La ressource est-elle empruntée ? affiche_ressource_empruntee($id_room[$i]); echo "</th>"; // stockage de la première ligne : $tab[1][$i+1] = grr_htmlSpecialChars($row[0]); if (grr_htmlSpecialChars($row[3]. $temp != '')) { if (grr_htmlSpecialChars($row[3] != '')) $saut = "<br />"; else $saut = ""; $tab[1][$i+1] .="<br />-".$saut."<i><span class =\"small\">". grr_htmlSpecialChars($row[3]) . $temp."\n</span></i>"; } $tab[1][$i+1] .= "<br />"; if (verif_display_fiche_ressource(getUserName(), $id_room[$i])) $tab[1][$i+1] .= "<a href='javascript:centrerpopup(\"view_room.php?id_room=$id_room[$i]\",600,480,\"scrollbars=yes,statusbar=no,resizable=yes\")' title=\"".get_vocab("fiche_ressource")."\"> <img src=\"img_grr/details.png\" alt=\"détails\" class=\"".$class_image."\" /></a>"; if (authGetUserLevel(getUserName(),$id_room[$i]) > 2 and $_GET['pview'] != 1) $tab[1][$i+1] .= "<a href='admin_edit_room.php?room=$id_room[$i]'><img src=\"img_grr/editor.png\" alt=\"configuration\" title=\"".get_vocab("Configurer la ressource")."\" width=\"30\" height=\"30\" class=\"".$class_image."\" /></a>"; // fin stockage de la première ligne : $rooms[] = $row[2]; $delais_option_reservation[$row[2]] = $row[6]; } } if (count($rooms)==0) { echo "<br /><h1>".get_vocab("droits_insuffisants_pour_voir_ressources")."</h1><br />"; include "include/trailer.inc.php"; exit;