Fix: add %LOGIN% in card
This commit is contained in:
parent
c2ed035608
commit
eef512a7d8
@ -35,6 +35,7 @@ require_once(DOL_DOCUMENT_ROOT."/includes/modules/member/PDF_card.class.php");
|
|||||||
$patterns = array (
|
$patterns = array (
|
||||||
'/%PRENOM%/',
|
'/%PRENOM%/',
|
||||||
'/%NOM%/',
|
'/%NOM%/',
|
||||||
|
'/%LOGIN%/',
|
||||||
'/%SERVEUR%/',
|
'/%SERVEUR%/',
|
||||||
'/%SOCIETE%/',
|
'/%SOCIETE%/',
|
||||||
'/%ADRESSE%/',
|
'/%ADRESSE%/',
|
||||||
@ -74,7 +75,7 @@ if (!isset($annee)){
|
|||||||
}
|
}
|
||||||
|
|
||||||
// requete en prenant que les adherents a jour de cotisation
|
// requete en prenant que les adherents a jour de cotisation
|
||||||
$sql = "SELECT d.rowid, d.prenom, d.nom, d.societe, d.datefin,";
|
$sql = "SELECT d.rowid, d.prenom, d.nom, d.login, d.societe, d.datefin,";
|
||||||
$sql.= " d.adresse, d.cp, d.ville, d.naiss, d.email, d.photo,";
|
$sql.= " d.adresse, d.cp, d.ville, d.naiss, d.email, d.photo,";
|
||||||
$sql.= " t.libelle as type,";
|
$sql.= " t.libelle as type,";
|
||||||
$sql.= " p.libelle as pays";
|
$sql.= " p.libelle as pays";
|
||||||
@ -96,6 +97,7 @@ if ($result)
|
|||||||
$replace = array (
|
$replace = array (
|
||||||
$objp->prenom,
|
$objp->prenom,
|
||||||
$objp->nom,
|
$objp->nom,
|
||||||
|
$objp->login,
|
||||||
"http://".$_SERVER["SERVER_NAME"]."/",
|
"http://".$_SERVER["SERVER_NAME"]."/",
|
||||||
$objp->societe,
|
$objp->societe,
|
||||||
$objp->adresse,
|
$objp->adresse,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user