From e19d2c83b2570a3dd6cb23193b6cd6699c8513d7 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Mon, 9 Feb 2004 16:55:48 +0000 Subject: [PATCH] Nouveau look --- htdocs/projet/fiche.php | 123 +++++++--------------------------------- 1 file changed, 19 insertions(+), 104 deletions(-) diff --git a/htdocs/projet/fiche.php b/htdocs/projet/fiche.php index f4384136422..a1a7408ec06 100644 --- a/htdocs/projet/fiche.php +++ b/htdocs/projet/fiche.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2001-2004 Rodolphe Quiedeville * * 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 @@ -99,12 +99,27 @@ if ($action == 'create') * */ - print_titre("Fiche projet"); - - $propales = array(); $projet = new Project($db); $projet->fetch($id); + + $h=0; + $head[$h][0] = DOL_URL_ROOT.'/projet/fiche.php?id='.$projet->id; + $head[$h][1] = 'Fiche projet'; + + $head[$h+1][0] = DOL_URL_ROOT.'/projet/propal.php?id='.$projet->id; + $head[$h+1][1] = 'Prop. Commerciales'; + + $head[$h+2][0] = DOL_URL_ROOT.'/projet/commandes.php?id='.$projet->id; + $head[$h+2][1] = 'Commandes'; + + $head[$h+3][0] = DOL_URL_ROOT.'/projet/facture.php?id='.$projet->id; + $head[$h+3][1] = 'Factures'; + + dolibarr_fiche_head($head, 0); + + + $projet->societe->fetch($projet->societe->id); if ($action == 'edit') @@ -147,106 +162,6 @@ if ($action == 'create') print ""; - if ($_GET["action"] == '') - { - $propales = $projet->get_propal_list(); - - if (sizeof($propales)>0 && is_array($propales)) - { - print_titre('Listes des propositions commerciales associées au projet'); - print ''; - - print ''; - print ''; - - for ($i = 0; $ifetch($propales[$i]); - - $var=!$var; - print ""; - print "\n"; - - print ''; - - print ''; - $total = $total + $propale->price; - } - - print ''; - print ''; - print '
RéfDatePrix
id\">$propale->ref'.strftime("%d %B %Y",$propale->datep).''.price($propale->price).'
'.$i.' propalesTotal : '.price($total).''.MAIN_MONNAIE.' HT
'; - } - /* - * Commandes - * - */ - $commandes = $projet->get_commande_list(); - $total = 0 ; - if (sizeof($commandes)>0 && is_array($commandes)) - { - print_titre('Listes des commandes associées au projet'); - print ''; - - print ''; - print ''; - - for ($i = 0; $ifetch($commandes[$i]); - - $var=!$var; - print ""; - print "\n"; - print ''; - print ''; - - $total = $total + $commande->total_ht; - } - - print ''; - print ''; - print ''; - print "
RéfDatePrix
id\">$commande->ref'.strftime("%d %B %Y",$commande->date).''.price($commande->total_ht).'
'.$i.' commandesTotal : '.price($total).''.MAIN_MONNAIE.' HT
"; - } - - - /* - * Factures - * - */ - $factures = $projet->get_facture_list(); - $total = 0; - if (sizeof($factures)>0 && is_array($factures)) - { - print_titre('Listes des factures associées au projet'); - print ''; - - print ''; - print ''; - - for ($i = 0; $ifetch($factures[$i]); - - $var=!$var; - print ""; - print "\n"; - print ''; - print ''; - - $total = $total + $facture->total_ht; - } - - print ''; - print ''; - print ''; - print "
RéfDatePrix
id\">$facture->ref'.strftime("%d %B %Y",$facture->date).''.price($facture->total_ht).'
'.$i.' facturesTotal : '.price($total).''.MAIN_MONNAIE.' HT
"; - } - } } $db->close();