print '<table class="noborder" width="100%">'; print '<tr class="liste_titre">'; print '<td colspan="2">' . $langs->trans("BoxTitleLastCustomersOrProspects", $max) . '</td>'; print '<td align="right">' . $langs->trans("DateModificationShort") . '</td>'; print '</tr>'; if ($num) { while ($i < $num) { $objp = $db->fetch_object($resql); $companystatic->id = $objp->rowid; $companystatic->name = $objp->name; $companystatic->client = $objp->client; $companystatic->canvas = $objp->canvas; print '<tr ' . $bc[$var] . '>'; print '<td class="nowrap">' . $companystatic->getNomUrl(1, 'customer', 48) . '</td>'; print '<td align="right" nowrap>'; print $companystatic->getLibCustProspStatut(); print "</td>"; print '<td align="right" nowrap>' . dol_print_date($db->jdate($objp->tms), 'day') . "</td>"; print '</tr>'; $i++; $var = !$var; } $db->free($resql); } else { print '<tr ' . $bc[$var] . '><td colspan="3">' . $langs->trans("None") . '</td></tr>'; } print "</table><br>"; } } // Last suppliers if (!empty($conf->fournisseur->enabled) && $user->rights->societe->lire) {