print '<td class="liste_titre" align="right">' . $langs->trans("AmountTTC") . '</td>';
 print '<td class="liste_titre" align="right">' . $langs->trans("DateModificationShort") . '</td>';
 print '<td class="liste_titre" width="16">&nbsp;</td>';
 print '</tr>';
 if ($num) {
     $var = True;
     $total_ttc = $totalam = $total = 0;
     $var = true;
     while ($i < $num && $i < $max) {
         $objp = $db->fetch_object($result);
         $var = !$var;
         print '<tr ' . $bc[$var] . '>';
         $donationstatic->id = $objp->rowid;
         $donationstatic->lastname = $objp->lastname;
         $donationstatic->firstname = $objp->firstname;
         $label = $donationstatic->getFullName($langs);
         if ($objp->societe) {
             $label .= ($label ? ' - ' : '') . $objp->societe;
         }
         $donationstatic->ref = $label;
         print '<td>' . $donationstatic->getNomUrl(1) . '</td>';
         print '<td align="right">' . price($objp->amount) . '</td>';
         print '<td align="right">' . dol_print_date($db->jdate($objp->dm), 'day') . '</td>';
         print '<td>' . $donationstatic->LibStatut($objp->fk_statut, 3) . '</td>';
         print '</tr>';
         $i++;
     }
 } else {
     print '<tr ' . $bc[$var] . '><td colspan="4">' . $langs->trans("None") . '</td></tr>';
 }
 print '</table><br>';
Esempio n. 2
0
 print '<td class="liste_titre" align="right"><input name="search_amount" class="flat" type="text" size="8" value="' . $search_amount . '"></td>';
 print '<td class="liste_titre" align="right"><input type="image" class="liste_titre" name="button_search" src="' . img_picto($langs->trans("Search"), 'search.png', '', '', 1) . '" value="' . dol_escape_htmltag($langs->trans("Search")) . '" title="' . dol_escape_htmltag($langs->trans("Search")) . '">';
 print '<input type="image" class="liste_titre" name="button_removefilter" src="' . img_picto($langs->trans("Search"), 'searchclear.png', '', '', 1) . '" value="' . dol_escape_htmltag($langs->trans("RemoveFilter")) . '" title="' . dol_escape_htmltag($langs->trans("RemoveFilter")) . '">';
 print "</td></tr>\n";
 $var = True;
 while ($i < min($num, $limit)) {
     $objp = $db->fetch_object($result);
     $var = !$var;
     print "<tr " . $bc[$var] . ">";
     $donationstatic->id = $objp->rowid;
     $donationstatic->ref = $objp->rowid;
     $donationstatic->lastname = $objp->lastname;
     $donationstatic->firstname = $objp->firstname;
     print "<td>" . $donationstatic->getNomUrl(1) . "</td>\n";
     print "<td>" . $objp->societe . "</td>\n";
     print "<td>" . $donationstatic->getFullName($langs) . "</td>\n";
     print '<td align="center">' . dol_print_date($db->jdate($objp->datedon), 'day') . '</td>';
     if (!empty($conf->projet->enabled)) {
         print "<td>";
         if ($objp->pid) {
             $projectstatic->id = $objp->pid;
             $projectstatic->ref = $objp->ref;
             $projectstatic->id = $objp->pid;
             $projectstatic->public = $objp->public;
             $projectstatic->title = $objp->title;
             print $projectstatic->getNomUrl(1);
         } else {
             print '&nbsp;';
         }
         print "</td>\n";
     }