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 '\n";
- }
-
-
- /*
- * Confirmation de la validation
- *
- */
-
- if ($action == 'valid')
- {
-
- print '\n";
- }
-
- /*
- * Confirmation de la Résiliation
- *
- */
-
- if ($action == 'resign')
- {
-
- print '\n";
- }
-
-
- print " \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 "| Cotisations | \n";
- print "Date | \n";
- print "Montant | \n";
- print " \n";
-
- $var=True;
- while ($i < $num)
- {
- $objp = $db->fetch_object( $i);
- $var=!$var;
- print "| | ";
- print "".strftime("%d %B %Y",$objp->dateadh)." | \n";
- print ''.price($objp->cotisation).' | ';
- print " ";
- $i++;
- }
- print " ";
- }
- else
- {
- print $sql;
- print $db->error();
- }
-
- /*
- * Ajout d'une nouvelle cotis
- *
- *
- */
- if ($user->admin)
- {
- print '\n";
- }
-
-
-}
-
$db->close();
llxFooter("Dernière modification $Date$ révision $Revision$");
|