Commit 45f2a56d authored by mbriand's avatar mbriand
Browse files

bleh

parent 11e63453
......@@ -70,6 +70,21 @@ $sublist->add("<a href=\"".$topdir."emprunt.php\">Reserver du matériel</a>");
$board->add($sublist,true);
/* Comptoirs */
$req = new requete($site->db,
"SELECT id_comptoir,nom_cpt " .
"FROM cpt_comptoir " .
"WHERE id_groupe_vendeur IN (".$site->user->get_groups_csv().") AND type_cpt = '2' " .
"AND archive != '1' " .
"ORDER BY nom_cpt");
if ($req->lines > 0)
{
$sublist = new itemlist("Comptoirs","boxlist");
while(list($id,$nom)=$req->get_row())
$sublist->add("<a href=\"".$topdir."comptoir/bureau.php?id_comptoir=$id\">Comptoir : ".$nom."</a>");
$board->add($sublist,true);
}
// assos
$req = new requete($site->db,
"SELECT `asso`.`id_asso`, " .
......@@ -112,21 +127,6 @@ elseif($site->user->is_in_group("root") || $site->user->is_in_group("moderateur_
$board->add($sublist,true);
}
/* Comptoirs */
$req = new requete($site->db,
"SELECT id_comptoir,nom_cpt " .
"FROM cpt_comptoir " .
"WHERE id_groupe_vendeur IN (".$site->user->get_groups_csv().") AND type_cpt = '2' " .
"AND archive != '1' " .
"ORDER BY nom_cpt");
if ($req->lines > 0)
{
$sublist = new itemlist("Gestion assos/clubs","boxlist");
while(list($id,$nom)=$req->get_row())
$sublist->add("<a href=\"".$topdir."comptoir/bureau.php?id_comptoir=$id\">Comptoir : ".$nom."</a>");
$board->add($sublist,true);
}
$cts->add($board);
$site->add_contents($cts);
$site->end_page();
......
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