From 90963ca84adc4d40f42d998af8d0f171eab220a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Garci=CC=81a?= Date: Sat, 28 Jul 2012 20:54:07 +0200 Subject: [PATCH] BackToList links in Client orders section --- htdocs/comm/propal.php | 2 +- htdocs/commande/contact.php | 4 +++- htdocs/commande/document.php | 6 ++++-- htdocs/commande/fiche.php | 4 +++- htdocs/commande/note.php | 4 +++- htdocs/fourn/commande/document.php | 2 +- 6 files changed, 15 insertions(+), 7 deletions(-) diff --git a/htdocs/comm/propal.php b/htdocs/comm/propal.php index eecf70a7a97..c58cf03db50 100644 --- a/htdocs/comm/propal.php +++ b/htdocs/comm/propal.php @@ -1267,7 +1267,7 @@ print $formconfirm; print ''; -$linkback=''.$langs->trans("BackToList").''; +$linkback = ''.$langs->trans("BackToList").''; // Ref print '
'.$langs->trans('Ref').''; diff --git a/htdocs/commande/contact.php b/htdocs/commande/contact.php index f1e977fe9e6..7569d449af0 100644 --- a/htdocs/commande/contact.php +++ b/htdocs/commande/contact.php @@ -153,9 +153,11 @@ if ($id > 0 || ! empty($ref)) */ print ''; + $linkback = ''.$langs->trans("BackToList").''; + // Ref print '"; // Ref commande client diff --git a/htdocs/commande/document.php b/htdocs/commande/document.php index ded13509385..1c69a24fcb3 100644 --- a/htdocs/commande/document.php +++ b/htdocs/commande/document.php @@ -158,11 +158,13 @@ if ($id > 0 || ! empty($ref)) } - print '
'.$langs->trans("Ref").''; - print $form->showrefnav($object,'ref','',1,'ref','ref'); + print $form->showrefnav($object, 'ref', $linkback, 1, 'ref', 'ref'); print "
'; + print '
'; + + $linkback = ''.$langs->trans("BackToList").''; // Ref print ''; print ''; diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php index 4b462c32613..43a284f4e20 100644 --- a/htdocs/commande/fiche.php +++ b/htdocs/commande/fiche.php @@ -1757,10 +1757,12 @@ if ($action == 'send' && ! GETPOST('addfile') && ! GETPOST('removedfile') && ! G print '
'.$langs->trans('Ref').''; - print $form->showrefnav($object,'ref','',1,'ref','ref'); + print $form->showrefnav($object, 'ref', $linkback, 1, 'ref', 'ref'); print '
'.$langs->trans('Company').''.$object->thirdparty->getNomUrl(1).'
'; + $linkback = ''.$langs->trans("BackToList").''; + // Ref print ''; print ''; print ''; diff --git a/htdocs/commande/note.php b/htdocs/commande/note.php index 614c28421a2..5e2c8b45f14 100644 --- a/htdocs/commande/note.php +++ b/htdocs/commande/note.php @@ -87,9 +87,11 @@ if ($id > 0 || ! empty($ref)) print '
'.$langs->trans('Ref').''; - print $form->showrefnav($object,'ref','',1,'ref','ref'); + print $form->showrefnav($object, 'ref', $linkback, 1, 'ref', 'ref'); print '
'; + $linkback = ''.$langs->trans("BackToList").''; + // Ref print '"; // Ref commande client diff --git a/htdocs/fourn/commande/document.php b/htdocs/fourn/commande/document.php index ee319fd9d02..e659957d2f9 100644 --- a/htdocs/fourn/commande/document.php +++ b/htdocs/fourn/commande/document.php @@ -156,7 +156,7 @@ if ($object->id > 0) } - print '
'.$langs->trans("Ref").''; - print $form->showrefnav($object,'ref','',1,'ref','ref'); + print $form->showrefnav($object, 'ref', $linkback, 1, 'ref', 'ref'); print "
'; + print '
'; $linkback = ''.$langs->trans("BackToList").'';