dolibarr/htdocs/projet/pre.inc.php

65 lines
2.0 KiB
PHP
Raw Normal View History

2004-10-20 22:06:49 +02:00
<?php
2005-04-05 13:22:28 +02:00
/* Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
2005-04-02 12:18:01 +02:00
* Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
2003-09-04 13:08:03 +02:00
*
* 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
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* $Id$
* $Source$
*
*/
2005-04-05 13:22:28 +02:00
/*!
\file htdocs/projet/pre.inc.php
\ingroup projet
\brief Fichier de gestion du menu gauche du module projet
\version $Revision$
*/
2003-09-11 22:18:51 +02:00
require ("../main.inc.php");
require_once(DOL_DOCUMENT_ROOT."/project.class.php");
2004-05-27 12:11:38 +02:00
2005-04-05 13:22:28 +02:00
$langs->load("projects");
$langs->load("companies");
$langs->load("bills");
$langs->load("orders");
2005-12-02 13:53:42 +01:00
$langs->load("commercial");
2005-04-05 13:22:28 +02:00
$user->getrights('projet');
2004-07-21 16:26:23 +02:00
function llxHeader($head = "", $title="", $help_url='')
{
global $langs;
2004-07-21 16:26:23 +02:00
top_menu($head, $title);
2003-09-04 13:08:03 +02:00
$menu = new Menu();
2005-07-30 21:53:36 +02:00
$menu->add(DOL_URL_ROOT."/comm/clients.php", $langs->trans("Customers"));
$menu->add(DOL_URL_ROOT."/projet/", $langs->trans("Projects"));
2005-04-05 13:22:28 +02:00
$menu->add_submenu(DOL_URL_ROOT."/projet/liste.php", $langs->trans("List"));
2003-09-04 13:08:03 +02:00
2005-08-20 23:45:15 +02:00
$menu->add(DOL_URL_ROOT."/projet/tasks/", $langs->trans("Tasks"));
2005-08-22 17:53:49 +02:00
$menu->add_submenu(DOL_URL_ROOT."/projet/tasks/mytasks.php", $langs->trans("Mytasks"));
$menu->add(DOL_URL_ROOT."/projet/activity/", $langs->trans("Activity"));
2005-09-04 17:46:56 +02:00
$menu->add_submenu(DOL_URL_ROOT."/projet/activity/myactivity.php", $langs->trans("MyActivity"));
2005-08-20 23:45:15 +02:00
2004-07-21 16:26:23 +02:00
left_menu($menu->liste, $help_url);
2003-09-04 13:08:03 +02:00
}
?>