From 13e1b1db9816baba7e7070d0151dc211a8c304f2 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Tue, 20 Jul 2004 14:02:49 +0000 Subject: [PATCH] =?UTF-8?q?Suppression=20des=20infos=20de=20suivi,=20d=E9p?= =?UTF-8?q?lacement=20nouvelle=20page?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/comm/propal.php | 67 ++++++++++++++++-------------------------- 1 file changed, 26 insertions(+), 41 deletions(-) diff --git a/htdocs/comm/propal.php b/htdocs/comm/propal.php index 8b1f816b101..4f31d1dc25f 100644 --- a/htdocs/comm/propal.php +++ b/htdocs/comm/propal.php @@ -244,6 +244,9 @@ if ($_GET["propalid"]) $a = 0; $head[$h][0] = DOL_URL_ROOT.'/comm/propal/note.php?propalid='.$propal->id; $head[$h][1] = "Note"; + $h++; + $head[$h][0] = DOL_URL_ROOT.'/comm/propal/info.php?propalid='.$propal->id; + $head[$h][1] = "Info"; dolibarr_fiche_head($head, $a, $societe->nom); @@ -525,7 +528,7 @@ if ($_GET["propalid"]) { if ($propal->statut == 1 && $user->rights->propale->cloturer) { - print "id&action=statut\">Cloturer"; + print "id&action=statut\">Clôturer"; } } @@ -669,15 +672,30 @@ if ($_GET["propalid"]) { $coms = $propal->commande_liste_array(); print '
'; - print "\n"; - - for ($i = 0 ; $i < $nb_commande ; $i++) + + if ($nb_commande == 1) + { - print '\n"; - print "\n"; + print "\n"; + } + else + { + print "\n"; + + for ($i = 0 ; $i < $nb_commande ; $i++) + { + print '\n"; + print "\n"; + } } print "
Commande Num.
'.$coms[$i]."
Commande rattachée : "; + print ''.$coms[$i].""; + print "
Commandes rattachées
'.$coms[$i]."
"; } + + + + // print 'Générer"; /* * @@ -770,46 +788,13 @@ if ($_GET["propalid"]) { print "Num rows = " . $db->num_rows(); print "

$sql"; - } - /* - * Voir le suivi des actions - * - * - * - */ - if ($suivi) - { - $validor = new User($db, $obj->fk_user_valid); - $validor->fetch(''); - $cloturor = new User($db, $obj->fk_user_cloture); - $cloturor->fetch(''); - - print 'Suivi des actions
'; - print ''; - print ''; - print ''; - print ''; - - print ''; - print ''; - - print ''; - print ''; - print '
 NomDate
Création'.$author->fullname.''.$obj->datec.'
Validation'.$validor->fullname.' '.$obj->date_valid.' 
Cloture'.$cloturor->fullname.' '.$obj->date_cloture.' 
'; - } - else - { - print '

Voir le suivi des actions '; - } - + } } else { print $db->error(); print "

$sql"; - } - - + } /* * *