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
| <?php /* Date de création: 01/03/2009 */ ?>
<html>
<body>
<form method='POST' action='e8bis.php' onclick="return(confirm('Etes-vous sûr de vouloir mettre cette retenue à FAITE ?'));">
Cochez-la ou les cases pour mettre les retenues à FAITES
<br><input type='submit' name='exple1' value='RETENUES FAITES' >
<table border="1">
<tr>
<td width=''>NOM</td>
<td width=''>PRENOM</td>
<td width=''>Quand</td>
<td width=''>Raison</td>
<td width=''>de</td>
<td width=''>A</td>
<td width=''>Numéro</td>
</tr>
<?php
include("haut.inc.php");
$db = mysql_connect(.fr', 'db', 'q')
or die('<font color=red>Désolé mais vous ne pouvez voir les infos de la data-base</font>');
mysql_select_db('d',$db);
$query="Select * from retenues2 where Fait1 like 'N' order by Quand1" ;
$result = mysql_query( $query )or exit ('Erreur SQL !'.$query.'<br>'.mysql_error());
while($data = mysql_fetch_array($result))
{
echo"<tr><td>".$data['elenom']."</td>";
echo"<td>".$data['elepre']."</td>";
echo"<td>".$data['Quand1']."</td>";
echo"<td>".$data['Cause']."</td>";
echo"<td>".$data['Heures1']."</td>";
echo"<td>".$data['Heures1bis']."</td>";
echo"<td>".$data['Numero']."</td>";
echo"<td><input type='checkbox' name='maj[]' value='".$data['Numero']."'></td>";
echo"</tr>";
$maj = $_POST['maj'];
}
mysql_close();
?>
</form>
</table>
</body>
</html> |