From a5bf0da22f04e44d7f933aba9bc25a298e078688 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Mon, 7 Jul 2003 10:28:02 +0000 Subject: [PATCH] Modif affichage --- htdocs/product/fiche.php3 | 42 +++++++++++++++++++++------------------ 1 file changed, 23 insertions(+), 19 deletions(-) diff --git a/htdocs/product/fiche.php3 b/htdocs/product/fiche.php3 index 7d4a60ab9b8..d4856b79e1e 100644 --- a/htdocs/product/fiche.php3 +++ b/htdocs/product/fiche.php3 @@ -178,13 +178,17 @@ print '
'; if ($id && $action == '') { - print_titre("Ajouter à la proposition"); $htmls = new Form($db); $propal = New Propal($db); - print '
'; - + print ''; + print ''; + print '
'; + print_titre("Ajouter ma proposition"); + print ''; + print_titre("Ajouter aux autres propositions"); + print '
'; $sql = "SELECT s.nom, s.idp, p.rowid as propalid, p.price - p.remise as price, p.ref,".$db->pdate("p.datep")." as dp"; $sql .= " FROM llx_societe as s, llx_propal as p"; $sql .=" WHERE p.fk_soc = s.idp AND p.fk_statut = 0 AND p.fk_user_author = ".$user->id; @@ -228,27 +232,27 @@ if ($id && $action == '') $i++; } - - print "
"; + print "
"; $db->free(); } - - print ''; - print '
'; - print ''; - print ''; - print ""; - print '
Autres Propositions"; - $htmls->select_array("propalid", $propal->liste_array(1, '<>'.$user->id)); - print ''; - print ''; - print ''; - print ''; - print "
'; - + $otherprop = $propal->liste_array(1, '<>'.$user->id); + if (sizeof($otherprop)) + { + print '
'; + print ''; + print ''; + print ""; + print '
Autres Propositions"; + $htmls->select_array("propalid", $otherprop); + print ''; + print ''; + print ''; + print ''; + print "
'; + } print ''; }