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 "
"; }