Go to the documentation of this file.
25 if (!defined(
'NOLOGIN')) {
26 define(
'NOLOGIN',
'1');
28 if (!defined(
'NOCSRFCHECK')) {
29 define(
'NOCSRFCHECK',
'1');
31 if (!defined(
'NOBROWSERNOTIF')) {
32 define(
'NOBROWSERNOTIF',
'1');
34 if (!defined(
'NOIPCHECK')) {
35 define(
'NOIPCHECK',
'1');
46 print
'<html><title>List of donators</title><body>';
55 print
'</body></html>';
58 require
'../../main.inc.php';
59 require_once DOL_DOCUMENT_ROOT.
'/don/class/don.class.php';
62 if (empty($conf->don->enabled)) {
67 $langs->load(
"donations");
76 $sql =
"SELECT d.datedon as datedon, d.lastname, d.firstname, d.amount, d.public, d.societe";
77 $sql .=
" FROM ".MAIN_DB_PREFIX.
"don as d";
78 $sql .=
" WHERE d.fk_statut in (2, 3) ORDER BY d.datedon DESC";
82 $num = $db->num_rows(
$resql);
84 print
"<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"4\">";
87 print
"<td>".$langs->trans(
"Name").
" / ".$langs->trans(
"Company").
"</td>";
88 print
"<td>Date</td>";
89 print
'<td class="right">'.$langs->trans(
"Amount").
'</td>';
93 $objp = $db->fetch_object(
$resql);
95 print
'<tr class="oddeven">';
97 print
"<td>".dolGetFirstLastname($objp->firstname, $objp->lastname).
" ".
dol_escape_htmltag($objp->societe).
"</td>\n";
99 print
"<td>".$langs->trans(
"Anonymous").
"</td>\n";
101 print
"<td>".dol_print_date($db->jdate($objp->datedon)).
"</td>\n";
102 print
'<td class="right">'.number_format($objp->amount, 2,
'.',
' ').
' '.$langs->trans(
"Currency".$conf->currency).
'</td>';
108 print $langs->trans(
"Donation");
dol_escape_htmltag($stringtoescape, $keepb=0, $keepn=0, $noescapetags='', $escapeonlyhtmltags=0)
Returns text escaped for inclusion in HTML alt or title tags, or into values of HTML input fields.
dol_print_error($db='', $error='', $errors=null)
Displays error message system with all the information to facilitate the diagnosis and the escalation...
llxFooterVierge()
Header function.
if(!defined('NOLOGIN')) if(!defined('NOCSRFCHECK')) if(!defined('NOBROWSERNOTIF')) if(!defined('NOIPCHECK')) llxHeaderVierge()
Header function.
if(isModEnabled('facture') &&!empty($user->rights->facture->lire)) if((isModEnabled('fournisseur') &&empty($conf->global->MAIN_USE_NEW_SUPPLIERMOD) && $user->rights->fournisseur->facture->lire)||(isModEnabled('supplier_invoice') && $user->rights->supplier_invoice->lire)) if(isModEnabled('don') &&!empty($user->rights->don->lire)) if(isModEnabled('tax') &&!empty($user->rights->tax->charges->lire)) if(isModEnabled('facture') &&isModEnabled('commande') && $user->rights->commande->lire &&empty($conf->global->WORKFLOW_DISABLE_CREATE_INVOICE_FROM_ORDER)) $resql
Social contributions to pay.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program Calling this function terminate execution ...