Qual: Uniformisation du code
This commit is contained in:
parent
9e3a175d3c
commit
a13d2a63c5
@ -1,5 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2006 Jean Heimburger <jean@tiaris.info>
|
/* Copyright (C) 2006 Jean Heimburger <jean@tiaris.info>
|
||||||
|
* Copyright (C) 2007 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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
|
* 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
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
*
|
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require("./pre.inc.php");
|
require("./pre.inc.php");
|
||||||
@ -62,15 +61,15 @@ elseif (!($err = $client->getError()) )
|
|||||||
$OscClient = new Osc_Customer($db);
|
$OscClient = new Osc_Customer($db);
|
||||||
|
|
||||||
if ($num > 0) {
|
if ($num > 0) {
|
||||||
print "<p><TABLE border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"4\">";
|
print "<TABLE width=\"100%\" class=\"noborder\">";
|
||||||
print '<TR class="liste_titre">';
|
print '<TR class="liste_titre">';
|
||||||
print "<td>Oscid</td>";
|
print "<td>OscId</td>";
|
||||||
print "<td>clientId</td>";
|
print "<td>".$langs->trans("IdCustomer")."</td>";
|
||||||
print '<TD align="center">Société</TD>';
|
print '<TD align="left">'.$langs->trans("ThirdParty").'</TD>';
|
||||||
print "<td>Nom</td>";
|
print '<td>'.$langs->trans("Name").'</td>';
|
||||||
print "<td>Ville</td>";
|
print '<td>'.$langs->trans("Town").'</td>';
|
||||||
print "<td>Pays</td>";
|
print '<td>'.$langs->trans("Country").'</td>';
|
||||||
print '<td align="center">Téléphone</td>';
|
print '<td align="center">'.$langs->trans("Phone").'</td>';
|
||||||
print '<TD align="center">Importer</TD>';
|
print '<TD align="center">Importer</TD>';
|
||||||
print "</TR>\n";
|
print "</TR>\n";
|
||||||
|
|
||||||
@ -84,7 +83,7 @@ elseif (!($err = $client->getError()) )
|
|||||||
print "<TD>".$result[$i][entry_company]."</TD>\n";
|
print "<TD>".$result[$i][entry_company]."</TD>\n";
|
||||||
print "<TD>".$result[$i][entry_lastname]."</TD>\n";
|
print "<TD>".$result[$i][entry_lastname]."</TD>\n";
|
||||||
print "<TD>".$result[$i][entry_city]."</TD>\n";
|
print "<TD>".$result[$i][entry_city]."</TD>\n";
|
||||||
print '<TD align="center">'.$result[$i][countries_name]."</TD>\n";
|
print '<TD align="left">'.$result[$i][countries_name]."</TD>\n";
|
||||||
print '<TD align="center">'.$result[$i][customers_telephone]."</TD>\n";
|
print '<TD align="center">'.$result[$i][customers_telephone]."</TD>\n";
|
||||||
if ($custid) $lib = "modifier";
|
if ($custid) $lib = "modifier";
|
||||||
else $lib = "<u>importer</u>";
|
else $lib = "<u>importer</u>";
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2006 Jean Heimburger <jean@tiaris.info>
|
/* Copyright (C) 2006 Jean Heimburger <jean@tiaris.info>
|
||||||
|
* Copyright (C) 2007 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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
|
* 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
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
*
|
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require("./pre.inc.php");
|
require("./pre.inc.php");
|
||||||
|
|
||||||
$langs->load("companies");
|
$langs->load("companies");
|
||||||
|
$langs->load("orders");
|
||||||
|
|
||||||
|
|
||||||
llxHeader();
|
llxHeader();
|
||||||
|
|
||||||
@ -61,13 +62,13 @@ elseif (!($err = $client->getError()) )
|
|||||||
$OscOrder = new Osc_Order($db);
|
$OscOrder = new Osc_Order($db);
|
||||||
|
|
||||||
if ($num > 0) {
|
if ($num > 0) {
|
||||||
print "<p><TABLE border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"4\">";
|
print "<TABLE width=\"100%\" class=\"noborder\">";
|
||||||
print '<TR class="liste_titre">';
|
print '<TR class="liste_titre">';
|
||||||
print "<td>id</td>";
|
print "<td>Id</td>";
|
||||||
print '<TD align="center">Commande</TD>';
|
print '<TD align="center">'.$langs->trans("Order").'</TD>';
|
||||||
print "<td>Client</td>";
|
print '<td>'.$langs->trans("Customer").'</td>';
|
||||||
print "<td>Date</td>";
|
print '<td>'.$langs->trans("Date").'</td>';
|
||||||
print "<td>Montant</td>";
|
print '<td>'.$langs->trans("Amount").'</td>';
|
||||||
print '<td align="center">Paiement</td>';
|
print '<td align="center">Paiement</td>';
|
||||||
print '<td align="center">Statut</td>';
|
print '<td align="center">Statut</td>';
|
||||||
print '<TD align="center">Importer</TD>';
|
print '<TD align="center">Importer</TD>';
|
||||||
|
|||||||
@ -116,7 +116,7 @@ llxHeader();
|
|||||||
|
|
||||||
$html=new Form($db);
|
$html=new Form($db);
|
||||||
|
|
||||||
if ($mesg) print "<p>".$mesg."</p>";
|
if ($mesg) print '<div class="ok">'.$mesg.'</div>';
|
||||||
|
|
||||||
// Put here content of your page
|
// Put here content of your page
|
||||||
// ...
|
// ...
|
||||||
@ -138,7 +138,7 @@ print_barre_liste("Correspondance des cat
|
|||||||
$i = 0;
|
$i = 0;
|
||||||
|
|
||||||
//titre
|
//titre
|
||||||
print '<table border="0" width="100%" cellspacing="0" cellpadding="4">';
|
print '<table width="100%" class="noborder">';
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
print '<td>Id</td><td>Label</td><td>Osc_id</td><td>Action</td>';
|
print '<td>Id</td><td>Label</td><td>Osc_id</td><td>Action</td>';
|
||||||
print '</tr>'."\n";
|
print '</tr>'."\n";
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2006 Jean Heimburger <jean@tiaris.info>
|
/* Copyright (C) 2006 Jean Heimburger <jean@tiaris.info>
|
||||||
*
|
* Copyright (C) 2007 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -18,7 +18,6 @@
|
|||||||
*
|
*
|
||||||
* $Id$
|
* $Id$
|
||||||
* $Source$
|
* $Source$
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require("./pre.inc.php");
|
require("./pre.inc.php");
|
||||||
@ -61,7 +60,7 @@ elseif (!($err = $client->getError()) )
|
|||||||
$OscProd = new Osc_Product($db);
|
$OscProd = new Osc_Product($db);
|
||||||
|
|
||||||
if ($num > 0) {
|
if ($num > 0) {
|
||||||
print "<p><TABLE border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"4\">";
|
print "<TABLE width=\"100%\" class=\"noborder\">";
|
||||||
print '<TR class="liste_titre">';
|
print '<TR class="liste_titre">';
|
||||||
print "<td>id</td>";
|
print "<td>id</td>";
|
||||||
print "<td>Ref</td>";
|
print "<td>Ref</td>";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user