From c6727a2828f0c969f5f21ec12868f929dbf2d95b Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 25 Nov 2004 23:23:20 +0000 Subject: [PATCH] Uniformisation affichage. --- htdocs/comm/propal.php | 15 +++++++-------- htdocs/comm/propal/document.php | 2 +- htdocs/comm/propal/info.php | 4 ++-- htdocs/comm/propal/note.php | 10 +++++----- 4 files changed, 15 insertions(+), 16 deletions(-) diff --git a/htdocs/comm/propal.php b/htdocs/comm/propal.php index 2143bbc3eb8..d4c17e9261f 100644 --- a/htdocs/comm/propal.php +++ b/htdocs/comm/propal.php @@ -48,7 +48,7 @@ require("../actioncomm.class.php"); require("../lib/CMailFile.class.php"); /* - * Sécurité accés client + * Sécurité accés client */ if ($user->societe_id > 0) { @@ -62,7 +62,7 @@ if ($user->societe_id > 0) if ($_POST["action"] == 'confirm_delete' && $_POST["confirm"] == 'yes') { - if ($user->rights->propale->supprimer ) + if ($user->rights->propale->supprimer) { $propal = new Propal($db, 0, $_GET["propalid"]); $propal->delete($user); @@ -141,7 +141,6 @@ if ($_GET["action"] == 'commande') $propal->create_commande($user); } - if ($_GET["action"] == 'modif' && $user->rights->propale->creer) { /* @@ -244,7 +243,7 @@ if ($_GET["propalid"]) $h=0; $head[$h][0] = DOL_URL_ROOT.'/comm/propal.php?propalid='.$propal->id; - $head[$h][1] = $langs->trans("Prop").": $propal->ref"; + $head[$h][1] = $langs->trans("Card"); $hselected=$h; $h++; @@ -256,7 +255,7 @@ if ($_GET["propalid"]) $head[$h][1] = $langs->trans("Info"); $h++; - dolibarr_fiche_head($head, $hselected, $societe->nom); + dolibarr_fiche_head($head, $hselected, $langs->trans("Prop").": $propal->ref"); /* * Confirmation de la suppression de la propale @@ -299,7 +298,7 @@ if ($_GET["propalid"]) print ""; - print ''; - print ''; + print ''; print ''; - print ""; + print ""; print '"; diff --git a/htdocs/comm/propal/document.php b/htdocs/comm/propal/document.php index 45b160ea4ed..52d85473faf 100644 --- a/htdocs/comm/propal/document.php +++ b/htdocs/comm/propal/document.php @@ -20,7 +20,7 @@ * $Source$ */ -/*! \file htdocs/comm/propal/document.php +/*! \file htdocs/comm/propal/document.php \ingroup propale \brief Page de gestion des documents attachées à une proposition commerciale \version $Revision$ diff --git a/htdocs/comm/propal/info.php b/htdocs/comm/propal/info.php index 6508b76a33d..08ebf413e5b 100644 --- a/htdocs/comm/propal/info.php +++ b/htdocs/comm/propal/info.php @@ -52,7 +52,7 @@ if ($_GET["propalid"]) $h=0; $head[$h][0] = DOL_URL_ROOT.'/comm/propal.php?propalid='.$propal->id; - $head[$h][1] = $langs->trans("Prop").": $propal->ref"; + $head[$h][1] = $langs->trans("Card"); $h++; $head[$h][0] = DOL_URL_ROOT.'/comm/propal/note.php?propalid='.$propal->id; @@ -64,7 +64,7 @@ if ($_GET["propalid"]) $hselected=$h; $h++; - dolibarr_fiche_head($head, $hselected, $societe->nom); + dolibarr_fiche_head($head, $hselected, $langs->trans("Prop").": $propal->ref"); $propal->info($propal->id); diff --git a/htdocs/comm/propal/note.php b/htdocs/comm/propal/note.php index e87af211102..d3c6485f317 100644 --- a/htdocs/comm/propal/note.php +++ b/htdocs/comm/propal/note.php @@ -76,7 +76,7 @@ if ($_GET["propalid"]) $h=0; $head[$h][0] = DOL_URL_ROOT.'/comm/propal.php?propalid='.$propal->id; - $head[$h][1] = $langs->trans("Prop").": $propal->ref"; + $head[$h][1] = $langs->trans("Card"); $h++; $head[$h][0] = DOL_URL_ROOT.'/comm/propal/note.php?propalid='.$propal->id; @@ -88,11 +88,11 @@ if ($_GET["propalid"]) $head[$h][1] = $langs->trans("Info"); $h++; - dolibarr_fiche_head($head, $hselected, $societe->nom); + dolibarr_fiche_head($head, $hselected, $langs->trans("Prop").": $propal->ref"); print '
'.$langs->trans("Companies").''; + print '
'.$langs->trans("Company").''; if ($societe->client == 1) { $url ='fiche.php?socid='.$societe->id; @@ -309,7 +308,7 @@ if ($_GET["propalid"]) $url = DOL_URL_ROOT.'/comm/prospect/fiche.php?socid='.$societe->id; } print ''.$societe->nom.''.$langs->trans("Status").''.$obj->lst.'
'.$langs->trans("Status").''.$obj->lst.'
'.$langs->trans("Date").''.strftime("%A %d %B %Y",$propal->date); if ($propal->fin_validite) @@ -323,7 +322,7 @@ if ($_GET["propalid"]) $author->fetch(''); print $author->fullname.'
".$langs->trans("To")."$obj->firstname $obj->name <$obj->email>
".$langs->trans("To")."$obj->firstname $obj->name".($obj->email?"<$obj->email>":"")."'.$langs->trans("Note").' :
'. nl2br($propal->note)."
'; - print ''; - print ''; + print ''; - print '
Société'; + print '
'.$langs->trans("Company").''; if ($societe->client == 1) { $url ='fiche.php?socid='.$societe->id; @@ -102,9 +102,9 @@ if ($_GET["propalid"]) $url = DOL_URL_ROOT.'/comm/prospect/fiche.php?socid='.$societe->id; } print ''.$societe->nom.''.$langs->trans("Status").''.$propal->statut_libelle.'
'.$langs->trans("Status").''.$propal->statut_libelle.'
Date'.strftime("%A %d %B %Y",$propal->date); + print '
'.$langs->trans("Date").''.strftime("%A %d %B %Y",$propal->date); if ($propal->fin_validite) { print " (".strftime("%d %B %Y",$propal->fin_validite).")";