-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmatiereetudiant.php
196 lines (152 loc) · 6.77 KB
/
matiereetudiant.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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
<?php
// on se connecte à notre base
require'db.php';
session_start();
// lancement de la requête (on impose aucune condition puisque l'on désire obtenir la liste complète des propriétaires
$sql = "SELECT * FROM matiere Order BY id_matiere";
// on lance la requête (mysqli_query) et on impose un message d'erreur si la requête ne se passe pas bien (or die)
$req = mysqli_query($con,$sql) or die();
?>
<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]-->
<!--[if !IE]><!--> <html lang="en"> <!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
<meta charset="UTF-8" />
<title>matiere | Gestion des emplois de temps</title>
<meta content="width=device-width, initial-scale=1.0" name="viewport" />
<meta content="" name="description" />
<meta content="" name="author" />
<!--[if IE]>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<![endif]-->
<!-- GLOBAL STYLES -->
<!-- GLOBAL STYLES -->
<link rel="stylesheet" href="assets/plugins/bootstrap/css/bootstrap.css" />
<link rel="stylesheet" href="assets/css/main.css" />
<link rel="stylesheet" href="assets/css/theme.css" />
<link rel="stylesheet" href="assets/css/MoneAdmin.css" />
<link rel="stylesheet" href="assets/plugins/Font-Awesome/css/font-awesome.css" />
<!--END GLOBAL STYLES -->
<!-- PAGE LEVEL STYLES -->
<link href="assets/plugins/dataTables/dataTables.bootstrap.css" rel="stylesheet" />
<!-- END PAGE LEVEL STYLES -->
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
<![endif]-->
</head>
<!-- END HEAD -->
<!-- BEGIN BODY -->
<body class="padTop53 " >
<!-- MAIN WRAPPER -->
<div id="wrap">
<div id="top">
<nav class="navbar navbar-inverse navbar-fixed-top " style="padding-top: 10px;">
<a data-original-title="Show/Hide Menu" data-placement="bottom" data-tooltip="tooltip" class="accordion-toggle btn btn-primary btn-sm visible-xs" data-toggle="collapse" href="#menu" id="menu-toggle">
<i class="icon-align-justify"></i>
</a>
<!-- LOGO SECTION -->
<header class="navbar-header">
<a href="index.html" class="navbar-brand">
</a>
</header>
</nav>
</div>
<!-- HEADER SECTION -->
<div id="left" >
<?php
require"espace.php";
require "menuetudiant.php";
?>
</div>
<!--PAGE CONTENT -->
<div id="content">
<div class="inner">
<div class="row">
<div class="col-lg-12">
<h2></h2>
</div>
</div>
<hr />
<div class="row">
<div class="col-lg-12">
<div class="panel panel-default">
<div class="panel-heading">
<h4> Listes des matiéres</h4>
</div>
<div class="panel-body">
<div class="table-responsive">
<table class="table table-striped table-bordered table-hover" id="dataTables-example">
<thead>
<tr>
<th>Nom de matiére</th>
<th>Class</th>
<th>Enseignant</th>
<th>Nombre d'heure</th>
<!-- <th>Action</th> -->
</tr>
</thead>
<tbody>
<tr>
<?php
// lancement de la requête (on impose aucune condition puisque l'on désire obtenir la liste complète des propriétaires
// on va scanner tous les tuples un par un
if(mysqli_num_rows($req)>0)
while ($data = mysqli_fetch_assoc($req)) {
$id_matiere=$data['id_matiere'];
?>
<td name="nom_matiere"><?php echo $data['nom_matiere']; ?></td>
<td name="nom_class"><?php echo $data['nom_class']; ?></td>
<td name="nom_enseignant"><?php echo $data['nom_enseignant'];?></td>
<td name="nombredheure"><?php echo $data['nombredheure'];?></td>
<!-- <td name="nomdbredheure">
<div class="toolbar">
<ul class="nav">
<?php echo ("<a onclick=\"return confirm(' Vous etes sur ?')\" href=\"delmatiere.php?idmat=".$data['id_matiere']."\">");?>
<i class="icon-remove"></i></a>
<?php echo ("<a href=\"modifmat.php?idmat=".$data['id_matiere']."\">"); ?>
<i class="icon-edit">
</i>
</a>
</ul></div></td> -->
</tr>
<?php
}
mysqli_free_result ($req);
mysqli_close ($con);
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<!--TABLE, PANEL, ACCORDION AND MODAL -->
</div>
</div>
</div>
</div>
<!-- FOOTER -->
<div id="footer">
<p>© ESSAT 2018 </p>
</div>
</body>
<!--END FOOTER -->
<!-- GLOBAL SCRIPTS -->
<script src="assets/plugins/jquery-2.0.3.min.js"></script>
<script src="assets/plugins/bootstrap/js/bootstrap.min.js"></script>
<script src="assets/plugins/modernizr-2.6.2-respond-1.1.0.min.js"></script>
<!-- END GLOBAL SCRIPTS -->
<!-- PAGE LEVEL SCRIPTS -->
<script src="assets/jquery.dataTables.js"></script>
<script src="assets/dataTables.bootstrap.js"></script>
<script>
$(document).ready(function () {
$('#dataTables-example').dataTable();
});
</script>
<!-- END PAGE LEVEL SCRIPTS -->