Signed-off-by: Stéphane Jacob <sj@m4x.org>
}
return null;
}
- return new Group($res->fetchOneAssoc());
+ $data = $res->fetchOneAssoc();
+ $positions = XDB::fetchAllAssoc('SELECT position, uid
+ FROM group_members
+ WHERE asso_id = {?} AND position IS NOT NULL
+ ORDER BY position',
+ $data['id']);
+ return new Group(array_merge($data, array('positions' => $positions)));
}
}
</tr>
{/if}
+ {if $asso->positions|count}
+ <tr>
+ <td class="titre">
+ Bureau :
+ </td>
+ <td>
+ {foreach from=$asso->positions item=position}
+ <em>• {$position.position} :</em> {profile user=$position.uid promo=true}<br />
+ {/foreach}
+ </td>
+ </tr>
+ {/if}
+
{if $asso->forum}
<tr>
<td class="titre">