Example #1
0
// Si format imprimable ($_GET['pview'] = 1), on n'affiche pas cette partie
if ($_GET['pview'] != 1) {
    # Table with areas, rooms, minicals.
    echo "\n<table width=\"100%\" cellspacing=\"15\"><tr>\n";
    $this_area_name = "";

    if (isset($_SESSION['default_list_type']) or (getSettingValue("authentification_obli")==1)) {
        $area_list_format = $_SESSION['default_list_type'];
    } else {
        $area_list_format = getSettingValue("area_list_format");
    }
    # Sélection des sites, domaines et ressources
    if ($area_list_format != "list") {
        # Sélection sous la forme de listes déroulantes
        echo "<td>\n";
        echo make_site_select_html('week_all.php',$id_site,$year,$month,$day,getUserName());
        echo make_area_select_html('week_all.php',$id_site, $area, $year, $month, $day, getUserName()); # from functions.inc.php
        echo make_room_select_html('week', $area, $room, $year, $month, $day);
        echo "</td>\n";
    } else {
        # Sélection sous la forme de listes
        echo "<td>\n";
        echo make_site_list_html('week_all.php',$id_site,$year,$month,$day,getUserName());
        echo "</td><td>";
        echo make_area_list_html('week_all.php',$id_site, $area, $year, $month, $day, getUserName()); # from functions.inc.php
        echo "</td>\n<td>\n";
        make_room_list_html('week.php', $area, $room, $year, $month, $day);
        echo "</td>\n\n";
    }

    #Draw the three month calendars
Example #2
0
File: year.php Project: Birssan/GRR
    $morningstarts = 12;
    $eveningends = 12;
    $eveningends_minutes = count($periods_name) - 1;
}
// Si format imprimable ($_GET['pview'] = 1), on n'affiche pas cette partie
if ($_GET['pview'] != 1) {
    echo "<table width=\"100%\" cellspacing=\"15\" border=\"0\"><tr>";
    if (isset($_SESSION['default_list_type']) || Settings::get("authentification_obli") == 1) {
        $area_list_format = $_SESSION['default_list_type'];
    } else {
        $area_list_format = Settings::get("area_list_format");
    }
    //show either a select box or the normal html list
    if ($area_list_format != "list") {
        echo "<td>\n";
        echo make_site_select_html('year.php', $id_site, $from_year, $from_month, $day, getUserName());
        echo make_area_select_html('year.php', $id_site, $area, $from_year, $from_month, $day, getUserName());
        echo "</td>\n";
    } else {
        echo "<td>\n";
        echo make_site_list_html('year.php', $id_site, $from_year, $from_month, $day, getUserName());
        echo "</td><td>";
        echo make_area_list_html('year.php', $id_site, $area, $from_year, $from_month, $day, getUserName());
        echo "</td>\n";
    }
    echo "\n<td><form method=\"get\" action=\"year.php\">";
    echo "<table border=\"0\">\n";
    echo "<tr><td>" . get_vocab("report_start") . get_vocab("deux_points") . "</td>";
    echo "<td>";
    echo genDateSelector("from_", "", $from_month, $from_year, "");
    echo "</td></tr>";
Example #3
0
// Si format imprimable ($_GET['pview'] = 1), on n'affiche pas cette partie
if ($_GET['pview'] != 1) {
    #Table avec areas, rooms, minicals.
    echo "<table width=\"100%\" cellspacing=\"15\"><tr>";
    $this_area_name = "";
    $this_room_name = "";
    if (isset($_SESSION['default_list_type']) or (getSettingValue("authentification_obli")==1))
        $area_list_format = $_SESSION['default_list_type'];
    else
        $area_list_format = getSettingValue("area_list_format");

    # Sélection des sites, domaines et ressources
    if ($area_list_format != "list") {
        # Sélection sous la forme de listes déroulantes
        echo "<td>\n";
        echo make_site_select_html($type_month_all.'.php',$id_site,$year,$month,$day,getUserName());
        echo make_area_select_html($type_month_all.'.php',$id_site, $area, $year, $month, $day, getUserName());
        echo make_room_select_html('month',$area, $room, $year, $month, $day);
        echo "</td>\n";
    } else {
        # Sélection sous la forme de listes
        echo "<td>\n";
        echo make_site_list_html($type_month_all.'.php',$id_site,$year,$month,$day,getUserName());
        echo "</td><td>";
        echo make_area_list_html($type_month_all.'.php',$id_site, $area, $year, $month, $day, getUserName());
        echo "</td>\n<td>\n";
        make_room_list_html('month.php', $area, $room, $year, $month, $day);
        echo "</td>\n\n";
    }

    #Affiche le calendrier des mois