Qual: Suppression du code de 2 variables devenues obsoltes ($user->comm et $user->compta) car remplaces par $user->rights->module->xxx

Doc: Documentation doxygen
This commit is contained in:
Laurent Destailleur 2005-01-08 23:50:04 +00:00
parent 8a0ad60f01
commit 33f14e1bd8
7 changed files with 23 additions and 48 deletions

View File

@ -1,6 +1,6 @@
<?php
/* Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -21,10 +21,9 @@
*
*/
/*!
\file htdocs/compta/pre.inc.php
\ingroup compta
\brief Fichier gestionnaire du menu compta
/** \file htdocs/compta/export/pre.inc.php
\ingroup compta
\brief Fichier gestionnaire du menu export compta
*/
require("../../main.inc.php");
@ -47,11 +46,6 @@ function llxHeader($head = "", $title="", $help_url='')
$menu->add(DOL_URL_ROOT."/compta/export/",$langs->trans("Export"));
$menu->add_submenu(DOL_URL_ROOT."/compta/export/liste.php",$langs->trans("Liste"));
if (! $user->compta)
{
$menu->clear();
$menu->add(DOL_URL_ROOT."/",$langs->trans("Home"));
}
left_menu($menu->liste, $help_url);
}

View File

@ -1,6 +1,6 @@
<?php
/* Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -21,8 +21,8 @@
*
*/
/*!
\file htdocs/product/fiche.php
/**
\file htdocs/compta/param/comptes/fiche.php
\ingroup product
\brief Page de la fiche produit
\version $Revision$
@ -34,7 +34,7 @@ $langs->load("products");
$mesg = '';
if (!$user->compta)
if (! $user->rights->compta->resultat->lire)
{
accessforbidden();
}

View File

@ -1,6 +1,6 @@
<?php
/* Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -21,10 +21,9 @@
*
*/
/*!
\file htdocs/compta/prama/pre.inc.php
\ingroup compta
\brief Fichier gestionnaire du menu paramétrage de la compta
/** \file htdocs/compta/param/pre.inc.php
\ingroup compta
\brief Fichier gestionnaire du menu paramétrage de la compta
*/
require("../../../main.inc.php");
@ -47,11 +46,6 @@ function llxHeader($head = "", $title="", $help_url='')
$menu->add_submenu(DOL_URL_ROOT."/compta/param/comptes/liste.php","Liste");
$menu->add_submenu(DOL_URL_ROOT."/compta/param/comptes/fiche.php?action=create","Nouveau");
if (! $user->compta)
{
$menu->clear();
$menu->add(DOL_URL_ROOT."/",$langs->trans("Home"));
}
left_menu($menu->liste, $help_url);
}

View File

@ -1,6 +1,6 @@
<?php
/* Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -21,10 +21,9 @@
*
*/
/**
\file htdocs/compta/param/pre.inc.php
\ingroup compta
\brief Fichier gestionnaire du menu paramétrage de la compta
/** \file htdocs/compta/param/pre.inc.php
\ingroup compta
\brief Fichier gestionnaire du menu paramétrage de la compta
*/
require("../../main.inc.php");
@ -43,11 +42,6 @@ function llxHeader($head = "", $title="", $help_url='')
$menu->add_submenu(DOL_URL_ROOT."/compta/param/comptes/liste.php","Comptes généraux");
if (! $user->compta)
{
$menu->clear();
$menu->add(DOL_URL_ROOT."/",$langs->trans("Home"));
}
left_menu($menu->liste, $help_url);
}

View File

@ -122,15 +122,7 @@ function llxHeader($head = "", $title="", $help_url='')
if ($user->rights->compta->ventilation->param)
$menu->add(DOL_URL_ROOT."/compta/param/",$langs->trans("Param"));
if (! $user->compta)
{
$menu->clear();
$menu->add(DOL_URL_ROOT."/",$langs->trans("Home"));
}
/*
*
*/
left_menu($menu->liste, $help_url);
}

View File

@ -19,6 +19,12 @@
* $Source$
*
*/
/** \file htdocs/compta/resultat/pre.inc.php
\ingroup compta
\brief Fichier gestionnaire du menu paramétrage de la compta
*/
require("./pre.inc.php");
require("../../tva.class.php");
require("../../chargesociales.class.php");

View File

@ -1,6 +1,6 @@
<?php
/* Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -48,11 +48,6 @@ function llxHeader($head = "", $title="", $help_url='')
$menu->add(DOL_URL_ROOT."/compta/export/",$langs->trans("Export"));
if (! $user->compta)
{
$menu->clear();
$menu->add(DOL_URL_ROOT."/",$langs->trans("Home"));
}
left_menu($menu->liste, $help_url);
}