salut,

j'ai diff�rentes checkbox (correspondant � des groupes pris dans ma base de donn�es) et j'essai d'en faire deux colonnes distinct.

J'ai essay� de le coder, mais je ne vois pas ou peut �tre mon erreur

Code : S�lectionner tout - Visualiser dans une fen�tre � part
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
 
<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){
                            $i = 0;
                            $j = count($allGroups) / 2;
                            $i++;            
                            if (!$us->isInGroup($currGroup))
                                print "<td><input type='checkbox' name='group[]' value=\"".$currGroup->getID()."\">" . $currGroup->getName() . "\n";
                                $group = $_POST["group"]."</td>";
                            if ( $i > $j){
                            print "</tr><tr>";
                            }  
                            }     
                                        ?>
            </tr>
            <tr>
                <td colspan="2"><br><input type="Submit"></td>
            </tr>
        </table>
        </form>