*** empty log message ***
This commit is contained in:
parent
3bbbc5dd65
commit
6b5ff9a04e
@ -32,6 +32,7 @@ class Adherent
|
||||
var $ville;
|
||||
var $pays;
|
||||
var $typeid;
|
||||
var $morphy;
|
||||
var $email;
|
||||
var $public;
|
||||
var $commentaire;
|
||||
@ -200,6 +201,7 @@ class Adherent
|
||||
$sql .= ",email='".$this->email."'";
|
||||
$sql .= ",statut=".$this->statut;
|
||||
$sql .= ",fk_adherent_type=".$this->typeid;
|
||||
$sql .= ",morphy='".$this->morphy."'";
|
||||
|
||||
$sql .= " WHERE rowid = $this->id";
|
||||
|
||||
@ -257,7 +259,7 @@ class Adherent
|
||||
*/
|
||||
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 .= " FROM llx_adherent as d";
|
||||
$sql .= " WHERE d.rowid = $rowid";
|
||||
@ -283,6 +285,7 @@ class Adherent
|
||||
$this->pays = stripslashes($obj->pays);
|
||||
$this->datefin = $obj->datefin;
|
||||
$this->commentaire = stripslashes($obj->note);
|
||||
$this->cp = $obj->morphy;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
@ -36,7 +36,7 @@ $pagenext = $page + 1;
|
||||
|
||||
|
||||
$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 .= " WHERE d.fk_adherent_type = t.rowid";
|
||||
$sql .= " ORDER BY $sortfield $sortorder " . $db->plimit($conf->liste_limit, $offset);
|
||||
@ -55,6 +55,7 @@ if ($result)
|
||||
print "<td>Date</td>";
|
||||
print "<td>Email</td>";
|
||||
print "<td>Type</td>";
|
||||
print "<td>Personne</td>";
|
||||
print "</TR>\n";
|
||||
|
||||
$var=True;
|
||||
@ -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>$objp->email</TD>\n";
|
||||
print "<TD>$objp->type</TD>\n";
|
||||
print "<TD>$objp->morphy</TD>\n";
|
||||
print "</tr>";
|
||||
$i++;
|
||||
}
|
||||
|
||||
@ -52,8 +52,8 @@ delete from llx_user;
|
||||
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');
|
||||
|
||||
insert into llx_user (name,firstname,code,login,pass,module_comm,module_compta,webcal_login)
|
||||
values ('demo','demo','DEMO','demo','demo',1,0,'demo');
|
||||
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',1);
|
||||
|
||||
insert into llx_user (name,firstname,code,login,pass,module_comm,module_compta,webcal_login)
|
||||
values ('demo1','demo1','DM1','demo1','demo',1,0,'demo1');
|
||||
|
||||
@ -28,7 +28,9 @@ create table llx_adherent
|
||||
tms timestamp,
|
||||
statut smallint NOT NULL DEFAULT 0,
|
||||
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),
|
||||
nom varchar(50),
|
||||
societe varchar(50),
|
||||
@ -38,6 +40,7 @@ create table llx_adherent
|
||||
pays varchar(50),
|
||||
email varchar(255),
|
||||
fk_user_author integer NOT NULL,
|
||||
fk_user_mod integer NOT NULL,
|
||||
fk_user_valid integer NOT NULL,
|
||||
datefin datetime NOT NULL, -- date de fin de validité de la cotisation
|
||||
note text
|
||||
|
||||
Loading…
Reference in New Issue
Block a user