diff --git a/htdocs/comm/propal.php3 b/htdocs/comm/propal.php3 index 77da403c72b..02ec34fad03 100644 --- a/htdocs/comm/propal.php3 +++ b/htdocs/comm/propal.php3 @@ -367,68 +367,74 @@ if ($propalid) /* * Actions */ - print "
| [Supprimer] | "; - } - else - { - if ($obj->statut == 1) + if ($obj->statut == 0) { - print "[Cloturer] | "; + print "[Supprimer] | "; + } + else + { + if ($obj->statut == 1) + { + print "[Cloturer] | "; + } + else + { + print "- | "; + } + } + /* + * + */ + if ($obj->statut < 2) + { + print '[Générer] | "; } else { print "- | "; } - } - /* - * - */ - if ($obj->statut < 2) - { - print '[Générer] | "; - } - else - { - print "- | "; - } - /* - * - */ - if ($obj->statut == 1) - { - $file = PROPALE_OUTPUTDIR. "/$obj->ref/$obj->ref.pdf"; - if (file_exists($file)) + /* + * + */ + if ($obj->statut == 1) { - print ""; - print "[Envoyer la proposition] | "; + $file = PROPALE_OUTPUTDIR. "/$obj->ref/$obj->ref.pdf"; + if (file_exists($file)) + { + print ""; + print "[Envoyer la proposition] | "; + } + else + { + print '! Propale non generee ! | '; + } } else { - print '! Propale non generee ! | '; + print "- | "; } + /* + * + */ + if ($obj->statut == 0) + { + print "[Valider] | "; + } + elseif ($obj->statut == 1) + { + print "[Modifier] | "; + } + else + { + print "- | "; + } + print "