From 9f40f346cb2f88b08420a8fa3dadf0ac3b65dc6c Mon Sep 17 00:00:00 2001 From: aspangaro Date: Fri, 26 Aug 2016 13:23:00 +0200 Subject: [PATCH] Fix: Presentation of Donations Area and add search --- htdocs/don/index.php | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/htdocs/don/index.php b/htdocs/don/index.php index 73c9e56d29c..6d0b9a7fafa 100644 --- a/htdocs/don/index.php +++ b/htdocs/don/index.php @@ -79,11 +79,32 @@ if ($result) print load_fiche_titre($langs->trans("DonationsArea")); -print ''; +print '
'; -// Left area -print '
'; +if (! empty($conf->don->enabled) && $user->rights->don->lire) +{ + $listofsearchfields['search_donation']=array('text'=>'Donation'); +} +if (count($listofsearchfields)) +{ + print '
'; + print ''; + print ''; + $i=0; + foreach($listofsearchfields as $key => $value) + { + if ($i == 0) print ''; + print ''; + print ''; + if ($i == 0) print ''; + print ''; + $i++; + } + print '
'.$langs->trans("Search").'
:
'; + print '
'; + print '
'; +} print ''; print ''; @@ -136,8 +157,7 @@ print ''; print "
"; -// Right area -print '
'; +print '
'; $max=10; @@ -203,7 +223,7 @@ if ($resql) else dol_print_error($db); -print '
'; +print ''; llxFooter();