-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
136 lines (118 loc) · 5.08 KB
/
index.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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<?php
include_once ('weather.php');
include_once ('sante.php');
include_once ('calendrier.php');
include_once ('login.php');
session_start();
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>API Index</title>
<!-- Bootstrap CSS CDN -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<!-- Our Custom CSS -->
<link rel="stylesheet" href="css/sidebar.css">
<link rel="stylesheet" id="theme-style" href="css/about.css">
</head>
<body>
<div class="container-fluid">
<div class="wrapper">
<!-- Sidebar Holder -->
<nav id="sidebar">
<div class="sidebar-header">
<h3>API Frédéric Pinaud</h3>
</div>
<ul class="list-unstyled components">
<li class="active">
<a href="#homeSubmenu" data-toggle="collapse" aria-expanded="false">
<i class="glyphicon glyphicon-home"></i>
Météo
</a>
<ul class="collapse list-unstyled" id="homeSubmenu">
<li><a href="#salon" data-toggle="collapse" aria-expanded="true">Salon</a></li>
<li><a href="#exterieur" data-toggle="collapse" aria-expanded="false">Extérieur</a></li>
<li><a href="#bureau" data-toggle="collapse" aria-expanded="false">Bureau</a></li>
</ul>
</li>
<li>
<a href="#santeSubmenu" data-toggle="collapse" aria-expanded="false">
<i class="glyphicon glyphicon-briefcase"></i>
Santé
</a>
<ul class="collapse list-unstyled" id="santeSubmenu">
<li><a href="#" data-toggle="collapse" aria-expanded="false">sante 1</a></li>
<li><a href="#" data-toggle="collapse" aria-expanded="false">sante 2</a></li>
</ul>
<a href="#calSubmenu" data-toggle="collapse" aria-expanded="false">
<i class="glyphicon glyphicon-duplicate"></i>
Calendrier
</a>
<ul class="collapse list-unstyled" id="calSubmenu">
<li><a href="#showEvent" data-toggle="collapse" aria-expanded="true">Voir évènements</a></li>
<li><a href="#addEvent" data-toggle="collapse" aria-expanded="true">Ajouter évènement</a></li>
</ul>
</li>
</ul>
</nav>
<!-- Page Content Holder -->
<div id="content">
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" id="sidebarCollapse" class="btn btn-info navbar-btn">
<i class="glyphicon glyphicon-align-left"></i>
</button>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-right">
<li><a href="index.php">Accueil</a></li>
<li><a href="about.html">About</a></li>
<?php
if(estConnecte()){
echo '<li><a href="profil.php">Mon profil</a></li>';
}
else{
echo '<li><a href="connexion.php">Connexion</a></li>';
}
?>
<li><a href="#">FAQ</a></li>
<li><a href="contact.php">Contact</a></li>
</ul>
</div>
</div>
</nav>
<div class="list-unstyled" id="salon">
<?php echo salon();?>
</div>
<div class="collapse list-unstyled" id="exterieur">
<?php echo exterieur();?>
</div>
<div class="collapse list-unstyled" id="bureau">
<?php echo bureau();?>
</div>
<div class="collapse list-unstyled" id="showEvent">
<?php echo getEvents();?>
</div>
<div class="collapse list-unstyled" id="addEvent">
<?php echo addEvent();?>
</div>
</div>
</div>
</div>
<!-- jQuery CDN -->
<script src="https://code.jquery.com/jquery-1.12.0.min.js"></script>
<!-- Bootstrap Js CDN -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$('#sidebarCollapse').on('click', function () {
$('#sidebar').toggleClass('active');
});
});
</script>
</body>
</html>