1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
<form action="../op/op.UsrMgr.php" name="form<?print $us->getID();?>_2" onsubmit="return checkForm2('<?print $us->getID();?>');">
<input type="Hidden" name="action" value="addgroup">
<input type="Hidden" name="userid" value="<?print $us->getID();?>">
<table>
<tr>
<td class="inputDescription"><?printMLText("add_groups");?>:</td>
<?
foreach ($allGroups as $currGroup){
if (!$us->isInGroup($currGroup))
print "<td><input type='checkbox' name='group[]' value=\"".$currGroup->getID()."\">" . $currGroup->getName() . "\n";
$group = $_POST["group"]."</td>";
<!-- ici tu test si c entier -->
if ( count(allGroup) == monTest) {
?></tr><tr><?} }
?>
</select><!-- je sais pas pkoi y a ca ? -->
<!--- ICI tu dois faire gaffe pê rajouter un colspan pour combler, car si tu n'as qu'une cellule pour la derniere ligne, il faut que celle-ci prenne toute la largeur -->
</tr>
<tr>
<td colspan="2"><br><input type="Submit"></td>
</tr>
</table>
</form> |
Partager