Qual: Uniformisation du code en passant tous les tableaux qui utilisaient print_liste_field_titre et print_liste_field_titre_new sur le modle de print_liste_field_titre_new (plus complet, l'autre fonction a t supprime).
Trad: Et encore de la traduction
This commit is contained in:
parent
707a48ef5a
commit
7562ca778f
@ -1,5 +1,6 @@
|
||||
<?php
|
||||
/* Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
*
|
||||
* 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
|
||||
@ -64,20 +65,15 @@ if ( $db->query($sql) )
|
||||
$num = $db->num_rows();
|
||||
$i = 0;
|
||||
|
||||
|
||||
print_barre_liste("Liste des contrats en service", $page, "enservice.php", "&sref=$sref&snom=$snom", $sortfield, $sortorder,'',$num);
|
||||
|
||||
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="3">';
|
||||
print '<table class="noborder" width="100%">';
|
||||
|
||||
print '<tr class="liste_titre"><td>';
|
||||
print '<tr class="liste_titre">';
|
||||
print_liste_field_titre($langs->trans("Label"),"enservice.php", "p.label");
|
||||
print "</td><td>";
|
||||
print_liste_field_titre("Société","enservice.php", "s.nom");
|
||||
print "</td>";
|
||||
print_liste_field_titre($langs->trans("Company"),"enservice.php", "s.nom");
|
||||
print "<td align=\"center\">".$langs->trans("Status")."</td>";
|
||||
print "<td align=\"center\">";
|
||||
print_liste_field_titre("Date fin","enservice.php", "date_fin_validite");
|
||||
print '</td>';
|
||||
print_liste_field_titre("Date fin","enservice.php", "date_fin_validite","","",'align=\"center\"');
|
||||
print "</tr>\n";
|
||||
|
||||
$now=mktime();
|
||||
|
||||
@ -90,20 +90,12 @@ if ( $db->query($sql) )
|
||||
print '<table class="noborder" width="100%">';
|
||||
|
||||
print '<tr class="liste_titre">';
|
||||
print '<td>';
|
||||
print_liste_field_titre($langs->trans("Ref"),"index.php", "c.rowid");
|
||||
print "</td><td>";
|
||||
print_liste_field_titre($langs->trans("Label"),"index.php", "p.label");
|
||||
print "</td><td>";
|
||||
print_liste_field_titre($langs->trans("Company"),"index.php", "s.nom");
|
||||
print '</td><td align="center">';
|
||||
print_liste_field_titre($langs->trans("Status"),"index.php", "c.enservice");
|
||||
print '</td>';
|
||||
print '</td><td align="center">';
|
||||
print_liste_field_titre("Date Fin","index.php", "c.fin_validite");
|
||||
print '</td><td align="center">';
|
||||
print_liste_field_titre($langs->trans("Action"),"index.php", "c.next");
|
||||
print '</td>';
|
||||
print_liste_field_titre($langs->trans("Status"),"index.php", "c.enservice","","",'align="center"');
|
||||
print_liste_field_titre("Date Fin","index.php", "c.fin_validite","","",'align="center"');
|
||||
print_liste_field_titre($langs->trans("Action"),"index.php", "c.next","","",'align="center"');
|
||||
print "</tr>\n";
|
||||
|
||||
$now=mktime();
|
||||
|
||||
@ -86,15 +86,12 @@ if ( $db->query($sql) )
|
||||
print_barre_liste("Expeditions", $_GET["page"], "liste.php","&socidp=$socidp",$sortfield,$sortorder,'',$num);
|
||||
|
||||
$i = 0;
|
||||
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">';
|
||||
print '<table class="noborder" width="100%">';
|
||||
|
||||
print '<tr class="liste_titre">';
|
||||
|
||||
print_liste_field_titre_new ($langs->trans("Ref"),"liste.php","e.ref","","&socidp=$socidp",'width="15%"',$sortfield);
|
||||
|
||||
print_liste_field_titre_new ("Date","liste.php","e.date_expedition","","&socidp=$socidp", 'width="25%" align="right" colspan="2"',$sortfield);
|
||||
|
||||
print_liste_field_titre_new ($langs->trans("Status"),"liste.php","e.fk_statut","","&socidp=$socidp",'width="10%" align="center"',$sortfield);
|
||||
print_liste_field_titre($langs->trans("Ref"),"liste.php","e.ref","","&socidp=$socidp",'width="15%"',$sortfield);
|
||||
print_liste_field_titre($langs->trans("Date"),"liste.php","e.date_expedition","","&socidp=$socidp", 'width="25%" align="right" colspan="2"',$sortfield);
|
||||
print_liste_field_titre($langs->trans("Status"),"liste.php","e.fk_statut","","&socidp=$socidp",'width="10%" align="center"',$sortfield);
|
||||
print "</tr>\n";
|
||||
$var=True;
|
||||
|
||||
|
||||
@ -71,11 +71,11 @@ if ( $db->query($sql) )
|
||||
print_barre_liste("Liste des fiches d'intervention", $page, "index.php","&socid=$socid",$sortfield,$sortorder,'',$num);
|
||||
|
||||
$i = 0;
|
||||
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">';
|
||||
print '<table class="noborder" width="100%">';
|
||||
print "<tr class=\"liste_titre\">";
|
||||
print_liste_field_titre_new ("Num","index.php","f.ref","","&socid=$socid",'width="15%"',$sortfield);
|
||||
print_liste_field_titre_new ("Société","index.php","s.nom","","&socid=$socid",'',$sortfield);
|
||||
print_liste_field_titre_new ("Date","index.php","f.datei","","&socid=$socid",'',$sortfield);
|
||||
print_liste_field_titre($langs->trans("Ref"),"index.php","f.ref","","&socid=$socid",'width="15%"',$sortfield);
|
||||
print_liste_field_titre($langs->trans("Company"),"index.php","s.nom","","&socid=$socid",'',$sortfield);
|
||||
print_liste_field_titre($langs->trans("Date"),"index.php","f.datei","","&socid=$socid",'',$sortfield);
|
||||
print '<td align="center">'.$langs->trans("Duration").'</td>';
|
||||
print '<td align="center">'.$langs->trans("Status").'</td><td> </td>';
|
||||
print "</tr>\n";
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
<?php
|
||||
/* Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
*
|
||||
* 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
|
||||
@ -107,13 +108,10 @@ if ($result) {
|
||||
}
|
||||
print '<table class="noborder" width="100%">';
|
||||
print "<tr class=\"liste_titre\">";
|
||||
print "<td>";
|
||||
print_liste_field_titre($langs->trans("Lastname"),"contact.php","lower(p.name)", $begin);
|
||||
print "</td><td>";
|
||||
print_liste_field_titre($langs->trans("Firstname"),"contact.php","lower(p.firstname)", $begin);
|
||||
print "</td><td>";
|
||||
print_liste_field_titre($langs->trans("Company"),"contact.php","lower(s.nom)", $begin);
|
||||
print '</td><td>'.$langs->trans("Email").'</td><td>'.$langs->trans("Phone").'</td>';
|
||||
print '<td>'.$langs->trans("Email").'</td><td>'.$langs->trans("Phone").'</td>';
|
||||
print "</tr>\n";
|
||||
$var=True;
|
||||
$i = 0;
|
||||
|
||||
@ -122,28 +122,15 @@ if ($result)
|
||||
|
||||
print_barre_liste("Liste des factures fournisseurs", $page, "index.php",'', $sortfield, $sortorder,'',$num);
|
||||
|
||||
|
||||
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="3">';
|
||||
print '<table class="noborder" width="100%">';
|
||||
print '<tr class="liste_titre">';
|
||||
print '<td>';
|
||||
print_liste_field_titre("Numéro","index.php","facnumber");
|
||||
print '</td>';
|
||||
print '<td>';
|
||||
print_liste_field_titre("Date","index.php","fac.datef");
|
||||
print '</td>';
|
||||
print_liste_field_titre($langs->trans("Ref"),"index.php","facnumber");
|
||||
print_liste_field_titre($langs->trans("Date"),"index.php","fac.datef");
|
||||
print '<td>'.$langs->trans("Label").'</td>';
|
||||
print '<td>';
|
||||
print_liste_field_titre("Société","index.php","s.nom");
|
||||
print '</td>';
|
||||
print '<td align="right">';
|
||||
print_liste_field_titre("Montant HT","index.php","fac.total_ht");
|
||||
print '</td>';
|
||||
print '<td align="right">';
|
||||
print_liste_field_titre("Montant TTC","index.php","fac.total_ttc");
|
||||
print '</td>';
|
||||
print '<td align="center">';
|
||||
print_liste_field_titre($langs->trans("Status"),"index.php","fk_statut,paye");
|
||||
print '</td>';
|
||||
print_liste_field_titre($langs->trans("Company"),"index.php","s.nom");
|
||||
print_liste_field_titre($langs->trans("AmountHT"),"index.php","fac.total_ht","","",'align="right"');
|
||||
print_liste_field_titre($langs->trans("AmountTTC"),"index.php","fac.total_ttc","","",'align="right"');
|
||||
print_liste_field_titre($langs->trans("Status"),"index.php","fk_statut,paye","","",'align="center"');
|
||||
print "</tr>\n";
|
||||
$var=True;
|
||||
while ($i < min($num,$limit))
|
||||
|
||||
@ -158,9 +158,9 @@ if ($result)
|
||||
$sortorder="DESC";
|
||||
}
|
||||
print '<table class="noborder" width="100%">';
|
||||
print '<tr class="liste_titre"><td valign="center">';
|
||||
print_liste_field_titre($langs->trans("Company"),"index.php","s.nom");
|
||||
print '</td><td>'.$langs->trans("Town").'</td>';
|
||||
print '<tr class="liste_titre">';
|
||||
print_liste_field_titre($langs->trans("Company"),"index.php","s.nom","","",'valign="center"');
|
||||
print '<td>'.$langs->trans("Town").'</td>';
|
||||
print "</tr>\n";
|
||||
$var=True;
|
||||
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
<?php
|
||||
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
*
|
||||
* 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
|
||||
@ -48,32 +49,32 @@ if ( $db->query($sql) )
|
||||
{
|
||||
$num = $db->num_rows();
|
||||
$i = 0;
|
||||
print "<p><TABLE border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"4\">";
|
||||
print "<TR class=\"liste_titre\"><td>";
|
||||
print_liste_field_titre("Titre.","index.php", "p.pn_title");
|
||||
print "<table class=\"noborder\" width=\"100%\">";
|
||||
print "<tr class=\"liste_titre\">";
|
||||
print_liste_field_titre($langs->trans("Ref"),"index.php", "p.pn_title");
|
||||
print '<td colspan="3"> </td>';
|
||||
print "</TR>\n";
|
||||
print "</tr>\n";
|
||||
$var=True;
|
||||
while ($i < $num)
|
||||
{
|
||||
$objp = $db->fetch_object();
|
||||
$var=!$var;
|
||||
print "<TR $bc[$var]>";
|
||||
print "<tr $bc[$var]>";
|
||||
|
||||
print '<td><a href="fiche.php?id='.$objp->pn_sid.'"><img src="/theme/'.$conf->theme.'/img/filenew.png" border="0" alt="Fiche livre"></a> ';
|
||||
|
||||
print "<a href=\"fiche.php?id=$objp->pn_sid\">$objp->pn_title</a></TD>\n";
|
||||
print "<TD width='70%'><a href=\"fiche.php?id=$objp->pn_sid\">$objp->title</a></TD>\n";
|
||||
print "<a href=\"fiche.php?id=$objp->pn_sid\">$objp->pn_title</a></td>\n";
|
||||
print "<td width='70%'><a href=\"fiche.php?id=$objp->pn_sid\">$objp->title</a></td>\n";
|
||||
|
||||
print "</TR>\n";
|
||||
print "</tr>\n";
|
||||
$i++;
|
||||
}
|
||||
print "</TABLE>";
|
||||
print "</table>";
|
||||
$db->free();
|
||||
}
|
||||
else
|
||||
{
|
||||
print $db->error();
|
||||
dolibarr_print_error($db);
|
||||
}
|
||||
|
||||
$db->close();
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
<?php
|
||||
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
*
|
||||
* 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
|
||||
@ -49,23 +50,23 @@ $sql .= $db->plimit( $limit ,$offset);
|
||||
if ( $db->query($sql) ) {
|
||||
$num = $db->num_rows();
|
||||
$i = 0;
|
||||
print "<p><TABLE border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"4\">";
|
||||
print "<TR class=\"liste_titre\"><td>";
|
||||
print "<table class=\noborder\" width=\"100%\">";
|
||||
print "<tr class=\"liste_titre\">";
|
||||
print_liste_field_titre("Titre","index.php", "a.title");
|
||||
print "</td>";
|
||||
print "<td></td>";
|
||||
print "</TR>\n";
|
||||
print "<td> </td>";
|
||||
print "</tr>\n";
|
||||
$var=True;
|
||||
while ($i < $num) {
|
||||
$objp = $db->fetch_object( $i);
|
||||
$var=!$var;
|
||||
print "<TR $bc[$var]>";
|
||||
print "<TD><a href=\"fiche.php?id=$objp->rowid\">$objp->title</a></TD>\n";
|
||||
print '<TD align="right"><a href="'.OSC_CATALOG_URL.'product_info.php?products_id='.$objp->osc_id.'">url</a></TD>';
|
||||
print "</TR>\n";
|
||||
print "<tr $bc[$var]>";
|
||||
print "<td><a href=\"fiche.php?id=$objp->rowid\">$objp->title</a></td>\n";
|
||||
print '<td align="right"><a href="'.OSC_CATALOG_URL.'product_info.php?products_id='.$objp->osc_id.'">url</a></td>';
|
||||
print "</tr>\n";
|
||||
$i++;
|
||||
}
|
||||
print "</TABLE>";
|
||||
print "</table>";
|
||||
$db->free();
|
||||
}
|
||||
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
<?php
|
||||
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2003 Éric Seigne <erics@rycks.com>
|
||||
* Copyright (C) 2003 Éric Seigne <erics@rycks.com>
|
||||
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
*
|
||||
* 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
|
||||
@ -67,10 +68,9 @@ if ($id)
|
||||
{
|
||||
$num = $db->num_rows();
|
||||
$i = 0;
|
||||
print "<p><table class=\"noborder\" width=\"100%\" cellspacing=\"0\" cellpadding=\"3\">";
|
||||
print "<tr class=\"liste_titre\"><td>".$langs->trans("Ref")."</td><td>";
|
||||
print "<table class=\"noborder\" width=\"100%\">";
|
||||
print "<tr class=\"liste_titre\"><td>".$langs->trans("Ref")."</td>";
|
||||
print_liste_field_titre("Titre","index.php", "l.title");
|
||||
print "</td>";
|
||||
print '<td colspan="3"> </td>';
|
||||
print "</tr>\n";
|
||||
$var=True;
|
||||
@ -78,10 +78,9 @@ if ($id)
|
||||
{
|
||||
$objp = $db->fetch_object( $i);
|
||||
$var=!$var;
|
||||
print "<TR $bc[$var]>";
|
||||
print '<TD><a href="'.DOL_URL_ROOT.'/boutique/livre/fiche.php?id='.$objp->rowid.'">'.$objp->ref.'</a></TD>';
|
||||
print '<TD width="70%"><a href="'.DOL_URL_ROOT.'/boutique/livre/fiche.php?id='.$objp->rowid.'">'.$objp->title.'</a></TD>';
|
||||
|
||||
print "<tr $bc[$var]>";
|
||||
print '<td><a href="'.DOL_URL_ROOT.'/boutique/livre/fiche.php?id='.$objp->rowid.'">'.$objp->ref.'</a></TD>';
|
||||
print '<td width="70%"><a href="'.DOL_URL_ROOT.'/boutique/livre/fiche.php?id='.$objp->rowid.'">'.$objp->title.'</a></TD>';
|
||||
|
||||
if ($objp->status == 1)
|
||||
{
|
||||
@ -98,9 +97,9 @@ if ($id)
|
||||
print '<img src="/theme/'.$conf->theme.'/img/icon_status_red.png" border="0"></a></td>';
|
||||
}
|
||||
|
||||
print '<TD align="right">';
|
||||
print '<td align="right">';
|
||||
print '<a href="'.OSC_CATALOG_URL.'product_info.php?products_id='.$objp->oscid.'">Fiche en ligne</a></TD>';
|
||||
print "</TR>\n";
|
||||
print "</tr>\n";
|
||||
$i++;
|
||||
}
|
||||
print "</TABLE>";
|
||||
@ -131,12 +130,12 @@ else
|
||||
{
|
||||
$num = $db->num_rows();
|
||||
$i = 0;
|
||||
print "<p><TABLE border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"4\">";
|
||||
print "<TR class=\"liste_titre\"><td>";
|
||||
print "<table class=\"noborder\" width=\"100%\">";
|
||||
print "<tr class=\"liste_titre\">";
|
||||
print_liste_field_titre("Titre","index.php", "a.title");
|
||||
print "</td>";
|
||||
print "<td></td>";
|
||||
print "</TR>\n";
|
||||
print "<td> </td>";
|
||||
print "</tr>\n";
|
||||
|
||||
$var=True;
|
||||
while ($i < $num)
|
||||
{
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
<?php
|
||||
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
*
|
||||
* 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
|
||||
@ -48,18 +49,14 @@ $sql .= $db->plimit( $limit ,$offset);
|
||||
if ( $db->query($sql) ) {
|
||||
$num = $db->num_rows();
|
||||
$i = 0;
|
||||
print "<p><TABLE border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"4\">";
|
||||
print "<TR class=\"liste_titre\"><td>";
|
||||
print "<table class=\noborder\" width=\"100%\">";
|
||||
print "<tr class=\"liste_titre\">";
|
||||
print_liste_field_titre("Titre","index.php", "a.title");
|
||||
print "</td><td>";
|
||||
print_liste_field_titre("Artiste/Groupe","index.php", "ga.nom");
|
||||
print "</td><td>";
|
||||
print_liste_field_titre("Salle","index.php", "lc.nom");
|
||||
print "</td><td>";
|
||||
print_liste_field_titre("Ville","index.php", "lc.ville");
|
||||
print "</td>";
|
||||
print "</tr>\n";
|
||||
|
||||
print "</TR>\n";
|
||||
$var=True;
|
||||
while ($i < $num) {
|
||||
$objp = $db->fetch_object( $i);
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
<?php
|
||||
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
*
|
||||
* 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
|
||||
@ -46,14 +47,13 @@ $sql .= $db->plimit( $limit ,$offset);
|
||||
if ( $db->query($sql) ) {
|
||||
$num = $db->num_rows();
|
||||
$i = 0;
|
||||
print "<p><TABLE border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"4\">";
|
||||
print "<TR class=\"liste_titre\"><td>";
|
||||
print_liste_field_titre("Nom","salles.php", "lc.nom");
|
||||
print "</td><td>";
|
||||
print_liste_field_titre("Ville","salles.php", "lc.ville");
|
||||
print "</td>";
|
||||
print "<table class=\noborder\" width=\"100%\">";
|
||||
|
||||
print "<tr class=\"liste_titre\">";
|
||||
print_liste_field_titre("Nom","salles.php", "lc.nom");
|
||||
print_liste_field_titre("Ville","salles.php", "lc.ville");
|
||||
print "</tr>\n";
|
||||
|
||||
print "</TR>\n";
|
||||
$var=True;
|
||||
while ($i < $num) {
|
||||
$objp = $db->fetch_object( $i);
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
<?php
|
||||
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
*
|
||||
* 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
|
||||
@ -48,23 +49,23 @@ $sql .= $db->plimit( $limit ,$offset);
|
||||
if ( $db->query($sql) ) {
|
||||
$num = $db->num_rows();
|
||||
$i = 0;
|
||||
print "<p><TABLE class=\"noborder\" width=\"100%\" cellspacing=\"0\" cellpadding=\"3\">";
|
||||
print "<TR class=\"liste_titre\"><td>";
|
||||
print "<table class=\"noborder\" width=\"100%\">";
|
||||
print "<tr class=\"liste_titre\">";
|
||||
print_liste_field_titre($langs->trans("Ref"),"index.php", "p.ref");
|
||||
print "</td>";
|
||||
print "<td></td>";
|
||||
print "</TR>\n";
|
||||
print "<td> </td>";
|
||||
print "</tr>\n";
|
||||
|
||||
$var=True;
|
||||
while ($i < $num) {
|
||||
$objp = $db->fetch_object( $i);
|
||||
$var=!$var;
|
||||
print "<TR $bc[$var]>";
|
||||
print "<TD><a href=\"fiche.php?id=$objp->rowid\">$objp->nom</a></TD>\n";
|
||||
print "<TD>".ucfirst(strtolower(strtoupper($objp->groupart)))."</TD>\n";
|
||||
print "</TR>\n";
|
||||
print "<tr $bc[$var]>";
|
||||
print "<td><a href=\"fiche.php?id=$objp->rowid\">$objp->nom</a></td>\n";
|
||||
print "<td>".ucfirst(strtolower(strtoupper($objp->groupart)))."</td>\n";
|
||||
print "</tr>\n";
|
||||
$i++;
|
||||
}
|
||||
print "</TABLE>";
|
||||
print "</table>";
|
||||
$db->free();
|
||||
}
|
||||
|
||||
|
||||
@ -163,13 +163,11 @@ if ($result)
|
||||
|
||||
print '<table class="noborder" width="100%">';
|
||||
|
||||
print "<tr class=\"liste_titre\"><td>";
|
||||
print "<tr class=\"liste_titre\">";
|
||||
print_liste_field_titre($langs->trans("Ref"),"liste.php", "p.ref","&envente=$envente&type=$type&fourn_id=$fourn_id");
|
||||
print "</td><td>";
|
||||
print_liste_field_titre($langs->trans("Label"),"liste.php", "p.label","&envente=$envente&type=$type&fourn_id=$fourn_id");
|
||||
print "</td><td align=\"right\">";
|
||||
print_liste_field_titre($langs->trans("SellingPrice"),"liste.php", "p.price","&envente=$envente&type=$type&fourn_id=$fourn_id");
|
||||
print "</td></tr>\n";
|
||||
print_liste_field_titre($langs->trans("SellingPrice"),"liste.php", "p.price","&envente=$envente&type=$type&fourn_id=$fourn_id","",'align=\"right\"');
|
||||
print "</tr>\n";
|
||||
|
||||
print '<tr class="liste_titre">';
|
||||
print '<form action="liste.php?type='.$type.'" method="post">';
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
<?php
|
||||
/* Copyright (C) 2001-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
*
|
||||
* 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
|
||||
@ -39,15 +40,13 @@ llxHeader();
|
||||
|
||||
print_barre_liste("Liste des produits par popularité dans les propositions commerciales", $page, "popurop.php");
|
||||
|
||||
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">';
|
||||
print '<table class="noborder" width="100%">';
|
||||
|
||||
print "<TR class=\"liste_titre\"><td>";
|
||||
print "<tr class=\"liste_titre\">";
|
||||
print_liste_field_titre($langs->trans("Ref"),"popurop.php", "p.ref");
|
||||
print "</td><td>";
|
||||
print_liste_field_titre($langs->trans("Label"),"popurop.php", "p.label");
|
||||
print "</td><TD align=\"center\">";
|
||||
print_liste_field_titre("Nb. de proposition","popurop.php", "c");
|
||||
print "</td></TR>\n";
|
||||
print_liste_field_titre("Nb. de proposition","popurop.php", "c","","",'align=\"center\"');
|
||||
print "</tr>\n";
|
||||
|
||||
$sql = "select p.rowid, p.label, p.ref, count(*) as c from ".MAIN_DB_PREFIX."propaldet as pd, ".MAIN_DB_PREFIX."product as p where p.rowid = pd.fk_product group by (p.rowid)";
|
||||
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
<?php
|
||||
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
*
|
||||
* 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
|
||||
@ -63,23 +64,21 @@ if ( $db->query($sql) )
|
||||
{
|
||||
$num = $db->num_rows();
|
||||
$i = 0;
|
||||
print '<p><TABLE border="0" width="100%" cellspacing="0" cellpadding="4">';
|
||||
print "<TR class=\"liste_titre\"><td>";
|
||||
print '<table class=\"noborder width="100%">';
|
||||
print "<tr class=\"liste_titre\">";
|
||||
print_liste_field_titre($langs->trans("Ref"),"index.php", "p.products_model");
|
||||
print "</td><td>";
|
||||
print_liste_field_titre("Titre","index.php", "pd.products_name");
|
||||
print "</td>";
|
||||
print "</td><td></td><td></td><td>Fin</td>";
|
||||
print "<td> </td><td> </td><td>Fin</td>";
|
||||
print '<td align="right">Prix initial</td>';
|
||||
print '<td align="right">Prix remisé</td>';
|
||||
print "</TR>\n";
|
||||
print "</tr>\n";
|
||||
$var=True;
|
||||
while ($i < $num)
|
||||
{
|
||||
$objp = $db->fetch_object( $i);
|
||||
$var=!$var;
|
||||
|
||||
print "<TR $bc[$var]>";
|
||||
print "<tr $bc[$var]>";
|
||||
print '<td>'.$objp->products_model."</td>";
|
||||
print '<td>'.$objp->products_name."</td>";
|
||||
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
<?php
|
||||
/* Copyright (C) 2003-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
*
|
||||
* 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
|
||||
@ -91,16 +92,15 @@ if ($_GET["id"])
|
||||
$num = $db->num_rows();
|
||||
|
||||
$i = 0;
|
||||
print "<TABLE border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"4\">";
|
||||
print '<TR class="liste_titre">';
|
||||
print '<TD>Numéro</TD>';
|
||||
print '<td>';
|
||||
print_liste_field_titre("Société","facture.php","s.nom","","&socidp=$socidp");
|
||||
print '</td><TD align="right">';
|
||||
print_liste_field_titre("Date","facture.php","f.datef","","&socidp=$socidp");
|
||||
print '</td><TD align="right">Montant</TD>';
|
||||
print "<table border=\"0\" width=\"100%\">";
|
||||
|
||||
print '<tr class="liste_titre">';
|
||||
print_liste_field_titre($langs->trans("Ref"),"facture.php","s.nom","","&socidp=$socidp");
|
||||
print_liste_field_titre($langs->trans("Company"),"facture.php","s.nom","","&socidp=$socidp");
|
||||
print_liste_field_titre($langs->trans("Date"),"facture.php","f.datef","","&socidp=$socidp",'align="right"');
|
||||
print_liste_field_titre($langs->trans("Amount"),"facture.php","f.amount","","&socidp=$socidp",'align="right"');
|
||||
print '<td> </td>';
|
||||
print "</TR>\n";
|
||||
print "</tr>\n";
|
||||
|
||||
if ($num > 0)
|
||||
{
|
||||
@ -110,7 +110,7 @@ if ($_GET["id"])
|
||||
$objp = $db->fetch_object( $i);
|
||||
$var=!$var;
|
||||
|
||||
print "<TR $bc[$var]>";
|
||||
print "<tr $bc[$var]>";
|
||||
print '<td><a href="'.DOL_URL_ROOT.'/compta/facture.php?facid='.$objp->facid.'">';
|
||||
if ($objp->paye)
|
||||
{
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
<?php
|
||||
/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
*
|
||||
* 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
|
||||
@ -94,15 +95,12 @@ if ($_GET["id"])
|
||||
$num = $db->num_rows();
|
||||
|
||||
$i = 0;
|
||||
print "<TABLE border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"4\">";
|
||||
print '<TR class="liste_titre">';
|
||||
print '<TD>Numéro</TD>';
|
||||
print '<td>';
|
||||
print_liste_field_titre("Société","propal.php","s.nom","","&id=$product->id&socidp=$socidp");
|
||||
print '</td><TD align="right">';
|
||||
print_liste_field_titre("Date","propal.php","f.datef","","&id=$product->id&socidp=$socidp");
|
||||
print '</td>';
|
||||
print "</TR>\n";
|
||||
print "<table class=\"noborder\" width=\"100%\">";
|
||||
print '<tr class="liste_titre">';
|
||||
print_liste_field_titre($langs->trans("Ref"),"propal.php","p.rowid","","&id=$product->id&socidp=$socidp");
|
||||
print_liste_field_titre($langs->trans("Company"),"propal.php","s.nom","","&id=$product->id&socidp=$socidp");
|
||||
print_liste_field_titre($langs->trans("Date")"Date","propal.php","f.datef","","&id=$product->id&socidp=$socidp",'align="right"');
|
||||
print "</tr>\n";
|
||||
|
||||
if ($num > 0)
|
||||
{
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
<?php
|
||||
/* Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
*
|
||||
* 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
|
||||
@ -116,13 +117,12 @@ if ($result)
|
||||
print_barre_liste($texte, $page, "liste.php", "&sref=$sref&snom=$snom", $sortfield, $sortorder,'',$num);
|
||||
}
|
||||
|
||||
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="3">';
|
||||
print '<table class="noborder" width="100%">';
|
||||
|
||||
print "<tr class=\"liste_titre\"><td>";
|
||||
print "<tr class=\"liste_titre\">";
|
||||
print_liste_field_titre($langs->trans("Ref"),"liste.php", "p.ref","&envente=$envente&type=$type");
|
||||
print "</td><td>";
|
||||
print_liste_field_titre($langs->trans("Label"),"liste.php", "p.label","&envente=$envente&type=$type");
|
||||
print "</td><td align=\"right\">Prix de vente</td>";
|
||||
print "<td align=\"right\">Prix de vente</td>";
|
||||
print "</tr>\n";
|
||||
|
||||
print '<tr class="liste_titre">';
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
<?php
|
||||
/* Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
*
|
||||
* 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
|
||||
@ -67,14 +68,13 @@ if ($result)
|
||||
|
||||
print_barre_liste($texte, $page, "mouvement.php", "&sref=$sref&snom=$snom", $sortfield, $sortorder,'',$num);
|
||||
|
||||
print '<table border="0" width="100%" cellspacing="0" cellpadding="4">';
|
||||
print "<tr class=\"liste_titre\"><td>";
|
||||
print '<table class=\"noborder" width="100%">';
|
||||
print "<tr class=\"liste_titre\">";
|
||||
print_liste_field_titre($langs->trans("Ref"),"mouvement.php", "p.ref","");
|
||||
print "</td><TD align=\"center\">Unités</TD><td>";
|
||||
print "<td align=\"center\">Unités</td>";
|
||||
print_liste_field_titre("Date","mouvement.php", "m.datem","");
|
||||
print "</td><td>";
|
||||
print_liste_field_titre("Entrepôt","mouvement.php", "s.label","");
|
||||
print "</td></tr>\n";
|
||||
print "</tr>\n";
|
||||
|
||||
$var=True;
|
||||
while ($i < min($num,$limit))
|
||||
|
||||
@ -72,12 +72,12 @@ $pagenext = $page + 1;
|
||||
*
|
||||
*/
|
||||
print '<br>';
|
||||
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="3">';
|
||||
print '<tr class="liste_titre"><td>';
|
||||
print_liste_field_titre("Titre","index.php","p.title");
|
||||
print '</td><td>'.$langs->trans("Ref").'</td><td>';
|
||||
print '<table class="noborder" width="100%">';
|
||||
print '<tr class="liste_titre">';
|
||||
print_liste_field_titre($langs->trans("Title"),"index.php","p.title");
|
||||
print '<td>'.$langs->trans("Ref").'</td>';
|
||||
print_liste_field_titre("Société","index.php","s.nom");
|
||||
print "</td></tr>\n";
|
||||
print "</tr>\n";
|
||||
|
||||
$sql = "SELECT s.nom, s.idp, p.rowid as projectid, p.ref, p.title, s.client,".$db->pdate("p.dateo")." as do";
|
||||
$sql .= " FROM ".MAIN_DB_PREFIX."societe as s, ".MAIN_DB_PREFIX."projet as p";
|
||||
|
||||
@ -20,7 +20,11 @@
|
||||
* $Source$
|
||||
*
|
||||
*/
|
||||
|
||||
require("pre.inc.php");
|
||||
|
||||
$langs->load("companies");
|
||||
|
||||
/*
|
||||
* Sécurité accés client
|
||||
*/
|
||||
@ -132,11 +136,10 @@ if ( $soc->fetch($soc->id) )
|
||||
*
|
||||
*/
|
||||
|
||||
print '<table class="border" cellpadding="3" cellspacing="0" width="100%">';
|
||||
print '<tr><td width="20%">Nom</td><td class="valeur">'.$soc->nom.'</td></tr>';
|
||||
|
||||
print '<tr><td valign="top">Adresse</td><td class="valeur">'.nl2br($soc->adresse).' </td></tr>';
|
||||
print '<tr><td>CP</td><td class="valeur">'.$soc->cp.' '.$soc->ville.'</td></tr>';
|
||||
print '<table class="border"width="100%">';
|
||||
print '<tr><td width="20%">'.$langs->trans("Name").'</td><td class="valeur">'.$soc->nom.'</td></tr>';
|
||||
print '<tr><td valign="top">'.$langs->trans("Address").'</td><td class="valeur">'.nl2br($soc->adresse).' </td></tr>';
|
||||
print '<tr><td>'.$langs->trans("Zip").' / '.$langs->trans("Town").'</td><td class="valeur">'.$soc->cp.' / '.$soc->ville.'</td></tr>';
|
||||
|
||||
print '</table><br></div>';
|
||||
|
||||
@ -153,10 +156,10 @@ if ( $soc->fetch($soc->id) )
|
||||
{
|
||||
$sortfield="c.name";
|
||||
}
|
||||
print '<table width="100%" class="noborder" cellspacing="0" cellpadding="3">';
|
||||
print '<table width="100%" class="noborder">';
|
||||
print '<tr class="liste_titre">';
|
||||
print_liste_field_titre_new ("Contact","fiche.php","c.name","","&socid=$socid",'',$sortfield);
|
||||
print_liste_field_titre_new ("Action","fiche.php","a.titre","","&socid=$socid",'',$sortfield);
|
||||
print_liste_field_titre($langs->trans("Contact"),"fiche.php","c.name","","&socid=$socid",'',$sortfield);
|
||||
print_liste_field_titre($langs->trans("Action"),"fiche.php","a.titre","","&socid=$socid",'',$sortfield);
|
||||
print '<td> </td>';
|
||||
print '</tr>';
|
||||
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
<?php
|
||||
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
*
|
||||
* 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
|
||||
@ -72,15 +73,12 @@ if ($result)
|
||||
$i = 0;
|
||||
|
||||
|
||||
print "<TABLE border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"4\">";
|
||||
print '<TR class="liste_titre">';
|
||||
print "<TD valign=\"center\">";
|
||||
print_liste_field_titre("Société","index.php","s.nom");
|
||||
print "</td><td>";
|
||||
print_liste_field_titre("Contact","index.php","c.name");
|
||||
print "</td><td>";
|
||||
print_liste_field_titre("Action","index.php","a.titre");
|
||||
print "</td></tr>\n";
|
||||
print "<table class=\noborder\" width=\"100%\">";
|
||||
print '<tr class="liste_titre">';
|
||||
print_liste_field_titre($langs->trans("Company"),"index.php","s.nom","","",'valign=\"center\"');
|
||||
print_liste_field_titre($langs->trans("Contact"),"index.php","c.name");
|
||||
print_liste_field_titre($langs->trans("Action"),"index.php","a.titre");
|
||||
print "</tr>\n";
|
||||
$var=True;
|
||||
while ($i < $num)
|
||||
{
|
||||
@ -88,14 +86,14 @@ if ($result)
|
||||
|
||||
$var=!$var;
|
||||
|
||||
print "<TR $bc[$var]>";
|
||||
print "<TD><a href=\"fiche.php?socid=$obj->idp\">$obj->nom</A></td>\n";
|
||||
print "<tr $bc[$var]>";
|
||||
print "<td><a href=\"fiche.php?socid=$obj->idp\">$obj->nom</A></td>\n";
|
||||
print "<td>".$obj->firstname." ".$obj->name."</td>\n";
|
||||
print "<td>".$obj->titre."</td>\n";
|
||||
print "</tr>\n";
|
||||
$i++;
|
||||
}
|
||||
print "</TABLE>";
|
||||
print "</table>";
|
||||
$db->free();
|
||||
}
|
||||
else
|
||||
|
||||
@ -48,20 +48,12 @@ if ($result)
|
||||
|
||||
print "<br>";
|
||||
|
||||
print "<table class=\"noborder\" width=\"100%\" cellspacing=\"0\" cellpadding=\"2\">";
|
||||
print "<table class=\"noborder\" width=\"100%\">";
|
||||
print '<tr class="liste_titre">';
|
||||
print "<td>";
|
||||
print_liste_field_titre($langs->trans("LastName"),"index.php","name");
|
||||
print "</td>";
|
||||
print "<td>";
|
||||
print_liste_field_titre($langs->trans("FirstName"),"index.php","firstname");
|
||||
print "</td>";
|
||||
print "<td>";
|
||||
print_liste_field_titre($langs->trans("Login"),"index.php","login");
|
||||
print "</td>";
|
||||
print "<td>";
|
||||
print_liste_field_titre($langs->trans("Code"),"index.php","code");
|
||||
print "</td>";
|
||||
print "</tr>\n";
|
||||
$var=True;
|
||||
while ($i < $num)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user