spoolroot.'/plugins/function.rel.php';
function list_all_my_groups($params)
{
if (!logged()) {
return;
}
global $globals;
$res = $globals->xdb->iterRow(
"SELECT a.nom, a.diminutif
FROM groupex.asso AS a
INNER JOIN groupex.membres AS m ON m.asso_id = a.id
WHERE m.uid={?}", Session::getInt('uid'));
$html = '
Mes groupes :
';
while (list($nom, $mini) = $res->next()) {
$html .= "• $nom";
}
return $html;
}
// }}}
// {{{ cat_pp
function cat_pp($cat)
{
$trans = array(
'groupesx' => 'Groupes X' ,
'binets' => 'Binets' ,
'institutions' => 'Institutions' ,
'promotions' => 'Promotions'
);
return $trans[strtolower($cat)];
}
// }}}
// vim:set et sw=4 sts=4 sws=4 foldmethod=marker:
?>