- modification du path d'inclusion
- deplacement des classes adherents
This commit is contained in:
parent
849ecc512d
commit
3813c7fb6f
1134
htdocs/adherents/adherent.class.php
Normal file
1134
htdocs/adherents/adherent.class.php
Normal file
File diff suppressed because it is too large
Load Diff
216
htdocs/adherents/adherent_type.class.php
Normal file
216
htdocs/adherents/adherent_type.class.php
Normal file
@ -0,0 +1,216 @@
|
||||
<?PHP
|
||||
/* Copyright (C) 2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* $Id$
|
||||
* $Source$
|
||||
*
|
||||
*/
|
||||
|
||||
class AdherentType
|
||||
{
|
||||
var $id;
|
||||
var $libelle;
|
||||
var $statut;
|
||||
var $cotisation; // Soumis à la cotisation
|
||||
var $errorstr;
|
||||
var $mail_valid; // mail envoye lors de la validation
|
||||
var $commentaire; // commentaire
|
||||
var $vote; // droit de vote ?
|
||||
/*
|
||||
*
|
||||
*
|
||||
*/
|
||||
Function AdherentType($DB, $soc_idp="")
|
||||
{
|
||||
$this->db = $DB ;
|
||||
$this->statut = 1;
|
||||
}
|
||||
/*
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
Function print_error_list()
|
||||
{
|
||||
$num = sizeof($this->errorstr);
|
||||
for ($i = 0 ; $i < $num ; $i++)
|
||||
{
|
||||
print "<li>" . $this->errorstr[$i];
|
||||
}
|
||||
}
|
||||
/*
|
||||
*
|
||||
*
|
||||
*/
|
||||
/*
|
||||
* Création
|
||||
*
|
||||
*
|
||||
*/
|
||||
Function create($userid)
|
||||
{
|
||||
/*
|
||||
* Insertion dans la base
|
||||
*/
|
||||
|
||||
$sql = "INSERT INTO llx_adherent_type (statut)";
|
||||
$sql .= " VALUES ($this->statut)";
|
||||
|
||||
$result = $this->db->query($sql);
|
||||
|
||||
if ($result)
|
||||
{
|
||||
$this->id = $this->db->last_insert_id();
|
||||
return $this->update();
|
||||
}
|
||||
else
|
||||
{
|
||||
print $this->db->error();
|
||||
print "<h2><br>$sql<br></h2>";
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Mise à jour
|
||||
*
|
||||
*
|
||||
*/
|
||||
Function update()
|
||||
{
|
||||
|
||||
$sql = "UPDATE llx_adherent_type SET ";
|
||||
$sql .= "libelle = '".$this->libelle ."'";
|
||||
$sql .= ",statut=".$this->statut;
|
||||
$sql .= ",cotisation='".$this->cotisation."'";
|
||||
$sql .= ",note='".$this->commentaire."'";
|
||||
$sql .= ",vote='".$this->vote."'";
|
||||
$sql .= ",mail_valid='".$this->mail_valid."'";
|
||||
|
||||
$sql .= " WHERE rowid = $this->id";
|
||||
|
||||
$result = $this->db->query($sql);
|
||||
|
||||
if ($result)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
print $this->db->error();
|
||||
print "<h2><br>$sql<br></h2>";
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Suppression
|
||||
*
|
||||
*/
|
||||
Function delete($rowid)
|
||||
|
||||
{
|
||||
|
||||
$sql = "DELETE FROM llx_adherent_type WHERE rowid = $rowid";
|
||||
|
||||
if ( $this->db->query( $sql) )
|
||||
{
|
||||
if ( $this->db->affected_rows() )
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
print "Err : ".$this->db->error();
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
/*
|
||||
* Fetch
|
||||
*
|
||||
*
|
||||
*/
|
||||
Function fetch($rowid)
|
||||
{
|
||||
$sql = "SELECT *";
|
||||
$sql .= " FROM llx_adherent_type as d";
|
||||
$sql .= " WHERE d.rowid = $rowid";
|
||||
|
||||
if ( $this->db->query( $sql) )
|
||||
{
|
||||
if ($this->db->num_rows())
|
||||
{
|
||||
|
||||
$obj = $this->db->fetch_object(0);
|
||||
|
||||
$this->id = $obj->rowid;
|
||||
$this->libelle = $obj->libelle;
|
||||
$this->statut = $obj->statut;
|
||||
$this->cotisation = $obj->cotisation;
|
||||
$this->mail_valid = $obj->mail_valid;
|
||||
$this->commentaire = $obj->note;
|
||||
$this->vote = $obj->vote;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
print $this->db->error();
|
||||
}
|
||||
|
||||
}
|
||||
/*
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
Function liste_array()
|
||||
{
|
||||
$projets = array();
|
||||
|
||||
$sql = "SELECT rowid, libelle FROM llx_adherent_type";
|
||||
|
||||
if ($this->db->query($sql) )
|
||||
{
|
||||
$nump = $this->db->num_rows();
|
||||
|
||||
if ($nump)
|
||||
{
|
||||
$i = 0;
|
||||
while ($i < $nump)
|
||||
{
|
||||
$obj = $this->db->fetch_object($i);
|
||||
|
||||
$projets[$obj->rowid] = $obj->libelle;
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
return $projets;
|
||||
}
|
||||
else
|
||||
{
|
||||
print $this->db->error();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
464
htdocs/adherents/cotisation.class.php
Normal file
464
htdocs/adherents/cotisation.class.php
Normal file
@ -0,0 +1,464 @@
|
||||
<?PHP
|
||||
/* Copyright (C) 2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* $Id$
|
||||
* $Source$
|
||||
*
|
||||
*/
|
||||
|
||||
class Cotisation
|
||||
{
|
||||
var $id;
|
||||
var $db;
|
||||
var $date;
|
||||
var $amount;
|
||||
var $prenom;
|
||||
var $nom;
|
||||
var $societe;
|
||||
var $adresse;
|
||||
var $cp;
|
||||
var $ville;
|
||||
var $pays;
|
||||
var $email;
|
||||
var $public;
|
||||
var $projetid;
|
||||
var $modepaiement;
|
||||
var $modepaiementid;
|
||||
var $commentaire;
|
||||
var $statut;
|
||||
|
||||
var $projet;
|
||||
var $errorstr;
|
||||
/*
|
||||
*
|
||||
*
|
||||
*/
|
||||
Function Cotisation($DB, $soc_idp="")
|
||||
{
|
||||
$this->db = $DB ;
|
||||
$this->modepaiementid = 0;
|
||||
}
|
||||
/*
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
Function print_error_list()
|
||||
{
|
||||
$num = sizeof($this->errorstr);
|
||||
for ($i = 0 ; $i < $num ; $i++)
|
||||
{
|
||||
print "<li>" . $this->errorstr[$i];
|
||||
}
|
||||
}
|
||||
/*
|
||||
*
|
||||
*
|
||||
*/
|
||||
Function check($minimum=0)
|
||||
{
|
||||
$err = 0;
|
||||
|
||||
if (strlen(trim($this->societe)) == 0)
|
||||
{
|
||||
if ((strlen(trim($this->nom)) + strlen(trim($this->prenom))) == 0)
|
||||
{
|
||||
$error_string[$err] = "Vous devez saisir vos nom et prénom ou le nom de votre société.";
|
||||
$err++;
|
||||
}
|
||||
}
|
||||
|
||||
if (strlen(trim($this->adresse)) == 0)
|
||||
{
|
||||
$error_string[$err] = "L'adresse saisie est invalide";
|
||||
$err++;
|
||||
}
|
||||
|
||||
if (strlen(trim($this->cp)) == 0)
|
||||
{
|
||||
$error_string[$err] = "Le code postal saisi est invalide";
|
||||
$err++;
|
||||
}
|
||||
|
||||
if (strlen(trim($this->ville)) == 0)
|
||||
{
|
||||
$error_string[$err] = "La ville saisie est invalide";
|
||||
$err++;
|
||||
}
|
||||
|
||||
if (strlen(trim($this->email)) == 0)
|
||||
{
|
||||
$error_string[$err] = "L'email saisi est invalide";
|
||||
$err++;
|
||||
}
|
||||
|
||||
$this->amount = trim($this->amount);
|
||||
|
||||
$map = range(0,9);
|
||||
for ($i = 0; $i < strlen($this->amount) ; $i++)
|
||||
{
|
||||
if (!isset($map[substr($this->amount, $i, 1)] ))
|
||||
{
|
||||
$error_string[$err] = "Le montant du don contient un/des caractère(s) invalide(s)";
|
||||
$err++;
|
||||
$amount_invalid = 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (! $amount_invalid)
|
||||
{
|
||||
if ($this->amount == 0)
|
||||
{
|
||||
$error_string[$err] = "Le montant du don est null";
|
||||
$err++;
|
||||
}
|
||||
else
|
||||
{
|
||||
if ($this->amount < $minimum && $minimum > 0)
|
||||
{
|
||||
$error_string[$err] = "Le montant minimum du don est de $minimum";
|
||||
$err++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Return errors
|
||||
*
|
||||
*/
|
||||
|
||||
if ($err)
|
||||
{
|
||||
$this->errorstr = $error_string;
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
}
|
||||
/*
|
||||
* Création
|
||||
*
|
||||
*
|
||||
*/
|
||||
Function create($userid)
|
||||
{
|
||||
/*
|
||||
* Insertion dans la base
|
||||
*/
|
||||
|
||||
$this->date = $this->db->idate($this->date);
|
||||
|
||||
$sql = "INSERT INTO llx_don (datec, amount, fk_paiement,prenom, nom, societe,adresse, cp, ville, pays, public, fk_don_projet, note, fk_user_author, datedon, email)";
|
||||
$sql .= " VALUES (now(), $this->amount, $this->modepaiementid,'$this->prenom','$this->nom','$this->societe','$this->adresse', '$this->cp','$this->ville','$this->pays',$this->public, $this->projetid, '$this->commentaire', $userid, '$this->date','$this->email')";
|
||||
|
||||
$result = $this->db->query($sql);
|
||||
|
||||
if ($result)
|
||||
{
|
||||
return $this->db->last_insert_id();
|
||||
}
|
||||
else
|
||||
{
|
||||
print $this->db->error();
|
||||
print "<h2><br>$sql<br></h2>";
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Mise à jour
|
||||
*
|
||||
*
|
||||
*/
|
||||
Function update($userid)
|
||||
{
|
||||
|
||||
$this->date = $this->db->idate($this->date);
|
||||
|
||||
$sql = "UPDATE llx_don SET ";
|
||||
$sql .= "amount = " . $this->amount;
|
||||
$sql .= ",fk_paiement = ".$this->modepaiementid;
|
||||
$sql .= ",prenom = '".$this->prenom ."'";
|
||||
$sql .= ",nom='".$this->nom."'";
|
||||
$sql .= ",societe='".$this->societe."'";
|
||||
$sql .= ",adresse='".$this->adresse."'";
|
||||
$sql .= ",cp='".$this->cp."'";
|
||||
$sql .= ",ville='".$this->ville."'";
|
||||
$sql .= ",pays='".$this->pays."'";
|
||||
$sql .= ",public=".$this->public;
|
||||
$sql .= ",fk_don_projet=".$this->projetid;
|
||||
$sql .= ",note='".$this->commentaire."'";
|
||||
$sql .= ",datedon='".$this->date."'";
|
||||
$sql .= ",email='".$this->email."'";
|
||||
$sql .= ",fk_statut=".$this->statut;
|
||||
|
||||
$sql .= " WHERE rowid = $this->id";
|
||||
|
||||
$result = $this->db->query($sql);
|
||||
|
||||
if ($result)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
print $this->db->error();
|
||||
print "<h2><br>$sql<br></h2>";
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Suppression du don
|
||||
*
|
||||
*/
|
||||
Function delete($rowid)
|
||||
|
||||
{
|
||||
|
||||
$sql = "DELETE FROM llx_don WHERE rowid = $rowid AND fk_statut = 0;";
|
||||
|
||||
if ( $this->db->query( $sql) )
|
||||
{
|
||||
if ( $this->db->affected_rows() )
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
print "Err : ".$this->db->error();
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
/*
|
||||
* Fetch
|
||||
*
|
||||
*
|
||||
*/
|
||||
Function fetch($rowid)
|
||||
{
|
||||
$sql = "SELECT d.rowid, ".$this->db->pdate("d.datedon")." as datedon, d.prenom, d.nom, d.societe, d.amount, p.libelle as projet, d.fk_statut, d.adresse, d.cp, d.ville, d.pays, d.public, d.amount, d.fk_paiement, d.note, cp.libelle, d.email, d.fk_don_projet";
|
||||
$sql .= " FROM llx_don as d, llx_don_projet as p, c_paiement as cp";
|
||||
$sql .= " WHERE p.rowid = d.fk_don_projet AND cp.id = d.fk_paiement AND d.rowid = $rowid";
|
||||
|
||||
if ( $this->db->query( $sql) )
|
||||
{
|
||||
if ($this->db->num_rows())
|
||||
{
|
||||
|
||||
$obj = $this->db->fetch_object(0);
|
||||
|
||||
$this->id = $obj->rowid;
|
||||
$this->date = $obj->datedon;
|
||||
$this->prenom = stripslashes($obj->prenom);
|
||||
$this->nom = stripslashes($obj->nom);
|
||||
$this->societe = stripslashes($obj->societe);
|
||||
$this->statut = $obj->fk_statut;
|
||||
$this->adresse = stripslashes($obj->adresse);
|
||||
$this->cp = stripslashes($obj->cp);
|
||||
$this->ville = stripslashes($obj->ville);
|
||||
$this->email = stripslashes($obj->email);
|
||||
$this->pays = stripslashes($obj->pays);
|
||||
$this->projet = $obj->projet;
|
||||
$this->projetid = $obj->fk_don_projet;
|
||||
$this->public = $obj->public;
|
||||
$this->modepaiementid = $obj->fk_paiement;
|
||||
$this->modepaiement = $obj->libelle;
|
||||
$this->amount = $obj->amount;
|
||||
$this->commentaire = stripslashes($obj->note);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
print $this->db->error();
|
||||
}
|
||||
|
||||
}
|
||||
/*
|
||||
* Suppression du don
|
||||
*
|
||||
*/
|
||||
Function valid_promesse($rowid, $userid)
|
||||
{
|
||||
|
||||
$sql = "UPDATE llx_don SET fk_statut = 1, fk_user_valid = $userid WHERE rowid = $rowid AND fk_statut = 0;";
|
||||
|
||||
if ( $this->db->query( $sql) )
|
||||
{
|
||||
if ( $this->db->affected_rows() )
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
print "Err : ".$this->db->error();
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
/*
|
||||
* Classé comme payé, le don a été recu
|
||||
*
|
||||
*/
|
||||
Function set_paye($rowid, $modepaiement='')
|
||||
{
|
||||
$sql = "UPDATE llx_don SET fk_statut = 2";
|
||||
|
||||
if ($modepaiement)
|
||||
{
|
||||
$sql .= ", fk_paiement=$modepaiement";
|
||||
}
|
||||
$sql .= " WHERE rowid = $rowid AND fk_statut = 1;";
|
||||
|
||||
if ( $this->db->query( $sql) )
|
||||
{
|
||||
if ( $this->db->affected_rows() )
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
print "Err : ".$this->db->error();
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
/*
|
||||
* Classé comme payé, le don a été recu
|
||||
*
|
||||
*/
|
||||
Function set_commentaire($rowid, $commentaire='')
|
||||
{
|
||||
$sql = "UPDATE llx_don SET note = '$commentaire'";
|
||||
|
||||
$sql .= " WHERE rowid = $rowid ;";
|
||||
|
||||
if ( $this->db->query( $sql) )
|
||||
{
|
||||
if ( $this->db->affected_rows() )
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
print "Err : ".$this->db->error();
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
/*
|
||||
* Classé comme encaissé
|
||||
*
|
||||
*/
|
||||
Function set_encaisse($rowid)
|
||||
{
|
||||
|
||||
$sql = "UPDATE llx_don SET fk_statut = 3 WHERE rowid = $rowid AND fk_statut = 2;";
|
||||
|
||||
if ( $this->db->query( $sql) )
|
||||
{
|
||||
if ( $this->db->affected_rows() )
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
print "Err : ".$this->db->error();
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
/*
|
||||
* Somme des dons encaissés
|
||||
*/
|
||||
Function sum_actual()
|
||||
{
|
||||
$sql = "SELECT sum(amount)";
|
||||
$sql .= " FROM llx_don";
|
||||
$sql .= " WHERE fk_statut = 3";
|
||||
|
||||
if ( $this->db->query( $sql) )
|
||||
{
|
||||
$row = $this->db->fetch_row(0);
|
||||
|
||||
return $row[0];
|
||||
|
||||
}
|
||||
}
|
||||
/* Paiement recu en attente d'encaissement
|
||||
*
|
||||
*
|
||||
*/
|
||||
Function sum_pending()
|
||||
{
|
||||
$sql = "SELECT sum(amount)";
|
||||
$sql .= " FROM llx_don";
|
||||
$sql .= " WHERE fk_statut = 2";
|
||||
|
||||
if ( $this->db->query( $sql) )
|
||||
{
|
||||
$row = $this->db->fetch_row(0);
|
||||
|
||||
return $row[0];
|
||||
|
||||
}
|
||||
}
|
||||
/*
|
||||
* Somme des promesses de dons validées
|
||||
*
|
||||
*/
|
||||
Function sum_intent()
|
||||
{
|
||||
$sql = "SELECT sum(amount)";
|
||||
$sql .= " FROM llx_don";
|
||||
$sql .= " WHERE fk_statut = 1";
|
||||
|
||||
if ( $this->db->query( $sql) )
|
||||
{
|
||||
$row = $this->db->fetch_row(0);
|
||||
|
||||
return $row[0];
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
@ -19,10 +19,10 @@
|
||||
* $Source$
|
||||
*
|
||||
*/
|
||||
require($GLOBALS["DOCUMENT_ROOT"]."/adherents/pre.inc.php");
|
||||
require("../adherent.class.php");
|
||||
require("../adherent_type.class.php");
|
||||
require($GLOBALS["DOCUMENT_ROOT"]."/adherents/adherent_options.class.php");
|
||||
require("./pre.inc.php");
|
||||
require(DOL_DOCUMENT_ROOT."/adherents/adherent.class.php");
|
||||
require(DOL_DOCUMENT_ROOT."/adherents/adherent_type.class.php");
|
||||
require(DOL_DOCUMENT_ROOT."/adherents/adherent_options.class.php");
|
||||
|
||||
//$db = new Db();
|
||||
$adho = new AdherentOptions($db);
|
||||
|
||||
@ -20,13 +20,13 @@
|
||||
* $Source$
|
||||
*
|
||||
*/
|
||||
require($GLOBALS["DOCUMENT_ROOT"]."/adherents/pre.inc.php");
|
||||
require($GLOBALS["DOCUMENT_ROOT"]."/adherent.class.php");
|
||||
require($GLOBALS["DOCUMENT_ROOT"]."/adherent_type.class.php");
|
||||
require($GLOBALS["DOCUMENT_ROOT"]."/adherents/adherent_options.class.php");
|
||||
require($GLOBALS["DOCUMENT_ROOT"]."/cotisation.class.php");
|
||||
require($GLOBALS["DOCUMENT_ROOT"]."/paiement.class.php");
|
||||
require($GLOBALS["DOCUMENT_ROOT"]."/adherents/XML-RPC.functions.php");
|
||||
require("./pre.inc.php");
|
||||
require(DOL_DOCUMENT_ROOT."/adherents/adherent.class.php");
|
||||
require(DOL_DOCUMENT_ROOT."/adherents/adherent_type.class.php");
|
||||
require(DOL_DOCUMENT_ROOT."/adherents/adherent_options.class.php");
|
||||
require(DOL_DOCUMENT_ROOT."/adherents/cotisation.class.php");
|
||||
require(DOL_DOCUMENT_ROOT."/paiement.class.php");
|
||||
require(DOL_DOCUMENT_ROOT."/adherents/XML-RPC.functions.php");
|
||||
|
||||
//$db = new Db();
|
||||
$adho = new AdherentOptions($db);
|
||||
|
||||
@ -20,15 +20,9 @@
|
||||
* $Source$
|
||||
*
|
||||
*/
|
||||
require($GLOBALS["DOCUMENT_ROOT"]."/adherents/pre.inc.php");
|
||||
//require("../adherent.class.php");
|
||||
//require("../adherent_type.class.php");
|
||||
require($GLOBALS["DOCUMENT_ROOT"]."/adherents/adherent_options.class.php");
|
||||
//require("../cotisation.class.php");
|
||||
//require("../paiement.class.php");
|
||||
require("./pre.inc.php");
|
||||
require(DOL_DOCUMENT_ROOT."/adherents/adherent_options.class.php");
|
||||
|
||||
|
||||
//$db = new Db();
|
||||
$adho = new AdherentOptions($db);
|
||||
$form = new Form($db);
|
||||
|
||||
|
||||
@ -19,7 +19,7 @@
|
||||
* $Source$
|
||||
*
|
||||
*/
|
||||
require($GLOBALS["DOCUMENT_ROOT"]."/main.inc.php3");
|
||||
require("../main.inc.php3");
|
||||
|
||||
function llxHeader($head = "") {
|
||||
global $user, $conf;
|
||||
|
||||
@ -21,14 +21,8 @@
|
||||
*
|
||||
*/
|
||||
require("./pre.inc.php");
|
||||
require($GLOBALS["DOCUMENT_ROOT"]."/adherent.class.php");
|
||||
require($GLOBALS["DOCUMENT_ROOT"]."/adherent_type.class.php");
|
||||
//require($GLOBALS["DOCUMENT_ROOT"]."/cotisation.class.php");
|
||||
//require($GLOBALS["DOCUMENT_ROOT"]."/paiement.class.php");
|
||||
|
||||
|
||||
//$db = new Db();
|
||||
|
||||
require(DOL_DOCUMENT_ROOT."/adherents/adherent.class.php");
|
||||
require(DOL_DOCUMENT_ROOT."/adherents/adherent_type.class.php");
|
||||
|
||||
if ($HTTP_POST_VARS["action"] == 'add' && $user->admin)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user