forked from goldentechnologyrec/segma
-
Notifications
You must be signed in to change notification settings - Fork 0
/
affichage.php
135 lines (115 loc) · 5.55 KB
/
affichage.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
<?php
require_once("securite.php");
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>PHP CRUD using Ajax and DataTables</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<?php
include 'navbar_user.php';
?>
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/r/dt/jq-2.1.4,jszip-2.5.0,pdfmake-0.1.18,dt-1.10.9,af-2.0.0,b-1.0.3,b-colvis-1.0.3,b-html5-1.0.3,b-print-1.0.3,se-1.0.1/datatables.min.css"/>
<script type="text/javascript" src="https://cdn.datatables.net/r/dt/jq-2.1.4,jszip-2.5.0,pdfmake-0.1.18,dt-1.10.9,af-2.0.0,b-1.0.3,b-colvis-1.0.3,b-html5-1.0.3,b-print-1.0.3,se-1.0.1/datatables.min.js"></script>
<link rel="stylesheet" href="style.css" >
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="DataTables/datatables.min.css">
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/2.0.0/css/buttons.dataTables.min.css">
<script src="js/jquery-3.6.0.min.js"></script>
<script src="js/bootstrap.js"></script>
<script src="DataTables/datatables.min.js"></script>
<script src="https://cdn.datatables.net/buttons/2.0.0/js/dataTables.buttons.min.js"></script>
<script src="js/script_affichage.js"></script>
<style>
button.dt-button.btn-primary{
background:var(--bs-primary)!important;
color:white;
}
</style>
</head>
<body class="">
<nav class="navbar navbar-expand-lg navbar-light bg-dark bg-gradient">
<a href="export.php" class="btn btn-success" style="position: relative; left: 1350px; top : -1px;">Export les etudiants</a>
</nav>
<div class="container py-7 h-100">
<div class="row">
<div class="col-lg-12">
</div>
</div>
<hr>
<div class="row">
<div class="col-md-12" id="msg"></div>
</div>
<label>
</label>
<div class="row">
<div class="col-lg-12">
<table class="table table-hover table-bordered table-striped" id="authors-tbl">
<thead>
<tr class="bg-dark text-light bg-gradient bg-opacity-150">
<th class="px-1 py-1 text-center">id</th>
<th class="px-1 py-1 text-center">First Name</th>
<th class="px-1 py-1 text-center">Last Name</th>
<th class="px-1 py-1 text-center">Email</th>
<th class="px-1 py-1 text-center">Age</th>
<th class="px-1 py-1 text-center">Groupes</th>
<th class="px-1 py-1 text-center">Action</th>
</tr>
</thead>
</table>
</div>
</div>
</div>
<!-- Add Modal -->
<div class="row">
<div class="modal fade" id="add_modal" data-bs-backdrop="static">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Add Author</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<div class="container-fluid">
<form action="" id="new-author-frm">
<div class="form-group">
<label for="first_name" class="control-label">First Name</label>
<input type="text" class="form-control rounded-0" id="first_name" name="first_name" required>
</div>
<div class="form-group">
<label for="last_name" class="control-label">Last Name</label>
<input type="text" class="form-control rounded-0" id="last_name" name="last_name" required>
</div>
<div class="form-group">
<label for="email" class="control-label">Email</label>
<input type="email" class="form-control rounded-0" id="email" name="email" required>
</div>
<div class="form-group">
<label for="age" class="control-label">Age</label>
<input type="number" onkeydown="javascript: return event.keyCode == 69 ? false : true" class="form-control rounded-0" id="age" name="age" required>
</div>
<div class="form-group">
<label for="groupes" class="control-label">Groupes</label>
<select type="text" class="form-control rounded-0" id="groupes" name="groupes" required>
s<option value="GR1">GR1</option>
<option value="GR2">GR2</option>
<option value="GR3">GR3</option>
</select>
</div>
</form>
</div>
</div>
<div class="modal-footer">
<button type="submit" class="btn btn-primary" form="new-author-frm">Save</button>
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- /Add Modal -->
</body>
</html>