From c7ee0245948c5238eb7ba3feccd96fb946e6aa14 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Thu, 13 Feb 2003 16:58:48 +0000 Subject: [PATCH] =?UTF-8?q?Lecture=20des=20boites=20depuis=20la=20base=20d?= =?UTF-8?q?e=20donn=E9es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/index.php3 | 39 ++++++++++++++++++++++++++++++--------- 1 file changed, 30 insertions(+), 9 deletions(-) diff --git a/htdocs/index.php3 b/htdocs/index.php3 index 7855cd03aa0..a607c01e5ad 100644 --- a/htdocs/index.php3 +++ b/htdocs/index.php3 @@ -23,18 +23,39 @@ require("./pre.inc.php3"); llxHeader(); -?> -

Dolibarr

- ' . $user->prenom . ' ' . $user->nom .' ['.$user->code.']';?> +print "

Dolibarr

"; -

- - +print translate("User") . ' : ' . $user->prenom . ' ' . $user->nom .' ['.$user->code.']'; +print "

"; +/* + * Boites + * + * TODO mettre les boites dans une table + */ + +$db = new Db(); + +$sql = "SELECT b.rowid, b.box_id, d.file FROM llx_boxes as b, llx_boxes_def as d WHERE b.box_id = d.rowid"; +$result = $db->query($sql); +if ($result) +{ + $num = $db->num_rows(); + $i = 0; + + while ($i < $num) + { + $obj = $db->fetch_object( $i); + + $boxs = "includes/boxes/".$obj->file; + + include($boxs); + $i++; + } +} + +$db->close(); -Dernière modification $Date$ révision $Revision$"); ?>