Fix: Le lien de tri était invalide.
This commit is contained in:
parent
a4126cfed2
commit
513192f083
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2001-2004 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,8 +21,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*!
|
/** \file htdocs/contrat/contrat.class.php
|
||||||
\file htdocs/contrat/contrat.class.php
|
|
||||||
\ingroup contrat
|
\ingroup contrat
|
||||||
\brief Page liste des contrats
|
\brief Page liste des contrats
|
||||||
\version $Revision$
|
\version $Revision$
|
||||||
@ -61,7 +60,7 @@ $offset = $limit * $page ;
|
|||||||
|
|
||||||
if ($sortfield == "")
|
if ($sortfield == "")
|
||||||
{
|
{
|
||||||
$sortfield="c.tms";
|
$sortfield="c.rowid";
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($sortorder == "")
|
if ($sortorder == "")
|
||||||
@ -86,13 +85,13 @@ if ( $db->query($sql) )
|
|||||||
$i = 0;
|
$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 '<table class="noborder" width="100%">';
|
print '<table class="noborder" width="100%">';
|
||||||
|
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
print_liste_field_titre($langs->trans("Ref"),"index.php", "c.rowid","","","",$sortfield);
|
print_liste_field_titre($langs->trans("Ref"), $_SERVER["PHP_SELF"], "c.rowid","","","",$sortfield);
|
||||||
print_liste_field_titre($langs->trans("Company"),"index.php", "s.nom","","","",$sortfield);
|
print_liste_field_titre($langs->trans("Company"), $_SERVER["PHP_SELF"], "s.nom","","","",$sortfield);
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|
||||||
$now=mktime();
|
$now=mktime();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user