diff --git a/htdocs/main.inc.php3 b/htdocs/main.inc.php3 new file mode 100644 index 00000000000..dbcc78efd37 --- /dev/null +++ b/htdocs/main.inc.php3 @@ -0,0 +1,38 @@ + + * + * $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"]."/user.class.php3"); +require ($GLOBALS["DOCUMENT_ROOT"]."/lib/functions.inc.php3"); + + +$conf = new Conf(); + + +$db = new Db(); +$user = new User($db); +$user->fetch($GLOBALS["REMOTE_USER"]); + + + +?> diff --git a/htdocs/pre.inc.php3 b/htdocs/pre.inc.php3 new file mode 100644 index 00000000000..69502382951 --- /dev/null +++ b/htdocs/pre.inc.php3 @@ -0,0 +1,98 @@ + + * + * $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 ("./main.inc.php3"); + +function llxHeader($head = "") { + global $PREFIX, $user; + + print "\n$head\n\n"; + ?> + + \n"; + print ""; + print "" . $GLOBALS["MAIN_TITLE"] . ""; + print "Technique"; + + print ''; + if ($user->comm > 0) { + print 'Commercial'; + } else { + print 'Commercial'; + } + + print "Compta"; + print "Stats"; + print "\n"; + + print ""; + print "\n
"; + /* + * Colonne de gauche + * + */ + print ""; + print "'; + print "'; + + print "'; + + print "'; + + print "
"; + + print "
" . $GLOBALS["DB_NAME"] . " - " . $user->code ."
"; + print "Accueil
"; + + print "Stat. quantitatives
\n"; + print "Stat. qualitatives
\n"; + print "Dictionnaires\n"; + + print '
"; + print "
Propal
\n"; + print '
"; + print "
Factures
\n"; + print '
"; + print "
Produits
\n"; + print '
"; + + + print "Configuration
"; + print '
'; + /* + * + * + */ + print "
\n"; + + + +} + +function llxFooter($foot='') { + print "
\n"; + print "$foot"; +} + +?>