forked from JeromeDevome/GRR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
menu_gauche.php
49 lines (45 loc) · 1.6 KB
/
menu_gauche.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
if ($_GET['pview'] != 1)
{
$path = $_SERVER['PHP_SELF'];
$file = basename ($path);
if ( $file== 'month_all2.php' or Settings::get("menu_gauche") == 0){
echo '<div id="menuGaucheMonthAll2">';
} else{
echo '<div class="col-lg-3 col-md-12 col-xs-12">';
}
echo '<div id="menuGauche">';
$pageActuel = str_replace(".php","",basename($_SERVER['PHP_SELF']));
minicals($year, $month, $day, $area, $room, $pageActuel);
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");
if ($area_list_format != "list")
{
if ($area_list_format == "select")
{
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());
echo make_room_select_html('week', $area, $room, $year, $month, $day);
}
else
{
echo make_site_item_html('week_all.php', $id_site, $year, $month, $day, getUserName());
echo make_area_item_html('week_all.php',$id_site, $area, $year, $month, $day, getUserName());
echo make_room_item_html('week', $area, $room, $year, $month, $day);
}
}
else
{
echo make_site_list_html('week_all.php',$id_site,$year,$month,$day,getUserName());
echo make_area_list_html('week_all.php',$id_site, $area, $year, $month, $day, getUserName());
echo make_room_list_html('week.php', $area, $room, $year, $month, $day);
}
if (Settings::get("legend") == '0'){
show_colour_key($area);
}
echo '</div>';
echo '</div>';
}
?>