From ad2cae7a0c4f661a568fac0ee5720d023cc800b3 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Thu, 14 Apr 2005 16:05:06 +0000 Subject: [PATCH] Modif look --- htdocs/commande/fiche.php | 78 ++++++++++++++++++-------------- htdocs/compta/commande/fiche.php | 6 ++- 2 files changed, 47 insertions(+), 37 deletions(-) diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php index b5328cf619c..0197a37c8c9 100644 --- a/htdocs/commande/fiche.php +++ b/htdocs/commande/fiche.php @@ -423,13 +423,17 @@ else $author->id = $commande->user_author_id; $author->fetch(); + $h=0; + $head[$h][0] = DOL_URL_ROOT.'/commande/fiche.php?id='.$commande->id; + $head[$h][1] = $langs->trans("OrderCard"); + $hselected = $h; + $h++; + + $head[$h][0] = DOL_URL_ROOT.'/compta/commande/fiche.php?id='.$commande->id; + $head[$h][1] = $langs->trans("ComptaCard"); + $h++; - $head[0][0] = DOL_URL_ROOT.'/commande/fiche.php?id='.$commande->id; - $head[0][1] = $langs->trans("Order").": ".$commande->ref; - $h = 1; - $a = 0; - - dolibarr_fiche_head($head, $a, $soc->nom); + dolibarr_fiche_head($head, $hselected, $soc->nom." / ".$langs->trans("Order")." : $commande->ref"); /* * Confirmation de la suppression de la commande @@ -471,17 +475,33 @@ else } print ''; + print '"; + print ''; + print ''; + print ''; + print ""; print ''; - print '"; - - print ''; - print "\n"; - print '"; + + print ''; + print "\n"; - print ''; - - print '"; + print ''; - // Ligne de 3 colonnes + // Ligne de 3 colonnes print ''; print ''; print ''; @@ -840,14 +848,14 @@ else print '
'.$langs->trans("Order")."'.$commande->ref.''.$commande->statuts[$commande->statut].''; + + if ($conf->projet->enabled) + { + $langs->load("projects"); + if ($commande->projet_id > 0) + { + print $langs->trans("Project").' : '; + $projet = New Project($db); + $projet->fetch($commande->projet_id); + print ''.$projet->title.''; + } + else + { + print $langs->trans("Project").' : '; + print 'Classer la commande'; + } + } + print ' 
".$langs->trans("Customer")."'; print ''.$soc->nom.''; - print $commande->statuts[$commande->statut]; - print "
'.$langs->trans("Date").'".strftime("%A %d %B %Y",$commande->date)."'.$langs->trans("Source").' : ' . $commande->sources[$commande->source] ; if ($commande->source == 0) { @@ -491,26 +511,14 @@ else print ' -> '.$propal->ref.''; } print "
'.$langs->trans("Date").'".strftime("%A %e %B %Y",$commande->date)."
'.$langs->trans("Author").''.$author->fullname.''; - if ($conf->projet->enabled) { - print $langs->trans("Project").' : '; - if ($commande->projet_id > 0) - { - $projet = New Project($db); - $projet->fetch($commande->projet_id); - print ''.$projet->title.''; - } - else - { - print 'Classer la commande'; - } - } - print " 
'; + print $langs->trans("Author").' : '.$author->fullname.'
'.$langs->trans("AmountHT").''.price($commande->total_ht).''.$conf->monnaie.''; } /* - * - * + * Classe la commande dans un projet + * TODO finir le look & feel très moche */ if ($_GET["action"] == 'classer') { - print '
'; + print ''; print ''; - print ''; + print '
'; print '
'.$langs->trans("Project").''; $proj = new Project($db); diff --git a/htdocs/compta/commande/fiche.php b/htdocs/compta/commande/fiche.php index 0251d4c6eeb..4b4062237cc 100644 --- a/htdocs/compta/commande/fiche.php +++ b/htdocs/compta/commande/fiche.php @@ -100,8 +100,10 @@ if ($_GET["id"] > 0) * Commande */ print ''; - print "'; - print '"; + print ''; + print ''; + print '
".$langs->trans("Order")."".$commande->ref.''.$commande->statuts[$commande->statut].''; + print '
'.$langs->trans("Order")."'.$commande->ref.''.$commande->statuts[$commande->statut].''; if ($conf->projet->enabled) {