From 883a0818bdac8f18318401f1f327ed6fe61048a6 Mon Sep 17 00:00:00 2001 From: jlb Date: Mon, 13 Jan 2003 17:39:28 +0000 Subject: [PATCH] suppression de code superflu --- htdocs/adherents/public/new.php | 265 -------------------------------- 1 file changed, 265 deletions(-) diff --git a/htdocs/adherents/public/new.php b/htdocs/adherents/public/new.php index 01a2ed415d1..5b9b99fc54b 100644 --- a/htdocs/adherents/public/new.php +++ b/htdocs/adherents/public/new.php @@ -84,8 +84,6 @@ print ''; /* ************************************************************************** */ -if ($action == 'create') { - $sql = "SELECT s.nom,s.idp, f.amount, f.total, f.facnumber"; $sql .= " FROM societe as s, llx_facture as f WHERE f.fk_soc = s.idp"; $sql .= " AND f.rowid = $facid"; @@ -145,269 +143,6 @@ if ($action == 'create') { print "\n"; -} -/* ************************************************************************** */ -/* */ -/* Edition de la fiche */ -/* */ -/* ************************************************************************** */ -if ($rowid > 0) -{ - - $adh = new Adherent($db); - $adh->id = $rowid; - $adh->fetch($rowid); - - print_titre("Edition de la fiche adhérent"); - - /* - * Confirmation de la suppression de l'adhérent - * - */ - - if ($action == 'delete') - { - - print '
'; - print ''; - print ''; - - print ''; - print "\n"; - - print '\n"; - 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 "
\n"; - } - - - /* - * Confirmation de la validation - * - */ - - if ($action == 'valid') - { - - print '
'; - print ''; - print ''; - - print ''; - - print '\n"; - 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 "
\n"; - } - - /* - * Confirmation de la Résiliation - * - */ - - if ($action == 'resign') - { - - print '
'; - print ''; - print ''; - - print ''; - - print '\n"; - 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 "
\n"; - } - - - print "
\n"; - print ''; - - print "\n"; - print ''; - - print ''; - - print ''; - - print ''; - - print ''; - - - print ''; - print ''; - print ''; - print ''; - print ''; - - print "
Type$adh->typeCommentaires
Personne'.$adh->morphy.' '; - 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.' 
\n"; - - - if ($user->admin) - { - - print "

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

\n"; - } - - /* - * - * Liste des cotisations - * - */ - $sql = "SELECT d.rowid, d.prenom, d.nom, d.societe, c.cotisation, ".$db->pdate("c.dateadh")." as dateadh"; - $sql .= " FROM llx_adherent as d, llx_cotisation as c"; - $sql .= " WHERE d.rowid = c.fk_adherent AND d.rowid=$rowid"; - - $result = $db->query($sql); - if ($result) - { - $num = $db->num_rows(); - $i = 0; - - print "\n"; - - print ''; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - - $var=True; - while ($i < $num) - { - $objp = $db->fetch_object( $i); - $var=!$var; - print ""; - print "\n"; - print ''; - print ""; - $i++; - } - print "
CotisationsDateMontant
 ".strftime("%d %B %Y",$objp->dateadh)."'.price($objp->cotisation).'
"; - } - else - { - print $sql; - print $db->error(); - } - - /* - * Ajout d'une nouvelle cotis - * - * - */ - if ($user->admin) - { - print '

'; - print ''; - print ''; - - print ''; - - print ''; - - print ''; - if ($adh->datefin < time()) - { - print ''; - - print ''; - - print ''; - - print ""; - print "\n"; - print ''; - print ''; - print '
'; - - print 'Fin adhésion'; - } - else - { - print ''; - } - print strftime("%d %B %Y",$adh->datefin).'  
Nouvelle adhésion
Date de cotisation\n"; - if ($adh->datefin > 0) - { - print_date_select($adh->datefin + (3600*24)); - } - else - { - print_date_select(); - } - print "
Mode de paiement\n"; - - $paiement = new Paiement($db); - - $paiement->select("modepaiement","crédit"); - - print " 
Cotisation euros
'; - print "
\n"; - } - - -} - $db->close(); llxFooter("Dernière modification $Date$ révision $Revision$");