X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fxnet%2Fpage.inc.php;h=8e19fa2bb4a878e8dede63b0c6d4fed06418e94f;hb=493b6abebf3d6c35691f66fd1bfdc063efaab576;hp=35db83f3550135229f42d2f9670d551e7d009f3c;hpb=db5db6c8f01cb894fb5f95e7bcef2723e0b1f7e8;p=platal.git diff --git a/include/xnet/page.inc.php b/include/xnet/page.inc.php index 35db83f..8e19fa2 100644 --- a/include/xnet/page.inc.php +++ b/include/xnet/page.inc.php @@ -1,6 +1,6 @@ 'send_bug', 'onclick' => 'send_bug();return false'); + $sub['signaler un bug'] = array('href' => 'send_bug', 'class' => 'popup_840x600'); $menu["no_title"] = $sub; if (S::logged() && $globals->asso()) { $sub = array(); $dim = $globals->asso('diminutif'); - $sub['présentation'] = "login/$dim/"; - if (may_update() || (is_member() && $globals->asso('pub') == 'public')) { + $sub['présentation'] = "login/$dim/"; + if (may_update() || (is_member() && $globals->asso('pub') == 'public') + || $globals->asso('cat') == 'Promotions') { $sub['annuaire du groupe'] = "$dim/annuaire"; $sub['trombinoscope'] = "$dim/trombi"; $sub['carte'] = "$dim/geoloc"; @@ -84,9 +85,9 @@ class XnetPage extends PlatalPage if ((is_member() || may_update()) && $globals->asso('mail_domain')) { $sub['listes de diffusion'] = "$dim/lists"; } - $sub['événement'] = "$dim/events"; + $sub['événement'] = "$dim/events"; if (may_update() || is_member()) { - $sub['télépaiement'] = "$dim/paiement"; + $sub['télépaiement'] = "$dim/payment"; } $menu[$globals->asso('nom')] = $sub; @@ -95,19 +96,21 @@ class XnetPage extends PlatalPage if (S::logged() && may_update()) { $sub = array(); $sub['modifier l\'accueil'] = "$dim/edit"; - $sub['gérer les annonces'] = "$dim/admin/announces"; + $sub['gérer les annonces'] = "$dim/admin/announces"; if ($globals->asso('mail_domain')) { $sub['envoyer un mail'] = "$dim/mail"; - $sub['créer une liste'] = "$dim/lists/create"; - $sub['créer un alias'] = "$dim/alias/create"; + $sub['créer une liste'] = "$dim/lists/create"; + $sub['créer un alias'] = "$dim/alias/create"; } if (S::has_perms()) { - $sub['gérer les groupes'] = 'admin'; + $sub['gérer les groupes'] = array('href' => 'admin', 'style' => 'color: gray;'); + $sub['clear cache'] = array('href' => 'purge_cache', 'style' => 'color: gray;'); } $menu['Administrer'] = $sub; } elseif (S::has_perms()) { $sub = array(); - $sub['gérer les groupes'] = 'admin'; + $sub['gérer les groupes'] = 'admin'; + $sub['clear cache'] = 'purge_cache'; $menu['Administrer'] = $sub; } @@ -129,7 +132,8 @@ function list_all_my_groups($params) FROM groupex.asso AS a INNER JOIN groupex.membres AS m ON m.asso_id = a.id WHERE m.uid={?}", S::v('uid')); - $html = '
Mes groupes (déconnexion) :
'; + $links = 'déconnexion'; + $html = '
Mes groupes (' . $links . ') :
'; while (list($nom, $mini) = $res->next()) { $html .= "$nom"; } @@ -153,5 +157,5 @@ function cat_pp($cat) // }}} -// vim:set et sw=4 sts=4 sws=4 foldmethod=marker: +// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: ?>