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
9f40f346
Commit
9f40f346
authored
8 years ago
by
aspangaro
Browse files
Options
Downloads
Patches
Plain Diff
Fix: Presentation of Donations Area and add search
parent
9c4d60fd
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/don/index.php
+26
-6
26 additions, 6 deletions
htdocs/don/index.php
with
26 additions
and
6 deletions
htdocs/don/index.php
+
26
−
6
View file @
9f40f346
...
...
@@ -79,11 +79,32 @@ if ($result)
print
load_fiche_titre
(
$langs
->
trans
(
"DonationsArea"
));
print
'<
table width="100%" class="notopnoleftnorigh
t">'
;
print
'<
div class="fichecenter"><div class="fichethirdlef
t">'
;
// Left area
print
'<tr><td class="notopnoleft" width="30%" valign="top">'
;
if
(
!
empty
(
$conf
->
don
->
enabled
)
&&
$user
->
rights
->
don
->
lire
)
{
$listofsearchfields
[
'search_donation'
]
=
array
(
'text'
=>
'Donation'
);
}
if
(
count
(
$listofsearchfields
))
{
print
'<form method="post" action="'
.
DOL_URL_ROOT
.
'/core/search.php">'
;
print
'<input type="hidden" name="token" value="'
.
$_SESSION
[
'newtoken'
]
.
'">'
;
print
'<table class="noborder nohover centpercent">'
;
$i
=
0
;
foreach
(
$listofsearchfields
as
$key
=>
$value
)
{
if
(
$i
==
0
)
print
'<tr class="liste_titre"><td colspan="3">'
.
$langs
->
trans
(
"Search"
)
.
'</td></tr>'
;
print
'<tr '
.
$bc
[
false
]
.
'>'
;
print
'<td class="nowrap"><label for="'
.
$key
.
'">'
.
$langs
->
trans
(
$value
[
"text"
])
.
'</label>:</td><td><input type="text" class="flat inputsearch" name="'
.
$key
.
'" id="'
.
$key
.
'" size="14"></td>'
;
if
(
$i
==
0
)
print
'<td rowspan="'
.
count
(
$listofsearchfields
)
.
'"><input type="submit" value="'
.
$langs
->
trans
(
"Search"
)
.
'" class="button"></td>'
;
print
'</tr>'
;
$i
++
;
}
print
'</table>'
;
print
'</form>'
;
print
'<br>'
;
}
print
'<table class="noborder nohover" width="100%">'
;
print
'<tr class="liste_titre">'
;
...
...
@@ -136,8 +157,7 @@ print '</tr>';
print
"</table>"
;
// Right area
print
'</td><td valign="top">'
;
print
'</div><div class="fichetwothirdright"><div class="ficheaddleft">'
;
$max
=
10
;
...
...
@@ -203,7 +223,7 @@ if ($resql)
else
dol_print_error
(
$db
);
print
'</
td></tr></table
>'
;
print
'</
div></div></div
>'
;
llxFooter
();
...
...
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