Commit 0e3f493b authored by Ayolo's avatar Ayolo

assos box

parent d0ff862b
...@@ -841,14 +841,6 @@ class site extends interfaceweb ...@@ -841,14 +841,6 @@ class site extends interfaceweb
$cts->add($sublist,true, true, "syscarteaebox", "boxlist", true, false); $cts->add($sublist,true, true, "syscarteaebox", "boxlist", true, false);
} }
if( $this->user->is_in_group("root") )
{
$sublist = new itemlist("Equipe info","boxlist");
$sublist->add("<a href=\"".$topdir."rootplace/index.php\">Rootplace</a>");
$cts->add($sublist,true, true, "rootadminbox", "boxlist", true, false);
}
$req = new requete($this->db, $req = new requete($this->db,
"SELECT `asso`.`id_asso`, " . "SELECT `asso`.`id_asso`, " .
"`asso`.`nom_asso` ". "`asso`.`nom_asso` ".
...@@ -861,10 +853,16 @@ class site extends interfaceweb ...@@ -861,10 +853,16 @@ class site extends interfaceweb
if ( $req->lines > 0 ) if ( $req->lines > 0 )
{ {
if( $req->lines == 0 ) if( $this->user->is_in_group("root") )
$sublist = new itemlist("Gestion association","boxlist"); $sublist = new itemlist("Gestion assos/clubs","boxlist");
elseif( $req->lines == 0 )
$sublist = new itemlist("Gestion assos/club","boxlist");
else else
$sublist = new itemlist("Gestion associations","boxlist"); $sublist = new itemlist("Gestion associations","boxlist");
if( $this->user->is_in_group("root") )
$sublist->add("<a href=\"".$topdir."rootplace/index.php\">Rootplace</a>");
while ( list($id,$nom) = $req->get_row() ) while ( list($id,$nom) = $req->get_row() )
$sublist->add("<a href=\"".$topdir."asso/index.php?id_asso=$id\">$nom</a>"); $sublist->add("<a href=\"".$topdir."asso/index.php?id_asso=$id\">$nom</a>");
$cts->add($sublist,true, true, "assobox", "boxlist", true, true); $cts->add($sublist,true, true, "assobox", "boxlist", true, true);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment