-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaccueil.php
165 lines (132 loc) · 5.13 KB
/
accueil.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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
<!DOCTYPE html>
<html>
<title>Assistance Informatique JM</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="style2.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
@font-face {
font-family: 'trench';
src: url('fonts/trench100free.otf');
}
{font-family: "Cabin", sans-serif}
h1,h2,h3,h4,h5,.w3-wide,.w3-sidebar a, th {font-family: "trench";font-weight: bold;}
body,.w3-table, input, h6, .w3-button {font-family: "Cabin", sans-serif;}
</style>
<body class="w3-content" style="max-width:1200px">
<!-- Sidebar/menu -->
<nav class="w3-sidebar w3-bar-block color-blue w3-collapse w3-top" style="z-index:3;width:150px" id="mySidebar">
<div class="w3-container w3-display-container w3-white w3-padding-16">
<i onclick="w3_close()" class="fa fa-remove w3-hide-large w3-button w3-display-topright"></i>
<img src="images/logo.png" alt="Smiley face" height="74" width="118">
</div>
<div class="w3-padding-64 w3-large color-text-white" style="font-weight:bold">
<?php
session_start();
require_once'fonctions.php';
if(isset($_SESSION['type']) && $_SESSION['type']=="ADMINISTRATEUR")
{
?>
<a href="accueil.php" class="w3-bar-item w3-button">Accueil</a>
<a href="accueil.php?page=tickets" class="w3-bar-item w3-button">Tickets</a>
<a href="accueil.php?page=imprimantes" class="w3-bar-item w3-button">Imprimantes</a>
<?php
}
elseif(isset($_SESSION['type']) && $_SESSION['type']=="PROFESSEUR")
{
?>
<a href="accueil.php" class="w3-bar-item w3-button">Accueil</a>
<a href="accueil.php?page=tickets" class="w3-bar-item w3-button">Tickets</a>
<?php
}
elseif(isset($_SESSION['type']) && $_SESSION['type']=="GESTIONNAIRE")
{
?>
<a href="accueil.php" class="w3-bar-item w3-button">Accueil</a></li>
<a href="accueil.php?page=imprimantes" class="w3-bar-item w3-button">Imprimantes</a>
<?php
}
else
{
?>
<a href="accueil.php" class="w3-bar-item w3-button">Accueil</a></li>
<?php
}
?>
</div>
</nav>
<!-- Top menu on small screens -->
<header class="w3-bar w3-top w3-hide-large color-blue w3-xlarge">
<div class="w3-bar-item w3-padding-24 w3-wide"><img src="images/logo2.png" alt="Smiley face" height="90" width="143"></div>
<a href="javascript:void(0)" class="w3-bar-item w3-button w3-padding-24 w3-right" onclick="w3_open()"><i class="fa fa-bars"></i></a>
</header>
<!-- Overlay effect when opening sidebar on small screens -->
<div class="w3-overlay w3-hide-large" onclick="w3_close()" style="cursor:pointer" title="close side menu" id="myOverlay"></div>
<!-- !PAGE CONTENT! -->
<div class="w3-main" style="margin-left:150px">
<!-- Push down content on small screens -->
<div class="w3-hide-large" style="margin-top:83px"></div>
<!-- Top header -->
<header class="w3-container w3-xlarge">
<p class="w3-left">Version de développpement</p>
<form method="post" action="accueil.php?page=deconnexion">
<button class="w3-button w3-block color-blue">Deconnexion</button>
</form>
</header>
<!-- Subscribe section -->
<div class="w3-container w3-light-grey w3-padding-32">
<?php
if (!isset($_GET['page']))
{
include('tickets.php');
include('imprimantes.php');
}
if (isset($_GET['page']))
{
include($_GET['page'].'.php');
}
?>
</div>
<!-- Footer
<footer class="w3-padding-64 w3-light-grey w3-small w3-center" id="footer">
<div class="w3-row-padding">
<div class="w3-col s4">
<h4>Contact</h4>
<p>Questions? Go ahead.</p>
<form action="/action_page.php" target="_blank">
<p><input class="w3-input w3-border" type="text" placeholder="Name" name="Name" required></p>
<p><input class="w3-input w3-border" type="text" placeholder="Email" name="Email" required></p>
<p><input class="w3-input w3-border" type="text" placeholder="Subject" name="Subject" required></p>
<p><input class="w3-input w3-border" type="text" placeholder="Message" name="Message" required></p>
<button type="submit" class="w3-button w3-block w3-black">Send</button>
</form>
</div>-->
</div>
</footer>
<!-- End page content -->
</div>
<script>
// Accordion
function myAccFunc() {
var x = document.getElementById("demoAcc");
if (x.className.indexOf("w3-show") == -1) {
x.className += " w3-show";
} else {
x.className = x.className.replace(" w3-show", "");
}
}
// Click on the "Jeans" link on page load to open the accordion for demo purposes
document.getElementById("myBtn").click();
// Script to open and close sidebar
function w3_open() {
document.getElementById("mySidebar").style.display = "block";
document.getElementById("myOverlay").style.display = "block";
}
function w3_close() {
document.getElementById("mySidebar").style.display = "none";
document.getElementById("myOverlay").style.display = "none";
}
</script>
</body>
</html>