From a13d2a63c5bae52b711d1b5633c4ab4eab982db0 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 10 Aug 2007 22:00:35 +0000 Subject: [PATCH] Qual: Uniformisation du code --- htdocs/oscommerce_ws/clients/index.php | 23 ++++++++++---------- htdocs/oscommerce_ws/commandes/index.php | 19 ++++++++-------- htdocs/oscommerce_ws/produits/categories.php | 4 ++-- htdocs/oscommerce_ws/produits/index.php | 7 +++--- 4 files changed, 26 insertions(+), 27 deletions(-) diff --git a/htdocs/oscommerce_ws/clients/index.php b/htdocs/oscommerce_ws/clients/index.php index ead4790d4ac..a42d079b253 100644 --- a/htdocs/oscommerce_ws/clients/index.php +++ b/htdocs/oscommerce_ws/clients/index.php @@ -1,5 +1,6 @@ +/* Copyright (C) 2006 Jean Heimburger + * Copyright (C) 2007 Laurent Destailleur * * 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 @@ -14,8 +15,6 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - * - * */ require("./pre.inc.php"); @@ -62,15 +61,15 @@ elseif (!($err = $client->getError()) ) $OscClient = new Osc_Customer($db); if ($num > 0) { - print "

"; + print "
"; print ''; - print ""; - print ""; - print ''; - print ""; - print ""; - print ""; - print ''; + print ""; + print ""; + print ''; + print ''; + print ''; + print ''; + print ''; print ''; print "\n"; @@ -84,7 +83,7 @@ elseif (!($err = $client->getError()) ) print "\n"; print "\n"; print "\n"; - print '\n"; + print '\n"; print '\n"; if ($custid) $lib = "modifier"; else $lib = "importer"; diff --git a/htdocs/oscommerce_ws/commandes/index.php b/htdocs/oscommerce_ws/commandes/index.php index afe041b3896..50bed867fc9 100644 --- a/htdocs/oscommerce_ws/commandes/index.php +++ b/htdocs/oscommerce_ws/commandes/index.php @@ -1,5 +1,6 @@ +/* Copyright (C) 2006 Jean Heimburger + * Copyright (C) 2007 Laurent Destailleur * * 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 @@ -14,13 +15,13 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - * - * */ require("./pre.inc.php"); $langs->load("companies"); +$langs->load("orders"); + llxHeader(); @@ -61,13 +62,13 @@ elseif (!($err = $client->getError()) ) $OscOrder = new Osc_Order($db); if ($num > 0) { - print "

OscidclientIdSociétéNomVillePaysTéléphoneOscId".$langs->trans("IdCustomer")."'.$langs->trans("ThirdParty").''.$langs->trans("Name").''.$langs->trans("Town").''.$langs->trans("Country").''.$langs->trans("Phone").'Importer
".$result[$i][entry_company]."".$result[$i][entry_lastname]."".$result[$i][entry_city]."'.$result[$i][countries_name]."'.$result[$i][countries_name]."'.$result[$i][customers_telephone]."
"; + print "
"; print ''; - print ""; - print ''; - print ""; - print ""; - print ""; + print ""; + print ''; + print ''; + print ''; + print ''; print ''; print ''; print ''; diff --git a/htdocs/oscommerce_ws/produits/categories.php b/htdocs/oscommerce_ws/produits/categories.php index 5075a7fd0b0..bad23f5a233 100644 --- a/htdocs/oscommerce_ws/produits/categories.php +++ b/htdocs/oscommerce_ws/produits/categories.php @@ -116,7 +116,7 @@ llxHeader(); $html=new Form($db); -if ($mesg) print "

".$mesg."

"; +if ($mesg) print '
'.$mesg.'
'; // Put here content of your page // ... @@ -138,7 +138,7 @@ print_barre_liste("Correspondance des cat $i = 0; //titre - print '
idCommandeClientDateMontantId'.$langs->trans("Order").''.$langs->trans("Customer").''.$langs->trans("Date").''.$langs->trans("Amount").'PaiementStatutImporter
'; + print '
'; print ''; print ''; print ''."\n"; diff --git a/htdocs/oscommerce_ws/produits/index.php b/htdocs/oscommerce_ws/produits/index.php index c242183a6e9..b039a3eb04f 100644 --- a/htdocs/oscommerce_ws/produits/index.php +++ b/htdocs/oscommerce_ws/produits/index.php @@ -1,6 +1,6 @@ - * +/* Copyright (C) 2006 Jean Heimburger + * Copyright (C) 2007 Laurent Destailleur * * 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 @@ -18,7 +18,6 @@ * * $Id$ * $Source$ - * */ require("./pre.inc.php"); @@ -61,7 +60,7 @@ elseif (!($err = $client->getError()) ) $OscProd = new Osc_Product($db); if ($num > 0) { - print "

IdLabelOsc_idAction
"; + print "
"; print ''; print ""; print "";
idRef