From 7a55781861d500daf4d3668e977f374489caf8c9 Mon Sep 17 00:00:00 2001 From: erics Date: Wed, 22 Dec 2004 20:17:18 +0000 Subject: [PATCH] =?UTF-8?q?mise=20en=20page=20un=20peu=20plus=20belle=20qu?= =?UTF-8?q?and=20on=20regarde=20le=20code=20html=20g=C3=A9n=C3=A9r=C3=A9?= =?UTF-8?q?=20(retours=20=C3=A0=20la=20ligne,=20identation),=20on=20n'affi?= =?UTF-8?q?che=20ce=20qui=20concerne=20les=20commandes=20que=20si=20le=20m?= =?UTF-8?q?odule=20est=20actif,=20am=C3=A9lioration=20du=20formulaire=20d'?= =?UTF-8?q?envoi=20pour=20avoir=20une=20pi=C3=A8ce=20jointe=20en=20plus?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/comm/propal.php | 93 +++++++++++++++++++++--------------------- 1 file changed, 47 insertions(+), 46 deletions(-) diff --git a/htdocs/comm/propal.php b/htdocs/comm/propal.php index 874dead560a..2722d687db2 100644 --- a/htdocs/comm/propal.php +++ b/htdocs/comm/propal.php @@ -1,6 +1,7 @@ * Copyright (C) 2004 Laurent Destailleur + * Copyright (C) 2004 Eric Seigne * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -500,16 +501,16 @@ if ($_GET["propalid"]) */ $var=!$var; - print ''; - print ' '; - print ''; - print ''; - print $html->select_tva("np_tva_tx",$conf->defaulttx) . ''; - print ''; - print ' %'; - print ''; - print ''; - print ''; + print "\n"; + print "  \n"; + print " \n"; + print " "; + print $html->select_tva("np_tva_tx",$conf->defaulttx) . "\n"; + print " \n"; + print " remise_client."\" name=\"np_remise\"> %\n"; + print " \n"; + print " trans("Add")."\" name=\"addproduct\">\n"; + print ""; /* * Ligne d'ajout de produits/services prédéfinis @@ -689,36 +690,37 @@ if ($_GET["propalid"]) print "\n"; /* - * + * Si le module commandes est activé ... */ - $nb_commande = sizeof($propal->commande_liste_array()); - if ($nb_commande > 0) - { - $coms = $propal->commande_liste_array(); - print '
'; - - if ($nb_commande == 1) - - { - print "\n"; - } - else - { - print "\n"; - - for ($i = 0 ; $i < $nb_commande ; $i++) - { - print '\n"; - print "\n"; - } - } - print "
Commande rattachée : "; - print ''; - print img_file(); - print ' '.$coms[$i].""; - print "
Commandes rattachées
'.$coms[$i]."
"; - } - + if($conf->commande->enabled) { + $nb_commande = sizeof($propal->commande_liste_array()); + if ($nb_commande > 0) + { + $coms = $propal->commande_liste_array(); + print '
'; + + if ($nb_commande == 1) + + { + print "\n"; + } + else + { + print "\n"; + + for ($i = 0 ; $i < $nb_commande ; $i++) + { + print '\n"; + print "\n"; + } + } + print "
Commande rattachée : "; + print ''; + print img_file(); + print ' '.$coms[0].""; + print "
Commandes rattachées
'.$coms[$i]."
"; + } + } @@ -788,34 +790,33 @@ if ($_GET["propalid"]) $message = "Veuillez trouver ci-joint notre proposition commerciale $propal->ref\n\nCordialement\n\n"; + print "
id&action=send\">\n"; print ''; print ''; print ''; print_titre("Envoyer la propale par mail"); - $form=new Form($db); // Formulaire envoi mail print ''; - // Destinataire - print ""; + print ""; print ""; - // CC + // CC print ''; print ''; - // Sender + // Sender print ""; print ""; print ""; + print ""; + print ""; print "
Destinataire
Destinatairefirstname)) . " " . ucfirst(strtolower($obj->name)) . " <$obj->email>\">
Copie à
Expediteur$from_name$from_mail
Reply-to$replytoname$replytomail
Joindre un fichier en plus de la propale
(conditions générales de ventes ...)
Message
"; - $form->mail_topicmessagefile(0,1,1,$message); - print "trans("Send")."\">"; print "
"; }