From a426d538b44f481da8ac7db5182fbcafcf9a84ff Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Sun, 8 Feb 2004 11:56:38 +0000 Subject: [PATCH] Ajout fonction dolibarr_fiche_head --- htdocs/lib/functions.inc.php | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/htdocs/lib/functions.inc.php b/htdocs/lib/functions.inc.php index bedf7f377d5..c2682c7e2f9 100644 --- a/htdocs/lib/functions.inc.php +++ b/htdocs/lib/functions.inc.php @@ -26,6 +26,27 @@ $yn[0] = "non"; $yn[1] = "oui"; +Function dolibarr_fiche_head($links, $active=0) +{ + print '
'; + + for ($i = 0 ; $i < sizeof($links) ; $i++) + { + if ($i == $active) + { + print ''.$links[$i][1].''; + } + else + { + print ''.$links[$i][1].''; + } + } + + print '
'; + print '

'; +} + + Function dolibarr_set_const($db, $name, $value, $type='chaine', $visible=0) { $sql = "REPLACE INTO llx_const SET name = '$name', value='$value', visible=$visible, type='$type'";