diff --git a/htdocs/contrat/liste.php b/htdocs/contrat/liste.php index 1cc44c08fae..411ff9382bb 100644 --- a/htdocs/contrat/liste.php +++ b/htdocs/contrat/liste.php @@ -1,6 +1,6 @@ - * Copyright (C) 2004 Laurent Destailleur + * Copyright (C) 2004-2005 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 @@ -21,8 +21,7 @@ * */ -/*! - \file htdocs/contrat/contrat.class.php +/** \file htdocs/contrat/contrat.class.php \ingroup contrat \brief Page liste des contrats \version $Revision$ @@ -61,7 +60,7 @@ $offset = $limit * $page ; if ($sortfield == "") { - $sortfield="c.tms"; + $sortfield="c.rowid"; } if ($sortorder == "") @@ -86,13 +85,13 @@ if ( $db->query($sql) ) $i = 0; - print_barre_liste("Liste des contrats", $page, "index.php", "&sref=$sref&snom=$snom", $sortfield, $sortorder,'',$num); + print_barre_liste("Liste des contrats", $page, $_SERVER["PHP_SELF"], "&sref=$sref&snom=$snom", $sortfield, $sortorder,'',$num); print ''; print ''; - print_liste_field_titre($langs->trans("Ref"),"index.php", "c.rowid","","","",$sortfield); - print_liste_field_titre($langs->trans("Company"),"index.php", "s.nom","","","",$sortfield); + print_liste_field_titre($langs->trans("Ref"), $_SERVER["PHP_SELF"], "c.rowid","","","",$sortfield); + print_liste_field_titre($langs->trans("Company"), $_SERVER["PHP_SELF"], "s.nom","","","",$sortfield); print "\n"; $now=mktime();