* * 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$ * */ 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"]."/product.class.php3"); require ($GLOBALS["DOCUMENT_ROOT"]."/user.class.php3"); require ($GLOBALS["DOCUMENT_ROOT"]."/menu.class.php3"); require ($GLOBALS["DOCUMENT_ROOT"]."/societe.class.php3"); require ($GLOBALS["DOCUMENT_ROOT"]."/rtplang.class.php"); $conf = new Conf(); $db = new Db(); $user = new User($db); $user->fetch($GLOBALS["REMOTE_USER"]); if ($user->limite_liste <> $conf->liste_limit) { $conf->liste_limit = $user->limite_liste; } $db->close(); /* */ if(!isset($application_lang)) $application_lang = "fr"; $rtplang = new rtplang($GLOBALS["DOCUMENT_ROOT"]."/langs", "en", "en", $application_lang); $rtplang->debug=1; /* */ $bc[0]="class=\"impair\""; $bc[1]="class=\"pair\""; $a = setlocale("LC_TIME", "FRENCH"); function top_menu($head) { global $user, $conf, $rtplang; print $rtplang->lang_header(); print ""; print $head; print ''; print ''; print "\n"; print 'Dolibarr'; print "\n"; print "\n"; print ''; /* * Barre superieure * */ print ''; print ''; print '
'; print ''; print ""; print ''; print ''; } else { print '-'; } print ''; } else { print '-'; } print ''; print ''; print ''; print ''; print '
'; print '
'; /* * Table principale * */ print ''; print "\n"; /* * */ print "
"; } function left_menu($menu) { global $conf; /* * Colonne de gauche * */ print ''; print '
'; print ''; for ($i = 0 ; $i < sizeof($menu) ; $i++) { print "'; } print "'; print '
"; print ''.$menu[$i][1].''; for ($j = 2 ; $j < sizeof($menu[$i]) - 1 ; $j = $j +2) { print '
 - '.$menu[$i][$j+1].''; } print '
"; print 'Societes'; print '
'; print ''; print ''; print ' '; print ""; print "
"; print 'Contacts'; print '
'; print ''; print ''; print " "; print ""; print '
'; print '
'; /* * * */ print "
\n"; } function llxFooter($foot='') { print "
\n"; print "
"; print '[Bug report] '; print '[Source Code] '.$foot.'
'; print ""; } ?>