New: Some pages can link to wiki help pages
This commit is contained in:
parent
f3cfea66e1
commit
77d3821645
@ -1,4 +1,4 @@
|
|||||||
#Wed Feb 11 17:58:49 CET 2009
|
#Mon Mar 09 12:23:31 CET 2009
|
||||||
eclipse.preferences.version=1
|
eclipse.preferences.version=1
|
||||||
encoding//dev/initdemo/initdemo.sql=UTF-8
|
encoding//dev/initdemo/initdemo.sql=UTF-8
|
||||||
encoding//dev/skeletons/modMyModule.class.php=ISO-8859-1
|
encoding//dev/skeletons/modMyModule.class.php=ISO-8859-1
|
||||||
@ -7,7 +7,7 @@ encoding//htdocs/adherents/adherent.class.php=ISO-8859-1
|
|||||||
encoding//htdocs/admin/adherent.php=ISO-8859-1
|
encoding//htdocs/admin/adherent.php=ISO-8859-1
|
||||||
encoding//htdocs/admin/company.php=ISO-8859-1
|
encoding//htdocs/admin/company.php=ISO-8859-1
|
||||||
encoding//htdocs/admin/fckeditor.php=ISO-8859-1
|
encoding//htdocs/admin/fckeditor.php=ISO-8859-1
|
||||||
encoding//htdocs/admin/index.php=ISO-8859-1
|
encoding//htdocs/admin/index.php=UTF-8
|
||||||
encoding//htdocs/admin/menus/index.php=ISO-8859-1
|
encoding//htdocs/admin/menus/index.php=ISO-8859-1
|
||||||
encoding//htdocs/admin/security.php=ISO-8859-1
|
encoding//htdocs/admin/security.php=ISO-8859-1
|
||||||
encoding//htdocs/admin/system/database-tables-contraintes.php=ISO-8859-1
|
encoding//htdocs/admin/system/database-tables-contraintes.php=ISO-8859-1
|
||||||
|
|||||||
@ -39,6 +39,7 @@ For users:
|
|||||||
- New: Upload of joined files need create/modify permissions to work.
|
- New: Upload of joined files need create/modify permissions to work.
|
||||||
- New: For admin users, show the SQL request in export build.
|
- New: For admin users, show the SQL request in export build.
|
||||||
- New: Can modify proposal date if status is draft.
|
- New: Can modify proposal date if status is draft.
|
||||||
|
- New: The help link on some pages now links directly to the wiki web page.
|
||||||
- Fix: Partial payment on social contributions not shown on main page.
|
- Fix: Partial payment on social contributions not shown on main page.
|
||||||
- Fix: Handle correctly the comment in status changing of supplier orders.
|
- Fix: Handle correctly the comment in status changing of supplier orders.
|
||||||
- Fix: Author, title and topic are correctly encoded in PDF.
|
- Fix: Author, title and topic are correctly encoded in PDF.
|
||||||
|
|||||||
@ -17,28 +17,33 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\file htdocs/dev/skeletons/pre.inc.php
|
* \file htdocs/dev/skeletons/pre.inc.php
|
||||||
\brief File to manage left menu by default
|
* \brief File to manage left menu by default
|
||||||
\version $Id$
|
* \version $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Include environment and check authentification
|
// Include environment and check authentification
|
||||||
require ("../../main.inc.php"); // This include must use a relative link to the main.inc.php file
|
require ("../../main.inc.php"); // This include must use a relative link to the main.inc.php file
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\brief Function called by page to show menus (top and left)
|
* \brief Function called by page to show menus (top and left)
|
||||||
*/
|
* \param head Text to show as head line
|
||||||
function llxHeader($head = "")
|
* \param title Not used
|
||||||
|
* \param helppagename Name of a help page ('' by default).
|
||||||
|
* Syntax is: For a wiki page: EN:EnglishPage|FR:FrenchPage|ES:SpanishPage
|
||||||
|
* For other external page: http://server/url
|
||||||
|
*/
|
||||||
|
function llxHeader($head = '', $title='', $help_url='')
|
||||||
{
|
{
|
||||||
global $user, $conf, $langs;
|
global $user, $conf, $langs;
|
||||||
|
|
||||||
top_menu($head);
|
top_menu($head);
|
||||||
|
|
||||||
$menu = new Menu();
|
$menu = new Menu();
|
||||||
|
|
||||||
// Create default menu.
|
// Create default menu.
|
||||||
|
|
||||||
// No code here is required if you already added menu entries in
|
// No code here is required if you already added menu entries in
|
||||||
// the module descriptor (recommanded).
|
// the module descriptor (recommanded).
|
||||||
// If not you must manually add menu entries here (not recommanded).
|
// If not you must manually add menu entries here (not recommanded).
|
||||||
@ -47,7 +52,7 @@ function llxHeader($head = "")
|
|||||||
$menu->add(DOL_URL_ROOT."/mylink.php", $langs->trans("MyMenuLabel"));
|
$menu->add(DOL_URL_ROOT."/mylink.php", $langs->trans("MyMenuLabel"));
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
left_menu($menu->liste);
|
left_menu($menu->liste, $help_url);
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|||||||
@ -75,7 +75,7 @@ if ($_REQUEST["action"] == 'add')
|
|||||||
* Put here all code to build page
|
* Put here all code to build page
|
||||||
****************************************************/
|
****************************************************/
|
||||||
|
|
||||||
llxHeader('MyPageName');
|
llxHeader('MyPageName','','');
|
||||||
|
|
||||||
$form=new Form($db);
|
$form=new Form($db);
|
||||||
|
|
||||||
|
|||||||
@ -26,7 +26,8 @@
|
|||||||
|
|
||||||
require("../../main.inc.php");
|
require("../../main.inc.php");
|
||||||
|
|
||||||
function llxHeader($head = "") {
|
function llxHeader($head = '', $title='', $help_url='')
|
||||||
|
{
|
||||||
global $user, $conf, $langs;
|
global $user, $conf, $langs;
|
||||||
|
|
||||||
top_menu($head);
|
top_menu($head);
|
||||||
|
|||||||
@ -33,7 +33,11 @@ $langs->load("companies");
|
|||||||
$langs->load("members");
|
$langs->load("members");
|
||||||
|
|
||||||
|
|
||||||
llxHeader();
|
/*
|
||||||
|
* View
|
||||||
|
*/
|
||||||
|
|
||||||
|
llxHeader($langs->trans("Members"),'','EN:Fundations|FR:Adherents|ES:Miembros');
|
||||||
|
|
||||||
$staticmember=new Adherent($db);
|
$staticmember=new Adherent($db);
|
||||||
$statictype=new AdherentType($db);
|
$statictype=new AdherentType($db);
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2004-2005 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
|
* This program is free software; you can redistribute it and/or modify
|
||||||
@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
require("../main.inc.php");
|
require("../main.inc.php");
|
||||||
|
|
||||||
function llxHeader($head = "")
|
function llxHeader($head = '', $title='', $help_url='')
|
||||||
{
|
{
|
||||||
global $user, $conf, $langs;
|
global $user, $conf, $langs;
|
||||||
|
|
||||||
@ -63,7 +63,7 @@ function llxHeader($head = "")
|
|||||||
$menu->add_submenu(DOL_URL_ROOT."/adherents/type.php",$langs->trans("MembersTypes"));
|
$menu->add_submenu(DOL_URL_ROOT."/adherents/type.php",$langs->trans("MembersTypes"));
|
||||||
$menu->add_submenu(DOL_URL_ROOT."/adherents/options.php",$langs->trans("MembersAttributes"));
|
$menu->add_submenu(DOL_URL_ROOT."/adherents/options.php",$langs->trans("MembersAttributes"));
|
||||||
|
|
||||||
left_menu($menu->liste);
|
left_menu($menu->liste, $help_url);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -18,10 +18,10 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\file htdocs/admin/index.php
|
* \file htdocs/admin/index.php
|
||||||
\brief Page d'accueil de l'espace administration/configuration
|
* \brief Page d'accueil de l'espace administration/configuration
|
||||||
\version $Id$
|
* \version $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require("./pre.inc.php");
|
require("./pre.inc.php");
|
||||||
|
|
||||||
@ -38,7 +38,7 @@ $mesg='';
|
|||||||
* View
|
* View
|
||||||
*/
|
*/
|
||||||
|
|
||||||
llxHeader();
|
llxHeader($langs->trans("Setup"),'','EN:First_setup|FR:Premiers_paramétrages|ES:Primeras_configuraciones');
|
||||||
|
|
||||||
$form = new Form($db);
|
$form = new Form($db);
|
||||||
|
|
||||||
|
|||||||
@ -20,7 +20,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\file htdocs/bookmarks/pre.inc.php
|
\file htdocs/bookmarks/pre.inc.php
|
||||||
\ingroup bookmark
|
\ingroup bookmark
|
||||||
\brief Fichier de gestion du menu gauche des bookmarks
|
\brief Fichier de gestion du menu gauche des bookmarks
|
||||||
@ -30,23 +30,23 @@
|
|||||||
require("../main.inc.php");
|
require("../main.inc.php");
|
||||||
|
|
||||||
|
|
||||||
function llxHeader($head = "", $title = "")
|
function llxHeader($head = '', $title='', $help_url='')
|
||||||
{
|
{
|
||||||
global $user, $conf, $langs;
|
global $user, $conf, $langs;
|
||||||
$langs->load("other");
|
$langs->load("other");
|
||||||
|
|
||||||
top_menu($head, $title);
|
top_menu($head, $title);
|
||||||
|
|
||||||
$menu = new Menu();
|
$menu = new Menu();
|
||||||
|
|
||||||
// Bookmarks
|
// Bookmarks
|
||||||
if ($conf->bookmark->enabled)
|
if ($conf->bookmark->enabled)
|
||||||
{
|
{
|
||||||
if ($user->rights->bookmark->lire) $menu->add(DOL_URL_ROOT."/bookmarks/liste.php", $langs->trans("Bookmarks"));
|
if ($user->rights->bookmark->lire) $menu->add(DOL_URL_ROOT."/bookmarks/liste.php", $langs->trans("Bookmarks"));
|
||||||
if ($user->rights->bookmark->creer) $menu->add_submenu(DOL_URL_ROOT."/bookmarks/fiche.php?action=create", $langs->trans("NewBookmark"));
|
if ($user->rights->bookmark->creer) $menu->add_submenu(DOL_URL_ROOT."/bookmarks/fiche.php?action=create", $langs->trans("NewBookmark"));
|
||||||
if ($user->rights->bookmark->lire) $menu->add_submenu(DOL_URL_ROOT."/bookmarks/liste.php", $langs->trans("List"));
|
if ($user->rights->bookmark->lire) $menu->add_submenu(DOL_URL_ROOT."/bookmarks/liste.php", $langs->trans("List"));
|
||||||
}
|
}
|
||||||
|
|
||||||
left_menu($menu->liste);
|
left_menu($menu->liste);
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|||||||
@ -104,12 +104,12 @@ if ($action=='delete_action')
|
|||||||
* View
|
* View
|
||||||
*/
|
*/
|
||||||
|
|
||||||
llxHeader();
|
llxHeader('','','EN:AgendaEn|FR:Agenda|ES:AgendaES');
|
||||||
|
|
||||||
$form=new Form($db);
|
$form=new Form($db);
|
||||||
|
|
||||||
//print $langs->trans("FeatureNotYetAvailable");
|
//print $langs->trans("FeatureNotYetAvailable");
|
||||||
$now=mktime(0,0,0);
|
$now=gmmktime(0,0,0);
|
||||||
|
|
||||||
$prev = dol_get_prev_month($month, $year);
|
$prev = dol_get_prev_month($month, $year);
|
||||||
$prev_year = $prev['year'];
|
$prev_year = $prev['year'];
|
||||||
|
|||||||
@ -27,19 +27,19 @@
|
|||||||
require("../../main.inc.php");
|
require("../../main.inc.php");
|
||||||
|
|
||||||
|
|
||||||
function llxHeader($head = "", $urlp = "")
|
function llxHeader($head = '', $title='', $help_url='')
|
||||||
{
|
{
|
||||||
global $conf,$user,$langs;
|
global $conf,$user,$langs;
|
||||||
|
|
||||||
top_menu($head);
|
top_menu($head);
|
||||||
|
|
||||||
$menu = new Menu();
|
$menu = new Menu();
|
||||||
|
|
||||||
// Actions
|
// Actions
|
||||||
if ($conf->agenda->enabled)
|
if ($conf->agenda->enabled)
|
||||||
{
|
{
|
||||||
$langs->load("agenda");
|
$langs->load("agenda");
|
||||||
|
|
||||||
// Actions
|
// Actions
|
||||||
$menu->add_submenu(DOL_URL_ROOT."/comm/action/index.php?mainmenu=agenda&leftmenu=agenda", $langs->trans("Actions"), 0, $user->rights->agenda->myactions->read);
|
$menu->add_submenu(DOL_URL_ROOT."/comm/action/index.php?mainmenu=agenda&leftmenu=agenda", $langs->trans("Actions"), 0, $user->rights->agenda->myactions->read);
|
||||||
$menu->add_submenu(DOL_URL_ROOT."/comm/action/fiche.php?mainmenu=agenda&leftmenu=agenda&action=create", $langs->trans("NewAction"), 1, $user->rights->agenda->myactions->read);
|
$menu->add_submenu(DOL_URL_ROOT."/comm/action/fiche.php?mainmenu=agenda&leftmenu=agenda&action=create", $langs->trans("NewAction"), 1, $user->rights->agenda->myactions->read);
|
||||||
@ -64,8 +64,8 @@ function llxHeader($head = "", $urlp = "")
|
|||||||
// Reports
|
// Reports
|
||||||
$menu->add_submenu(DOL_URL_ROOT."/comm/action/rapport/index.php?mainmenu=agenda&leftmenu=agenda", $langs->trans("Reportings"), 1, $user->rights->agenda->myactions->read);
|
$menu->add_submenu(DOL_URL_ROOT."/comm/action/rapport/index.php?mainmenu=agenda&leftmenu=agenda", $langs->trans("Reportings"), 1, $user->rights->agenda->myactions->read);
|
||||||
}
|
}
|
||||||
|
|
||||||
left_menu($menu->liste);
|
left_menu($menu->liste, $help_url);
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
@ -17,7 +17,7 @@
|
|||||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\file htdocs/comm/pre.inc.php
|
\file htdocs/comm/pre.inc.php
|
||||||
\ingroup commercial
|
\ingroup commercial
|
||||||
\brief Fichier de gestion du menu gauche de l'espace commercial
|
\brief Fichier de gestion du menu gauche de l'espace commercial
|
||||||
@ -26,7 +26,7 @@
|
|||||||
require("../main.inc.php");
|
require("../main.inc.php");
|
||||||
|
|
||||||
|
|
||||||
function llxHeader($head = "", $title = "")
|
function llxHeader($head = '', $title='', $help_url='')
|
||||||
{
|
{
|
||||||
global $user, $conf, $langs;
|
global $user, $conf, $langs;
|
||||||
|
|
||||||
@ -43,22 +43,22 @@ function llxHeader($head = "", $title = "")
|
|||||||
{
|
{
|
||||||
$menu->add_submenu(DOL_URL_ROOT."/soc.php?action=create&type=c", $langs->trans("MenuNewCustomer"));
|
$menu->add_submenu(DOL_URL_ROOT."/soc.php?action=create&type=c", $langs->trans("MenuNewCustomer"));
|
||||||
}
|
}
|
||||||
|
|
||||||
$menu->add_submenu(DOL_URL_ROOT."/comm/contact.php?type=c", $langs->trans("Contacts"));
|
$menu->add_submenu(DOL_URL_ROOT."/comm/contact.php?type=c", $langs->trans("Contacts"));
|
||||||
|
|
||||||
|
|
||||||
// Prospects
|
// Prospects
|
||||||
$menu->add(DOL_URL_ROOT."/comm/prospect/index.php", $langs->trans("Prospects"));
|
$menu->add(DOL_URL_ROOT."/comm/prospect/index.php", $langs->trans("Prospects"));
|
||||||
if ($user->rights->societe->creer)
|
if ($user->rights->societe->creer)
|
||||||
{
|
{
|
||||||
$menu->add_submenu(DOL_URL_ROOT."/soc.php?action=create&type=p", $langs->trans("MenuNewProspect"));
|
$menu->add_submenu(DOL_URL_ROOT."/soc.php?action=create&type=p", $langs->trans("MenuNewProspect"));
|
||||||
}
|
}
|
||||||
|
|
||||||
$menu->add_submenu(DOL_URL_ROOT."/comm/contact.php?type=p", $langs->trans("Contacts"));
|
$menu->add_submenu(DOL_URL_ROOT."/comm/contact.php?type=p", $langs->trans("Contacts"));
|
||||||
|
|
||||||
|
|
||||||
$menu->add(DOL_URL_ROOT."/comm/action/index.php", $langs->trans("Actions"));
|
$menu->add(DOL_URL_ROOT."/comm/action/index.php", $langs->trans("Actions"));
|
||||||
|
|
||||||
// Propal
|
// Propal
|
||||||
if ($conf->propal->enabled && $user->rights->propale->lire)
|
if ($conf->propal->enabled && $user->rights->propale->lire)
|
||||||
{
|
{
|
||||||
@ -76,7 +76,7 @@ function llxHeader($head = "", $title = "")
|
|||||||
$menu->add(DOL_URL_ROOT."/contrat/index.php", $langs->trans("Contracts"));
|
$menu->add(DOL_URL_ROOT."/contrat/index.php", $langs->trans("Contracts"));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($conf->commande->enabled && $user->rights->commande->lire)
|
if ($conf->commande->enabled && $user->rights->commande->lire)
|
||||||
{
|
{
|
||||||
$langs->load("orders");
|
$langs->load("orders");
|
||||||
$menu->add(DOL_URL_ROOT."/commande/index.php", $langs->trans("Orders"));
|
$menu->add(DOL_URL_ROOT."/commande/index.php", $langs->trans("Orders"));
|
||||||
@ -88,7 +88,7 @@ function llxHeader($head = "", $title = "")
|
|||||||
$menu->add(DOL_URL_ROOT."/comm/mailing/", $langs->trans("EMailings"));
|
$menu->add(DOL_URL_ROOT."/comm/mailing/", $langs->trans("EMailings"));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($conf->ficheinter->enabled && $user->rights->ficheinter->lire)
|
if ($conf->ficheinter->enabled && $user->rights->ficheinter->lire)
|
||||||
{
|
{
|
||||||
$langs->load("interventions");
|
$langs->load("interventions");
|
||||||
$menu->add(DOL_URL_ROOT."/fichinter/index.php", $langs->trans("Interventions"));
|
$menu->add(DOL_URL_ROOT."/fichinter/index.php", $langs->trans("Interventions"));
|
||||||
@ -103,13 +103,13 @@ function llxHeader($head = "", $title = "")
|
|||||||
if ($conf->service->enabled) { $chaine.=$langs->trans("Services"); }
|
if ($conf->service->enabled) { $chaine.=$langs->trans("Services"); }
|
||||||
$menu->add(DOL_URL_ROOT."/product/index.php", "$chaine");
|
$menu->add(DOL_URL_ROOT."/product/index.php", "$chaine");
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($conf->projet->enabled && $user->rights->projet->lire)
|
if ($conf->projet->enabled && $user->rights->projet->lire)
|
||||||
{
|
{
|
||||||
$langs->load("projects");
|
$langs->load("projects");
|
||||||
$menu->add(DOL_URL_ROOT."/projet/index.php", $langs->trans("Projects"));
|
$menu->add(DOL_URL_ROOT."/projet/index.php", $langs->trans("Projects"));
|
||||||
}
|
}
|
||||||
|
|
||||||
left_menu($menu->liste);
|
left_menu($menu->liste, $help_url);
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|||||||
@ -34,23 +34,23 @@ require_once(DOL_DOCUMENT_ROOT."/commande/commande.class.php");
|
|||||||
$langs->load("orders");
|
$langs->load("orders");
|
||||||
|
|
||||||
|
|
||||||
function llxHeader($head = "", $title="", $help_url='')
|
function llxHeader($head = '', $title='', $help_url='')
|
||||||
{
|
{
|
||||||
global $user, $conf, $langs;
|
global $user, $conf, $langs;
|
||||||
|
|
||||||
top_menu($head, $title);
|
top_menu($head, $title);
|
||||||
|
|
||||||
$menu = new Menu();
|
$menu = new Menu();
|
||||||
|
|
||||||
$menu->add(DOL_URL_ROOT."/commande/", $langs->trans("Orders"));
|
$menu->add(DOL_URL_ROOT."/commande/", $langs->trans("Orders"));
|
||||||
$menu->add_submenu(DOL_URL_ROOT."/commande/liste.php", $langs->trans("List"));
|
$menu->add_submenu(DOL_URL_ROOT."/commande/liste.php", $langs->trans("List"));
|
||||||
$menu->add_submenu(DOL_URL_ROOT."/commande/stats/", $langs->trans("Statistics"));
|
$menu->add_submenu(DOL_URL_ROOT."/commande/stats/", $langs->trans("Statistics"));
|
||||||
|
|
||||||
if ($conf->expedition->enabled && $user->rights->expedition->lire)
|
if ($conf->expedition->enabled && $user->rights->expedition->lire)
|
||||||
{
|
{
|
||||||
$menu->add(DOL_URL_ROOT."/expedition/", $langs->trans("Sendings"));
|
$menu->add(DOL_URL_ROOT."/expedition/", $langs->trans("Sendings"));
|
||||||
}
|
}
|
||||||
|
|
||||||
left_menu($menu->liste, $help_url);
|
left_menu($menu->liste, $help_url);
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2004-2005 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
|
* This program is free software; you can redistribute it and/or modify
|
||||||
@ -17,7 +17,7 @@
|
|||||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\file htdocs/compta/pre.inc.php
|
\file htdocs/compta/pre.inc.php
|
||||||
\ingroup compta
|
\ingroup compta
|
||||||
\brief Fichier gestionnaire du menu compta
|
\brief Fichier gestionnaire du menu compta
|
||||||
@ -27,7 +27,7 @@
|
|||||||
require("../main.inc.php");
|
require("../main.inc.php");
|
||||||
|
|
||||||
|
|
||||||
function llxHeader($head = "", $title="", $help_url='')
|
function llxHeader($head = '', $title='', $help_url='')
|
||||||
{
|
{
|
||||||
global $user, $conf, $langs;
|
global $user, $conf, $langs;
|
||||||
|
|
||||||
@ -126,7 +126,7 @@ function llxHeader($head = "", $title="", $help_url='')
|
|||||||
{
|
{
|
||||||
$menu->add(DOL_URL_ROOT."/compta/ventilation/",$langs->trans("Ventilation"));
|
$menu->add(DOL_URL_ROOT."/compta/ventilation/",$langs->trans("Ventilation"));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($user->rights->compta->ventilation->parametrer)
|
if ($user->rights->compta->ventilation->parametrer)
|
||||||
{
|
{
|
||||||
$menu->add(DOL_URL_ROOT."/compta/param/",$langs->trans("Param"));
|
$menu->add(DOL_URL_ROOT."/compta/param/",$langs->trans("Param"));
|
||||||
|
|||||||
@ -26,7 +26,7 @@ require("../main.inc.php");
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
function llxHeader($head = "", $urlp = "")
|
function llxHeader($head = '', $title='', $help_url='')
|
||||||
{
|
{
|
||||||
global $langs, $user, $conf;
|
global $langs, $user, $conf;
|
||||||
|
|
||||||
@ -58,8 +58,8 @@ function llxHeader($head = "", $urlp = "")
|
|||||||
|
|
||||||
$menu->add(DOL_URL_ROOT."/contact/index.php?userid=$user->id", $langs->trans("MyContacts"));
|
$menu->add(DOL_URL_ROOT."/contact/index.php?userid=$user->id", $langs->trans("MyContacts"));
|
||||||
}
|
}
|
||||||
|
|
||||||
left_menu($menu->liste);
|
left_menu($menu->liste, $help_url);
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
@ -20,7 +20,7 @@
|
|||||||
* $Source$
|
* $Source$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\file htdocs/contrat/pre.inc.php
|
\file htdocs/contrat/pre.inc.php
|
||||||
\ingroup contrat
|
\ingroup contrat
|
||||||
\brief Fichier de gestion du menu gauche de l'espace contrat
|
\brief Fichier de gestion du menu gauche de l'espace contrat
|
||||||
@ -29,15 +29,15 @@
|
|||||||
|
|
||||||
require("../main.inc.php");
|
require("../main.inc.php");
|
||||||
|
|
||||||
function llxHeader($head = "", $urlp = "")
|
function llxHeader($head = '', $title='', $help_url='')
|
||||||
{
|
{
|
||||||
global $user, $conf, $langs;
|
global $user, $conf, $langs;
|
||||||
$langs->load("contracts");
|
$langs->load("contracts");
|
||||||
|
|
||||||
top_menu($head);
|
top_menu($head);
|
||||||
|
|
||||||
$menu = new Menu();
|
$menu = new Menu();
|
||||||
|
|
||||||
$menu->add(DOL_URL_ROOT."/contrat/index.php", $langs->trans("Contracts"));
|
$menu->add(DOL_URL_ROOT."/contrat/index.php", $langs->trans("Contracts"));
|
||||||
$menu->add_submenu(DOL_URL_ROOT."/societe.php", $langs->trans("NewContract"));
|
$menu->add_submenu(DOL_URL_ROOT."/societe.php", $langs->trans("NewContract"));
|
||||||
$menu->add_submenu(DOL_URL_ROOT."/contrat/liste.php", $langs->trans("List"));
|
$menu->add_submenu(DOL_URL_ROOT."/contrat/liste.php", $langs->trans("List"));
|
||||||
@ -46,7 +46,7 @@ function llxHeader($head = "", $urlp = "")
|
|||||||
$menu->add_submenu(DOL_URL_ROOT."/contrat/services.php?mode=4", $langs->trans("MenuRunningServices"), 2 , true);
|
$menu->add_submenu(DOL_URL_ROOT."/contrat/services.php?mode=4", $langs->trans("MenuRunningServices"), 2 , true);
|
||||||
$menu->add_submenu(DOL_URL_ROOT."/contrat/services.php?mode=4&filter=expired", $langs->trans("MenuExpiredServices"), 2 , true);
|
$menu->add_submenu(DOL_URL_ROOT."/contrat/services.php?mode=4&filter=expired", $langs->trans("MenuExpiredServices"), 2 , true);
|
||||||
$menu->add_submenu(DOL_URL_ROOT."/contrat/services.php?mode=5", $langs->trans("MenuClosedServices"), 2 , true);
|
$menu->add_submenu(DOL_URL_ROOT."/contrat/services.php?mode=5", $langs->trans("MenuClosedServices"), 2 , true);
|
||||||
|
|
||||||
left_menu($menu->liste);
|
left_menu($menu->liste, $help_url);
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|||||||
@ -27,15 +27,15 @@ require ("../main.inc.php");
|
|||||||
|
|
||||||
$user->getrights('ecm');
|
$user->getrights('ecm');
|
||||||
|
|
||||||
function llxHeader($head = "", $title="", $help_url='', $morehtml='')
|
function llxHeader($head = '', $title='', $help_url='', $morehtml='')
|
||||||
{
|
{
|
||||||
global $conf,$langs,$user;
|
global $conf,$langs,$user;
|
||||||
$langs->load("ecm");
|
$langs->load("ecm");
|
||||||
$langs->load("bills");
|
$langs->load("bills");
|
||||||
$langs->load("propal");
|
$langs->load("propal");
|
||||||
|
|
||||||
top_menu($head, $title);
|
top_menu($head, $title);
|
||||||
|
|
||||||
$menu = new Menu();
|
$menu = new Menu();
|
||||||
|
|
||||||
$menu->add(DOL_URL_ROOT."/ecm/index.php?mainmenu=ecm&idmenu=".$_SESSION["idmenu"], $langs->trans("MenuECM"),0,$user->rights->ecm->download);
|
$menu->add(DOL_URL_ROOT."/ecm/index.php?mainmenu=ecm&idmenu=".$_SESSION["idmenu"], $langs->trans("MenuECM"),0,$user->rights->ecm->download);
|
||||||
@ -49,7 +49,7 @@ function llxHeader($head = "", $title="", $help_url='', $morehtml='')
|
|||||||
if ($conf->propal->enabled) $menu->add_submenu(DOL_URL_ROOT."/ecm/docother.php?mainmenu=ecm&idmenu=".$_SESSION["idmenu"], $langs->trans("DocsProposals"),2);
|
if ($conf->propal->enabled) $menu->add_submenu(DOL_URL_ROOT."/ecm/docother.php?mainmenu=ecm&idmenu=".$_SESSION["idmenu"], $langs->trans("DocsProposals"),2);
|
||||||
if ($conf->commande->enabled) $menu->add_submenu(DOL_URL_ROOT."/ecm/docother.php?mainmenu=ecm&idmenu=".$_SESSION["idmenu"], $langs->trans("DocsOrders"),2);
|
if ($conf->commande->enabled) $menu->add_submenu(DOL_URL_ROOT."/ecm/docother.php?mainmenu=ecm&idmenu=".$_SESSION["idmenu"], $langs->trans("DocsOrders"),2);
|
||||||
if ($conf->facture->enabled) $menu->add_submenu(DOL_URL_ROOT."/ecm/docother.php?mainmenu=ecm&idmenu=".$_SESSION["idmenu"], $langs->trans("DocsInvoices"),2);
|
if ($conf->facture->enabled) $menu->add_submenu(DOL_URL_ROOT."/ecm/docother.php?mainmenu=ecm&idmenu=".$_SESSION["idmenu"], $langs->trans("DocsInvoices"),2);
|
||||||
*/
|
*/
|
||||||
left_menu($menu->liste, $help_url, $morehtml);
|
left_menu($menu->liste, $help_url, $morehtml);
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|||||||
@ -29,18 +29,18 @@
|
|||||||
require("../main.inc.php");
|
require("../main.inc.php");
|
||||||
|
|
||||||
|
|
||||||
function llxHeader($head = "", $title = "")
|
function llxHeader($head = '', $title='', $help_url='')
|
||||||
{
|
{
|
||||||
global $user, $conf, $langs;
|
global $user, $conf, $langs;
|
||||||
|
|
||||||
top_menu($head, $title);
|
top_menu($head, $title);
|
||||||
|
|
||||||
$menu = new Menu();
|
$menu = new Menu();
|
||||||
|
|
||||||
$menu->add(DOL_URL_ROOT."/exports/index.php", $langs->trans("Exports"));
|
$menu->add(DOL_URL_ROOT."/exports/index.php", $langs->trans("Exports"));
|
||||||
$menu->add_submenu(DOL_URL_ROOT."/exports/export.php", $langs->trans("NewExport"));
|
$menu->add_submenu(DOL_URL_ROOT."/exports/export.php", $langs->trans("NewExport"));
|
||||||
|
|
||||||
left_menu($menu->liste);
|
left_menu($menu->liste, $help_url);
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
@ -20,10 +20,10 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\file htdocs/fourn/pre.inc.php
|
\file htdocs/fourn/pre.inc.php
|
||||||
\ingroup fournisseur,facture
|
\ingroup fournisseur,facture
|
||||||
\brief Fichier gestionnaire du menu fournisseurs
|
\brief Fichier gestionnaire du menu fournisseurs
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require("../main.inc.php");
|
require("../main.inc.php");
|
||||||
require_once DOL_DOCUMENT_ROOT."/fourn/fournisseur.class.php";
|
require_once DOL_DOCUMENT_ROOT."/fourn/fournisseur.class.php";
|
||||||
@ -31,76 +31,70 @@ require_once DOL_DOCUMENT_ROOT."/fourn/fournisseur.facture.class.php";
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
function llxHeader($head = "", $title="", $addons='') {
|
function llxHeader($head = '', $title='', $help_url='')
|
||||||
global $user, $conf, $langs;
|
{
|
||||||
|
global $user, $conf, $langs;
|
||||||
|
|
||||||
$langs->load("suppliers");
|
$langs->load("suppliers");
|
||||||
$langs->load("propal");
|
$langs->load("propal");
|
||||||
|
|
||||||
top_menu($head, $title);
|
top_menu($head, $title);
|
||||||
|
|
||||||
$menu = new Menu();
|
$menu = new Menu();
|
||||||
|
|
||||||
|
if ($conf->fournisseur->enabled && $user->rights->societe->lire)
|
||||||
if (is_array($addons))
|
|
||||||
{
|
|
||||||
//$menu->add($url, $libelle);
|
|
||||||
$menu->add($addons[0][0], $addons[0][1]);
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($conf->fournisseur->enabled && $user->rights->societe->lire)
|
|
||||||
{
|
|
||||||
$menu->add(DOL_URL_ROOT."/fourn/index.php", $langs->trans("Suppliers"));
|
|
||||||
|
|
||||||
// Sécurité accés client
|
|
||||||
if ($user->societe_id == 0 && $user->rights->societe->creer)
|
|
||||||
{
|
|
||||||
$menu->add_submenu(DOL_URL_ROOT."/soc.php?action=create&type=f",$langs->trans("NewSupplier"));
|
|
||||||
}
|
|
||||||
|
|
||||||
$menu->add_submenu(DOL_URL_ROOT."/fourn/liste.php",$langs->trans("List"));
|
|
||||||
|
|
||||||
if ($conf->societe->enabled )
|
|
||||||
{
|
{
|
||||||
$menu->add_submenu(DOL_URL_ROOT."/fourn/contact.php",$langs->trans("Contacts"));
|
$menu->add(DOL_URL_ROOT."/fourn/index.php", $langs->trans("Suppliers"));
|
||||||
}
|
|
||||||
|
|
||||||
$menu->add_submenu(DOL_URL_ROOT."/fourn/stats.php",$langs->trans("Statistics"));
|
|
||||||
}
|
|
||||||
|
|
||||||
$langs->load("bills");
|
// Sécurité accés client
|
||||||
if ($user->societe_id == 0 && $user->rights->fournisseur->facture->lire)
|
if ($user->societe_id == 0 && $user->rights->societe->creer)
|
||||||
{
|
{
|
||||||
$menu->add(DOL_URL_ROOT."/fourn/facture/index.php", $langs->trans("Bills"));
|
$menu->add_submenu(DOL_URL_ROOT."/soc.php?action=create&type=f",$langs->trans("NewSupplier"));
|
||||||
}
|
}
|
||||||
if ($user->societe_id == 0 && $user->rights->fournisseur->facture->creer)
|
|
||||||
{
|
$menu->add_submenu(DOL_URL_ROOT."/fourn/liste.php",$langs->trans("List"));
|
||||||
$menu->add_submenu(DOL_URL_ROOT."/fourn/facture/fiche.php?action=create",$langs->trans("NewBill"));
|
|
||||||
}
|
if ($conf->societe->enabled )
|
||||||
if ($user->rights->fournisseur->facture->lire)
|
{
|
||||||
{
|
$menu->add_submenu(DOL_URL_ROOT."/fourn/contact.php",$langs->trans("Contacts"));
|
||||||
$menu->add_submenu(DOL_URL_ROOT."/fourn/facture/paiement.php", $langs->trans("Payments"));
|
}
|
||||||
}
|
|
||||||
$langs->load("orders");
|
$menu->add_submenu(DOL_URL_ROOT."/fourn/stats.php",$langs->trans("Statistics"));
|
||||||
if ($user->rights->fournisseur->commande->lire)
|
}
|
||||||
{
|
|
||||||
$menu->add(DOL_URL_ROOT."/fourn/commande/",$langs->trans("Orders"));
|
$langs->load("bills");
|
||||||
}
|
if ($user->societe_id == 0 && $user->rights->fournisseur->facture->lire)
|
||||||
if ($conf->produit->enabled || $conf->service->enabled)
|
{
|
||||||
{
|
$menu->add(DOL_URL_ROOT."/fourn/facture/index.php", $langs->trans("Bills"));
|
||||||
if ($user->rights->produit->lire)
|
}
|
||||||
{
|
if ($user->societe_id == 0 && $user->rights->fournisseur->facture->creer)
|
||||||
$menu->add(DOL_URL_ROOT."/product/", $langs->trans("Products"));
|
{
|
||||||
}
|
$menu->add_submenu(DOL_URL_ROOT."/fourn/facture/fiche.php?action=create",$langs->trans("NewBill"));
|
||||||
}
|
}
|
||||||
|
if ($user->rights->fournisseur->facture->lire)
|
||||||
if ($conf->categorie->enabled)
|
{
|
||||||
|
$menu->add_submenu(DOL_URL_ROOT."/fourn/facture/paiement.php", $langs->trans("Payments"));
|
||||||
|
}
|
||||||
|
$langs->load("orders");
|
||||||
|
if ($user->rights->fournisseur->commande->lire)
|
||||||
|
{
|
||||||
|
$menu->add(DOL_URL_ROOT."/fourn/commande/",$langs->trans("Orders"));
|
||||||
|
}
|
||||||
|
if ($conf->produit->enabled || $conf->service->enabled)
|
||||||
|
{
|
||||||
|
if ($user->rights->produit->lire)
|
||||||
|
{
|
||||||
|
$menu->add(DOL_URL_ROOT."/product/", $langs->trans("Products"));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($conf->categorie->enabled)
|
||||||
{
|
{
|
||||||
$langs->load("categories");
|
$langs->load("categories");
|
||||||
// Catégories fournisseurs
|
// Catégories fournisseurs
|
||||||
$menu->add(DOL_URL_ROOT."/categories/index.php?leftmenu=cat&type=1", $langs->trans("SuppliersCategoriesShort"), 0);
|
$menu->add(DOL_URL_ROOT."/categories/index.php?leftmenu=cat&type=1", $langs->trans("SuppliersCategoriesShort"), 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
left_menu($menu->liste);
|
left_menu($menu->liste, $help_url);
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|||||||
@ -36,7 +36,7 @@ $langs->load("orders");
|
|||||||
$langs->load("sendings");
|
$langs->load("sendings");
|
||||||
|
|
||||||
|
|
||||||
function llxHeader($head = "", $title="", $help_url='')
|
function llxHeader($head = '', $title='', $help_url='')
|
||||||
{
|
{
|
||||||
global $langs;
|
global $langs;
|
||||||
|
|
||||||
|
|||||||
@ -834,8 +834,8 @@ function top_menu($head, $title='', $target='')
|
|||||||
* \brief Affiche barre de menu gauche
|
* \brief Affiche barre de menu gauche
|
||||||
* \param menu_array Tableau des entrees de menu
|
* \param menu_array Tableau des entrees de menu
|
||||||
* \param helppagename Name of wiki page for help ('' by default).
|
* \param helppagename Name of wiki page for help ('' by default).
|
||||||
* Syntax is: EN:EnglishPage|FR:FrenchPage|ES:SpanishPage
|
* Syntax is: For a wiki page: EN:EnglishPage|FR:FrenchPage|ES:SpanishPage
|
||||||
* or http://server/url
|
* For other external page: http://server/url
|
||||||
* \param moresearchform Formulaire de recherche permanant supplementaire
|
* \param moresearchform Formulaire de recherche permanant supplementaire
|
||||||
*/
|
*/
|
||||||
function left_menu($menu_array, $helppagename='', $moresearchform='')
|
function left_menu($menu_array, $helppagename='', $moresearchform='')
|
||||||
@ -932,7 +932,7 @@ function left_menu($menu_array, $helppagename='', $moresearchform='')
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Link to Dolibarr wiki pages
|
// Link to Dolibarr wiki pages
|
||||||
if ($helppagename)
|
if ($helppagename && empty($conf->global->MAIN_DISABLE_HELP_LINKS))
|
||||||
{
|
{
|
||||||
$langs->load("help");
|
$langs->load("help");
|
||||||
|
|
||||||
@ -946,31 +946,32 @@ function left_menu($menu_array, $helppagename='', $moresearchform='')
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// If relative URL
|
// If relative URL
|
||||||
$helppage=$langs->trans($helppagename); // By default
|
$helppage='';
|
||||||
|
|
||||||
if (eregi('^es',$langs->defaultlang))
|
if (eregi('^es',$langs->defaultlang))
|
||||||
{
|
{
|
||||||
$helpbaseurl='http://wiki.dolibarr.org/index.php/%s';
|
$helpbaseurl='http://wiki.dolibarr.org/index.php/%s';
|
||||||
if (eregi('ES:([^|]+)',$helppage,$reg)) $helppage=$reg[1];
|
if (eregi('ES:([^|]+)',$helppagename,$reg)) $helppage=$reg[1];
|
||||||
}
|
}
|
||||||
elseif (eregi('^fr',$langs->defaultlang))
|
if (eregi('^fr',$langs->defaultlang))
|
||||||
{
|
{
|
||||||
$helpbaseurl='http://wiki.dolibarr.org/index.php/%s';
|
$helpbaseurl='http://wiki.dolibarr.org/index.php/%s';
|
||||||
if (eregi('FR:([^|]+)',$helppage,$reg)) $helppage=$reg[1];
|
if (eregi('FR:([^|]+)',$helppagename,$reg)) $helppage=$reg[1];
|
||||||
}
|
}
|
||||||
else
|
if (empty($helppage)) // If help page not already found
|
||||||
{
|
{
|
||||||
$helpbaseurl='http://wiki.dolibarr.org/index.php/%s';
|
$helpbaseurl='http://wiki.dolibarr.org/index.php/%s';
|
||||||
if (eregi('EN:([^|]+)',$helppage,$reg)) $helppage=$reg[1];
|
if (eregi('EN:([^|]+)',$helppagename,$reg)) $helppage=$reg[1];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($helpbaseurl && $helppage)
|
if ($helpbaseurl && $helppage)
|
||||||
{
|
{
|
||||||
print '<div class="help">';
|
print '<div class="help">';
|
||||||
print '<a class="help" target="_blank" href="';
|
print '<a class="help" target="_blank" title="'.$langs->trans("GoToWikiHelp").'" href="';
|
||||||
print sprintf($helpbaseurl,$helppage);
|
print sprintf($helpbaseurl,$helppage);
|
||||||
print '">'.$langs->trans("Help").'</a>';
|
print '">';
|
||||||
|
print img_help(0,'').' ';
|
||||||
|
print $langs->trans("Help").'</a>';
|
||||||
print '</div>';
|
print '</div>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -24,14 +24,14 @@
|
|||||||
*/
|
*/
|
||||||
require ("../main.inc.php");
|
require ("../main.inc.php");
|
||||||
|
|
||||||
function llxHeader($head = "", $title="", $help_url='')
|
function llxHeader($head = '', $title='', $help_url='')
|
||||||
{
|
{
|
||||||
global $langs;
|
global $langs;
|
||||||
|
|
||||||
top_menu($head, $title);
|
top_menu($head, $title);
|
||||||
|
|
||||||
$menu = new Menu();
|
$menu = new Menu();
|
||||||
|
|
||||||
left_menu($menu->liste, $help_url);
|
left_menu($menu->liste, $help_url);
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|||||||
@ -19,7 +19,7 @@
|
|||||||
*
|
*
|
||||||
* $Id$
|
* $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\file htdocs/oscommerce_ws/pre.inc.php
|
\file htdocs/oscommerce_ws/pre.inc.php
|
||||||
\brief Fichier gestionnaire du menu de gauche
|
\brief Fichier gestionnaire du menu de gauche
|
||||||
@ -28,22 +28,22 @@
|
|||||||
|
|
||||||
require("../main.inc.php");
|
require("../main.inc.php");
|
||||||
|
|
||||||
function llxHeader($head = "", $urlp = "")
|
function llxHeader($head = '', $title='', $help_url='')
|
||||||
{
|
{
|
||||||
global $user, $conf, $langs;
|
global $user, $conf, $langs;
|
||||||
$langs->load("shop");
|
$langs->load("shop");
|
||||||
|
|
||||||
top_menu($head);
|
top_menu($head);
|
||||||
|
|
||||||
$menu = new Menu();
|
$menu = new Menu();
|
||||||
|
|
||||||
$menu->add(DOL_URL_ROOT."/oscommerce_ws/index.php", $langs->trans("OSCommerceShop"));
|
$menu->add(DOL_URL_ROOT."/oscommerce_ws/index.php", $langs->trans("OSCommerceShop"));
|
||||||
$menu->add_submenu(DOL_URL_ROOT."/oscommerce_ws/produits/index.php", $langs->trans("Products"));
|
$menu->add_submenu(DOL_URL_ROOT."/oscommerce_ws/produits/index.php", $langs->trans("Products"));
|
||||||
$menu->add_submenu(DOL_URL_ROOT."/oscommerce_ws/produits/OSCvente.php", $langs->trans("AddProd"));
|
$menu->add_submenu(DOL_URL_ROOT."/oscommerce_ws/produits/OSCvente.php", $langs->trans("AddProd"));
|
||||||
$menu->add_submenu(DOL_URL_ROOT."/oscommerce_ws/produits/categories.php", $langs->trans("Categories"));
|
$menu->add_submenu(DOL_URL_ROOT."/oscommerce_ws/produits/categories.php", $langs->trans("Categories"));
|
||||||
$menu->add_submenu(DOL_URL_ROOT."/oscommerce_ws/clients/index.php", $langs->trans("Clients"));
|
$menu->add_submenu(DOL_URL_ROOT."/oscommerce_ws/clients/index.php", $langs->trans("Clients"));
|
||||||
$menu->add_submenu(DOL_URL_ROOT."/oscommerce_ws/commandes/index.php", $langs->trans("Commandes"));
|
$menu->add_submenu(DOL_URL_ROOT."/oscommerce_ws/commandes/index.php", $langs->trans("Commandes"));
|
||||||
|
|
||||||
left_menu($menu->liste);
|
left_menu($menu->liste);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -26,16 +26,16 @@
|
|||||||
require ("../main.inc.php");
|
require ("../main.inc.php");
|
||||||
|
|
||||||
|
|
||||||
function llxHeader($head = "", $title="", $help_url='')
|
function llxHeader($head = '', $title='', $help_url='')
|
||||||
{
|
{
|
||||||
global $langs;
|
global $langs;
|
||||||
|
|
||||||
top_menu($head, $title);
|
top_menu($head, $title);
|
||||||
|
|
||||||
$menu = new Menu();
|
$menu = new Menu();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
left_menu($menu->liste, $help_url);
|
left_menu($menu->liste, $help_url);
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|||||||
@ -28,7 +28,7 @@
|
|||||||
require ("./main.inc.php");
|
require ("./main.inc.php");
|
||||||
|
|
||||||
|
|
||||||
function llxHeader($head = "")
|
function llxHeader($head = '', $title='', $help_url='')
|
||||||
{
|
{
|
||||||
global $user, $conf, $langs;
|
global $user, $conf, $langs;
|
||||||
|
|
||||||
@ -175,6 +175,6 @@ function llxHeader($head = "")
|
|||||||
$menu->add(DOL_URL_ROOT."/admin/index.php", $langs->trans("Setup"));
|
$menu->add(DOL_URL_ROOT."/admin/index.php", $langs->trans("Setup"));
|
||||||
}
|
}
|
||||||
|
|
||||||
left_menu($menu->liste);
|
left_menu($menu->liste, $help_url);
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|||||||
@ -41,7 +41,7 @@ if ($user->societe_id > 0)
|
|||||||
* View
|
* View
|
||||||
*/
|
*/
|
||||||
|
|
||||||
llxHeader("",$langs->trans("Projects"),"Projet");
|
llxHeader("",$langs->trans("Projects"),"EN:Projects|FR:Projet|ES:Proyectos");
|
||||||
|
|
||||||
$text=$langs->trans("Projects");
|
$text=$langs->trans("Projects");
|
||||||
if ($_REQUEST["mode"]=='mine') $text=$langs->trans("MyProjects");
|
if ($_REQUEST["mode"]=='mine') $text=$langs->trans("MyProjects");
|
||||||
|
|||||||
@ -40,7 +40,7 @@ $langs->load("commercial");
|
|||||||
* @param unknown_type $title
|
* @param unknown_type $title
|
||||||
* @param unknown_type $help_url
|
* @param unknown_type $help_url
|
||||||
*/
|
*/
|
||||||
function llxHeader($head = "", $title="", $help_url='')
|
function llxHeader($head = '', $title='', $help_url='')
|
||||||
{
|
{
|
||||||
global $langs, $user;
|
global $langs, $user;
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
*
|
*
|
||||||
* 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
|
||||||
@ -22,25 +22,26 @@
|
|||||||
|
|
||||||
require ("../main.inc.php");
|
require ("../main.inc.php");
|
||||||
|
|
||||||
function llxHeader($head = "") {
|
function llxHeader($head = '', $title='', $help_url='')
|
||||||
global $user, $conf;
|
{
|
||||||
|
global $user, $conf;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
top_menu($head);
|
top_menu($head);
|
||||||
|
|
||||||
$menu = new Menu();
|
$menu = new Menu();
|
||||||
|
|
||||||
|
|
||||||
$menu->add(DOL_URL_ROOT."/rapport/presentation", "Presentation");
|
$menu->add(DOL_URL_ROOT."/rapport/presentation", "Presentation");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
left_menu($menu->liste);
|
left_menu($menu->liste, $help_url);
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|||||||
@ -111,7 +111,7 @@ if ($mode == 'search')
|
|||||||
* View
|
* View
|
||||||
*/
|
*/
|
||||||
|
|
||||||
llxHeader();
|
llxHeader($langs->trans("ThirdParty"),'','EN:Third_Parties|FR:Tiers|ES:Empresas');
|
||||||
|
|
||||||
$form=new Form($db);
|
$form=new Form($db);
|
||||||
$companystatic=new Societe($db);
|
$companystatic=new Societe($db);
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2004-2006 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
|
||||||
@ -30,7 +30,7 @@
|
|||||||
require ("../main.inc.php");
|
require ("../main.inc.php");
|
||||||
|
|
||||||
|
|
||||||
function llxHeader($head = "")
|
function llxHeader($head = '', $title='', $help_url='')
|
||||||
{
|
{
|
||||||
global $langs, $user, $conf;
|
global $langs, $user, $conf;
|
||||||
|
|
||||||
@ -52,7 +52,7 @@ function llxHeader($head = "")
|
|||||||
$menu->add_submenu("notify/index.php", $langs->trans("Notifications"));
|
$menu->add_submenu("notify/index.php", $langs->trans("Notifications"));
|
||||||
}
|
}
|
||||||
|
|
||||||
left_menu($menu->liste);
|
left_menu($menu->liste, $help_url);
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
@ -24,7 +24,7 @@
|
|||||||
*/
|
*/
|
||||||
require("../main.inc.php");
|
require("../main.inc.php");
|
||||||
|
|
||||||
function llxHeader($head = "", $title = "")
|
function llxHeader($head = '', $title='', $help_url='')
|
||||||
{
|
{
|
||||||
global $user,$langs;
|
global $user,$langs;
|
||||||
|
|
||||||
@ -55,7 +55,7 @@ function llxHeader($head = "", $title = "")
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
left_menu($menu->liste);
|
left_menu($menu->liste, $help_url);
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user