From 14ad53848d1d357c223a71558cf6d22317a26f82 Mon Sep 17 00:00:00 2001
From: aspangaro <alexandre.spangaro@gmail.com>
Date: Fri, 19 Jun 2015 06:32:51 +0200
Subject: [PATCH] Remove $linkback, lang & html

---
 htdocs/accountancy/customer/card.php | 3 +--
 htdocs/accountancy/supplier/card.php | 7 +++----
 2 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/htdocs/accountancy/customer/card.php b/htdocs/accountancy/customer/card.php
index d3d6ff8a945..81fbea30baa 100644
--- a/htdocs/accountancy/customer/card.php
+++ b/htdocs/accountancy/customer/card.php
@@ -108,8 +108,7 @@ if (! empty($id)) {
 			print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">';
 			print '<input type="hidden" name="action" value="ventil">';
 
-			$linkback='<a href="'.DOL_URL_ROOT.'/accountancy/customer/lines.php">'.$langs->trans("Back").'</a>';
-			print_fiche_titre($langs->trans('CustomersVentilation'),$linkback,'title_setup');
+			print_fiche_titre($langs->trans('CustomersVentilation'),'','title_setup');
 
             dol_fiche_head();
 
diff --git a/htdocs/accountancy/supplier/card.php b/htdocs/accountancy/supplier/card.php
index 42837680428..c293418b669 100644
--- a/htdocs/accountancy/supplier/card.php
+++ b/htdocs/accountancy/supplier/card.php
@@ -107,12 +107,11 @@ if (! empty($id)) {
 			print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">';
 			print '<input type="hidden" name="action" value="ventil">';
 			
-			$linkback='<a href="'.DOL_URL_ROOT.'/accountancy/supplier/lines.php">'.$langs->trans("Back").'</a>';
-			print_fiche_titre($langs->trans('SuppliersVentilation'),$linkback,'title_setup');
+			print_fiche_titre($langs->trans('SuppliersVentilation'),'','title_setup');
 
             dol_fiche_head();
 			
-			print '<table class="border" width="100%" cellspacing="0" cellpadding="4">';
+			print '<table class="border" width="100%">';
 			
 			// ref invoice
 			print '<tr><td>' . $langs->trans("BillsSuppliers") . '</td>';
@@ -121,7 +120,7 @@ if (! empty($id)) {
 			print '<td>' . $facturefournisseur_static->getNomUrl(1) . '</td>';
 			print '</tr>';
 			
-			print '<tr><td width="20%">Ligne</td>';
+			print '<tr><td width="20%">' . $langs->trans("Line") . '</td>';
 			print '<td>' . stripslashes(nl2br($objp->description)) . '</td></tr>';
 			print '<tr><td width="20%">' . $langs->trans("ProductLabel") . '</td>';
 			print '<td>' . dol_trunc($objp->product_label, 24) . '</td>';
-- 
GitLab