From 75fa49f361c6c15851b5678ad13689dcff11901e Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Fri, 25 Jul 2003 00:04:44 +0000 Subject: [PATCH] =?UTF-8?q?Impossibilt=E9=20de=20modifier=20une=20propale?= =?UTF-8?q?=20Clotur=E9e=20Suppression=20de=20la=20barre=20d'action=20lors?= =?UTF-8?q?que=20la=20propale=20est=20Clotur=E9e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/comm/propal.php3 | 102 +++++++++++++++++++++------------------- 1 file changed, 54 insertions(+), 48 deletions(-) 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 "

"; + if ($obj->statut < 2) + { + print "

"; - if ($obj->statut == 0) - { - print ""; - } - else - { - if ($obj->statut == 1) + if ($obj->statut == 0) { - print ""; + print ""; + } + else + { + if ($obj->statut == 1) + { + print ""; + } + else + { + print ""; + } + } + /* + * + */ + if ($obj->statut < 2) + { + print '"; } else { print ""; } - } - /* - * - */ - if ($obj->statut < 2) - { - print '"; - } - else - { - print ""; - } - /* - * - */ - if ($obj->statut == 1) - { - $file = PROPALE_OUTPUTDIR. "/$obj->ref/$obj->ref.pdf"; - if (file_exists($file)) + /* + * + */ + if ($obj->statut == 1) { - print ""; + $file = PROPALE_OUTPUTDIR. "/$obj->ref/$obj->ref.pdf"; + if (file_exists($file)) + { + print ""; + } + else + { + print ''; + } } else { - print ''; + print ""; } + /* + * + */ + if ($obj->statut == 0) + { + print ""; + } + elseif ($obj->statut == 1) + { + print ""; + } + else + { + print ""; + } + print "
[Supprimer][Cloturer][Supprimer][Cloturer]-[Générer]-[Générer]-"; - print "[Envoyer la proposition]"; + print "[Envoyer la proposition]! Propale non generee !! Propale non generee !-[Valider][Modifier]-
"; } - else - { - print "-"; - } - /* - * - */ - if ($obj->statut == 0) - { - print "[Valider]"; - } - else - { - print "[Modifier]"; - - } - print ""; /* * */