print load_fiche_titre($langs->trans("MembersByNature"), '', ''); } // Print array print '<table class="noborder" width="100%">'; print '<tr class="liste_titre">'; print '<td align="center">' . $langs->trans("Nature") . '</td>'; print '<td align="right">' . $langs->trans("NbOfMembers") . '</td>'; print '<td align="center">' . $langs->trans("LastMemberDate") . '</td>'; print '</tr>'; if (!$foundphy) { $data[] = array('label' => 'phy', 'nb' => '0', 'lastdate' => ''); } if (!$foundmor) { $data[] = array('label' => 'mor', 'nb' => '0', 'lastdate' => ''); } $oldyear = 0; $var = true; foreach ($data as $val) { $year = $val['year']; $var = !$var; print '<tr ' . $bc[$var] . '>'; print '<td align="center">' . $memberstatic->getmorphylib($val['label']) . '</td>'; print '<td align="right">' . $val['nb'] . '</td>'; print '<td align="center">' . dol_print_date($val['lastdate'], 'dayhour') . '</td>'; print '</tr>'; $oldyear = $year; } print '</table>'; dol_fiche_end(); llxFooter(); $db->close();
// Lastname print "<td><a href=\"card.php?rowid={$objp->rowid}\">"; print !empty($objp->lastname) || !empty($objp->firstname) ? dol_trunc($memberstatic->getFullName($langs)) : ''; print (!empty($objp->lastname) || !empty($objp->firstname)) && !empty($companyname) ? ' / ' : ''; print !empty($companyname) ? dol_trunc($companyname, 32) : ''; print "</a></td>\n"; // Login print "<td>" . $objp->login . "</td>\n"; // Type $membertypestatic->id = $objp->type_id; $membertypestatic->libelle = $objp->type; print '<td class="nowrap">'; print $membertypestatic->getNomUrl(1, 32); print '</td>'; // Moral/Physique print "<td>" . $memberstatic->getmorphylib($objp->morphy) . "</td>\n"; // EMail print "<td>" . dol_print_email($objp->email, 0, 0, 1) . "</td>\n"; // Statut print '<td class="nowrap">'; print $memberstatic->LibStatut($objp->statut, $objp->cotisation, $datefin, 2); print "</td>"; // End of subscription date if ($datefin) { print '<td align="center" class="nowrap">'; print dol_print_date($datefin, 'day'); if ($datefin < $now - $conf->adherent->cotisation->warning_delay && $objp->statut > 0) { print " " . img_warning($langs->trans("SubscriptionLate")); } print '</td>'; } else {
{ print "<td><a href=\"fiche.php?rowid=$objp->rowid\">".img_object($langs->trans("ShowMember"),"user").' '.$objp->prenom." ".dol_trunc($objp->nom)."</a></td>\n"; } // Login print "<td>".$objp->login."</td>\n"; // Type print '<td nowrap="nowrap">'; $membertypestatic->id=$objp->type_id; $membertypestatic->libelle=$objp->type; print $membertypestatic->getNomUrl(1,12); print '</td>'; // Moral/Physique print "<td>".$adh->getmorphylib($objp->morphy)."</td>\n"; // EMail print "<td>".dol_print_email($objp->email,0,0,1)."</td>\n"; // Statut print '<td nowrap="nowrap">'; print $adh->LibStatut($objp->statut,$objp->cotisation,$datefin,2); print "</td>"; // End of subscription date if ($datefin) { print '<td align="center" nowrap="nowrap">'; print dol_print_date($datefin,'day'); if ($datefin < ($now - $conf->adherent->cotisation->warning_delay) && $objp->statut > 0) print " ".img_warning($langs->trans("SubscriptionLate"));
print load_fiche_titre($langs->trans("MembersByNature"), '', ''); } // Print array print '<table class="liste" width="100%">'; print '<tr class="liste_titre">'; print '<td>' . $langs->trans("Nature") . '</td>'; print '<td align="right">' . $langs->trans("NbOfMembers") . '</td>'; print '<td align="center">' . $langs->trans("LastMemberDate") . '</td>'; print '</tr>'; if (!$foundphy) { $data[] = array('label' => 'phy', 'nb' => '0', 'lastdate' => ''); } if (!$foundmor) { $data[] = array('label' => 'mor', 'nb' => '0', 'lastdate' => ''); } $oldyear = 0; $var = true; foreach ($data as $val) { $year = $val['year']; $var = !$var; print '<tr ' . $bc[$var] . '>'; print '<td>' . $memberstatic->getmorphylib($val['label']) . '</td>'; print '<td align="right">' . $val['nb'] . '</td>'; print '<td align="center">' . dol_print_date($val['lastdate'], 'dayhour') . '</td>'; print '</tr>'; $oldyear = $year; } print '</table>'; dol_fiche_end(); llxFooter(); $db->close();