rajout d'un envoi d'email pour confirmer la reception de la cotisation
This commit is contained in:
parent
ffc759da35
commit
37eef68ad7
@ -5,3 +5,5 @@
|
||||
- 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
|
||||
- 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)
|
||||
|
||||
|
||||
@ -90,7 +90,7 @@ if ($result)
|
||||
$num = $db->num_rows();
|
||||
$i = 0;
|
||||
|
||||
print_barre_liste("Liste des cotisations", $page, $PHP_SELF, "&statut=$statut");
|
||||
print_barre_liste("Liste des cotisations", $page, $PHP_SELF, "&statut=$statut&sortorder=$sortorder&sortfield=$sortfield");
|
||||
|
||||
print "<TABLE border=\"0\" cellspacing=\"0\" cellpadding=\"4\">\n";
|
||||
print '<TR class="liste_titre">';
|
||||
@ -98,8 +98,8 @@ if ($result)
|
||||
print '<td align="right">Montant</TD>';
|
||||
print "<td align=\"right\">Nombre</TD>";
|
||||
print "<td align=\"right\">Moyenne</TD>\n";
|
||||
// print "<td>Prenom Nom / Société</td>";
|
||||
print "</TR>\n";
|
||||
|
||||
foreach ($Total as $key=>$value){
|
||||
$var=!$var;
|
||||
print "<TR $bc[$var]><TD><A HREF=\"$PHP_SELF?statut=$statut&date_select=$key\">$key</A></TD><TD align=\"right\">".price($value)."</TD><TD align=\"right\">".$Number[$key]."</TD><TD align=\"right\">".price($value/$Number[$key])."</TD></TR>\n";
|
||||
@ -109,9 +109,23 @@ if ($result)
|
||||
print "<TABLE border=\"0\" cellspacing=\"0\" cellpadding=\"4\">";
|
||||
|
||||
print '<TR class="liste_titre">';
|
||||
print "<td>Date</td>";
|
||||
print "<td align=\"right\">Montant</TD>";
|
||||
print "<td>Prenom Nom / Société</td>";
|
||||
//print "<td>Date</td>";
|
||||
print '<TD>';
|
||||
print_liste_field_titre("Date",$PHP_SELF,"c.dateadh","&page=$page&statut=$statut");
|
||||
print "</TD>\n";
|
||||
|
||||
//print "<td align=\"right\">Montant</TD>";
|
||||
print '<TD>';
|
||||
print_liste_field_titre("Montant",$PHP_SELF,"c.cotisation","&page=$page&statut=$statut");
|
||||
print "</TD>\n";
|
||||
|
||||
//print "<td>Prenom Nom / Société</td>";
|
||||
print '<TD>';
|
||||
// print_liste_field_titre("Prenom",$PHP_SELF,"d.prenom","&page=$page&statut=$statut");
|
||||
print_liste_field_titre("Prenom Nom",$PHP_SELF,"d.nom","&page=$page&statut=$statut");
|
||||
print " / Société";
|
||||
print "</TD>\n";
|
||||
|
||||
print "</TR>\n";
|
||||
|
||||
$var=True;
|
||||
@ -125,7 +139,11 @@ if ($result)
|
||||
print '<TD align="right">'.price($objp->cotisation).'</TD>';
|
||||
//$Total[strftime("%Y",$objp->dateadh)]+=price($objp->cotisation);
|
||||
$total+=price($objp->cotisation);
|
||||
print "<TD><a href=\"fiche.php?rowid=$objp->rowid&action=edit\">".stripslashes($objp->prenom)." ".stripslashes($objp->nom)." / ".stripslashes($objp->societe)."</a></TD>\n";
|
||||
if ($objp->societe != ''){
|
||||
print "<TD><a href=\"fiche.php?rowid=$objp->rowid&action=edit\">".stripslashes($objp->prenom)." ".stripslashes($objp->nom)." / ".stripslashes($objp->societe)."</a></TD>\n";
|
||||
}else{
|
||||
print "<TD><a href=\"fiche.php?rowid=$objp->rowid&action=edit\">".stripslashes($objp->prenom)." ".stripslashes($objp->nom)."</a></TD>\n";
|
||||
}
|
||||
print "</tr>";
|
||||
$i++;
|
||||
}
|
||||
@ -133,7 +151,11 @@ if ($result)
|
||||
print "<TR $bc[$var]>";
|
||||
print "<TD>Total</TD>\n";
|
||||
print "<TD align=\"right\">".price($total)."</TD>\n";
|
||||
print "<TD> </TD>\n";
|
||||
// print "<TD> </TD>\n";
|
||||
print "<TD align=\"right\">";
|
||||
print_fleche_navigation($page,$PHP_SELF,"&statut=$statut&sortorder=$sortorder&sortfield=$sortfield");
|
||||
print "</TD>\n";
|
||||
|
||||
print "</TR>\n";
|
||||
print "</table>";
|
||||
print "<BR>\n";
|
||||
|
||||
@ -36,10 +36,14 @@ if ($HTTP_POST_VARS["action"] == 'cotisation')
|
||||
{
|
||||
$adh = new Adherent($db);
|
||||
$adh->id = $rowid;
|
||||
$adh->fetch($rowid);
|
||||
|
||||
if ($cotisation > 0)
|
||||
{
|
||||
$adh->cotisation(mktime(12, 0 , 0, $remonth, $reday, $reyear), $cotisation);
|
||||
if (defined("MAIN_MAIL_COTIS") && defined("MAIN_MAIL_COTIS_SUBJECT")){
|
||||
$adh->send_an_email($adh->email,MAIN_MAIL_COTIS,MAIN_MAIL_COTIS_SUBJECT);
|
||||
}
|
||||
}
|
||||
$action = "edit";
|
||||
}
|
||||
|
||||
@ -73,7 +73,12 @@ if ($result)
|
||||
print '<TR class="liste_titre">';
|
||||
|
||||
|
||||
print "<td><a href=\"".$_SERVER['SCRIPT_NAME'] . "?page=$page&statut=$statut&sortorder=ASC&sortfield=d.prenom\">Prenom</a> <a href=\"".$_SERVER['SCRIPT_NAME'] . "?page=$page&statut=$statut&sortorder=ASC&sortfield=d.nom\">Nom</a> / <a href=\"".$_SERVER['SCRIPT_NAME'] . "?page=$page&statut=$statut&sortorder=ASC&sortfield=d.societe\">Société</a></td>\n";
|
||||
// print "<td><a href=\"".$_SERVER['SCRIPT_NAME'] . "?page=$page&statut=$statut&sortorder=ASC&sortfield=d.prenom\">Prenom</a> <a href=\"".$_SERVER['SCRIPT_NAME'] . "?page=$page&statut=$statut&sortorder=ASC&sortfield=d.nom\">Nom</a> / <a href=\"".$_SERVER['SCRIPT_NAME'] . "?page=$page&statut=$statut&sortorder=ASC&sortfield=d.societe\">Société</a></td>\n";
|
||||
print '<TD>';
|
||||
// print_liste_field_titre("Prenom",$PHP_SELF,"d.prenom","&page=$page&statut=$statut");
|
||||
print_liste_field_titre("Prenom Nom",$PHP_SELF,"d.nom","&page=$page&statut=$statut");
|
||||
print " / Société";
|
||||
print "</TD>\n";
|
||||
|
||||
print "<td>";
|
||||
print_liste_field_titre("Date cotisation",$PHP_SELF,"t.cotisation","&page=$page&statut=$statut");
|
||||
@ -104,7 +109,11 @@ if ($result)
|
||||
$objp = $db->fetch_object( $i);
|
||||
$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";
|
||||
if ($objp->societe != ''){
|
||||
print "<TD><a href=\"fiche.php?rowid=$objp->rowid&action=edit\">".stripslashes($objp->prenom)." ".stripslashes($objp->nom)." / ".stripslashes($objp->societe)."</a></TD>\n";
|
||||
}else{
|
||||
print "<TD><a href=\"fiche.php?rowid=$objp->rowid&action=edit\">".stripslashes($objp->prenom)." ".stripslashes($objp->nom)."</a></TD>\n";
|
||||
}
|
||||
print "<TD>";
|
||||
if ($objp->cotisation == 'yes')
|
||||
{
|
||||
|
||||
@ -297,14 +297,31 @@ function print_barre_liste($titre, $page, $file, $options='', $sortfield='', $so
|
||||
$options .= "&sortorder=$sortorder";
|
||||
}
|
||||
|
||||
|
||||
// affichage des fleches de navigation
|
||||
print_fleche_navigation($page,$file,$options);
|
||||
/*
|
||||
if ($page > 0)
|
||||
{
|
||||
print '<a href="'.$file.'?page='.($page-1).$options.'"><img alt="Page précédente" src="/theme/'.$conf->theme.'/img/1leftarrow.png" border="0"></a>';
|
||||
}
|
||||
print '<a href="'.$file.'?page='.($page+1).$options.'"><img alt="Page suivante" src="/theme/'.$conf->theme.'/img/1rightarrow.png" border="0"></a>';
|
||||
*/
|
||||
print '</td></tr></table><p>';
|
||||
}
|
||||
|
||||
/*
|
||||
* fonction servant a afficher les fleches de navigation dans les
|
||||
* pages de liste
|
||||
*/
|
||||
function print_fleche_navigation($page,$file,$options='')
|
||||
{
|
||||
global $conf;
|
||||
if ($page > 0)
|
||||
{
|
||||
print '<a href="'.$file.'?page='.($page-1).$options.'"><img alt="Page précédente" src="/theme/'.$conf->theme.'/img/1leftarrow.png" border="0"></a>';
|
||||
}
|
||||
print '<a href="'.$file.'?page='.($page+1).$options.'"><img alt="Page suivante" src="/theme/'.$conf->theme.'/img/1rightarrow.png" border="0"></a>';
|
||||
}
|
||||
/*
|
||||
*
|
||||
*
|
||||
|
||||
@ -50,8 +50,10 @@ INSERT INTO llx_const (name, value, type, note) VALUES ('MAIN_MAIL_RESIL','Votre
|
||||
INSERT INTO llx_const (name, value, type, note) VALUES ('MAIN_MAIL_VALID','MAIN\r\nVotre adhesion vient d\'etre validee. \r\nVoici le rappel de vos coordonnees (toute information erronee entrainera la non validation de votre inscription) :\r\n\r\n%INFO%\r\n\r\nVous pouvez a tout moment, grace a votre login et mot de passe, modifier vos coordonnees a l\'adresse suivante : \r\n%SERVEUR%public/adherents/','texte','Mail de validation');
|
||||
INSERT INTO llx_const (name, value, type, note) VALUES ('MAIN_MAIL_EDIT','Voici le rappel des coordonnees que vous avez modifiees (toute information erronee entrainera la non validation de votre inscription) :\r\n\r\n%INFO%\r\n\r\nVous pouvez a tout moment, grace a votre login et mot de passe, modifier vos coordonnees a l\'adresse suivante :\r\n%SERVEUR%public/adherents/','texte','Mail d\'edition');
|
||||
INSERT INTO llx_const (name, value, type, note) VALUES ('MAIN_MAIL_NEW','Merci de votre inscription. Votre adhesion devrait etre rapidement validee.\r\nVoici le rappel des coordonnees que vous avez rentrees (toute information erronee entrainera la non validation de votre inscription) :\r\n\r\n%INFO%\r\n\r\nVous pouvez a tout moment, grace a votre login et mot de passe, modifier vos coordonnees a l\'adresse suivante :\r\n%SERVEUR%public/adherents/','texte','Mail de nouvel inscription');
|
||||
INSERT INTO llx_const (name, value, type, note) VALUES ('MAIN_MAIL_COTIS','Bonjour %PRENOM%,\r\nMerci de votre inscription.\r\nCet email confirme que votre cotisation a ete recue et enregistree.\r\n\r\nVous pouvez a tout moment, grace a votre login et mot de passe, modifier vos coordonnees a l\'adresse suivante :\r\n%SERVEUR%public/adherents/','texte','Mail de validation de cotisation');
|
||||
INSERT INTO llx_const (name, value, type, note) VALUES ('MAIN_MAIL_VALID_SUBJECT','Votre adhésion a ete validée sur %SERVEUR%','chaine','sujet du mail de validation');
|
||||
INSERT INTO llx_const (name, value, type, note) VALUES ('MAIN_MAIL_RESIL_SUBJECT','Resiliation de votre adhesion sur %SERVEUR%','chaine','sujet du mail de resiliation');
|
||||
INSERT INTO llx_const (name, value, type, note) VALUES ('MAIN_MAIL_COTIS_SUBJECT','Recu de votre cotisation','chaine','sujet du mail de validation de cotisation');
|
||||
INSERT INTO llx_const (name, value, type, note) VALUES ('SIZE_LISTE_LIMIT','50','chaine','Taille des listes');
|
||||
INSERT INTO llx_const (name, value, type, note) VALUES ('MAIN_MAIL_NEW_SUBJECT','Bienvenue sur %SERVEUR%','chaine','Sujet du mail de nouvelle adhesion');
|
||||
INSERT INTO llx_const (name, value, type, note) VALUES ('MAIN_MAIL_EDIT_SUBJECT','Votre fiche a ete editee sur %SERVEUR%','chaine','Sujet du mail d\'edition');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user