Doc: Documentation doxygen
This commit is contained in:
parent
0911bb58be
commit
dc60ec96a4
@ -22,7 +22,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\file htdocs/pre.inc.php
|
\file htdocs/product/pre.inc.php
|
||||||
\ingroup product,service
|
\ingroup product,service
|
||||||
\brief Fichier gestionnaire du menu gauche des produits et services
|
\brief Fichier gestionnaire du menu gauche des produits et services
|
||||||
\version $Revision$
|
\version $Revision$
|
||||||
@ -36,10 +36,6 @@ function llxHeader($head = "", $urlp = "", $title="")
|
|||||||
global $user, $conf, $langs;
|
global $user, $conf, $langs;
|
||||||
$langs->load("products");
|
$langs->load("products");
|
||||||
|
|
||||||
/*
|
|
||||||
*
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
top_menu($head, $title);
|
top_menu($head, $title);
|
||||||
|
|
||||||
$menu = new Menu();
|
$menu = new Menu();
|
||||||
@ -85,6 +81,12 @@ function llxHeader($head = "", $urlp = "", $title="")
|
|||||||
$menu->add(DOL_URL_ROOT."/fourn/index.php", $langs->trans("Suppliers"));
|
$menu->add(DOL_URL_ROOT."/fourn/index.php", $langs->trans("Suppliers"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($conf->commande->enabled)
|
||||||
|
{
|
||||||
|
$langs->load("orders");
|
||||||
|
$menu->add(DOL_URL_ROOT."/commande/", $langs->trans("Orders"));
|
||||||
|
}
|
||||||
|
|
||||||
$menu->add(DOL_URL_ROOT."/product/stats/", $langs->trans("Statistics"));
|
$menu->add(DOL_URL_ROOT."/product/stats/", $langs->trans("Statistics"));
|
||||||
if ($conf->propal->enabled)
|
if ($conf->propal->enabled)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2003-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
|
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -19,19 +20,24 @@
|
|||||||
* $Source$
|
* $Source$
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/*!
|
||||||
|
\file htdocs/product/stats/pre.inc.php
|
||||||
|
\ingroup product,service
|
||||||
|
\brief Fichier gestionnaire du menu gauche des statistiques de produits et services
|
||||||
|
\version $Revision$
|
||||||
|
*/
|
||||||
|
|
||||||
require("../../main.inc.php");
|
require("../../main.inc.php");
|
||||||
require(DOL_DOCUMENT_ROOT."/bargraph.class.php");
|
require(DOL_DOCUMENT_ROOT."/bargraph.class.php");
|
||||||
|
|
||||||
$types[0] = "produit";
|
|
||||||
$types[1] = "service";
|
|
||||||
|
|
||||||
|
function llxHeader($head = "", $urlp = "", $title="")
|
||||||
function llxHeader($head = "", $urlp = "")
|
|
||||||
{
|
{
|
||||||
global $user, $conf, $langs;
|
global $user, $conf, $langs;
|
||||||
$langs->load("products");
|
$langs->load("products");
|
||||||
|
|
||||||
top_menu($head);
|
top_menu($head, $title);
|
||||||
|
|
||||||
$menu = new Menu();
|
$menu = new Menu();
|
||||||
|
|
||||||
@ -39,15 +45,22 @@ function llxHeader($head = "", $urlp = "")
|
|||||||
{
|
{
|
||||||
$menu->add(DOL_URL_ROOT."/product/index.php?type=0", $langs->trans("Products"));
|
$menu->add(DOL_URL_ROOT."/product/index.php?type=0", $langs->trans("Products"));
|
||||||
$menu->add_submenu(DOL_URL_ROOT."/product/liste.php?type=0", $langs->trans("List"));
|
$menu->add_submenu(DOL_URL_ROOT."/product/liste.php?type=0", $langs->trans("List"));
|
||||||
|
|
||||||
|
if ($user->societe_id == 0 && $user->rights->produit->creer)
|
||||||
|
{
|
||||||
$menu->add_submenu(DOL_URL_ROOT."/product/fiche.php?action=create&type=0", $langs->trans("NewProduct"));
|
$menu->add_submenu(DOL_URL_ROOT."/product/fiche.php?action=create&type=0", $langs->trans("NewProduct"));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ($conf->service->enabled)
|
if ($conf->service->enabled)
|
||||||
{
|
{
|
||||||
$menu->add(DOL_URL_ROOT."/product/index.php?type=1", $langs->trans("Services"));
|
$menu->add(DOL_URL_ROOT."/product/index.php?type=1", $langs->trans("Services"));
|
||||||
$menu->add_submenu(DOL_URL_ROOT."/product/liste.php?type=1", $langs->trans("List"));
|
$menu->add_submenu(DOL_URL_ROOT."/product/liste.php?type=1", $langs->trans("List"));
|
||||||
|
if ($user->societe_id == 0 && $user->rights->produit->creer)
|
||||||
|
{
|
||||||
$menu->add_submenu(DOL_URL_ROOT."/product/fiche.php?action=create&type=1", $langs->trans("NewService"));
|
$menu->add_submenu(DOL_URL_ROOT."/product/fiche.php?action=create&type=1", $langs->trans("NewService"));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ($conf->boutique->enabled)
|
if ($conf->boutique->enabled)
|
||||||
{
|
{
|
||||||
@ -78,7 +91,8 @@ function llxHeader($head = "", $urlp = "")
|
|||||||
}
|
}
|
||||||
|
|
||||||
$menu->add(DOL_URL_ROOT."/product/stats/", $langs->trans("Statistics"));
|
$menu->add(DOL_URL_ROOT."/product/stats/", $langs->trans("Statistics"));
|
||||||
if ($conf->propal->enabled) {
|
if ($conf->propal->enabled)
|
||||||
|
{
|
||||||
$menu->add_submenu(DOL_URL_ROOT."/product/popuprop.php", $langs->trans("Popularity"));
|
$menu->add_submenu(DOL_URL_ROOT."/product/popuprop.php", $langs->trans("Popularity"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user