Files
dolibarr/htdocs/main.inc.php3
Rodolphe Quiedeville 08cf1bceae .
2002-05-03 23:01:45 +00:00

87 lines
2.5 KiB
PHP

<?PHP
/* Copyright (C) 2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
*
* $Id$
* $Source$
*
* 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.
*
*/
require ($GLOBALS["DOCUMENT_ROOT"]."/conf/conf.class.php3");
require ($GLOBALS["DOCUMENT_ROOT"]."/lib/mysql.lib.php3");
require ($GLOBALS["DOCUMENT_ROOT"]."/lib/functions.inc.php3");
require ($GLOBALS["DOCUMENT_ROOT"]."/user.class.php3");
require ($GLOBALS["DOCUMENT_ROOT"]."/lib/product.class.php3");
$conf = new Conf();
$db = new Db();
$user = new User($db);
$user->fetch($GLOBALS["REMOTE_USER"]);
function llxFooter($foot='') {
print "</TD></TR>";
/*
*
*/
print "</TABLE>\n";
print "$foot<br>";
print '[<a href="http://savannah.gnu.org/bugs/?group_id=1915">Bug report</a>]&nbsp;';
print '[<a href="http://savannah.gnu.org/projects/dolibarr/">Source Code</a>]&nbsp;';
print "</BODY></HTML>";
}
function top_menu($head) {
global $user, $conf;
print "<HTML><HEAD>";
print $head;
print "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=iso-8859-1\">\n";
print '<LINK REL="stylesheet" TYPE="text/css" HREF="/dolibarr.css">';
print "</HEAD>\n";
print '<BODY BGCOLOR="#c0c0c0" TOPMARGIN="0" BOTTOMMARGIN="0" LEFTMARGIN="0" RIGHTMARGIN="0" MARGINHEIGHT="0" MARGINWIDTH="0">';
print "<TABLE border=\"0\" width=\"100%\">\n";
print "<TR>";
print '<TD width="20%" class="menu">&nbsp;</td>';
print '<TD width="20%" class="menu" align="center">';
if ($user->comm > 0) {
print '<A href="../comm/">Commercial</A></TD>';
} else {
print 'Commercial';
}
print '<TD width="20%" class="menu" align="center">-</TD>';
print '<TD width="20%" class="menu" align="center"><A href="../compta/">Compta</A></TD>';
print '<TD width="20%" class="menu" align="center">-</TD>';
print '</TR>';
print '</TABLE>';
}
?>