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
| <?php
session_start();
include('includes/config.php');
if (isset($_SESSION['login']) || isset($_SESSION['password'])){
?>
<html>
<head>
<title>Gestion des stagiaires</title>
<link href="stylestage.css" rel="stylesheet" type="text/css">
</head>
<body>
<div>
<div><img src="images/bd01.gif" id="entete" /></div>
<div style="margin-bottom:3px;"></div>
<div id="milieu">
<div class="menugauche">
<div class="menu a" style="border-bottom-width:1px; border-bottom-style:solid;" >
<div style="background-color:gray; color:white; padding:3px; -moz-border-radius: 5px; -webkit-border-radius: 5px; font-size:16px;"><strong><i>M</i>enu</strong> <a href="gestion.php"><img height="48" width="48" src="../Gestion Stagiaire/home_48.png" alt="Accueil" /></a></div>
<div style="margin-bottom:5px;"></div>
<div class="lienmenu"><a href="stagiaires.php"> <strong>Stagiaires</strong></a></div>
<div style="margin-bottom:2px;"></div>
<div class="lienmenu"><a href="encadreurs.php"> <strong>Encadreurs</strong></a></div>
<div style="margin-bottom:2px;"></div>
<div class="lienmenu"><a href="visites.php"> <strong>Visites</strong></a></div>
<div style="margin-bottom:2px;"></div>
<div class="lienmenu"><a href="services.php"> <strong>Services</strong></a></div>
<div style="margin-bottom:2px;"></div>
<div class="lienmenu"><a href="fonction.php"> <strong>Fonctions</strong></a></div>
<br />
</div><br />
<div>
Utilisateur connecté<br /><br />
<span style="color:red; font-family:arial; font-size:16px;"><?php echo ucfirst($_SESSION['prenom'])." ".ucfirst($_SESSION['nomuser']);?></span><br /><br /><br /><br /><br /><br /><br />
<a href="logout.php">Deconnexion</a>
</div>
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
</div>
<div id="contenu1">
<div class="menu a">
<span class="menutop"><a href="ajoutstagiaire.php"> <strong>Ajouter un stagiaire</strong> </a></span> |
<span class="menutop"><a href="chercher_stagiaire.php"> <strong>Chercher un stagiaire</strong> </a></span> |
<span class="menutop"><a href="liste_stagiaire.php"> <strong>Liste des stagiaires</strong> </a></span>
</div><br />
<img src="../Gestion Stagiaire/photo_add.png" style="border:1px solid gray; height:80px; width:400px;"/>
<div style="border:1px solid gray; width:500px; margin-left:auto; margin-right:auto; margin-top:5px; padding:10px;">
<form name="form" action="function_add_stagiaire.php" method="POST" enctype="multipart/form-data" ><table align="center">
<tr><td><label for="numstag">CIN:</label></td><td><input type="text" id="CIN" name="CIN" size="10" maxlength="7" /></td></tr>
<tr><td><label for="Matricule">Matricule encadreur:</label></td><td><select name="Matricule" id="Matricule">
<option value="">Choisir l'encadrant</option>
<?php
//chargement combo
$retour=mysql_query("select distinct Matricule, NomEnc from encadrants"); // afficher les matricules
while($a=mysql_fetch_array($retour)){
echo '<option value="'.$a['Matricule'].'">'.$a['NomEnc'].'</option>';
} ?>
</select></td></tr>
<tr><td><label for="N°Etab">Numéro Etablissement:</label></td><td><select name="N°Etab" id="N°Etab">
<option value="">Choisir l'Etablissement</option>
<?php
$retourb=mysql_query("select distinct N°Etab, Dénomination from établissements"); // afficher les codes etablissements
while ($b=mysql_fetch_assoc($retourb)){
echo '<option value="'.$b['N°Etab'].'">'.$b[' Dénomination'].'</option>';
} ?>
</select></td></tr>
<tr><td><label for="N°stage">Numéro Stage:</label></td><td><select name="N°Stage" id="N°stage">
<option value="">Choisir le numéro de stage</option>
<?php
$retourb=mysql_query("select distinct N°stage, N°stage from stages"); // afficher les numéros de stage
while($b=mysql_fetch_array($retourb)){
echo '<option value="'.$b['N°stage'].'">'.$b[' N°stage'].'</option>';
} ?>
</select></td></tr>
<tr><td><label for="Nomstag">Nom stagiaire:</label></td><td><input type="text" id="Nomstag" name="Nomstag" size="20" maxlength="20" /></td></tr>
<tr><td><label for="prenomstag">Prénom stagiaire:</label></td><td><input type="text" id="prenomstag" name="prenomstag" size="20" maxlength="20" /></td></tr>
<tr>
<tr><td><label for="Adressestag">Adresse stagiaire:</label></td><td><input type="text" id="Adressestag" name="Adressestag" size="20" maxlength="20" /></td></tr>
<tr>
<td>Sexe:</td><td><input type="radio" name="sexe" value="m" id="sexe" checked="checked" /><label>Masculin</label>
<input type="radio" name="sexe" value="f" id="sexe" /><label>Feminin</label></td>
</tr>
<tr><td><label for="Datenaiss">Date de naissance:</label></td><td><input type="date" name="Datenaiss" id="Datenaiss" /></td></tr>
<tr><td><label for="Emailstag">Adresse E-mail stagiaire:</label></td><td><input type="text" id="Emailstag" name="Emailstag" size="20" maxlength="20" /></td></tr>
<tr>
<tr><td><label for="Télèphonestag">Prénom stagiaire:</label></td><td><input type="text" id="Télèphonestag" name="Télèphonestag" size="20" maxlength="20" /></td></tr>
<tr>
<tr></tr>
<tr>
<td></td>
<td><input type="submit" value="Enregistrer" name="buttonEnregistrer" />
<input type="reset" value="Annuler" name="buttonAnnuler" /></td>
</tr>
</table>
</form></div>
<br /><br />
<a href="stagiaires.php">Revenir à la page précédente</a>
</div>
</div>
<div style="margin-bottom:2px; clear:both"></div>
</div>
</body>
</html>
<?php
}
else{
?><?php
echo'<meta http-equiv="refresh" content="0; URL=echec_cnx.html">';}
?> |
Partager