Commit 2dea3037 authored by Simon Magnin-Feysot's avatar Simon Magnin-Feysot

correc

parent 6481cf00
......@@ -26,7 +26,13 @@ $topdir="../";
require_once("include/comptoirs.inc.php");
require_once($topdir."include/cts/sqltable.inc.php");
require_once("include/facture.inc.php");
$site = new sitecomptoirs();
$site = new site();
$site = new site ();
if (!$site->user->is_valid())
$site->error_forbidden("services");
if (!$site->user->is_in_group ('gestion_ae'))
$site->error_forbidden("services");
if ( !$site->user->is_valid() )
{
......@@ -34,15 +40,6 @@ if ( !$site->user->is_valid() )
exit();
}
$site->fetch_proprio_comptoirs();
$comptoirs = array(0=>"-") + $site->proprio_comptoirs;
if ( !count($site->proprio_comptoirs) && !$site->user->is_in_group("gestion_ae") )
$site->error_forbidden("services");
$site->set_admin_mode();
if (isset($_REQUEST['action']) && $_REQUEST['action']=="pdf")
{
require_once ($topdir . "include/pdf/facture_pdf.inc.php");
......@@ -166,7 +163,7 @@ if (isset($_REQUEST['action']) && $_REQUEST['action']=="pdf")
$site->start_page("services","Comptabilité cotisations");
$cts = new contents("<a href=\"admin.php\">Administration comptoirs</a> / Ventes système carte AE/e-boutic");
$cts = new contents("<a href=\"admin.php\">Administration cotisations</a> / Ventes système carte AE/e-boutic");
$frm = new form ("cptacpt","compta.php",true,"POST","Critères de selection");
$frm->add_hidden("action","view");
......
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