New: Personalisation des commandes par un picto.
This commit is contained in:
parent
5d474b99f9
commit
50d627b088
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2001-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2001-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2004-2005 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
|
||||||
@ -21,6 +21,13 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/** \file htdocs/commande/liste.php
|
||||||
|
\ingroup commande
|
||||||
|
\brief Page liste des commandes
|
||||||
|
\version $Revision$
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
require("./pre.inc.php");
|
require("./pre.inc.php");
|
||||||
|
|
||||||
$langs->load("orders");
|
$langs->load("orders");
|
||||||
@ -106,8 +113,8 @@ if ( $db->query($sql) )
|
|||||||
|
|
||||||
$var=!$var;
|
$var=!$var;
|
||||||
print "<tr $bc[$var]>";
|
print "<tr $bc[$var]>";
|
||||||
print "<td><a href=\"fiche.php?id=$objp->rowid\">".img_file()." $objp->ref</a></td>\n";
|
print "<td><a href=\"fiche.php?id=$objp->rowid\">".img_object($langs->trans("ShowOrder"),"order")." ".$objp->ref."</a></td>\n";
|
||||||
print "<td><a href=\"../comm/fiche.php?socid=$objp->idp\">$objp->nom</a></td>\n";
|
print "<td><a href=\"../comm/fiche.php?socid=$objp->idp\">".img_object($langs->trans("ShowCompany"),"company")." ".$objp->nom."</a></td>\n";
|
||||||
|
|
||||||
$now = time();
|
$now = time();
|
||||||
$lim = 3600 * 24 * 15 ;
|
$lim = 3600 * 24 * 15 ;
|
||||||
@ -129,7 +136,7 @@ if ( $db->query($sql) )
|
|||||||
print " <a href=\"liste.php?year=$y&month=$m\">";
|
print " <a href=\"liste.php?year=$y&month=$m\">";
|
||||||
print strftime("%B",$objp->date_commande)."</a>\n";
|
print strftime("%B",$objp->date_commande)."</a>\n";
|
||||||
print " <a href=\"liste.php?year=$y\">";
|
print " <a href=\"liste.php?year=$y\">";
|
||||||
print strftime("%Y",$objp->date_commande)."</a></TD>\n";
|
print strftime("%Y",$objp->date_commande)."</a></td>\n";
|
||||||
|
|
||||||
print '<td align="center">'.$generic_commande->statuts[$objp->fk_statut].'</td>';
|
print '<td align="center">'.$generic_commande->statuts[$objp->fk_statut].'</td>';
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
@ -142,11 +149,11 @@ if ( $db->query($sql) )
|
|||||||
|
|
||||||
print "</table>";
|
print "</table>";
|
||||||
$db->free();
|
$db->free();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print dolibarr_print_error($db);
|
print dolibarr_print_error($db);
|
||||||
}
|
}
|
||||||
|
|
||||||
$db->close();
|
$db->close();
|
||||||
llxFooter("<em>Dernière modification $Date$ révision $Revision$</em>");
|
llxFooter("<em>Dernière modification $Date$ révision $Revision$</em>");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user