Fix: Presentation of Donations Area and add search
This commit is contained in:
parent
9c4d60fd5d
commit
9f40f346cb
@ -79,11 +79,32 @@ if ($result)
|
|||||||
print load_fiche_titre($langs->trans("DonationsArea"));
|
print load_fiche_titre($langs->trans("DonationsArea"));
|
||||||
|
|
||||||
|
|
||||||
print '<table width="100%" class="notopnoleftnoright">';
|
print '<div class="fichecenter"><div class="fichethirdleft">';
|
||||||
|
|
||||||
// Left area
|
if (! empty($conf->don->enabled) && $user->rights->don->lire)
|
||||||
print '<tr><td class="notopnoleft" width="30%" valign="top">';
|
{
|
||||||
|
$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 '<table class="noborder nohover" width="100%">';
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
@ -136,8 +157,7 @@ print '</tr>';
|
|||||||
print "</table>";
|
print "</table>";
|
||||||
|
|
||||||
|
|
||||||
// Right area
|
print '</div><div class="fichetwothirdright"><div class="ficheaddleft">';
|
||||||
print '</td><td valign="top">';
|
|
||||||
|
|
||||||
|
|
||||||
$max=10;
|
$max=10;
|
||||||
@ -203,7 +223,7 @@ if ($resql)
|
|||||||
else dol_print_error($db);
|
else dol_print_error($db);
|
||||||
|
|
||||||
|
|
||||||
print '</td></tr></table>';
|
print '</div></div></div>';
|
||||||
|
|
||||||
|
|
||||||
llxFooter();
|
llxFooter();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user