Files
dolibarr/dev/skeletons/pre.inc.php
Laurent Destailleur dd7fe85d29 Fix: title lost
2009-07-08 15:02:50 +00:00

59 lines
1.9 KiB
PHP

<?php
/* Copyright (C) 2008 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
* 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.
*/
/**
* \file htdocs/dev/skeletons/pre.inc.php
* \brief File to manage left menu by default
* \version $Id$
*/
// Include environment and check authentification
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)
* \param head Text to show as head line
* \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;
top_menu($head, $title);
$menu = new Menu();
// Create default menu.
// No code here is required if you already added menu entries in
// the module descriptor (recommanded).
// If not you must manually add menu entries here (not recommanded).
/*
$langs->load("mylangfile");
$menu->add(DOL_URL_ROOT."/mylink.php", $langs->trans("MyMenuLabel"));
}
*/
left_menu($menu->liste, $help_url);
}
?>