-
Notifications
You must be signed in to change notification settings - Fork 0
/
index1.php
127 lines (116 loc) · 4.82 KB
/
index1.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
<?php
require_once("classes/users.php");
$users=User::findAll();
function clean1($str) {
return strip_tags(htmlspecialchars($str));
}
if(isset($_GET['sup'])){
$id=clean1($_GET['sup']);
$user=User::findBykey($id);
$user->delete();
header('Location: index1.php');
exit;
}
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Language" content="FR">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Bootstrap Template</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file://-->
<!--[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>
<body>
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="http://getbootstrap.com/examples/theme/#">DMC LABO</a>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li class="active"><a href="http://getbootstrap.com/examples/theme/#">Home</a></li>
<li><a href="http://getbootstrap.com/examples/theme/#about">About</a></li>
<li><a href="http://getbootstrap.com/examples/theme/#contact">Contact</a></li>
<li class="dropdown">
<a href="http://getbootstrap.com/examples/theme/#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li><a href="http://getbootstrap.com/examples/theme/#">Action</a></li>
<li><a href="http://getbootstrap.com/examples/theme/#">Another action</a></li>
<li><a href="http://getbootstrap.com/examples/theme/#">Something else here</a></li>
<li class="divider"></li>
<li class="dropdown-header">Nav header</li>
<li><a href="http://getbootstrap.com/examples/theme/#">Separated link</a></li>
<li><a href="http://getbootstrap.com/examples/theme/#">One more separated link</a></li>
</ul>
</li>
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
<div class="container">
<div class="jumbotron">
<h1>LABO DMC!</h1>
<p>Chaque année, nous organisons une conférence sur les TICs au Sénégal et dans la sous-région.</p>
<p><a href="http://getbootstrap.com/examples/theme/#" class="btn btn-primary btn-lg" role="button">Inscription</a></p>
</div>
<div class="row">
<div class="col-lg-3">3 colonnes</div>
<div class="col-lg-6">6 colonnes</div>
<div class="col-lg-3">3 colonnes</div>
</div>
<div class="row">
<div class="col-lg-3">3 colonnes</div>
<div class="col-lg-offset-6 col-lg-3">3 colonnes</div>
</div>
<div class="panel panel-default">
<!-- Default panel contents -->
<div class="panel-heading"><b>Liste des utilisateurs <span class="glyphicon glyphicon-search"></span></b></div>
<div class="panel-body">
<p>Exemple d'affichage d'une liste d'objets à partir d'une table </p>
</div>
<!-- Table -->
<table class="table">
<thead>
<tr><td>PRENOM</td><td>NOM</td><td>LOGIN</td><td>EMAIL</td><td>TEL</td><td>Societe</td><td>Profil</td><td>Action</td></tr>
</thead>
<tbody>
<?php
$i=0;
while($i<count($users)) {
?>
<tr>
<td><?php echo $users[$i]->PRENOM; ?></td>
<td><?php echo $users[$i]->NOM; ?></td>
<td><?php echo $users[$i]->LOGIN; ?></td>
<td><?php echo $users[$i]->EMAIL; ?></td>
<td><?php echo $users[$i]->TEL; ?></td>
<td><?php echo $users[$i]->IDSOCIETE; ?></td>
<td><?php echo $users[$i]->IDPROFIL; ?></td>
<td><a href="?mod=<?php echo $users[$i]->IDUSERS; ?>"><img src="images/icone_modifier.gif" title="modifier"></a>
<a href=""><img src="images/icone_supprimer.jpg" title="supprimer"></a>
</td>
</tr>
<?php
$i++;
}
?>
</tbody>
</table>
</div>
</div>
<script src="bootstrap/js/jquery.js"></script>
<script src="bootstrap/js/bootstrap.min.js"></script>
</body>