diff --git a/htdocs/adherents/fiche.php b/htdocs/adherents/fiche.php index 7723341dfa4..8ff7d5a9a2f 100644 --- a/htdocs/adherents/fiche.php +++ b/htdocs/adherents/fiche.php @@ -113,47 +113,47 @@ if ($action == 'create') { } } print_titre("Nouvel adhérent"); - print "
"; - print ''; + print "\n"; + print '
\n'; - print ''; + print '\n'; $htmls = new Form($db); $adht = new AdherentType($db); print '"; + print "\n"; - print ''; + print '\n'; $morphys["phy"] = "Physique"; $morphys["mor"] = "Morale"; - print ""; + print "\n"; - print ''; + print '\n'; - print ''; + print '\n'; - print ''; - print ''; - print ''; - print ''; - print ''; + print '\n'; + print '\n'; + print '\n'; + print '\n'; + print '\n'; print ''; - print ""; + print "\n"; print "\n"; - print ''; + print '\n'; - print ''; + print '\n'; print "\n"; print "
Type'; $htmls->select_array("type", $adht->liste_array()); - print "Commentaires :
Commentaires :
Personne"; + print "
Personne\n"; $htmls->select_array("morphy", $morphys); - print "
Prénom
Prénom
Nom
Societe
Adresse'; - print '
CP Ville
Pays
Nom
Societe
Adresse\n'; + print '
CP Ville
Pays
Email
Date de cotisation"; + print "
Date de cotisation\n"; print_date_select(); - print "
Mode de paiement\n"; $paiement = new Paiement($db); @@ -162,9 +162,9 @@ if ($action == 'create') { print "
Cotisation euros
Cotisation euros
\n"; @@ -183,27 +183,106 @@ if ($rowid > 0) $adh->fetch($rowid); print_titre("Edition de la fiche adhérent"); - print "
"; - print ''; - print ""; - print ''; + /* + * Confirmation de la suppression de l'adhérent + * + */ - print ''; + if ($action == 'delete') + { - print ''; + print '\n'; + print '\n'; + print '
Type$adh->typeCommentaires
Personne'.$adh->morphy.' '; - print nl2br($adh->commentaire).' 
\n'; + + print '\n'; + print "\n"; + + print '\n"; + print '\n'; + print '
Supprimer un adhérent
La suppression d'un adhérent entraine la suppression de toutes ses cotisations !!!
Etes-vous sur de vouloir supprimer cet adhérent ?'; + $htmls = new Form($db); + + $htmls->selectyesno("confirm","no"); + + print "
\n'; + print "
\n"; + } - print 'Prénom'.$adh->prenom.' '; - print 'Nom'.$adh->nom.' '; + /* + * Confirmation de la validation + * + */ + + if ($action == 'valid') + { + + print '
\n'; + print '\n'; + print '\n'; + + print '\n'; + + print '\n"; + print '\n'; + print '
Valider un adhérent
Etes-vous sur de vouloir valider cet adhérent ?'; + $htmls = new Form($db); + + $htmls->selectyesno("confirm","no"); + + print "
\n'; + print "
\n"; + } + + /* + * Confirmation de la Résiliation + * + */ + + if ($action == 'resign') + { + + print '
\n'; + print '\n'; + print '\n'; + + print '\n'; + + print '\n"; + print '\n'; + print '
Résilier une adhésion
Etes-vous sur de vouloir résilier cette adhésion ?'; + $htmls = new Form($db); + + $htmls->selectyesno("confirm","no"); + + print "
\n'; + print "
\n"; + } + + + print "
\n"; + print '\n'; + + print "\n"; + print '\n'; + + print '\n'; + + print '\n'; + + print '\n'; + + print '\n'; - print ''; - print ''; - print ''; - print ''; - print ''; + print '\n'; + print '\n'; + print '\n'; + print '\n'; + print '\n'; print "
Type$adh->typeCommentaires
Personne'.$adh->morphy.' \n'; + print nl2br($adh->commentaire).' 
Prénom'.$adh->prenom.' 
Nom'.$adh->nom.' 
Société'.$adh->societe.' 
Adresse'.nl2br($adh->adresse).' 
CP Ville'.$adh->cp.' '.$adh->ville.' 
Pays'.$adh->pays.' 
Email'.$adh->email.' 
Société'.$adh->societe.' 
Adresse'.nl2br($adh->adresse).' 
CP Ville'.$adh->cp.' '.$adh->ville.' 
Pays'.$adh->pays.' 
Email'.$adh->email.' 
\n"; @@ -211,13 +290,13 @@ if ($rowid > 0) if ($user->admin) { - print "

