forked from JeromeDevome/GRR
-
Notifications
You must be signed in to change notification settings - Fork 3
/
menu_gauche.php
97 lines (90 loc) · 3.94 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<?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-md-2 col-md-12 col-xs-12">';
}
echo '<div id="menuGauche">';
$pageActuel = str_replace(".php","",basename($_SERVER['PHP_SELF']));
$out = demandeModeration($user);
if(count($out) != 0){
echo '<td id="ouvrir" style="cursor: inherit;width: 100%;" class="fontcolor4" align="center" >
<a class="btn btn-warning btn-lien btn-block" href="moderation.php">Vous avez des demandes de modération</a>
</td>';
}
echo '<a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseCalendar" aria-expanded="true" aria-controls="collapseOne">
<h5>
<span class="glyphicon glyphicon-calendar color-glyphicon"></span> <b>'.get_vocab("mg_calendrier").'</b>
<span class="glyphicon glyphicon-chevron-down chevronCollapse"></span>
</h5>
</a>';
echo '<div class="collapse" id="collapseCalendar">';
minicals($year, $month, $day, $area, $room, $pageActuel);
echo '</div><br/>';
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");
}
//echo '<h5>
// <a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseFilter" aria-expanded="true" aria-controls="collapseOne">
// <span class="glyphicon glyphicon-filter color-glyphicon"></span> <b>'.get_vocab("mg_filtres").'</b>
// <span class="glyphicon glyphicon-chevron-down chevronCollapse"></span>
// </a>
// </h5>';
echo '<a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseFilter" aria-expanded="true" aria-controls="collapseOne">
<h5>
<span class="glyphicon glyphicon-filter color-glyphicon"></span> <b>'.get_vocab("mg_filtres").'</b>
<span class="glyphicon glyphicon-chevron-down chevronCollapse"></span>
</h5>
</a>';
echo '<div class="collapse in" id="collapseFilter">';
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);
}
echo '</div><br/>';
if (Settings::get("legend") == '0'){
echo '<div class="legende-mg">';
//echo '<h5>
// <a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseLegend" aria-expanded="true" aria-controls="collapseOne">
// <span class="glyphicon glyphicon-th-list color-glyphicon"></span> <b>'.get_vocab("mg_legende").'</b>
// <span class="glyphicon glyphicon-chevron-down chevronCollapse"></span>
// </a>
// </h5>';
echo '<a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseLegend" aria-expanded="true" aria-controls="collapseOne">
<h5>
<span class="glyphicon glyphicon-th-list color-glyphicon"></span> <b>'.get_vocab("mg_legende").'</b>
<span class="glyphicon glyphicon-chevron-down chevronCollapse"></span>
</h5>
</a>';
echo '<div class="collapse in" id="collapseLegend">';
show_colour_key($area);
echo '</div>';
echo '</div>';
}
echo '</div>';
echo '</div>';
}
?>