Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
13ff683c
Commit
13ff683c
authored
20 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Fix: Le champ de tri des tableaux n'était pas toujours mis en évidence
parent
6e7f1606
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
htdocs/fourn/facture/index.php
+16
-9
16 additions, 9 deletions
htdocs/fourn/facture/index.php
htdocs/fourn/index.php
+1
-1
1 addition, 1 deletion
htdocs/fourn/index.php
htdocs/lib/functions.inc.php
+3
-1
3 additions, 1 deletion
htdocs/lib/functions.inc.php
with
20 additions
and
11 deletions
htdocs/fourn/facture/index.php
+
16
−
9
View file @
13ff683c
<?php
/* Copyright (C) 2002-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
* it under the terms of the GNU General Public License as published by
...
...
@@ -20,6 +20,13 @@
* $Source$
*
*/
/** \file htdocs/fourn/facture/index.php
\ingroup fournisseur,facture
\brief Lsite des factures fournisseurs
\version $Revision$
*/
require
(
"./pre.inc.php"
);
require
(
"../../contact.class.php"
);
require
(
"../../facturefourn.class.php"
);
...
...
@@ -127,13 +134,13 @@ if ($result)
print
'<table class="noborder" width="100%">'
;
print
'<tr class="liste_titre">'
;
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_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_liste_field_titre
(
$langs
->
trans
(
"Ref"
),
"index.php"
,
"facnumber"
,
""
,
""
,
""
,
$sortfield
);
print_liste_field_titre
(
$langs
->
trans
(
"Date"
),
"index.php"
,
"fac.datef"
,
""
,
""
,
""
,
$sortfield
);
print
_liste_field_titre
(
$langs
->
trans
(
"Label"
)
,
"index.php"
,
"fac.libelle"
,
""
,
""
,
""
,
$sortfield
)
;
print_liste_field_titre
(
$langs
->
trans
(
"Company"
),
"index.php"
,
"s.nom"
,
""
,
""
,
""
,
$sortfield
);
print_liste_field_titre
(
$langs
->
trans
(
"AmountHT"
),
"index.php"
,
"fac.total_ht"
,
""
,
""
,
'align="right"'
,
$sortfield
);
print_liste_field_titre
(
$langs
->
trans
(
"AmountTTC"
),
"index.php"
,
"fac.total_ttc"
,
""
,
""
,
'align="right"'
,
$sortfield
);
print_liste_field_titre
(
$langs
->
trans
(
"Status"
),
"index.php"
,
"fk_statut,paye"
,
""
,
""
,
'align="center"'
,
$sortfield
);
print
"</tr>
\n
"
;
$var
=
True
;
while
(
$i
<
min
(
$num
,
$limit
))
...
...
@@ -193,7 +200,7 @@ if ($result)
}
else
{
print
$db
->
error
();
dolibarr_print_
error
(
$db
);
}
$db
->
close
();
...
...
This diff is collapsed.
Click to expand it.
htdocs/fourn/index.php
+
1
−
1
View file @
13ff683c
...
...
@@ -106,7 +106,7 @@ if ($result)
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
(
"Company"
),
"index.php"
,
"s.nom"
,
""
,
""
,
'valign="center"'
,
$sortfield
);
print
'<td>'
.
$langs
->
trans
(
"Town"
)
.
'</td>'
;
print
'<td> </td>'
;
print
"</tr>
\n
"
;
...
...
This diff is collapsed.
Click to expand it.
htdocs/lib/functions.inc.php
+
3
−
1
View file @
13ff683c
...
...
@@ -954,7 +954,9 @@ function transcoS2L($zonein,$devise)
function
print_liste_field_titre
(
$name
,
$file
,
$field
,
$begin
=
""
,
$options
=
""
,
$td
=
""
,
$sortfield
=
""
)
{
global
$conf
;
if
(
$sortfield
==
$field
)
// Le champ de tri est mis en vidence.
// Exemple si (sortfield,field)=("nom","xxx.nom") ou (sortfield,field)=("nom","nom")
if
(
$sortfield
==
$field
||
$sortfield
==
ereg_replace
(
"^[^\.]+\."
,
""
,
$field
))
{
print
'<td class="menusel" '
.
$td
.
'>'
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment