plugins/SpecialGroups.php
changeset 30 7e8fd44b36b0
parent 0 902822492a68
child 36 425261984266
equal deleted inserted replaced
29:e5484a9e0818 30:7e8fd44b36b0
   472           <table border="0" style="width: 100%;" cellspacing="1" cellpadding="4">
   472           <table border="0" style="width: 100%;" cellspacing="1" cellpadding="4">
   473             <tr>
   473             <tr>
   474               <th colspan="2">Group membership details</th>
   474               <th colspan="2">Group membership details</th>
   475             </tr>
   475             </tr>
   476             <tr>
   476             <tr>
   477               <td class="row2" style="text-align: right;">
   477               <td class="row2" style="text-align: right; width: 50%;">
   478                 Current group memberships:
   478                 Current group memberships:
   479               </td>
   479               </td>
   480               <td class="row1">';
   480               <td class="row1" style="width: 50%;">';
   481     $taboo = Array('Everyone');
   481     $taboo = Array('Everyone');
   482     if ( sizeof ( $session->groups ) > 0 )
   482     if ( sizeof ( $session->groups ) > count($taboo) )
   483     {
   483     {
   484       echo '<select name="group_id">';
   484       echo '<select name="group_id">';
   485       foreach ( $session->groups as $id => $group )
   485       foreach ( $session->groups as $id => $group )
   486       {
   486       {
   487         $taboo[] = $group;
   487         $taboo[] = $group;