-
Notifications
You must be signed in to change notification settings - Fork 1
/
type_diplome.php
38 lines (38 loc) · 1.16 KB
/
type_diplome.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
<?php
session_start();
include('cadre.php');
mysqli_connect("localhost", "root", "");
$link =mysqli_connect("localhost", "root", "");
mysqli_select_db($link,"gestion");
?>
<div class="corp">
<img src="titre_img/type_diplome.png" class="position_titre">
<center><pre>
<?php
$donnee=mysqli_query($link,"select * from diplome");
?><center><table id="rounded-corner">
<thead><tr><?php if(isset($_SESSION['admin'])) echo '<th class="rounded-company">Supprimer</th>'; ?>
<th class="rounded-q1" >Titre du dipl�me</th>
</tr></thead>
<tfoot>
<tr>
<td colspan="<?php echo colspan(0,2); ?>" class="rounded-foot-left"><em> </em></td>
</tr>
</tfoot>
<tbody>
<?php
while($a=mysqli_fetch_array($donnee)){
if(isset($_SESSION['admin'])){
echo '<td><a href="type_diplome.php?supp_type='.$a['numdip'].'" onclick="return(confirm(\'Etes-vous s�r de vouloir supprimer cette entr�e?\'));">Supprimer</td>'; } echo '<td>'.$a['titre_dip'].'</td></tr>';
}
?>
</tbody>
</table></center>
<br/><br/><a href="index.php">Revenir � la page principale </a>
<?php
if(isset($_GET['supp_type'])){
$id=$_GET['supp_type'];
mysqli_query($link,"delete from diplome where numdip='$id'"); }
?>
</pre></center>
</div>