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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
64031f92
Commit
64031f92
authored
11 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Fix: Problem with W3C and wrapping of some title lines.
parent
8496b178
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
htdocs/core/lib/functions.lib.php
+2
-2
2 additions, 2 deletions
htdocs/core/lib/functions.lib.php
htdocs/product/liste.php
+11
-6
11 additions, 6 deletions
htdocs/product/liste.php
htdocs/theme/eldy/style.css.php
+0
-3
0 additions, 3 deletions
htdocs/theme/eldy/style.css.php
with
13 additions
and
11 deletions
htdocs/core/lib/functions.lib.php
+
2
−
2
View file @
64031f92
...
...
@@ -2395,8 +2395,8 @@ function getTitleFieldOfList($name, $thead=0, $file="", $field="", $begin="", $m
// If field is used as sort criteria we use a specific class
// Example if (sortfield,field)=("nom","xxx.nom") or (sortfield,field)=("nom","nom")
if
(
$field
&&
(
$sortfield
==
$field
||
$sortfield
==
preg_replace
(
"/^[^\.]+\./"
,
""
,
$field
)))
$out
.
=
'<'
.
$tag
.
' class="liste_titre_sel" '
.
$moreattrib
.
'>'
;
else
$out
.
=
'<'
.
$tag
.
' class="liste_titre" '
.
$moreattrib
.
'>'
;
if
(
$field
&&
(
$sortfield
==
$field
||
$sortfield
==
preg_replace
(
"/^[^\.]+\./"
,
""
,
$field
)))
$out
.
=
'<'
.
$tag
.
' class="liste_titre_sel
'
.
(
$field
?
' nowrap'
:
''
)
.
'
" '
.
$moreattrib
.
'>'
;
else
$out
.
=
'<'
.
$tag
.
' class="liste_titre
'
.
(
$field
?
' nowrap'
:
''
)
.
'
" '
.
$moreattrib
.
'>'
;
if
(
!
empty
(
$conf
->
dol_optimize_smallscreen
)
&&
empty
(
$thead
)
&&
$field
)
// If this is a sort field
{
...
...
This diff is collapsed.
Click to expand it.
htdocs/product/liste.php
+
11
−
6
View file @
64031f92
...
...
@@ -271,6 +271,13 @@ else
// Filter on categories
$moreforfilter
=
''
;
$colspan
=
6
;
if
(
!
empty
(
$conf
->
barcode
->
enabled
))
$colspan
++
;
if
(
!
empty
(
$conf
->
service
->
enabled
)
&&
$type
!=
0
)
$colspan
++
;
if
(
empty
(
$conf
->
global
->
PRODUIT_MULTIPRICES
))
$colspan
++
;
if
(
$user
->
rights
->
fournisseur
->
lire
)
$colspan
++
;
if
(
!
empty
(
$conf
->
stock
->
enabled
)
&&
$user
->
rights
->
stock
->
lire
&&
$type
!=
1
)
$colspan
+=
2
;
if
(
!
empty
(
$conf
->
categorie
->
enabled
))
{
$moreforfilter
.
=
$langs
->
trans
(
'Categories'
)
.
': '
;
...
...
@@ -280,22 +287,20 @@ else
if
(
$moreforfilter
)
{
print
'<tr class="liste_titre">'
;
print
'<td class="liste_titre" colspan="
9
">'
;
print
'<td class="liste_titre" colspan="
'
.
$colspan
.
'
">'
;
print
$moreforfilter
;
print
'</td></tr>'
;
}
// Lignes des titres
print
"
<tr class=
\
"
liste_titre
\
"
>
"
;
print
'
<tr class="liste_titre">
'
;
print_liste_field_titre
(
$langs
->
trans
(
"Ref"
),
$_SERVER
[
"PHP_SELF"
],
"p.ref"
,
$param
,
""
,
""
,
$sortfield
,
$sortorder
);
print_liste_field_titre
(
$langs
->
trans
(
"Label"
),
$_SERVER
[
"PHP_SELF"
],
"p.label"
,
$param
,
""
,
""
,
$sortfield
,
$sortorder
);
if
(
!
empty
(
$conf
->
barcode
->
enabled
))
print_liste_field_titre
(
$langs
->
trans
(
"BarCode"
),
$_SERVER
[
"PHP_SELF"
],
"p.barcode"
,
$param
,
''
,
''
,
$sortfield
,
$sortorder
);
print_liste_field_titre
(
$langs
->
trans
(
"DateModification"
),
$_SERVER
[
"PHP_SELF"
],
"p.tms"
,
$param
,
""
,
'align="center"'
,
$sortfield
,
$sortorder
);
if
(
!
empty
(
$conf
->
service
->
enabled
)
&&
$type
!=
0
)
print_liste_field_titre
(
$langs
->
trans
(
"Duration"
),
$_SERVER
[
"PHP_SELF"
],
"p.duration"
,
$param
,
""
,
'align="center"'
,
$sortfield
,
$sortorder
);
if
(
empty
(
$conf
->
global
->
PRODUIT_MULTIPRICES
))
print_liste_field_titre
(
$langs
->
trans
(
"SellingPrice"
),
$_SERVER
[
"PHP_SELF"
],
"p.price"
,
$param
,
""
,
'align="right"'
,
$sortfield
,
$sortorder
);
if
(
$user
->
rights
->
produit
->
creer
)
{
print
'<td class="liste_titre" align="right">'
.
$langs
->
trans
(
"BuyingPriceMinShort"
)
.
'</td>'
;
}
if
(
$user
->
rights
->
fournisseur
->
lire
)
print
'<td class="liste_titre" align="right">'
.
$langs
->
trans
(
"BuyingPriceMinShort"
)
.
'</td>'
;
if
(
!
empty
(
$conf
->
stock
->
enabled
)
&&
$user
->
rights
->
stock
->
lire
&&
$type
!=
1
)
print
'<td class="liste_titre" align="right">'
.
$langs
->
trans
(
"DesiredStock"
)
.
'</td>'
;
if
(
!
empty
(
$conf
->
stock
->
enabled
)
&&
$user
->
rights
->
stock
->
lire
&&
$type
!=
1
)
print
'<td class="liste_titre" align="right">'
.
$langs
->
trans
(
"PhysicalStock"
)
.
'</td>'
;
print_liste_field_titre
(
$langs
->
trans
(
"Sell"
),
$_SERVER
[
"PHP_SELF"
],
"p.tosell"
,
$param
,
""
,
'align="center"'
,
$sortfield
,
$sortorder
);
...
...
@@ -338,7 +343,7 @@ else
}
// Minimum buying Price
if
(
$user
->
rights
->
produit
->
creer
)
{
if
(
$user
->
rights
->
fournisseur
->
lire
)
{
print
'<td class="liste_titre">'
;
print
' '
;
print
'</td>'
;
...
...
This diff is collapsed.
Click to expand it.
htdocs/theme/eldy/style.css.php
+
0
−
3
View file @
64031f92
...
...
@@ -1750,7 +1750,6 @@ div.liste_titre, tr.liste_titre, tr.liste_titre_sel, form.liste_titre, form.list
color: #
<?php
echo
$colortexttitle
;
?>
;
font-family:
<?php
print
$fontlist
?>
;
border-bottom: 1px solid #FDFFFF;
white-space:
<?php
echo
$dol_optimize_smallscreen
?
'normal'
:
'nowrap'
;
?>
;
text-align:
<?php
echo
$left
;
?>
;
}
tr.liste_titre th, th.liste_titre, tr.liste_titre td, td.liste_titre, form.liste_titre div, div.liste_titre
...
...
@@ -1758,7 +1757,6 @@ tr.liste_titre th, th.liste_titre, tr.liste_titre td, td.liste_titre, form.liste
font-family:
<?php
print
$fontlist
?>
;
font-weight: bold;
border-bottom: 1px solid #FDFFFF;
white-space:
<?php
echo
$dol_optimize_smallscreen
?
'normal'
:
'nowrap'
;
?>
;
text-shadow: 1px 0px 1px #
<?php
echo
$colorshadowtitle
;
?>
;
vertical-align: middle;
}
...
...
@@ -1774,7 +1772,6 @@ tr.liste_titre_sel th, th.liste_titre_sel, tr.liste_titre_sel td, td.liste_titre
font-family:
<?php
print
$fontlist
?>
;
font-weight: normal;
border-bottom: 1px solid #FDFFFF;
white-space:
<?php
echo
$dol_optimize_smallscreen
?
'normal'
:
'nowrap'
;
?>
;
text-decoration: underline;
text-shadow: 1px 0px 1px #
<?php
echo
$colorshadowtitle
;
?>
;
}
...
...
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