From dfb2e68e985385c63617477edd4a9bd2f2f7a030 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Fri, 24 Oct 2003 08:09:48 +0000 Subject: [PATCH] Mise aux normes htmls, utilisation d'un seul formulaire au lieu de 2 --- htdocs/comm/propal.php | 44 ++++++++++++++++++++---------------------- 1 file changed, 21 insertions(+), 23 deletions(-) diff --git a/htdocs/comm/propal.php b/htdocs/comm/propal.php index 2745fcb8118..8c5f3a986ea 100644 --- a/htdocs/comm/propal.php +++ b/htdocs/comm/propal.php @@ -138,7 +138,7 @@ if ($action == 'modif' && $user->rights->propale->creer) } -if ($HTTP_POST_VARS["action"] == 'addligne' && $user->rights->propale->creer) +if ($HTTP_POST_VARS["addligne"] == 'Ajouter' && $user->rights->propale->creer) { /* * Ajout d'une ligne produit dans la propale @@ -151,7 +151,7 @@ if ($HTTP_POST_VARS["action"] == 'addligne' && $user->rights->propale->creer) } } -if ($HTTP_POST_VARS["action"] == 'addproduct' && $user->rights->propale->creer) +if ($HTTP_POST_VARS["addproduct"] == 'Ajouter' && $user->rights->propale->creer) { /* * Ajout d'une ligne produit dans la propale @@ -333,8 +333,8 @@ if ($propalid) * Produits */ print_titre("Produits"); - - print ''; + print ''; + print '
'; print ""; print ""; print ''; @@ -439,8 +439,8 @@ if ($propalid) * */ $var=!$var; - print ''; - print ''; + + print ''; print ''; print ''; @@ -449,28 +449,23 @@ if ($propalid) print ''; print ''; print ''; - print ''; - print ''; + print ''; + print ''; /* * Produits * */ $var=!$var; - print ''; - print ''; print ""; print ''; print ''; print ''; - print ''; + print ''; print "\n"; - print ''; - - } - print "
RéfProduitTvaQté.RemiseP.U.
  %
  % 
"; + print ''; if ($propal->brouillon == 1) { @@ -481,7 +476,6 @@ if ($propalid) print ''; print ''; } - /* * Actions */ @@ -628,9 +622,14 @@ if ($propalid) /* * */ - + if ($propal->brouillon == 1) + { + print '
'; + print ''; + } print '
'; print_titre('Documents'); + print ''; $file = PROPALE_OUTPUTDIR . "/$obj->ref/$obj->ref.pdf"; @@ -644,18 +643,13 @@ if ($propalid) if ($propal->brouillon == 1) { - print ''; - print ''; print "'; + print ''; } - print "
Modèle"; - $html = new Form($db); $modelpdf = new Propal_Model_pdf($db); $html->select_array("modelpdf",$modelpdf->liste_array(),$propal->modelpdf); - print ''; - print '
\n"; /* * @@ -703,6 +697,10 @@ if ($propalid) * */ print "
"; + if ($propal->brouillon == 1) + { + print ''; + } /* * *