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 196 197 198 199 200 201 202 203 204 205 206 207 208
| <?php
session_start();
require('control-session.php');
if( 1 === get_magic_quotes_gpc() ) {
$stripslashes = create_function('$txt', 'return stripslashes($txt);');
} else {
$stripslashes = create_function('$txt', 'return $txt;');
}
echo $stripslashes($_POST['texte']);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-15" />
<title>Fiche stagiaire PAP</title>
<style type="text/css">
table {
margin: auto;
font-family: Arial, Helvetica, sans-serif;
text-align: left;
}
h1 {
font-family: Arial, Helvetica, sans-serif;
font-size: 24px;
font-weight: bolder;
color: #006;
margin: auto;
right: auto;
}
.Textesimple {
font-family: Arial, Helvetica, sans-serif;
color: #0A51A1;
font-weight: bold;
text-align: left;
}
.Textesimple1 {font-family: Arial, Helvetica, sans-serif;
color: #0A51A1;
font-weight: bold;
text-align: center;
}
</style>
</head>
<body>
<table width="100%" border="0" cellpadding="5" cellspacing="0">
<tr>
<td><span class="Textesimple">Connexion ouverte par :</span> <span class="Textesimple"><?php echo $_SESSION['identite']?></span></td>
<td> </td>
<td align="right"><span class="Textesimple">déconnexion</span><a href="deconnexion.php"><img src="icones/porte-sortie-icone-9124-64.png" width="64" height="64" /></a></td>
</tr>
</table>
<h1 align="center"> </h1>
<h1 align="center">MODIFICATION D'UN STAGIAIRE</h1>
<p align="center"> </p>
<form id="form1" name="form1" method="post" action="">
<p align="center"> </p>
<?php
header('Content-type: text/html; charset=ISO-8859-15');
ini_set('display_errors', 1);
ini_set('log_errors', 1);
$conn = odbc_connect("Gestion_FHT","","");
if (!$conn)
{exit("Echec de connexion: " . $conn);
}
$ref=$_GET['Ref_stagiaires'];
$sql2="SELECT * FROM Stagiaires WHERE Ref_stagiaires = ".$ref;
$rs=odbc_exec($conn,$sql2);
$row_rs = odbc_fetch_array($rs);
if (!$rs)
{exit("Erreur dans le code SQL");
}
$Prenom_stagiaire=odbc_result($rs,"Prenom_stagiaire");
$date_delivrance=date('d/m/Y',strtotime(odbc_result($rs,"Date_delivrance")));
$date_naissance=date('d/m/Y',strtotime(odbc_result($rs,"Date_naissance")));
$date_infraction=date('d/m/Y',strtotime(odbc_result($rs,"Date_infraction")));
?>
<table width="100%" border="1" cellspacing="0" cellpadding="5">
<tr>
<td width="26%" align="center" class="Textesimple">Référence du stagiaire</td>
<td width="74%" align="left" class="Textesimple">
<label for="ref_stagiaire"></label>
<input name="ref_stagiaire" type="text" disabled="disabled" id="ref_stagiaire" value=<?php echo odbc_result($rs,"Ref_stagiaires");?> size="6" maxlength="6"></td>
</tr>
<tr>
<td align="center" class="Textesimple">Nom</td>
<td align="left" class="Textesimple"><label for="Nom_stagiaire"></label><input name="Nom_stagiaire" type="text" id="Nom_stagiaire" value=<?php echo odbc_result($rs,"Nom_stagiaire");?> size="25" maxlength="25"></td>
</tr>
<tr>
<td align="center" class="Textesimple">Nom de jeune fille</td>
<td align="left" class="Textesimple"><label for="nomjf_stagiaire"></label><input name="nomjf_stagiaire" type="text" id="nomjf_stagiaire" value=<?php echo odbc_result($rs,"Nom_jeune_fille");?> size="25" maxlength="25"></td>
</tr>
<tr>
<td align="center" class="Textesimple">Prénom</td>
<td align="left" class="Textesimple"><label for="Prenom_stagiaire"></label><input name="Prenom_stagiaire" type="text" id="Prenom_stagiaire" value=<?php echo odbc_result($rs,"Prenom_stagiaire");?> size="20" maxlength="20"></td>
</tr>
<tr>
<td align="center" class="Textesimple">Adresse</td>
<td align="left" class="Textesimple"><label for="Adresse"></label><input name="Adresse" type="text" id="Adresse" value=<?php echo odbc_result($rs,"Adresse");?> size="45" maxlength="45"></td>
</tr>
<tr>
<td align="center" class="Textesimple">Code Postal</td>
<td align="left" class="Textesimple"><input name="CP" type="text" id="CP" value=<?php echo odbc_result($rs,"CP");?> size="8" maxlength="8" /></td>
</tr>
<tr>
<td align="center" class="Textesimple">Ville</td>
<td align="left" class="Textesimple"><input name="Ville" type="text" id="Ville" value=<?php echo odbc_result($rs,"Ville");?></td size="30" maxlength="30">
</tr>
<tr>
<td align="center" class="Textesimple">Téléphone</td>
<td align="left" class="Textesimple"><input name="Telephone_stagiaire" type="text" id="Telephone_stagiaire" value=<?php echo odbc_result($rs,"telephone_portable");?> size="15" maxlength="15" /></td>
</tr>
<tr>
<td align="left" class="Textesimple">E-mail</td>
<td align="left" class="Textesimple">
<input name="email_stagiaire" type="text" id="email_stagiaire" value=<?php echo odbc_result($rs,"e_mail");?> size="40" maxlength="40" /></td>
</tr>
<tr>
<td align="left" class="Textesimple">Date de naissance</td>
<td align="left" class="Textesimple">
<input type="text" name="date_naiss_stagiaire" id="date_naiss_stagiaire" value=<?php echo $date_naissance;?> size="15" maxlength="15"/></td>
</tr>
<tr>
<td align="left" class="Textesimple">Lieu de naissance</td>
<td align="left" class="Textesimple">
<input name="lieu_naiss_stagiaire" type="text" id="lieu_naiss_stagiaire" value=<?php echo odbc_result($rs,"Lieu_naissance");?> size="25" maxlength="25" /></td>
</tr>
<tr>
<td align="left" class="Textesimple">Numéro de permis</td>
<td align="left" class="Textesimple">
<input name="num_permis_stagiaire" type="text" id="num_permis_stagiaire" value=<?php echo odbc_result($rs,"Numero_permis");?> size="15" maxlength="15" /></td>
</tr>
<tr>
<td align="left" class="Textesimple">Date de délivrance</td>
<td align="left" class="Textesimple">
<input name="date_permis_stagiaire" type="text" id="date_permis_stagiaire" value=<?php echo $date_delivrance;?> size="15" maxlength="15"/></td>
</tr>
<tr>
<td align="left" class="Textesimple">Lieu de délivrance</td>
<td align="left" class="Textesimple">
<input name="lieu_delivrance_permis" type="text" id="lieu_delivrance_permis" value=<?php echo odbc_result($rs,"Lieu_delivrance");?> size="25" maxlength="25"/></td>
</tr>
<tr>
<td align="left" class="Textesimple">Probatoire</td>
<td align="left"><input <?php if (!(strcmp(odbc_result($rs,"Probatoire"),1))) {echo "checked=\"checked\"";} ?> type="checkbox" name="probatoire" id="probatoire" /></td>
</tr>
<tr>
<td align="left" class="Textesimple">Lieu infraction</td>
<td align="left" class="Textesimple">
<input name="lieu_infraction" type="text" id="lieu_infraction" value=<?php echo odbc_result($rs,"Lieu_infraction");?> size="25" maxlength="25" /></td>
</tr>
<tr>
<td align="left" class="Textesimple">Date infraction</td>
<td align="left" class="Textesimple">
<input name="date_infraction" type="text" id="date_infraction" value=<?php echo $date_infraction;?> size="15" maxlength="15" /></td>
</tr>
<tr>
<td align="left" class="Textesimple">Heure infraction</td>
<td align="left" class="Textesimple">
<input name="heure_infraction" type="text" id="heure_infraction" value=<?php echo odbc_result($rs,"Heure_infraction");?> size="8" maxlength="8"/></td>
</tr>
<tr>
<td align="left" class="Textesimple">Stage volontaire</td>
<td align="left"><input <?php if (!(strcmp(odbc_result($rs,"Stage_Volontaire"),1))) {echo "checked=\"checked\"";} ?> type="checkbox" name="stage_volontaire" id="stage_volontaire" /></td>
</tr>
<tr>
<td align="left" class="Textesimple">Stage obligatoire</td>
<td align="left"><input <?php if (!(strcmp(odbc_result($rs,"Stage_Obligatoire"),1))) {echo "checked=\"checked\"";} ?> type="checkbox" name="stage_obligatoire" id="stage_obligatoire" /></td>
</tr>
<tr>
<td align="left" class="Textesimple">Stage alternatif</td>
<td align="left"><input <?php if (!(strcmp(odbc_result($rs,"Stage_Alternatif"),1))) {echo "checked=\"checked\"";} ?> type="checkbox" name="stage_alternatif" id="stage_alternatif" /></td>
</tr>
<tr>
<td align="left" class="Textesimple">Stage peine complémentaire</td>
<td align="left"><input <?php if (!(strcmp(odbc_result($rs,"Stage_peine_complementaire"),1))) {echo "checked=\"checked\"";} ?> type="checkbox" name="stage_pc" id="stage_pc" /></td>
</tr>
</table>
<p>
<input type="submit" name="Modifier" id="Modifier" value="Modifier" />
</p>
</form>
<p align="center"> </p>
<table width="100%" border="0" cellspacing="0" cellpadding="5">
<tr>
<td align="center"><a href="chevalet_indiv.php?Prenom_stagiaire=<?php echo $Prenom_stagiaire;?>" target="_blank"><img src="icones/twitter-tableau-noir-suivre-icone-4628-64.png" width="64" height="64" /></a></td>
<td align="center"><a href="attest_suivi_indiv.php?Ref_stagiaire=<?php echo $ref;?>" target="_blank"><img src="icones/certificats-preferences-icone-5975-64.png" width="64" height="64" border="0" /></a></td>
<td> </td>
</tr>
<tr>
<td align="center"><span class="Textesimple1">Chevalets</span></td>
<td align="center"><span class="Textesimple1">Attestations de suivi</span></td>
<td> </td>
</tr>
</table>
<p> </p>
<p>
</p>
<?php
odbc_close( $conn);
?>
</p>
<p align="center"><a href="liste_stages.php"><img src="icones/document-revenir-icone-3991-64.png" width="64" height="64" /></a></p>
</body>
</html> |
Partager