Skip to content
Snippets Groups Projects
Commit 6b5ff9a0 authored by Rodolphe Quiedeville's avatar Rodolphe Quiedeville
Browse files

*** empty log message ***

parent 3bbbc5dd
Branches
Tags
No related merge requests found
...@@ -32,6 +32,7 @@ class Adherent ...@@ -32,6 +32,7 @@ class Adherent
var $ville; var $ville;
var $pays; var $pays;
var $typeid; var $typeid;
var $morphy;
var $email; var $email;
var $public; var $public;
var $commentaire; var $commentaire;
...@@ -200,6 +201,7 @@ class Adherent ...@@ -200,6 +201,7 @@ class Adherent
$sql .= ",email='".$this->email."'"; $sql .= ",email='".$this->email."'";
$sql .= ",statut=".$this->statut; $sql .= ",statut=".$this->statut;
$sql .= ",fk_adherent_type=".$this->typeid; $sql .= ",fk_adherent_type=".$this->typeid;
$sql .= ",morphy='".$this->morphy."'";
$sql .= " WHERE rowid = $this->id"; $sql .= " WHERE rowid = $this->id";
...@@ -257,7 +259,7 @@ class Adherent ...@@ -257,7 +259,7 @@ class Adherent
*/ */
Function fetch($rowid) Function fetch($rowid)
{ {
$sql = "SELECT d.rowid, d.prenom, d.nom, d.societe, d.statut, d.adresse, d.cp, d.ville, d.pays, d.note, d.email, d.fk_adherent_type"; $sql = "SELECT d.rowid, d.prenom, d.nom, d.societe, d.statut, d.adresse, d.cp, d.ville, d.pays, d.note, d.email, d.fk_adherent_type, d.morphy";
$sql .= ",".$this->db->pdate("d.datefin")." as datefin"; $sql .= ",".$this->db->pdate("d.datefin")." as datefin";
$sql .= " FROM llx_adherent as d"; $sql .= " FROM llx_adherent as d";
$sql .= " WHERE d.rowid = $rowid"; $sql .= " WHERE d.rowid = $rowid";
...@@ -283,6 +285,7 @@ class Adherent ...@@ -283,6 +285,7 @@ class Adherent
$this->pays = stripslashes($obj->pays); $this->pays = stripslashes($obj->pays);
$this->datefin = $obj->datefin; $this->datefin = $obj->datefin;
$this->commentaire = stripslashes($obj->note); $this->commentaire = stripslashes($obj->note);
$this->cp = $obj->morphy;
} }
} }
else else
......
...@@ -36,7 +36,7 @@ $pagenext = $page + 1; ...@@ -36,7 +36,7 @@ $pagenext = $page + 1;
$sql = "SELECT d.rowid, d.prenom, d.nom, d.societe, ".$db->pdate("d.datefin")." as datefin"; $sql = "SELECT d.rowid, d.prenom, d.nom, d.societe, ".$db->pdate("d.datefin")." as datefin";
$sql .= " , d.email, t.libelle as type"; $sql .= " , d.email, t.libelle as type, d.morphy";
$sql .= " FROM llx_adherent as d, llx_adherent_type as t"; $sql .= " FROM llx_adherent as d, llx_adherent_type as t";
$sql .= " WHERE d.fk_adherent_type = t.rowid"; $sql .= " WHERE d.fk_adherent_type = t.rowid";
$sql .= " ORDER BY $sortfield $sortorder " . $db->plimit($conf->liste_limit, $offset); $sql .= " ORDER BY $sortfield $sortorder " . $db->plimit($conf->liste_limit, $offset);
...@@ -55,6 +55,7 @@ if ($result) ...@@ -55,6 +55,7 @@ if ($result)
print "<td>Date</td>"; print "<td>Date</td>";
print "<td>Email</td>"; print "<td>Email</td>";
print "<td>Type</td>"; print "<td>Type</td>";
print "<td>Personne</td>";
print "</TR>\n"; print "</TR>\n";
$var=True; $var=True;
...@@ -67,6 +68,7 @@ if ($result) ...@@ -67,6 +68,7 @@ if ($result)
print "<TD><a href=\"fiche.php?rowid=$objp->rowid&action=edit\">".strftime("%d %B %Y",$objp->datefin)."</a></td>\n"; print "<TD><a href=\"fiche.php?rowid=$objp->rowid&action=edit\">".strftime("%d %B %Y",$objp->datefin)."</a></td>\n";
print "<TD>$objp->email</TD>\n"; print "<TD>$objp->email</TD>\n";
print "<TD>$objp->type</TD>\n"; print "<TD>$objp->type</TD>\n";
print "<TD>$objp->morphy</TD>\n";
print "</tr>"; print "</tr>";
$i++; $i++;
} }
......
...@@ -52,8 +52,8 @@ delete from llx_user; ...@@ -52,8 +52,8 @@ delete from llx_user;
insert into llx_user (name,firstname,code,login,pass,module_comm,module_compta,admin,webcal_login) insert into llx_user (name,firstname,code,login,pass,module_comm,module_compta,admin,webcal_login)
values ('Quiedeville','Rodolphe','RQ','rodo','CRnN0Tam/s7z.',1,1,1,'rodo'); values ('Quiedeville','Rodolphe','RQ','rodo','CRnN0Tam/s7z.',1,1,1,'rodo');
insert into llx_user (name,firstname,code,login,pass,module_comm,module_compta,webcal_login) insert into llx_user (name,firstname,code,login,pass,module_comm,module_compta,webcal_login,admin)
values ('demo','demo','DEMO','demo','demo',1,0,'demo'); values ('demo','demo','DEMO','demo','demo',1,0,'demo',1);
insert into llx_user (name,firstname,code,login,pass,module_comm,module_compta,webcal_login) insert into llx_user (name,firstname,code,login,pass,module_comm,module_compta,webcal_login)
values ('demo1','demo1','DM1','demo1','demo',1,0,'demo1'); values ('demo1','demo1','DM1','demo1','demo',1,0,'demo1');
......
...@@ -28,7 +28,9 @@ create table llx_adherent ...@@ -28,7 +28,9 @@ create table llx_adherent
tms timestamp, tms timestamp,
statut smallint NOT NULL DEFAULT 0, statut smallint NOT NULL DEFAULT 0,
fk_adherent_type smallint, fk_adherent_type smallint,
datec datetime, morphy enum('mor','phy') NOT NULL, -- personne morale / personne physique
datevalid datetime, -- date de validation
datec datetime, -- date de creation
prenom varchar(50), prenom varchar(50),
nom varchar(50), nom varchar(50),
societe varchar(50), societe varchar(50),
...@@ -38,6 +40,7 @@ create table llx_adherent ...@@ -38,6 +40,7 @@ create table llx_adherent
pays varchar(50), pays varchar(50),
email varchar(255), email varchar(255),
fk_user_author integer NOT NULL, fk_user_author integer NOT NULL,
fk_user_mod integer NOT NULL,
fk_user_valid integer NOT NULL, fk_user_valid integer NOT NULL,
datefin datetime NOT NULL, -- date de fin de validit de la cotisation datefin datetime NOT NULL, -- date de fin de validit de la cotisation
note text note text
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment