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
2a4f9ce870
commit
dafa165943
@ -21,7 +21,7 @@
|
||||
* $Source$
|
||||
*/
|
||||
|
||||
/*! \file htdocs/admin/dict.php
|
||||
/*! \file htdocs/admin/dict.php
|
||||
\ingroup setup
|
||||
\brief Page d'administration des dictionnaires de données
|
||||
\version $Revision$
|
||||
@ -48,6 +48,9 @@ $active = 1;
|
||||
// Cette page est une page d'édition générique des dictionnaires de données
|
||||
// Mettre ici tous les caractéristiques des dictionnaires
|
||||
|
||||
// Ordres d'affichage des dictionnaires (0 pour espace)
|
||||
$taborder=array(4,3,2,0,1,0,5,0,6,0,7);
|
||||
|
||||
// Nom des tables des dictionnaires
|
||||
$tabname[1] = MAIN_DB_PREFIX."c_forme_juridique";
|
||||
$tabname[2] = MAIN_DB_PREFIX."c_departements";
|
||||
@ -114,6 +117,9 @@ $tabrowid[7] = "id";
|
||||
|
||||
$msg='';
|
||||
|
||||
|
||||
$sortfield=$_GET["sortfield"];
|
||||
|
||||
/*
|
||||
* Actions ajout d'une entrée dans un dictionnaire de donnée
|
||||
*/
|
||||
@ -244,6 +250,9 @@ if ($_GET["action"] == $acts[1]) // disable
|
||||
llxHeader();
|
||||
|
||||
|
||||
/*
|
||||
* Affichage d'un dictionnaire particulier
|
||||
*/
|
||||
if ($_GET["id"])
|
||||
{
|
||||
print_titre($langs->trans("DictionnarySetup"));
|
||||
@ -356,13 +365,9 @@ if ($_GET["id"])
|
||||
if ($fieldlist[$field]=='libelle') $valuetoshow=$langs->trans("Label")."*";
|
||||
if ($fieldlist[$field]=='pays') $valuetoshow=$langs->trans("Country");
|
||||
// Affiche nom du champ
|
||||
print '<td>';
|
||||
print_liste_field_titre($valuetoshow,"dict.php",$fieldlist[$field],"&id=".$_GET["id"]);
|
||||
print '</td>';
|
||||
print_liste_field_titre($valuetoshow,"dict.php",$fieldlist[$field],"&id=".$_GET["id"],"","",$sortfield);
|
||||
}
|
||||
print '<td>';
|
||||
print_liste_field_titre($langs->trans("Activate")."/".$langs->trans("Disable"),"dict.php","active","&id=".$_GET["id"]);
|
||||
print '</td>';
|
||||
print_liste_field_titre($langs->trans("Activate")."/".$langs->trans("Disable"),"dict.php","active","&id=".$_GET["id"],"","",$sortfield);
|
||||
print '<td> </td>';
|
||||
print '</tr>';
|
||||
|
||||
@ -413,11 +418,22 @@ if ($_GET["id"])
|
||||
}
|
||||
else
|
||||
{
|
||||
/*
|
||||
* Affichage de la liste des dictionnaires
|
||||
*/
|
||||
|
||||
print_titre($langs->trans("DictionnarySetup"));
|
||||
print '<br>';
|
||||
|
||||
foreach ($tabname as $i => $value) {
|
||||
print '<a href="dict.php?id='.$i.'">'.$tablib[$i].'</a> (Table '.$tabname[$i].')<br>';
|
||||
foreach ($taborder as $i) {
|
||||
if ($i) {
|
||||
$value=$tabname[$i];
|
||||
print '<a href="dict.php?id='.$i.'">'.$tablib[$i].'</a> (Table '.$tabname[$i].')<br>';
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<br>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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
|
||||
@ -47,9 +48,8 @@ if ( $db->query($sql) ) {
|
||||
$num = $db->num_rows();
|
||||
$i = 0;
|
||||
print "<table class=\"noborder\" width=\"100%\">";
|
||||
print "<tr class=\"liste_titre\"><td>";
|
||||
print "<tr class=\"liste_titre\">";
|
||||
print_liste_field_titre("Nom","index.php", "e.nom");
|
||||
print "</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
|
||||
@ -50,11 +51,10 @@ if ( $db->query($sql) )
|
||||
$num = $db->num_rows();
|
||||
$i = 0;
|
||||
print "<table class=\"noborder\" width=\"100%\">";
|
||||
print "<tr class=\"liste_titre\"><td>";
|
||||
print "<tr class=\"liste_titre\">";
|
||||
print_liste_field_titre($langs->trans("Firstname"),"index.php", "c.customers_firstname");
|
||||
print "</td><td>";
|
||||
print_liste_field_titre($langs->trans("Lastname"),"index.php", "c.customers_lastname");
|
||||
print '</td><td>'.$langs->trans("EMail").'</td><td align="center">Newsletter</td>';
|
||||
print '<td>'.$langs->trans("EMail").'</td><td align="center">'.$langs->trans("Newsletter").'</td>';
|
||||
print "</tr>\n";
|
||||
$var=True;
|
||||
while ($i < $num)
|
||||
@ -62,10 +62,10 @@ if ( $db->query($sql) )
|
||||
$objp = $db->fetch_object();
|
||||
$var=!$var;
|
||||
print "<tr $bc[$var]>";
|
||||
print '<td><a href="fiche.php?id='.$objp->customers_id.'">'.$objp->customers_firstname."</a></TD>\n";
|
||||
print '<td><a href="fiche.php?id='.$objp->customers_id.'">'.$objp->customers_lastname."</a></TD>\n";
|
||||
print "<td>$objp->customers_email_address</TD>\n";
|
||||
print "<td align=\"center\">$objp->customers_newsletter</TD>\n";
|
||||
print '<td><a href="fiche.php?id='.$objp->customers_id.'">'.$objp->customers_firstname."</a></td>\n";
|
||||
print '<td><a href="fiche.php?id='.$objp->customers_id.'">'.$objp->customers_lastname."</a></td>\n";
|
||||
print "<td>$objp->customers_email_address</td>\n";
|
||||
print "<td align=\"center\">$objp->customers_newsletter</td>\n";
|
||||
print "</tr>\n";
|
||||
$i++;
|
||||
}
|
||||
|
||||
@ -51,10 +51,12 @@ if ( $db->query($sql) )
|
||||
{
|
||||
$num = $db->num_rows();
|
||||
$i = 0;
|
||||
print "<table class=\"noborder\" width=\"100%\" cellspacing=\"0\" cellpadding=\"3\">";
|
||||
print "<tr class=\"liste_titre\"><td>Numéro</td><td>".$langs->trans("Date")."</td><td>";
|
||||
print "<table class=\"noborder\" width=\"100%\">";
|
||||
print "<tr class=\"liste_titre\">";
|
||||
print "<td>".$langs->trans("Ref")."</td>";
|
||||
print "<td>".$langs->trans("Date")."</td>";
|
||||
print_liste_field_titre("Client","commande.php", "customers_name");
|
||||
print '</td><td align="right">'.$langs->trans("Total").'</td>';
|
||||
print '<td align="right">'.$langs->trans("Total").'</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
|
||||
@ -47,9 +48,8 @@ if ( $db->query($sql) ) {
|
||||
$num = $db->num_rows();
|
||||
$i = 0;
|
||||
print "<table class=\"noborder\" width=\"100%\">";
|
||||
print "<tr class=\"liste_titre\"><td>";
|
||||
print_liste_field_titre("Nom","index.php", "e.nom");
|
||||
print "</td>";
|
||||
print "<tr class=\"liste_titre\">";
|
||||
print_liste_field_titre($langs->trans("Name"),"index.php", "e.nom");
|
||||
print "</tr>\n";
|
||||
$var=True;
|
||||
while ($i < $num) {
|
||||
|
||||
@ -62,11 +62,9 @@ if ( $db->query($sql) )
|
||||
$num = $db->num_rows();
|
||||
$i = 0;
|
||||
print "<table class=\"noborder\" width=\"100%\">";
|
||||
print "<tr class=\"liste_titre\"><td>";
|
||||
print "<tr class=\"liste_titre\">";
|
||||
print_liste_field_titre($langs->trans("Ref"),"index.php", "l.ref");
|
||||
print "</td><td>";
|
||||
print_liste_field_titre("Titre","index.php", "l.title");
|
||||
print "</td>";
|
||||
print_liste_field_titre($langs->trans("Title"),"index.php", "l.title");
|
||||
print '<td colspan="3"> </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
|
||||
@ -61,11 +62,9 @@ if ( $db->query($sql) )
|
||||
$num = $db->num_rows();
|
||||
$i = 0;
|
||||
print "<table class=\"noborder\" width=\"100%\">";
|
||||
print "<tr class=\"liste_titre\"><td>";
|
||||
print "<tr class=\"liste_titre\">";
|
||||
print_liste_field_titre($langs->trans("Ref"),"vignettes.php", "l.ref");
|
||||
print "</td><td>";
|
||||
print_liste_field_titre("Titre","vignettes.php", "l.title");
|
||||
print "</td>";
|
||||
print_liste_field_titre($langs->trans("Title"),"vignettes.php", "l.title");
|
||||
print '<td colspan="3"> </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,9 +49,8 @@ if ( $db->query($sql) )
|
||||
$num = $db->num_rows();
|
||||
$i = 0;
|
||||
print "<table class=\"noborder\" width=\"100%\">";
|
||||
print "<tr class=\"liste_titre\"><td>";
|
||||
print_liste_field_titre("Sujet","index.php", "email_subject");
|
||||
print "</td>";
|
||||
print "<tr class=\"liste_titre\">";
|
||||
print_liste_field_titre($langs->trans("Subject"),"index.php", "email_subject");
|
||||
print '<td align="center">'.$langs->trans("Status").'</td>';
|
||||
print '<td align="center">Nb envois</td>';
|
||||
print "</tr>\n";
|
||||
|
||||
@ -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
|
||||
@ -23,6 +24,8 @@
|
||||
|
||||
require("./pre.inc.php");
|
||||
|
||||
$langs->load("products");
|
||||
|
||||
llxHeader();
|
||||
|
||||
if ($sortfield == "") {
|
||||
@ -52,10 +55,9 @@ if ( $db->query($sql) )
|
||||
$num = $db->num_rows();
|
||||
$i = 0;
|
||||
print "<table class=\noborder\" width=\"100%\">";
|
||||
print "<tr class=\"liste_titre\"><td>";
|
||||
print "<tr class=\"liste_titre\">";
|
||||
print_liste_field_titre("Client","index.php", "c.customers_lastname");
|
||||
print "</td>";
|
||||
print "<td>Produit</td>";
|
||||
print '<td>'.$langs->trans("Product").'</td>';
|
||||
print "</tr>\n";
|
||||
$var=True;
|
||||
while ($i < $num)
|
||||
|
||||
@ -116,16 +116,11 @@ if ($result)
|
||||
|
||||
$i = 0;
|
||||
|
||||
$addu = "&page=$page&begin=$begin&search_nom=".$_GET["search_nom"];
|
||||
print '<table class="liste">';
|
||||
print '<tr class="liste_titre">';
|
||||
print "<td valign=\"right\">";
|
||||
|
||||
$addu = "&page=$page&begin=$begin&search_nom=".$_GET["search_nom"];
|
||||
|
||||
print_liste_field_titre("Société","clients.php","s.nom",$addu);
|
||||
print "</td><td>";
|
||||
print_liste_field_titre("Ville","clients.php","s.ville",$addu);
|
||||
print "</td>";
|
||||
print_liste_field_titre($langs->trans("Companies"),"clients.php","s.nom",$addu,"",'valign="right"');
|
||||
print_liste_field_titre($langs->trans("Town"),"clients.php","s.ville",$addu);
|
||||
print "</tr>\n";
|
||||
|
||||
print '<form method="get" action="clients.php">';
|
||||
|
||||
@ -160,13 +160,11 @@ if ($result)
|
||||
}
|
||||
|
||||
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">';
|
||||
print '<tr class="liste_titre"><td>';
|
||||
print '<tr class="liste_titre">';
|
||||
print_liste_field_titre($langs->trans("Lastname"),"contact.php","lower(p.name)", $begin,"&type=$type");
|
||||
print "</td><td>";
|
||||
print_liste_field_titre($langs->trans("Firstname"),"contact.php","lower(p.firstname)", $begin,"&type=$type");
|
||||
print "</td><td>";
|
||||
print_liste_field_titre($langs->trans("Company"),"contact.php","lower(s.nom)", $begin,"&type=$type");
|
||||
print '</td><td>'.$langs->trans("Lastname").'</td>';
|
||||
print '<td>'.$langs->trans("Lastname").'</td>';
|
||||
print '<td>'.$langs->trans("Phone").'</td>';
|
||||
print "</tr>\n";
|
||||
$var=True;
|
||||
|
||||
@ -879,18 +879,14 @@ else
|
||||
|
||||
|
||||
$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"),"propal.php","p.ref","","&socidp=$socidp&viewstatut=$viewstatut",'width="15%"',$sortfield);
|
||||
|
||||
print_liste_field_titre_new ("Société","propal.php","s.nom","","&socidp=$socidp&viewstatut=$viewstatut",'width="30%"',$sortfield);
|
||||
|
||||
print_liste_field_titre_new ($langs->trans("Date"),"propal.php","p.datep","","&socidp=$socidp&viewstatut=$viewstatut", 'width="25%" align="right" colspan="2"',$sortfield);
|
||||
print_liste_field_titre_new ($langs->trans("Price"),"propal.php","p.price","","&socidp=$socidp&viewstatut=$viewstatut", ' width="20%" align="right"',$sortfield);
|
||||
|
||||
print_liste_field_titre_new ($langs->trans("Status"),"propal.php","p.fk_statut","","&socidp=$socidp&viewstatut=$viewstatut",'width="10%" align="center"',$sortfield);
|
||||
print_liste_field_titre($langs->trans("Ref"),"propal.php","p.ref","","&socidp=$socidp&viewstatut=$viewstatut",'width="15%"',$sortfield);
|
||||
print_liste_field_titre($langs->trans("Company"),"propal.php","s.nom","","&socidp=$socidp&viewstatut=$viewstatut",'width="30%"',$sortfield);
|
||||
print_liste_field_titre($langs->trans("Date"),"propal.php","p.datep","","&socidp=$socidp&viewstatut=$viewstatut", 'width="25%" align="right" colspan="2"',$sortfield);
|
||||
print_liste_field_titre($langs->trans("Price"),"propal.php","p.price","","&socidp=$socidp&viewstatut=$viewstatut", ' width="20%" align="right"',$sortfield);
|
||||
print_liste_field_titre($langs->trans("Status"),"propal.php","p.fk_statut","","&socidp=$socidp&viewstatut=$viewstatut",'width="10%" align="center"',$sortfield);
|
||||
print "</tr>\n";
|
||||
$var=true;
|
||||
|
||||
|
||||
@ -145,18 +145,12 @@ if ($result)
|
||||
|
||||
print '<table class="noborder" width="100%">';
|
||||
print '<tr class="liste_titre">';
|
||||
print "<td valign=\"center\">";
|
||||
print_liste_field_titre($langs->trans("Company"),"prospects.php","s.nom");
|
||||
print "</td><td>";
|
||||
print_liste_field_titre($langs->trans("Company"),"prospects.php","s.nom","","","valign=\"center\">");
|
||||
print_liste_field_titre($langs->trans("Town"),"prospects.php","s.ville");
|
||||
print "</td>";
|
||||
print "<td align=\"center\">";
|
||||
print_liste_field_titre("Département","prospects.php","s.fk_departement");
|
||||
print "</td><td>";
|
||||
print_liste_field_titre("Département","prospects.php","s.fk_departement","","","align=\"center\"");
|
||||
print_liste_field_titre($langs->trans("Status"),"prospects.php","s.fk_stcomm");
|
||||
print "</td><td>";
|
||||
print_liste_field_titre("Insertion","prospects.php","s.datec");
|
||||
print '</td><td colspan="4"> </td>';
|
||||
print '<td colspan="4"> </td>';
|
||||
print "</tr>\n";
|
||||
$var=true;
|
||||
|
||||
|
||||
@ -89,18 +89,12 @@ if ( $db->query($sql) )
|
||||
print_barre_liste($langs->trans("Orders"), $_GET["page"], "liste.php","&socidp=$socidp",$sortfield,$sortorder,'',$num);
|
||||
|
||||
$i = 0;
|
||||
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="3">';
|
||||
|
||||
print '<table class="noborder" width="100%">';
|
||||
print '<tr class="liste_titre">';
|
||||
|
||||
print_liste_field_titre_new ($langs->trans("Ref"),"liste.php","c.ref","","&socidp=$socidp",'width="15%"',$sortfield);
|
||||
|
||||
print_liste_field_titre_new ($langs->trans("Company"),"liste.php","s.nom","","&socidp=$socidp",'width="30%"',$sortfield);
|
||||
|
||||
print_liste_field_titre_new ($langs->trans("Date"),"liste.php","c.date_commande","","&socidp=$socidp", 'width="25%" align="right" colspan="2"',$sortfield);
|
||||
|
||||
print_liste_field_titre_new ($langs->trans("Status"),"liste.php","c.fk_statut","","&socidp=$socidp",'width="10%" align="center"',$sortfield);
|
||||
|
||||
print_liste_field_titre($langs->trans("Ref"),"liste.php","c.ref","","&socidp=$socidp",'width="15%"',$sortfield);
|
||||
print_liste_field_titre($langs->trans("Company"),"liste.php","s.nom","","&socidp=$socidp",'width="30%"',$sortfield);
|
||||
print_liste_field_titre($langs->trans("Date"),"liste.php","c.date_commande","","&socidp=$socidp", 'width="25%" align="right" colspan="2"',$sortfield);
|
||||
print_liste_field_titre($langs->trans("Status"),"liste.php","c.fk_statut","","&socidp=$socidp",'width="10%" align="center"',$sortfield);
|
||||
print "</tr>\n";
|
||||
$var=True;
|
||||
|
||||
|
||||
@ -36,6 +36,8 @@ if ($conf->webcal->enabled) {
|
||||
require("../lib/webcal.class.php");
|
||||
}
|
||||
|
||||
$langs->laod("companies");
|
||||
|
||||
llxHeader();
|
||||
|
||||
/*
|
||||
@ -226,9 +228,9 @@ if ($result)
|
||||
$sortorder="DESC";
|
||||
}
|
||||
print '<table class="noborder" width="100%">';
|
||||
print '<tr class="liste_titre"><td valign="center">';
|
||||
print_liste_field_titre("Société","clients.php","s.nom");
|
||||
print "</td><td>Ville</td>";
|
||||
print '<tr class="liste_titre">';
|
||||
print_liste_field_titre($langs->trans("Company"),"clients.php","s.nom","","",'valign="center"');
|
||||
print '<td>'.$langs->trans("Company").'</td>';
|
||||
print "<td align=\"center\">Préfix</td><td colspan=\"2\"> </td></tr>\n";
|
||||
|
||||
$var=True;
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
<?php
|
||||
/* Copyright (C) 2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
*
|
||||
* $Id$
|
||||
* $Source$
|
||||
@ -57,11 +58,11 @@ if ($action == 'create') {
|
||||
$num = $db->num_rows();
|
||||
|
||||
$i = 0;
|
||||
print "<table class=\"noborder\" width=\"100%\" cellspacing=\"0\" cellpadding=\"3\">";
|
||||
print "<table class=\"noborder\" width=\"100%\">";
|
||||
print '<tr class="liste_titre">';
|
||||
print "<td>Numéro</td><td>";
|
||||
print "<td>Numéro</td>";
|
||||
print_liste_field_titre($langs->trans("Label"),"config.php","label");
|
||||
print "</td></tr>\n";
|
||||
print "</tr>\n";
|
||||
|
||||
if ($num > 0) {
|
||||
$var=True;
|
||||
|
||||
@ -66,11 +66,11 @@ if ( $db->query($sql) )
|
||||
print_barre_liste("Liste des déplacements", $page, "index.php","&socidp=$socidp",$sortfield,$sortorder,'',$num);
|
||||
|
||||
$i = 0;
|
||||
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="3">';
|
||||
print '<table class="noborder" width="100%">';
|
||||
print "<tr class=\"liste_titre\">";
|
||||
print_liste_field_titre_new ("Date","index.php","d.dated","","&socidp=$socidp",'',$sortfield);
|
||||
print_liste_field_titre_new ("Société","index.php","s.nom","","&socidp=$socidp",'',$sortfield);
|
||||
print '<td align="center">Utilisateur</TD>';
|
||||
print_liste_field_titre($langs->trans("Date"),"index.php","d.dated","","&socidp=$socidp",'',$sortfield);
|
||||
print_liste_field_titre($langs->trans("Company"),"index.php","s.nom","","&socidp=$socidp",'',$sortfield);
|
||||
print_liste_field_titre($langs->trans("User"),"index.php","u.name","","&socidp=$socidp",'',$sortfield);
|
||||
print "</tr>\n";
|
||||
|
||||
$var=True;
|
||||
|
||||
@ -74,18 +74,13 @@ if ($result)
|
||||
print "<table class=\"noborder\" width=\"100%\">";
|
||||
|
||||
print '<tr class="liste_titre">';
|
||||
print "<td>";
|
||||
print_liste_field_titre("Prénom","liste.php","d.prenom","&page=$page&statut=$statut");
|
||||
print "</td><td>";
|
||||
print_liste_field_titre("Nom","liste.php","d.nom","&page=$page&statut=$statut");
|
||||
print "</td><td>";
|
||||
print_liste_field_titre("Société","liste.php","d.societe","&page=$page&statut=$statut");
|
||||
print "</td><td>";
|
||||
print_liste_field_titre("Date","liste.php","d.datedon","&page=$page&statut=$statut");
|
||||
print "</td><td>Projet</td>";
|
||||
print "<td align=\"right\">";
|
||||
print_liste_field_titre("Montant","liste.php","d.amount","&page=$page&statut=$statut");
|
||||
print '</td><td> </td>';
|
||||
print_liste_field_titre($langs->trans("Firstname"),"liste.php","d.prenom","&page=$page&statut=$statut");
|
||||
print_liste_field_titre($langs->trans("Name"),"liste.php","d.nom","&page=$page&statut=$statut");
|
||||
print_liste_field_titre($langs->trans("Company"),"liste.php","d.societe","&page=$page&statut=$statut");
|
||||
print_liste_field_titre($langs->trans("Date"),"liste.php","d.datedon","&page=$page&statut=$statut");
|
||||
print_liste_field_titre($langs->trans("Project"),"liste.php","","&page=$page&statut=$statut");
|
||||
print_liste_field_titre($langs->trans("Amount"),"liste.php","d.amount","&page=$page&statut=$statut","",'align="right"');
|
||||
print '<td> </td>';
|
||||
print "</tr>\n";
|
||||
|
||||
$var=True;
|
||||
|
||||
@ -1497,21 +1497,13 @@ else
|
||||
$i = 0;
|
||||
print '<table class="noborder" width="100%">';
|
||||
print '<tr class="liste_titre">';
|
||||
print '<td>';
|
||||
print_liste_field_titre($langs->trans("Ref"),$_SERVER["PHP_SELF"],"f.facnumber","","&socidp=$socidp");
|
||||
print '</td><td align="center">';
|
||||
print_liste_field_titre($langs->trans("Date"),$_SERVER["PHP_SELF"],"f.datef","","&socidp=$socidp");
|
||||
print '</td><td>';
|
||||
print_liste_field_titre($langs->trans("Date"),$_SERVER["PHP_SELF"],"f.datef","","&socidp=$socidp",'align="center"');
|
||||
print_liste_field_titre($langs->trans("Company"),$_SERVER["PHP_SELF"],"s.nom","","&socidp=$socidp");
|
||||
print '</td><td align="right">';
|
||||
print_liste_field_titre($langs->trans("AmountHT"),$_SERVER["PHP_SELF"],"f.total","","&socidp=$socidp");
|
||||
print '</td><td align="right">';
|
||||
print_liste_field_titre($langs->trans("AmountTTC"),$_SERVER["PHP_SELF"],"f.total_ttc","","&socidp=$socidp");
|
||||
print '</td><td align="right">';
|
||||
print_liste_field_titre("Reçu",$_SERVER["PHP_SELF"],"am","","&socidp=$socidp");
|
||||
print '</td><td align="center">';
|
||||
print_liste_field_titre($langs->trans("Status"),$_SERVER["PHP_SELF"],"fk_statut,paye","","&socidp=$socidp");
|
||||
print '</td>';
|
||||
print_liste_field_titre($langs->trans("AmountHT"),$_SERVER["PHP_SELF"],"f.total","","&socidp=$socidp",'align="right"');
|
||||
print_liste_field_titre($langs->trans("AmountTTC"),$_SERVER["PHP_SELF"],"f.total_ttc","","&socidp=$socidp",'align="right"');
|
||||
print_liste_field_titre($langs->trans("Received"),$_SERVER["PHP_SELF"],"am","","&socidp=$socidp",'align="right"');
|
||||
print_liste_field_titre($langs->trans("Status"),$_SERVER["PHP_SELF"],"fk_statut,paye","","&socidp=$socidp",'align="right"');
|
||||
print "</tr>\n";
|
||||
|
||||
if ($num > 0)
|
||||
|
||||
@ -420,15 +420,13 @@ else
|
||||
print_barre_liste("Factures",$page,"fiche-rec.php","&socidp=$socidp",$sortfield,$sortorder,'',$num);
|
||||
|
||||
$i = 0;
|
||||
print "<TABLE border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"4\">";
|
||||
print '<TR class="liste_titre">';
|
||||
print '<td>Titre</td>';
|
||||
print '<td>';
|
||||
print_liste_field_titre("Société","fiche-rec.php","s.nom","","&socidp=$socidp");
|
||||
|
||||
print '</td><TD align="right">Montant</TD>';
|
||||
print "<table class=\"noborder\" width=\"100%\">";
|
||||
print '<tr class="liste_titre">';
|
||||
print '<td>'.$langs->trans("Ref").'</td>';
|
||||
print_liste_field_titre($langs->trans("Company"),"fiche-rec.php","s.nom","","&socidp=$socidp");
|
||||
print '</td><td align="right">'.$langs->trans("Amount").'</td>';
|
||||
print '<td> </td>';
|
||||
print "</TR>\n";
|
||||
print "</td>\n";
|
||||
|
||||
if ($num > 0)
|
||||
{
|
||||
@ -443,10 +441,10 @@ else
|
||||
$class = "normal";
|
||||
|
||||
print '<td><a class="'.$class.'" href="fiche-rec.php?facid='.$objp->facid.'">' . $objp->titre;
|
||||
print "</a></TD>\n";
|
||||
print '<TD><a class="'.$class.'" href="../fiche.php?socid='.$objp->idp.'">'.$objp->nom.'</a></td>';
|
||||
print "</a></td>\n";
|
||||
print '<td><a class="'.$class.'" href="../fiche.php?socid='.$objp->idp.'">'.$objp->nom.'</a></td>';
|
||||
|
||||
print "<TD align=\"right\">".price($objp->total)."</TD>\n";
|
||||
print "<td align=\"right\">".price($objp->total)."</td>\n";
|
||||
|
||||
if (! $objp->paye)
|
||||
{
|
||||
@ -464,7 +462,7 @@ else
|
||||
print '<td> </td>';
|
||||
}
|
||||
|
||||
print "</TR>\n";
|
||||
print "</tr>\n";
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
@ -474,7 +472,7 @@ else
|
||||
}
|
||||
else
|
||||
{
|
||||
print $db->error() . "<br>" . $sql;
|
||||
dolibarr_print_error($db);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
<?php
|
||||
/* Copyright (C) 2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
*
|
||||
* $Id$
|
||||
* $Source$
|
||||
@ -69,15 +70,13 @@ if ($action == 'create') {
|
||||
*/
|
||||
print_barre_liste("Comptes comptable",$page,"ligne.php");
|
||||
|
||||
|
||||
print "<table class=\"noborder\" width=\"100%\" cellspacing=\"0\" cellpadding=\"3\">";
|
||||
print "<table class=\"noborder\" width=\"100%\">";
|
||||
print '<tr class="liste_titre">';
|
||||
print "<td>Numéro</TD><td>";
|
||||
print_liste_field_titre($langs->trans("Ref"),"ligne.php","id");
|
||||
print_liste_field_titre($langs->trans("Label"),"ligne.php","label");
|
||||
print "</td><td>Montant</TD>";
|
||||
print '<td>'.$langs->trans("Amount").'</td>';
|
||||
print "</tr>\n";
|
||||
|
||||
|
||||
print '<form action="ligne.php" method="post">';
|
||||
print '<input type="hidden" name="action" value="add">';
|
||||
print '<tr><td><select name="number">'.$options.'</select></td>';
|
||||
@ -87,7 +86,6 @@ if ($action == 'create') {
|
||||
print '</tr>';
|
||||
print '</form>';
|
||||
|
||||
|
||||
$sql = "SELECT ca.number, c.label, c.amount";
|
||||
$sql .= " FROM ".MAIN_DB_PREFIX."compta_account as ca, ".MAIN_DB_PREFIX."compta as c WHERE c.fk_compta_account = ca.rowid";
|
||||
$sql .= " ORDER BY ca.number";
|
||||
|
||||
@ -363,25 +363,24 @@ if ($action == '')
|
||||
|
||||
print_barre_liste("Paiements", $page, "paiement.php","",$sortfield,$sortorder,'',$num);
|
||||
|
||||
print '<TABLE border="0" width="100%">';
|
||||
print '<TR class="liste_titre">';
|
||||
print '<table class="noborder" width="100%">';
|
||||
print '<tr class="liste_titre">';
|
||||
print "<td>Facture</td>";
|
||||
print "<td>Date</td>";
|
||||
print "<td>";
|
||||
print_liste_field_titre("Type","paiement.php","c.libelle","","");
|
||||
print '</td><td align="right">Montant</TD>';
|
||||
print_liste_field_titre($langs->trans("Type"),"paiement.php","c.libelle","","");
|
||||
print_liste_field_titre($langs->trans("Amount"),"paiement.php","c.libelle","","",'align="right"');
|
||||
print "<td> </td>";
|
||||
print "</TR>\n";
|
||||
print "</tr>\n";
|
||||
|
||||
while ($i < min($num,$limit))
|
||||
{
|
||||
$objp = $db->fetch_object();
|
||||
$var=!$var;
|
||||
print "<TR $bc[$var]>";
|
||||
print "<TD><a href=\"facture.php?facid=$objp->facid\">$objp->facnumber</a></TD>\n";
|
||||
print "<TD>".strftime("%d %B %Y",$objp->dp)."</TD>\n";
|
||||
print "<TD>$objp->paiement_type $objp->num_paiement</TD>\n";
|
||||
print '<TD align="right">'.price($objp->amount).'</TD><td> </td>';
|
||||
print "<tr $bc[$var]>";
|
||||
print "<td><a href=\"facture.php?facid=$objp->facid\">$objp->facnumber</a></td>\n";
|
||||
print "<td>".strftime("%d %B %Y",$objp->dp)."</td>\n";
|
||||
print "<td>$objp->paiement_type $objp->num_paiement</td>\n";
|
||||
print '<td align="right">'.price($objp->amount).'</td><td> </td>';
|
||||
print "</tr>";
|
||||
$i++;
|
||||
}
|
||||
|
||||
@ -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,9 +68,9 @@ if ($result)
|
||||
|
||||
print '<table class="noborder" width="100%">';
|
||||
print '<tr class="liste_titre">';
|
||||
print '<td>Date</td><td>';
|
||||
print '<td>'.$langs->trans("Date").'</td>';
|
||||
print_liste_field_titre($langs->trans("Type"),"liste.php","c.libelle","","");
|
||||
print '</td><td align="right">'.$langs->trans("Amount").'</td>';
|
||||
print '<td align="right">'.$langs->trans("Amount").'</td>';
|
||||
print "<td> </td>";
|
||||
print "</tr>\n";
|
||||
|
||||
|
||||
@ -463,13 +463,13 @@ if ($_GET["propalid"])
|
||||
print_barre_liste("Propositions commerciales", $page, "propal.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"),"propal.php","p.ref","","&year=$year&viewstatut=$viewstatut",'',$sortfield);
|
||||
print_liste_field_titre_new ("Société","propal.php","s.nom","&viewstatut=$viewstatut","",'',$sortfield);
|
||||
print_liste_field_titre_new ("Date","propal.php","p.datep","&viewstatut=$viewstatut","",'align="right" colspan="2"',$sortfield);
|
||||
print_liste_field_titre_new ($langs->trans("Price"),"propal.php","p.price","&viewstatut=$viewstatut","",'align="right"',$sortfield);
|
||||
print_liste_field_titre_new ($langs->trans("Status"),"propal.php","p.fk_statut","&viewstatut=$viewstatut","",'align="center"',$sortfield);
|
||||
print_liste_field_titre($langs->trans("Ref"),"propal.php","p.ref","","&year=$year&viewstatut=$viewstatut",'',$sortfield);
|
||||
print_liste_field_titre($langs->trans("Company"),"propal.php","s.nom","&viewstatut=$viewstatut","",'',$sortfield);
|
||||
print_liste_field_titre($langs->trans("Date"),"propal.php","p.datep","&viewstatut=$viewstatut","",'align="right" colspan="2"',$sortfield);
|
||||
print_liste_field_titre($langs->trans("Price"),"propal.php","p.price","&viewstatut=$viewstatut","",'align="right"',$sortfield);
|
||||
print_liste_field_titre($langs->trans("Status"),"propal.php","p.fk_statut","&viewstatut=$viewstatut","",'align="center"',$sortfield);
|
||||
print "</tr>\n";
|
||||
|
||||
while ($i < min($num, $limit))
|
||||
|
||||
@ -161,21 +161,13 @@ if ($user->rights->compta->charges->creer) {
|
||||
}
|
||||
|
||||
print "<tr class=\"liste_titre\">";
|
||||
print '<td>';
|
||||
print_liste_field_titre($langs->trans("Ref"),"index.php","id");
|
||||
print '</td><td>';
|
||||
print_liste_field_titre($langs->trans("DateDue"),"index.php","de");
|
||||
print '</td><td>';
|
||||
print_liste_field_titre($langs->trans("Period"),"index.php","periode");
|
||||
print '</td><td align="left">';
|
||||
print_liste_field_titre($langs->trans("Type"),"index.php","type");
|
||||
print '</td><td align="left">';
|
||||
print_liste_field_titre($langs->trans("Label"),"index.php","s.libelle");
|
||||
print '</td><td align="right">';
|
||||
print_liste_field_titre($langs->trans("Amount"),"index.php","s.amount");
|
||||
print '</td><td align="center">';
|
||||
print_liste_field_titre($langs->trans("Status"),"index.php","s.paye");
|
||||
print '</td>';
|
||||
print_liste_field_titre($langs->trans("Type"),"index.php","type","","",'align="left"');
|
||||
print_liste_field_titre($langs->trans("Label"),"index.php","s.libelle","","",'align="left"');
|
||||
print_liste_field_titre($langs->trans("Amount"),"index.php","s.amount","","",'align="right"');
|
||||
print_liste_field_titre($langs->trans("Status"),"index.php","s.paye","","",'align="center"');
|
||||
print "</tr>\n";
|
||||
|
||||
|
||||
|
||||
@ -128,15 +128,12 @@ if ($result)
|
||||
print_barre_liste($titre ,$page, "index.php", '&begin='.$_GET["begin"].'&view='.$_GET["view"].'&userid='.$_GET["userid"], $sortfield, $sortorder,'',$num);
|
||||
|
||||
|
||||
print '<p><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("Lastname"),"index.php","lower(p.name)", $begin);
|
||||
print "</td><td>";
|
||||
print_liste_field_titre($langs->trans("Firstname"),"index.php","lower(p.firstname)", $begin);
|
||||
print "</td><td>";
|
||||
print_liste_field_titre($langs->trans("Company"),"index.php","lower(s.nom)", $begin);
|
||||
print '</td>';
|
||||
|
||||
print '<td>'.$langs->trans("Phone").'</td>';
|
||||
|
||||
@ -152,8 +149,6 @@ if ($result)
|
||||
|
||||
print "</tr>\n";
|
||||
|
||||
|
||||
|
||||
print '<form method="get" action="index.php">';
|
||||
print '<tr class="liste_titre">';
|
||||
print '<td valign="right">';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user