From 141996e90d039496e4f885a61b16957b8b909f71 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Tue, 20 Jul 2004 15:19:54 +0000 Subject: [PATCH] Modif look --- htdocs/comm/propal.php | 44 +++++++++++++++++++++++++++++------------- 1 file changed, 31 insertions(+), 13 deletions(-) diff --git a/htdocs/comm/propal.php b/htdocs/comm/propal.php index 4f31d1dc25f..bead5326fc0 100644 --- a/htdocs/comm/propal.php +++ b/htdocs/comm/propal.php @@ -136,13 +136,13 @@ if ($_GET["action"] == 'commande') } -if ($action == 'modif' && $user->rights->propale->creer) +if ($_GET["action"] == 'modif' && $user->rights->propale->creer) { /* * Repasse la propale en mode brouillon */ $propal = new Propal($db); - $propal->fetch($propalid); + $propal->fetch($_GET["propalid"]); $propal->reopen($user->id); } @@ -281,6 +281,14 @@ if ($_GET["propalid"]) $color1 = "#e0e0e0"; + + if ($propal->brouillon == 1 && $user->rights->propale->creer) + { + /* la form est ouverte avant la table pour respect des normes */ + print '
'; + print ''; + } + print ""; print ''; - print ''; + if ($propal->brouillon == 1 && $user->rights->propale->creer) + { + print ''; + print ''; + print ''; + + } + else + { + print ''; + print ''; + } + + print ''; /* * */ @@ -342,6 +362,12 @@ if ($_GET["propalid"]) print "
Société'; @@ -323,8 +331,20 @@ if ($_GET["propalid"]) /* * */ - print '
Remise'.$propal->remise_percent.' % '.price($propal->remise).' euros
Remise ?%
Remise'.$propal->remise_percent.' % '.price($propal->remise).' euros
"; + if ($propal->brouillon == 1 && $user->rights->propale->creer) + { + print "
"; + } + + if ($_GET["action"] == 'statut') { print "
id\" method=\"post\">"; @@ -499,15 +525,7 @@ if ($_GET["propalid"]) print ""; print '
'; - if ($propal->brouillon == 1 && $user->rights->propale->creer) - { - print '
'; - print ''; - print '
Remise'; - print '%'; - print ''; - print '
'; - } + /* * Actions */