Exemplo n.º 1
0
Arquivo: year.php Projeto: Birssan/GRR
 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>";
 echo "<tr><td>" . get_vocab("report_end") . get_vocab("deux_points");
 echo "</td><td>\n";
 echo genDateSelector("to_", "", $to_month, $to_year, "");
 echo "</td></tr>\n";
 echo "<tr><td>\n";
 echo "<input type=\"hidden\" name=\"area\" value=\"{$area}\" />\n";
 echo "<input type=\"submit\" name=\"valider\" value=\"" . $vocab["goto"] . "\" /></td><td> </td></tr>\n";
Exemplo n.º 2
0
        $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
    minicals($year, $month, $day, $area, $room, 'month');
    echo "</tr></table>\n";
}
$this_area_name = grr_sql_query1("select area_name from ".TABLE_PREFIX."_area where id=$area");
$this_room_name = grr_sql_query1("select room_name from ".TABLE_PREFIX."_room where id=$room");
$this_room_name_des = grr_sql_query1("select description from ".TABLE_PREFIX."_room where id=$room");
$this_statut_room = grr_sql_query1("select statut_room from ".TABLE_PREFIX."_room where id=$room");
$this_moderate_room = grr_sql_query1("select moderate from ".TABLE_PREFIX."_room where id=$room");
$this_delais_option_reservation = grr_sql_query1("select delais_option_reservation from ".TABLE_PREFIX."_room where id=$room");
Exemplo n.º 3
0
        $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
    minicals($year, $month, $day, $area, '', 'week_all');
    echo "</tr></table>\n";
}

$this_area_name = grr_sql_query1("select area_name from ".TABLE_PREFIX."_area where id=$area");


# Show Month, Year, Area, Room header:
switch ($dateformat) {
Exemplo n.º 4
0
Arquivo: day.php Projeto: rhertzog/lcs
}

# 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('day.php',$id_site,$year,$month,$day,getUserName());
  echo make_area_select_html('day.php',$id_site,$area,$year,$month,$day,getUserName());
	echo make_room_select_html('week',$area,"",$year,$month,$day);
  echo "</td>\n";
} else {
  # Sélection sous la forme de listes
	echo "<td>\n";
  echo make_site_list_html('day.php',$id_site,$year,$month,$day,getUserName());
	echo "</td><td>";
  echo make_area_list_html('day.php',$id_site,$area,$year,$month,$day,getUserName());
	echo "</td><td>";
	make_room_list_html('week.php',$area,"",$year,$month,$day);
	echo "</td>";
}

#Affichage des calendriers
minicals($year, $month, $day, $area, -1, 'day');

echo "</tr></table>";

// fin de la condition "Si format imprimable"
}

#y? are year, month and day of yesterday
#t? are year, month and day of tomorrow