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
1e4a024d
Commit
1e4a024d
authored
Jul 6, 2011
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Fix: Use title
parent
85174510
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/core/class/html.formfile.class.php
+72
-70
72 additions, 70 deletions
htdocs/core/class/html.formfile.class.php
with
72 additions
and
70 deletions
htdocs/core/class/html.formfile.class.php
+
72
−
70
View file @
1e4a024d
...
...
@@ -22,7 +22,7 @@
* \file htdocs/core/class/html.formfile.class.php
* \ingroup core
* \brief File of class to offer components to list and upload files
* \version $Id: html.formfile.class.php,v 1.4
4
2011/07/06 1
3:15:24
eldy Exp $
* \version $Id: html.formfile.class.php,v 1.4
5
2011/07/06 1
7:44:56
eldy Exp $
*/
...
...
@@ -186,9 +186,9 @@ class FormFile
global
$langs
,
$bc
,
$conf
;
$out
=
''
;
$var
=
true
;
// Clean paramaters
if
(
$iconPDF
==
1
)
{
$genallowed
=
''
;
...
...
@@ -196,12 +196,14 @@ class FormFile
$modelselected
=
''
;
$forcenomultilang
=
0
;
}
//$filename = dol_sanitizeFileName($filename); //Must be sanitized before calling show_documents
$headershown
=
0
;
$showempty
=
0
;
$i
=
0
;
$titletoshow
=
$langs
->
trans
(
"Documents"
);
if
(
!
empty
(
$title
))
$titletoshow
=
$title
;
$out
.
=
"
\n
"
.
'<!-- Start show_document -->'
.
"
\n
"
;
//print 'filedir='.$filedir;
...
...
@@ -388,7 +390,7 @@ class FormFile
$out
.
=
'<input type="hidden" name="action" value="builddoc">'
;
$out
.
=
'<input type="hidden" name="token" value="'
.
$_SESSION
[
'newtoken'
]
.
'">'
;
$out
.
=
'<div class="titre">'
.
$
langs
->
trans
(
"Documents"
)
.
'</div>'
;
$out
.
=
'<div class="titre">'
.
$
titletoshow
.
'</div>'
;
$out
.
=
'<table class="border formdoc" summary="listofdocumentstable" width="100%">'
;
$out
.
=
'<tr '
.
$bc
[
$var
]
.
'>'
;
...
...
@@ -465,6 +467,8 @@ class FormFile
}
// Get list of files
if
(
$filedir
)
{
$png
=
''
;
$filter
=
''
;
if
(
$iconPDF
==
1
)
...
...
@@ -478,8 +482,6 @@ class FormFile
if
(
sizeof
(
$file_list
)
&&
!
$headershown
&&
!
$iconPDF
)
{
$headershown
=
1
;
$titletoshow
=
$langs
->
trans
(
"Documents"
);
if
(
!
empty
(
$title
))
$titletoshow
=
$title
;
$out
.
=
'<div class="titre">'
.
$titletoshow
.
'</div>'
;
$out
.
=
'<table class="border" summary="listofdocumentstable" width="100%">'
;
}
...
...
@@ -531,7 +533,7 @@ class FormFile
$this
->
numoffiles
++
;
}
}
if
(
$headershown
)
{
...
...
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