Example #1
0
File: day.php Project: swirly/GRR
                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 . '&amp;month=' . $month . '&amp;cher=' . $day . '&amp;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 . '&amp;month=' . $month . '&amp;day=' . $day . '&amp;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 />';
                } else {
                    $saut = '';
                }
            }
            $rooms[] = $row['2'];
            $delais_option_reservation[$row['2']] = $row['6'];
        }
Example #2
0
     $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;
 /**
  * Fin de la colonne qui affiche les rooms
  */
 $li++;
 $t = $time;
 $t2 = $time;
 $num_week_day = $weekstarts;
 for ($k = 0; $k <= 6; ++$k) {
     /* un tour de boucle par jour de la semaine, une colonne par jour */
     //$tplArray['rooms'][$incrementRoomAccessible]['jours'][$k]['index'] = "jour - ".$k;
     $cday = date('j', $t2);
     $cmonth = strftime('%m', $t2);
     $cyear = strftime('%Y', $t2);
     $t2 += 86400;
Example #3
0
    include "include/trailer.inc.php";
    echo '</td>' . PHP_EOL;
    echo '<td class="right">' . PHP_EOL;
    echo '<button class="btn btn-default btn-xs" onclick="charger();javascript: location.href=\'month.php?year=' . $ty . '&amp;month=' . $tm . '&amp;room=' . $room . '\';"> ' . get_vocab('monthafter') . '  <span class="glyphicon glyphicon-forward"></span></button>' . PHP_EOL;
    echo '</td>' . PHP_EOL;
    echo '</tr>' . PHP_EOL;
    echo '</table>' . PHP_EOL;
}
echo '<h4 class="titre"> ' . ucfirst($this_area_name) . ' - ' . $this_room_name . ' ' . $this_room_name_des . '<br>' . ucfirst(utf8_strftime("%B %Y", $month_start)) . '</h4>' . PHP_EOL;
if (verif_display_fiche_ressource(getUserName(), $room) && $_GET['pview'] != 1) {
    echo '<a href="javascript:centrerpopup(\'view_room.php?id_room=', $room, '\',600,480,\'scrollbars=yes,statusbar=no,resizable=yes\')" title="', get_vocab("fiche_ressource"), '"><span class="glyphcolor glyphicon glyphicon-search"></span></a>';
}
if (authGetUserLevel(getUserName(), $room) > 2 && $_GET['pview'] != 1) {
    echo "<a href='./admin/admin_edit_room.php?room={$room}'><span class=\"glyphcolor glyphicon glyphicon-cog\"></span></a>";
}
affiche_ressource_empruntee($room);
if ($this_statut_room == "0") {
    echo '<br><span class="texte_ress_tempo_indispo">', get_vocab("ressource_temporairement_indisponible"), '</span>';
}
if ($this_moderate_room == "1") {
    echo '<br><span class="texte_ress_moderee">', get_vocab("reservations_moderees"), '</span>';
}
echo '</div>', PHP_EOL;
if (isset($_GET['precedent'])) {
    if ($_GET['pview'] == 1 && $_GET['precedent'] == 1) {
        echo '<span id="lienPrecedent">', PHP_EOL, '<button class="btn btn-default btn-xs" onclick="charger();javascript:history.back();">Précedent</button>', PHP_EOL, '</span>', PHP_EOL;
    }
}
if ($this_area_show_comment == "y" && $_GET['pview'] != 1 && $this_area_comment != "" && $this_area_comment != -1) {
    echo '<div style="text-align:center;">', $this_area_comment, '</div>', PHP_EOL;
}
Example #4
0
     echo tdcell("cell_hours");
 } else {
     echo tdcell("cell_hours2");
 }
 echo '<a title="' . htmlspecialchars(get_vocab("see_week_for_this_room")) . '" href="week.php?year=' . $year . '&amp;month=' . $month . '&amp;day=' . $day . '&amp;area=' . $area . '&amp;room=' . $row['2'] . '">' . htmlspecialchars($row[0]) . '</a><br />' . PHP_EOL;
 if ($row['4'] == "0") {
     echo '<span class="texte_ress_tempo_indispo">' . get_vocab("ressource_temporairement_indisponible") . '</span><br />' . PHP_EOL;
 }
 if (verif_display_fiche_ressource(getUserName(), $row['2']) && $_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") . '">' . PHP_EOL;
     echo '<span class="glyphcolor glyphicon glyphicon-search"></span></a>' . PHP_EOL;
 }
 if (authGetUserLevel(getUserName(), $row['2']) > 2 && $_GET['pview'] != 1) {
     echo '<a href="./admin/admin_edit_room.php?room=' . $row['2'] . '"><span class="glyphcolor glyphicon glyphicon-cog"></span></a>' . PHP_EOL;
 }
 affiche_ressource_empruntee($row['2']);
 echo '</td>' . PHP_EOL;
 $li++;
 $t = $time;
 $t2 = $time;
 $num_week_day = $weekstarts;
 for ($k = 0; $k <= 6; $k++) {
     $cday = date("j", $t2);
     $cmonth = strftime("%m", $t2);
     $cyear = strftime("%Y", $t2);
     $t2 += 86400;
     if (!isset($correct_heure_ete_hiver) || $correct_heure_ete_hiver == 1) {
         $temp_day = strftime("%d", $t2);
         $temp_month = strftime("%m", $t2);
         $temp_year = strftime("%Y", $t2);
         if (heure_ete_hiver("hiver", $temp_year, 0) == mktime(0, 0, 0, $temp_month, $temp_day, $temp_year)) {
Example #5
0
    echo "<label for=\"description\">" . get_vocab("justifier_decision_moderation") . get_vocab("deux_points") . "</label>\n";
    echo "<textarea class=\"form-control\" name=\"description\" id=\"description\" cols=\"40\" rows=\"3\"></textarea>";
    echo "</p>";
    echo "<br /><div style=\"text-align:center;\"><input class=\"btn btn-primary\" type=\"submit\" name=\"commit\" value=\"" . get_vocab("save") . "\" /></div>\n";
    echo "</fieldset></form>\n";
}
if ($active_ressource_empruntee == 'y') {
    if (!$was_del && $moderate != 1 && getUserName() != '' && authGetUserLevel(getUserName(), $room_id) >= 3) {
        echo "<form action=\"view_entry.php\" method=\"get\">";
        echo "<fieldset><legend style=\"font-weight:bold\">" . get_vocab("reservation_en_cours") . "</legend>\n";
        echo "<span class=\"larger\">" . get_vocab("signaler_reservation_en_cours") . "</span>" . get_vocab("deux_points");
        echo "<br />" . get_vocab("explications_signaler_reservation_en_cours");
        affiche_ressource_empruntee($room_id, "texte");
        echo "<br /><input type=\"radio\" name=\"statut_id\" value=\"-\" ";
        if ($statut_id == '-') {
            if (!affiche_ressource_empruntee($room_id, "autre") == 'yes') {
                echo " checked=\"checked\" ";
            }
        }
        echo " />" . get_vocab("signaler_reservation_en_cours_option_0");
        echo "<br /><br /><input type=\"radio\" name=\"statut_id\" value=\"y\" ";
        if ($statut_id == 'y') {
            echo " checked=\"checked\" ";
        }
        echo " />" . get_vocab("signaler_reservation_en_cours_option_1");
        echo "<br /><br /><input type=\"radio\" name=\"statut_id\" value=\"e\" ";
        if ($statut_id == 'e') {
            echo " checked=\"checked\" ";
        }
        if (!(Settings::get("automatic_mail") == 'yes') || $mail_exist == "") {
            echo " disabled ";