rajout de quelques fioritures d'affichage
This commit is contained in:
parent
37eef68ad7
commit
951f0f0d8a
@ -1,9 +1,9 @@
|
|||||||
- envoyer un mail sur validation de coitsation
|
Fait - envoyer un mail sur validation de coitsation
|
||||||
- mettre le nombre d'adherents ayant cotise en bas de la liste
|
- mettre le nombre d'adherents ayant cotise en bas de la liste
|
||||||
- savoir dans la fiche adherents, si il est abonnee aux listes/spip/glasnost
|
- savoir dans la fiche adherents, si il est abonnee aux listes/spip/glasnost
|
||||||
- faire des stats sur les cotis (moyenne par adherents)
|
Fait - faire des stats sur les cotis (moyenne par adherents)
|
||||||
- ne pas afficher le / apres Prenom Nom lorsque le champs suivant est vide (details mais ca aide a lire)
|
Fait - ne pas afficher le / apres Prenom Nom lorsque le champs suivant est vide (details mais ca aide a lire)
|
||||||
- faire un compatge automatique du nombre d'adherents
|
- faire un compatge automatique du nombre d'adherents
|
||||||
- eventuellement aussi sur la page Adherent cotisant, faire la disctinction membres zeune et autre
|
- eventuellement aussi sur la page Adherent cotisant, faire la disctinction membres zeune et autre
|
||||||
- dans la liste des cotisants, changer l'ordre de classement par defaut (avec possibilite de pourvoir le changer)
|
Fait - dans la liste des cotisants, changer l'ordre de classement par defaut (avec possibilite de pourvoir le changer)
|
||||||
|
|
||||||
|
|||||||
@ -32,6 +32,7 @@ print '<p><TABLE border="0" cellspacing="0" cellpadding="4">';
|
|||||||
print '<TR class="liste_titre">';
|
print '<TR class="liste_titre">';
|
||||||
print "<td>Type</td>";
|
print "<td>Type</td>";
|
||||||
print "<td>Nb</td>";
|
print "<td>Nb</td>";
|
||||||
|
print "<td>Cotisant</td>";
|
||||||
print "</TR>\n";
|
print "</TR>\n";
|
||||||
|
|
||||||
$var=True;
|
$var=True;
|
||||||
@ -40,6 +41,9 @@ $var=True;
|
|||||||
$sql = "SELECT count(*) as somme , t.libelle FROM llx_adherent as d, llx_adherent_type as t";
|
$sql = "SELECT count(*) as somme , t.libelle FROM llx_adherent as d, llx_adherent_type as t";
|
||||||
$sql .= " WHERE d.fk_adherent_type = t.rowid AND d.statut = 1 GROUP BY t.libelle";
|
$sql .= " WHERE d.fk_adherent_type = t.rowid AND d.statut = 1 GROUP BY t.libelle";
|
||||||
|
|
||||||
|
$Adherents=array();
|
||||||
|
$Cotisants=array();
|
||||||
|
|
||||||
$result = $db->query($sql);
|
$result = $db->query($sql);
|
||||||
|
|
||||||
if ($result)
|
if ($result)
|
||||||
@ -49,20 +53,51 @@ if ($result)
|
|||||||
while ($i < $num)
|
while ($i < $num)
|
||||||
{
|
{
|
||||||
$objp = $db->fetch_object( $i);
|
$objp = $db->fetch_object( $i);
|
||||||
|
$Adherents[$objp->libelle]=$objp->somme;
|
||||||
$var=!$var;
|
|
||||||
print "<TR $bc[$var]>";
|
|
||||||
print '<TD><a href="liste.php">'.$objp->libelle.'</a></TD>';
|
|
||||||
print '<TD align="right">'.$objp->somme.'</TD>';
|
|
||||||
|
|
||||||
print "</tr>";
|
|
||||||
|
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
$db->free();
|
$db->free();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$sql = "SELECT count(*) as somme , t.libelle FROM llx_adherent as d, llx_adherent_type as t";
|
||||||
|
$sql .= " WHERE d.fk_adherent_type = t.rowid AND d.statut = 1 AND d.datefin >= ".time()." GROUP BY t.libelle";
|
||||||
|
|
||||||
|
$result = $db->query($sql);
|
||||||
|
|
||||||
|
if ($result)
|
||||||
|
{
|
||||||
|
$num = $db->num_rows();
|
||||||
|
$i = 0;
|
||||||
|
while ($i < $num)
|
||||||
|
{
|
||||||
|
$objp = $db->fetch_object( $i);
|
||||||
|
$Cotisants[$objp->libelle]=$objp->somme;
|
||||||
|
$i++;
|
||||||
|
}
|
||||||
|
$db->free();
|
||||||
|
|
||||||
|
}
|
||||||
|
$SommeA=0;
|
||||||
|
$SommeC=0;
|
||||||
|
|
||||||
|
foreach ($Adherents as $key=>$value){
|
||||||
|
$var=!$var;
|
||||||
|
print "<TR $bc[$var]>";
|
||||||
|
print '<TD><a href="liste.php">'.$key.'</a></TD>';
|
||||||
|
print '<TD align="right">'.$value.'</TD>';
|
||||||
|
print '<TD align="right">'.$Cotisants[$key].'</TD>';
|
||||||
|
print "</TR>\n";
|
||||||
|
$SommeA+=$value;
|
||||||
|
$SommeC+=$Cotisants[$key];
|
||||||
|
}
|
||||||
|
$var=!$var;
|
||||||
|
print "<TR $bc[$var]>";
|
||||||
|
print '<TD> <B>Total</B> </TD>';
|
||||||
|
print '<TD align="right"><B>'.$SommeA.'</B></TD>';
|
||||||
|
print '<TD align="right"><B>'.$SommeC.'</B></TD>';
|
||||||
|
print "<TR>\n";
|
||||||
|
|
||||||
print "</table>";
|
print "</table>";
|
||||||
|
|
||||||
print '<form action="liste.php" method="post" name="action" value="search">';
|
print '<form action="liste.php" method="post" name="action" value="search">';
|
||||||
|
|||||||
@ -144,7 +144,15 @@ if ($result)
|
|||||||
print "</tr>";
|
print "</tr>";
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
print "</table>";
|
print "</table><BR>\n";
|
||||||
|
print "<TABLE border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"4\">";
|
||||||
|
|
||||||
|
print '<TR>';
|
||||||
|
print '<TD align="right">';
|
||||||
|
print_fleche_navigation($page,$PHP_SELF,"&statut=$statut&sortorder=$sortorder&sortfield=$sortfield");
|
||||||
|
print '</TD>';
|
||||||
|
print "</table><BR>\n";
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user