1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| $reqtc5="SELECT id, mot, activite FROM tblnuage ORDER BY mot ASC";
$sqltc5=mysql_query($reqtc5);
$nb=mysql_num_rows($sqltc5);
$tc_corps="<form name='form_modifnuage' id='orientation' method='post' action='../temporis_br/temporis_index.php?page=nuage&choix=modif_nuage'>";
$tc_corps.="<br/><br/><table border='1'><tr style='font-weight:bold;'><td></td><td>Mot</td></tr>";
while($coltc5=mysql_fetch_assoc($sqltc5))
{
if($coltc5['activite']=='non')
{
$tc_corps.="<tr><td><input type='checkbox' name='modif_nuage[]' value='".$coltc5['id']."' onclick='compte(".$nb.");' ></td><td>".$coltc5['mot']."</td></tr>";
}
else
{
$tc_corps.="<tr><td><input type='checkbox' name='modif_nuage[]' value='".$coltc5['id']."' checked onclick='compte(".$nb.");'></td><td>".$coltc5['mot']."</td></tr>";
}
}
$tc_corps.="</table><input type='submit' value='Modifier'></form>"; |
Partager