*** empty log message ***

This commit is contained in:
Rodolphe Quiedeville 2002-12-30 21:05:46 +00:00
parent 3aec2c350a
commit 9b987b9c2b
2 changed files with 31 additions and 5 deletions

View File

@ -34,11 +34,15 @@ $offset = $conf->liste_limit * $page ;
$pageprev = $page - 1;
$pagenext = $page + 1;
if (! isset($statut))
{
$statut = 1 ;
}
$sql = "SELECT d.rowid, d.prenom, d.nom, d.societe, ".$db->pdate("d.datefin")." as datefin";
$sql .= " , d.email, t.libelle as type, d.morphy, d.statut";
$sql .= " , d.email, t.libelle as type, d.morphy, d.statut, t.cotisation";
$sql .= " FROM llx_adherent as d, llx_adherent_type as t";
$sql .= " WHERE d.fk_adherent_type = t.rowid";
$sql .= " WHERE d.fk_adherent_type = t.rowid AND d.statut = $statut";
$sql .= " ORDER BY $sortfield $sortorder " . $db->plimit($conf->liste_limit, $offset);
$result = $db->query($sql);
@ -66,7 +70,23 @@ if ($result)
$var=!$var;
print "<TR $bc[$var]>";
print "<TD><a href=\"fiche.php?rowid=$objp->rowid&action=edit\">".stripslashes($objp->prenom)." ".stripslashes($objp->nom)." / ".stripslashes($objp->societe)."</a></TD>\n";
print "<TD><a href=\"fiche.php?rowid=$objp->rowid&action=edit\">".strftime("%d %B %Y",$objp->datefin)."</a></td>\n";
print "<TD>";
if ($objp->cotisation == 'yes')
{
if ($objp->datefin < time())
{
print "<b><a href=\"fiche.php?rowid=$objp->rowid&action=edit\">".strftime("%d %B %Y",$objp->datefin)."</a> - Cotisation non recue</b></td>\n";
}
else
{
print "<a href=\"fiche.php?rowid=$objp->rowid&action=edit\">".strftime("%d %B %Y",$objp->datefin)."</a></td>\n";
}
}
else
{
print "&nbsp;</td>";
}
print "<TD>$objp->email</TD>\n";
print "<TD>$objp->type</TD>\n";
print "<TD>$objp->morphy</TD>\n";

View File

@ -34,12 +34,18 @@ function llxHeader($head = "") {
$menu = new Menu();
$menu->add("index.php","Adherents");
$menu->add_submenu("liste.php","liste");
$menu->add_submenu("liste.php?statut=1","Adhérents à ce jour");
$menu->add_submenu("liste.php?statut=-1","Adhésions à valider");
$menu->add_submenu("liste.php?statut=0","Adhésions résiliées");
if ($user->admin)
{
$menu->add_submenu("fiche.php?action=create","nouvel adhérent");
$menu->add("fiche.php?action=create","Nouvel adhérent");
}
$menu->add("cotisations.php","Cotisations");
if ($user->admin)