"; + print "

\n"; /* * Case 1 */ - print ''; + print '\n'; /* * Case 2 @@ -225,32 +304,32 @@ if ($rowid > 0) if ($adh->statut < 1) { - print ""; + print "\n"; } else { - print ""; + print "\n"; } /* * Case 3 */ if ($adh->statut == 1) { - print ""; + print "\n"; } else { - print ""; + print "\n"; } /* * Case 4 */ - print ""; + print "\n"; - print "
[Editer][Editer][Valider l'adhésion][Valider l'adhésion]--[Résilier l'adhésion][Résilier l'adhésion]--[id&action=delete\">Supprimer][id&action=delete\">Supprimer]

"; + print "

\n"; } /* @@ -268,12 +347,12 @@ if ($rowid > 0) $num = $db->num_rows(); $i = 0; - print ""; + print "
\n"; - print ''; - print ""; - print ""; - print ""; + print '\n'; + print "\n"; + print "\n"; + print "\n"; print "\n"; $var=True; @@ -302,17 +381,17 @@ if ($rowid > 0) */ if ($user->admin) { - print ''; - print ''; - print '
CotisationsDateMontant
CotisationsDateMontant
'; + print '\n'; + print '\n'; + print '
\n'; - print ''; + print '\n'; print ''; + print '\n'; - print ''; + print '\n'; if ($adh->datefin < time()) { print ''; + print strftime("%d %B %Y",$adh->datefin).' \n'; - print ''; + print '\n'; - print ''; + print '\n'; - print "\n"; - print ''; - print ''; - print '
'; - print 'Fin adhésionFin adhésion'; @@ -321,13 +400,13 @@ if ($rowid > 0) { print ''; } - print strftime("%d %B %Y",$adh->datefin).'  
 
Nouvelle adhésion
Nouvelle adhésion
Date de cotisation"; + print "
Date de cotisation\n"; if ($adh->datefin > 0) { print_date_select($adh->datefin + (3600*24)); @@ -344,88 +423,12 @@ if ($rowid > 0) $paiement->select("modepaiement","crédit"); print " 
Cotisation euros
'; - print ""; + print 'Cotisation euros\n'; + print '\n'; + print '\n'; + print "\n"; } - /* - * Confirmation de la suppression de l'adhérent - * - */ - - if ($action == 'delete') - { - - print '

'; - print ''; - print ''; - - print ''; - print ""; - - print '"; - print ''; - print '
Supprimer un adhérent
La suppression d'un adhérent entraine la suppression de toutes ses cotisations !!!
Etes-vous sur de vouloir supprimer cet adhérent ?'; - $htmls = new Form($db); - - $htmls->selectyesno("confirm","no"); - - print "
'; - print "
"; - } - - - /* - * Confirmation de la validation - * - */ - - if ($action == 'valid') - { - - print '
'; - print ''; - print ''; - - print ''; - - print '"; - print ''; - print '
Valider un adhérent
Etes-vous sur de vouloir valider cet adhérent ?'; - $htmls = new Form($db); - - $htmls->selectyesno("confirm","no"); - - print "
'; - print "
"; - } - - /* - * Confirmation de la Résiliation - * - */ - - if ($action == 'resign') - { - - print '
'; - print ''; - print ''; - - print ''; - - print '"; - print ''; - print '
Résilier une adhésion
Etes-vous sur de vouloir résilier cette adhésion ?'; - $htmls = new Form($db); - - $htmls->selectyesno("confirm","no"); - - print "
'; - print "
"; - } }