Merge branch 'develop' of https://github.com/Dolibarr/dolibarr.git into develop
This commit is contained in:
commit
f522b18bdc
@ -239,7 +239,7 @@ form_constantes($constantes);
|
|||||||
|
|
||||||
print '*'.$langs->trans("FollowingConstantsWillBeSubstituted").'<br>';
|
print '*'.$langs->trans("FollowingConstantsWillBeSubstituted").'<br>';
|
||||||
print '%DOL_MAIN_URL_ROOT%, %ID%, %FIRSTNAME%, %LASTNAME%, %FULLNAME%, %LOGIN%, %PASSWORD%, ';
|
print '%DOL_MAIN_URL_ROOT%, %ID%, %FIRSTNAME%, %LASTNAME%, %FULLNAME%, %LOGIN%, %PASSWORD%, ';
|
||||||
print '%COMPANY%, %ADDRESS%, %ZIP%, %TOWN%, %COUNTRY%, %EMAIL%, %NAISS%, %PHOTO%, %TYPE%, ';
|
print '%COMPANY%, %ADDRESS%, %ZIP%, %TOWN%, %COUNTRY%, %EMAIL%, %BIRTH%, %PHOTO%, %TYPE%, ';
|
||||||
print '%YEAR%, %MONTH%, %DAY%';
|
print '%YEAR%, %MONTH%, %DAY%';
|
||||||
print '<br>';
|
print '<br>';
|
||||||
|
|
||||||
@ -257,7 +257,7 @@ form_constantes($constantes);
|
|||||||
|
|
||||||
print '*'.$langs->trans("FollowingConstantsWillBeSubstituted").'<br>';
|
print '*'.$langs->trans("FollowingConstantsWillBeSubstituted").'<br>';
|
||||||
print '%DOL_MAIN_URL_ROOT%, %ID%, %FIRSTNAME%, %LASTNAME%, %FULLNAME%, %LOGIN%, %PASSWORD%, ';
|
print '%DOL_MAIN_URL_ROOT%, %ID%, %FIRSTNAME%, %LASTNAME%, %FULLNAME%, %LOGIN%, %PASSWORD%, ';
|
||||||
print '%COMPANY%, %ADDRESS%, %ZIP%, %TOWN%, %COUNTRY%, %EMAIL%, %NAISS%, %PHOTO%, %TYPE%, ';
|
print '%COMPANY%, %ADDRESS%, %ZIP%, %TOWN%, %COUNTRY%, %EMAIL%, %BIRTH%, %PHOTO%, %TYPE%, ';
|
||||||
print '%YEAR%, %MONTH%, %DAY%';
|
print '%YEAR%, %MONTH%, %DAY%';
|
||||||
print '<br>';
|
print '<br>';
|
||||||
|
|
||||||
@ -287,7 +287,7 @@ form_constantes($constantes);
|
|||||||
|
|
||||||
print '*'.$langs->trans("FollowingConstantsWillBeSubstituted").'<br>';
|
print '*'.$langs->trans("FollowingConstantsWillBeSubstituted").'<br>';
|
||||||
print '%DOL_MAIN_URL_ROOT%, %ID%, %FIRSTNAME%, %LASTNAME%, %FULLNAME%, %LOGIN%, %PASSWORD%, ';
|
print '%DOL_MAIN_URL_ROOT%, %ID%, %FIRSTNAME%, %LASTNAME%, %FULLNAME%, %LOGIN%, %PASSWORD%, ';
|
||||||
print '%COMPANY%, %ADDRESS%, %ZIP%, %TOWN%, %COUNTRY%, %EMAIL%, %NAISS%, %PHOTO%, %TYPE%, ';
|
print '%COMPANY%, %ADDRESS%, %ZIP%, %TOWN%, %COUNTRY%, %EMAIL%, %BIRTH%, %PHOTO%, %TYPE%, ';
|
||||||
//print '%YEAR%, %MONTH%, %DAY%'; // Not supported
|
//print '%YEAR%, %MONTH%, %DAY%'; // Not supported
|
||||||
print '<br>';
|
print '<br>';
|
||||||
|
|
||||||
|
|||||||
@ -62,7 +62,7 @@ if ((! empty($foruserid) || ! empty($foruserlogin) || ! empty($mode)) && ! $mesg
|
|||||||
|
|
||||||
// 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.firstname, d.lastname, d.login, d.societe as company, d.datefin,";
|
$sql = "SELECT d.rowid, d.firstname, d.lastname, d.login, d.societe as company, d.datefin,";
|
||||||
$sql.= " d.address, d.zip, d.town, d.country, d.naiss, d.email, d.photo,";
|
$sql.= " d.address, d.zip, d.town, d.country, d.birth, d.email, d.photo,";
|
||||||
$sql.= " t.libelle as type,";
|
$sql.= " t.libelle as type,";
|
||||||
$sql.= " p.code as country_code, p.libelle as country";
|
$sql.= " p.code as country_code, p.libelle as country";
|
||||||
$sql.= " FROM ".MAIN_DB_PREFIX."adherent_type as t, ".MAIN_DB_PREFIX."adherent as d";
|
$sql.= " FROM ".MAIN_DB_PREFIX."adherent_type as t, ".MAIN_DB_PREFIX."adherent as d";
|
||||||
@ -101,7 +101,7 @@ if ((! empty($foruserid) || ! empty($foruserlogin) || ! empty($mode)) && ! $mesg
|
|||||||
'%COUNTRY%'=>$objp->country,
|
'%COUNTRY%'=>$objp->country,
|
||||||
'%COUNTRY_CODE%'=>$objp->country_code,
|
'%COUNTRY_CODE%'=>$objp->country_code,
|
||||||
'%EMAIL%'=>$objp->email,
|
'%EMAIL%'=>$objp->email,
|
||||||
'%NAISS%'=>dol_print_date($objp->naiss,'day'),
|
'%BIRTH%'=>dol_print_date($objp->birth,'day'),
|
||||||
'%TYPE%'=>$objp->type,
|
'%TYPE%'=>$objp->type,
|
||||||
'%YEAR%'=>$year,
|
'%YEAR%'=>$year,
|
||||||
'%MONTH%'=>$month,
|
'%MONTH%'=>$month,
|
||||||
|
|||||||
@ -77,7 +77,7 @@ class Adherent extends CommonObject
|
|||||||
var $datem;
|
var $datem;
|
||||||
var $datefin;
|
var $datefin;
|
||||||
var $datevalid;
|
var $datevalid;
|
||||||
var $naiss;
|
var $birth;
|
||||||
|
|
||||||
var $typeid; // Id type adherent
|
var $typeid; // Id type adherent
|
||||||
var $type; // Libelle type adherent
|
var $type; // Libelle type adherent
|
||||||
@ -175,7 +175,7 @@ class Adherent extends CommonObject
|
|||||||
{
|
{
|
||||||
global $conf,$langs;
|
global $conf,$langs;
|
||||||
|
|
||||||
$birthday = dol_print_date($this->naiss,'day');
|
$birthday = dol_print_date($this->birth,'day');
|
||||||
|
|
||||||
$msgishtml = 0;
|
$msgishtml = 0;
|
||||||
if (dol_textishtml($text,1)) $msgishtml = 1;
|
if (dol_textishtml($text,1)) $msgishtml = 1;
|
||||||
@ -214,7 +214,7 @@ class Adherent extends CommonObject
|
|||||||
'%TOWN%'=>$msgishtml?dol_htmlentitiesbr($this->town):$this->town,
|
'%TOWN%'=>$msgishtml?dol_htmlentitiesbr($this->town):$this->town,
|
||||||
'%COUNTRY%'=>$msgishtml?dol_htmlentitiesbr($this->country):$this->country,
|
'%COUNTRY%'=>$msgishtml?dol_htmlentitiesbr($this->country):$this->country,
|
||||||
'%EMAIL%'=>$msgishtml?dol_htmlentitiesbr($this->email):$this->email,
|
'%EMAIL%'=>$msgishtml?dol_htmlentitiesbr($this->email):$this->email,
|
||||||
'%NAISS%'=>$msgishtml?dol_htmlentitiesbr($birthday):$birthday,
|
'%BIRTH%'=>$msgishtml?dol_htmlentitiesbr($birthday):$birthday,
|
||||||
'%PHOTO%'=>$msgishtml?dol_htmlentitiesbr($this->photo):$this->photo,
|
'%PHOTO%'=>$msgishtml?dol_htmlentitiesbr($this->photo):$this->photo,
|
||||||
'%LOGIN%'=>$msgishtml?dol_htmlentitiesbr($this->login):$this->login,
|
'%LOGIN%'=>$msgishtml?dol_htmlentitiesbr($this->login):$this->login,
|
||||||
'%PASSWORD%'=>$msgishtml?dol_htmlentitiesbr($this->pass):$this->pass,
|
'%PASSWORD%'=>$msgishtml?dol_htmlentitiesbr($this->pass):$this->pass,
|
||||||
@ -433,7 +433,7 @@ class Adherent extends CommonObject
|
|||||||
$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.= ", morphy='".$this->morphy."'";
|
||||||
$sql.= ", naiss=" .($this->naiss?"'".$this->db->idate($this->naiss)."'":"null");
|
$sql.= ", birth=" .($this->birth?"'".$this->db->idate($this->birth)."'":"null");
|
||||||
if ($this->datefin) $sql.= ", datefin='".$this->db->idate($this->datefin)."'"; // Ne doit etre modifie que par effacement cotisation
|
if ($this->datefin) $sql.= ", datefin='".$this->db->idate($this->datefin)."'"; // Ne doit etre modifie que par effacement cotisation
|
||||||
if ($this->datevalid) $sql.= ", datevalid='".$this->db->idate($this->datevalid)."'"; // Ne doit etre modifie que par validation adherent
|
if ($this->datevalid) $sql.= ", datevalid='".$this->db->idate($this->datevalid)."'"; // Ne doit etre modifie que par validation adherent
|
||||||
$sql.= ", fk_user_mod=".($user->id>0?$user->id:'null'); // Can be null because member can be create by a guest
|
$sql.= ", fk_user_mod=".($user->id>0?$user->id:'null'); // Can be null because member can be create by a guest
|
||||||
@ -1012,7 +1012,7 @@ class Adherent extends CommonObject
|
|||||||
$sql.= " d.datec as datec,";
|
$sql.= " d.datec as datec,";
|
||||||
$sql.= " d.tms as datem,";
|
$sql.= " d.tms as datem,";
|
||||||
$sql.= " d.datefin as datefin,";
|
$sql.= " d.datefin as datefin,";
|
||||||
$sql.= " d.naiss as datenaiss,";
|
$sql.= " d.birth as birthday,";
|
||||||
$sql.= " d.datevalid as datev,";
|
$sql.= " d.datevalid as datev,";
|
||||||
$sql.= " d.country,";
|
$sql.= " d.country,";
|
||||||
$sql.= " d.state_id,";
|
$sql.= " d.state_id,";
|
||||||
@ -1079,7 +1079,7 @@ class Adherent extends CommonObject
|
|||||||
$this->datem = $this->db->jdate($obj->datem);
|
$this->datem = $this->db->jdate($obj->datem);
|
||||||
$this->datefin = $this->db->jdate($obj->datefin);
|
$this->datefin = $this->db->jdate($obj->datefin);
|
||||||
$this->datevalid = $this->db->jdate($obj->datev);
|
$this->datevalid = $this->db->jdate($obj->datev);
|
||||||
$this->naiss = $this->db->jdate($obj->datenaiss);
|
$this->birth = $this->db->jdate($obj->birthday);
|
||||||
|
|
||||||
$this->note = $obj->note;
|
$this->note = $obj->note;
|
||||||
$this->morphy = $obj->morphy;
|
$this->morphy = $obj->morphy;
|
||||||
@ -1739,7 +1739,7 @@ class Adherent extends CommonObject
|
|||||||
$this->phone_perso = '0999999998';
|
$this->phone_perso = '0999999998';
|
||||||
$this->phone_mobile = '0999999997';
|
$this->phone_mobile = '0999999997';
|
||||||
$this->note='No comment';
|
$this->note='No comment';
|
||||||
$this->naiss=time();
|
$this->birth=time();
|
||||||
$this->photo='';
|
$this->photo='';
|
||||||
$this->public=1;
|
$this->public=1;
|
||||||
$this->statut=0;
|
$this->statut=0;
|
||||||
@ -1811,7 +1811,7 @@ class Adherent extends CommonObject
|
|||||||
if ($this->phone_mobile && ! empty($conf->global->LDAP_MEMBER_FIELD_MOBILE)) $info[$conf->global->LDAP_MEMBER_FIELD_MOBILE] = $this->phone_mobile;
|
if ($this->phone_mobile && ! empty($conf->global->LDAP_MEMBER_FIELD_MOBILE)) $info[$conf->global->LDAP_MEMBER_FIELD_MOBILE] = $this->phone_mobile;
|
||||||
if ($this->fax && ! empty($conf->global->LDAP_MEMBER_FIELD_FAX)) $info[$conf->global->LDAP_MEMBER_FIELD_FAX] = $this->fax;
|
if ($this->fax && ! empty($conf->global->LDAP_MEMBER_FIELD_FAX)) $info[$conf->global->LDAP_MEMBER_FIELD_FAX] = $this->fax;
|
||||||
if ($this->note && ! empty($conf->global->LDAP_MEMBER_FIELD_DESCRIPTION)) $info[$conf->global->LDAP_MEMBER_FIELD_DESCRIPTION] = $this->note;
|
if ($this->note && ! empty($conf->global->LDAP_MEMBER_FIELD_DESCRIPTION)) $info[$conf->global->LDAP_MEMBER_FIELD_DESCRIPTION] = $this->note;
|
||||||
if ($this->naiss && ! empty($conf->global->LDAP_MEMBER_FIELD_BIRTHDATE)) $info[$conf->global->LDAP_MEMBER_FIELD_BIRTHDATE] = dol_print_date($this->naiss,'dayhourldap');
|
if ($this->birth && ! empty($conf->global->LDAP_MEMBER_FIELD_BIRTHDATE)) $info[$conf->global->LDAP_MEMBER_FIELD_BIRTHDATE] = dol_print_date($this->birth,'dayhourldap');
|
||||||
if (isset($this->statut) && ! empty($conf->global->LDAP_FIELD_MEMBER_STATUS)) $info[$conf->global->LDAP_FIELD_MEMBER_STATUS] = $this->statut;
|
if (isset($this->statut) && ! empty($conf->global->LDAP_FIELD_MEMBER_STATUS)) $info[$conf->global->LDAP_FIELD_MEMBER_STATUS] = $this->statut;
|
||||||
if ($this->datefin && ! empty($conf->global->LDAP_FIELD_MEMBER_END_LASTSUBSCRIPTION)) $info[$conf->global->LDAP_FIELD_MEMBER_END_LASTSUBSCRIPTION] = dol_print_date($this->datefin,'dayhourldap');
|
if ($this->datefin && ! empty($conf->global->LDAP_FIELD_MEMBER_END_LASTSUBSCRIPTION)) $info[$conf->global->LDAP_FIELD_MEMBER_END_LASTSUBSCRIPTION] = dol_print_date($this->datefin,'dayhourldap');
|
||||||
|
|
||||||
|
|||||||
@ -236,12 +236,12 @@ if ($action == 'update' && ! $_POST["cancel"] && $user->rights->adherent->creer)
|
|||||||
{
|
{
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
|
||||||
|
|
||||||
$datenaiss='';
|
$birthdate='';
|
||||||
if (isset($_POST["naissday"]) && $_POST["naissday"]
|
if (isset($_POST["birthday"]) && $_POST["birthday"]
|
||||||
&& isset($_POST["naissmonth"]) && $_POST["naissmonth"]
|
&& isset($_POST["birthmonth"]) && $_POST["birthmonth"]
|
||||||
&& isset($_POST["naissyear"]) && $_POST["naissyear"])
|
&& isset($_POST["birthyear"]) && $_POST["birthyear"])
|
||||||
{
|
{
|
||||||
$datenaiss=dol_mktime(12, 0, 0, $_POST["naissmonth"], $_POST["naissday"], $_POST["naissyear"]);
|
$birthdate=dol_mktime(12, 0, 0, $_POST["birthmonth"], $_POST["birthday"], $_POST["birthyear"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create new object
|
// Create new object
|
||||||
@ -267,7 +267,7 @@ if ($action == 'update' && ! $_POST["cancel"] && $user->rights->adherent->creer)
|
|||||||
$object->phone_perso = trim($_POST["phone_perso"]);
|
$object->phone_perso = trim($_POST["phone_perso"]);
|
||||||
$object->phone_mobile= trim($_POST["phone_mobile"]);
|
$object->phone_mobile= trim($_POST["phone_mobile"]);
|
||||||
$object->email = trim($_POST["email"]);
|
$object->email = trim($_POST["email"]);
|
||||||
$object->naiss = $datenaiss;
|
$object->birth = $birthdate;
|
||||||
|
|
||||||
$object->typeid = $_POST["typeid"];
|
$object->typeid = $_POST["typeid"];
|
||||||
//$object->note = trim($_POST["comment"]);
|
//$object->note = trim($_POST["comment"]);
|
||||||
@ -388,12 +388,12 @@ if ($action == 'update' && ! $_POST["cancel"] && $user->rights->adherent->creer)
|
|||||||
if ($action == 'add' && $user->rights->adherent->creer)
|
if ($action == 'add' && $user->rights->adherent->creer)
|
||||||
{
|
{
|
||||||
if ($canvas) $object->canvas=$canvas;
|
if ($canvas) $object->canvas=$canvas;
|
||||||
$datenaiss='';
|
$birthdate='';
|
||||||
if (isset($_POST["naissday"]) && $_POST["naissday"]
|
if (isset($_POST["birthday"]) && $_POST["birthday"]
|
||||||
&& isset($_POST["naissmonth"]) && $_POST["naissmonth"]
|
&& isset($_POST["birthmonth"]) && $_POST["birthmonth"]
|
||||||
&& isset($_POST["naissyear"]) && $_POST["naissyear"])
|
&& isset($_POST["birthyear"]) && $_POST["birthyear"])
|
||||||
{
|
{
|
||||||
$datenaiss=dol_mktime(12, 0, 0, $_POST["naissmonth"], $_POST["naissday"], $_POST["naissyear"]);
|
$birthdate=dol_mktime(12, 0, 0, $_POST["birthmonth"], $_POST["birthday"], $_POST["birthyear"]);
|
||||||
}
|
}
|
||||||
$datecotisation='';
|
$datecotisation='';
|
||||||
if (isset($_POST["reday"]) && isset($_POST["remonth"]) && isset($_POST["reyear"]))
|
if (isset($_POST["reday"]) && isset($_POST["remonth"]) && isset($_POST["reyear"]))
|
||||||
@ -442,7 +442,7 @@ if ($action == 'add' && $user->rights->adherent->creer)
|
|||||||
$object->email = $email;
|
$object->email = $email;
|
||||||
$object->login = $login;
|
$object->login = $login;
|
||||||
$object->pass = $pass;
|
$object->pass = $pass;
|
||||||
$object->naiss = $datenaiss;
|
$object->naiss = $birthdate;
|
||||||
$object->photo = $photo;
|
$object->photo = $photo;
|
||||||
$object->typeid = $typeid;
|
$object->typeid = $typeid;
|
||||||
//$object->note = $comment;
|
//$object->note = $comment;
|
||||||
@ -1113,9 +1113,9 @@ else
|
|||||||
// EMail
|
// EMail
|
||||||
print '<tr><td>'.($conf->global->ADHERENT_MAIL_REQUIRED?'<span class="fieldrequired">':'').$langs->trans("EMail").($conf->global->ADHERENT_MAIL_REQUIRED?'</span>':'').'</td><td><input type="text" name="email" size="40" value="'.(isset($_POST["email"])?$_POST["email"]:$object->email).'"></td></tr>';
|
print '<tr><td>'.($conf->global->ADHERENT_MAIL_REQUIRED?'<span class="fieldrequired">':'').$langs->trans("EMail").($conf->global->ADHERENT_MAIL_REQUIRED?'</span>':'').'</td><td><input type="text" name="email" size="40" value="'.(isset($_POST["email"])?$_POST["email"]:$object->email).'"></td></tr>';
|
||||||
|
|
||||||
// Date naissance
|
// Birthday
|
||||||
print "<tr><td>".$langs->trans("Birthday")."</td><td>\n";
|
print "<tr><td>".$langs->trans("Birthday")."</td><td>\n";
|
||||||
$form->select_date(($object->naiss ? $object->naiss : -1),'naiss','','',1,'formsoc');
|
$form->select_date(($object->birth ? $object->birth : -1),'birth','','',1,'formsoc');
|
||||||
print "</td></tr>\n";
|
print "</td></tr>\n";
|
||||||
|
|
||||||
// Profil public
|
// Profil public
|
||||||
@ -1444,8 +1444,8 @@ else
|
|||||||
// EMail
|
// EMail
|
||||||
print '<tr><td>'.$langs->trans("EMail").'</td><td class="valeur">'.dol_print_email($object->email,0,$object->fk_soc,1).'</td></tr>';
|
print '<tr><td>'.$langs->trans("EMail").'</td><td class="valeur">'.dol_print_email($object->email,0,$object->fk_soc,1).'</td></tr>';
|
||||||
|
|
||||||
// Date naissance
|
// Birthday
|
||||||
print '<tr><td>'.$langs->trans("Birthday").'</td><td class="valeur">'.dol_print_date($object->naiss,'day').'</td></tr>';
|
print '<tr><td>'.$langs->trans("Birthday").'</td><td class="valeur">'.dol_print_date($object->birth,'day').'</td></tr>';
|
||||||
|
|
||||||
// Public
|
// Public
|
||||||
print '<tr><td>'.$langs->trans("Public").'</td><td class="valeur">'.yn($object->public).'</td></tr>';
|
print '<tr><td>'.$langs->trans("Public").'</td><td class="valeur">'.yn($object->public).'</td></tr>';
|
||||||
|
|||||||
@ -303,7 +303,7 @@ print '</td><td>'.$langs->trans("LDAPFieldDescriptionExample").'</td>';
|
|||||||
print '<td align="right"> </td>';
|
print '<td align="right"> </td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
// Date naissance
|
// Birthday
|
||||||
$var=!$var;
|
$var=!$var;
|
||||||
print '<tr '.$bc[$var].'><td>'.$langs->trans("LDAPFieldBirthdate").'</td><td>';
|
print '<tr '.$bc[$var].'><td>'.$langs->trans("LDAPFieldBirthdate").'</td><td>';
|
||||||
print '<input size="25" type="text" name="fieldbirthdate" value="'.$conf->global->LDAP_MEMBER_FIELD_BIRTHDATE.'">';
|
print '<input size="25" type="text" name="fieldbirthdate" value="'.$conf->global->LDAP_MEMBER_FIELD_BIRTHDATE.'">';
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2003-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2003-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2003 Jean-Louis Bergamo <jlb@j1b.org>
|
* Copyright (C) 2003 Jean-Louis Bergamo <jlb@j1b.org>
|
||||||
* Copyright (C) 2004-2012 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2004-2013 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2007 Franky Van Liedekerke <franky.van.liedekerke@telenet.be>
|
* Copyright (C) 2007 Franky Van Liedekerke <franky.van.liedekerke@telenet.be>
|
||||||
* Copyright (C) 2005-2007 Regis Houssin <regis.houssin@capnetworks.com>
|
* Copyright (C) 2005-2007 Regis Houssin <regis.houssin@capnetworks.com>
|
||||||
*
|
*
|
||||||
@ -44,7 +44,7 @@ print '<div style="padding-left: 30px;">'.img_picto_common('', 'dolibarr_box.png
|
|||||||
|
|
||||||
print $langs->trans("Version").' / '.$langs->trans("DolibarrLicense").':';
|
print $langs->trans("Version").' / '.$langs->trans("DolibarrLicense").':';
|
||||||
print '<ul>';
|
print '<ul>';
|
||||||
print '<li>'.DOL_VERSION.' / <a href="http://www.gnu.org/copyleft/gpl.html">GNU-GPL</a></li>';
|
print '<li>'.DOL_VERSION.' / <a href="http://www.gnu.org/copyleft/gpl.html">GNU-GPL v3+</a></li>';
|
||||||
print '</ul>';
|
print '</ul>';
|
||||||
|
|
||||||
//print "<br>\n";
|
//print "<br>\n";
|
||||||
|
|||||||
@ -61,8 +61,8 @@ $object->substitutionarray=array(
|
|||||||
'__OTHER3__' => 'Other3',
|
'__OTHER3__' => 'Other3',
|
||||||
'__OTHER4__' => 'Other4',
|
'__OTHER4__' => 'Other4',
|
||||||
'__OTHER5__' => 'Other5',
|
'__OTHER5__' => 'Other5',
|
||||||
'__SIGNATURE__' => 'TagSignature',
|
'__SIGNATURE__' => 'TagSignature'
|
||||||
//'__PERSONALIZED__' => 'Personalized' // Hidden because not used yet
|
//,'__PERSONALIZED__' => 'Personalized' // Hidden because not used yet
|
||||||
);
|
);
|
||||||
if (! empty($conf->global->MAILING_EMAIL_UNSUBSCRIBE))
|
if (! empty($conf->global->MAILING_EMAIL_UNSUBSCRIBE))
|
||||||
{
|
{
|
||||||
@ -86,8 +86,8 @@ $object->substitutionarrayfortest=array(
|
|||||||
'__OTHER3__' => 'TESTOther3',
|
'__OTHER3__' => 'TESTOther3',
|
||||||
'__OTHER4__' => 'TESTOther4',
|
'__OTHER4__' => 'TESTOther4',
|
||||||
'__OTHER5__' => 'TESTOther5',
|
'__OTHER5__' => 'TESTOther5',
|
||||||
'__SIGNATURE__' => (($user->signature && empty($conf->global->MAIN_MAIL_DO_NOT_USE_SIGN))?$user->signature:''),
|
'__SIGNATURE__' => (($user->signature && empty($conf->global->MAIN_MAIL_DO_NOT_USE_SIGN))?$user->signature:'')
|
||||||
//'__PERSONALIZED__' => 'TESTPersonalized' // Not used yet
|
//,'__PERSONALIZED__' => 'TESTPersonalized' // Not used yet
|
||||||
);
|
);
|
||||||
if (!empty($conf->global->MAILING_EMAIL_UNSUBSCRIBE))
|
if (!empty($conf->global->MAILING_EMAIL_UNSUBSCRIBE))
|
||||||
{
|
{
|
||||||
|
|||||||
@ -80,10 +80,6 @@ else if ($type == "o")
|
|||||||
$titre.=' ('.$langs->trans("OthersNotLinkedToThirdParty").')';
|
$titre.=' ('.$langs->trans("OthersNotLinkedToThirdParty").')';
|
||||||
$urlfiche="";
|
$urlfiche="";
|
||||||
}
|
}
|
||||||
if ($view == 'phone') { $text=" <b>(Vue Telephones)</b> <a href='".$_SERVER["PHP_SELF"]."?view=mail".($type?'&type='.$type:"")."'>(Vue EMail)</a>"; }
|
|
||||||
if ($view == '' || $view == 'mail') { $text=" <a href='".$_SERVER["PHP_SELF"]."?view=phone".($type?'&type='.$type:"")."'>(Vue Telephones)</a> <b>(Vue EMail)</b>"; }
|
|
||||||
if ($view == 'recent') { $text=" (Recents)"; }
|
|
||||||
if (! empty($text)) $titre.= " $text";
|
|
||||||
|
|
||||||
if (GETPOST('button_removefilter'))
|
if (GETPOST('button_removefilter'))
|
||||||
{
|
{
|
||||||
@ -260,17 +256,10 @@ if ($result)
|
|||||||
print_liste_field_titre($langs->trans("Firstname"),$_SERVER["PHP_SELF"],"p.firstname", $begin, $param, '', $sortfield,$sortorder);
|
print_liste_field_titre($langs->trans("Firstname"),$_SERVER["PHP_SELF"],"p.firstname", $begin, $param, '', $sortfield,$sortorder);
|
||||||
print_liste_field_titre($langs->trans("PostOrFunction"),$_SERVER["PHP_SELF"],"p.poste", $begin, $param, '', $sortfield,$sortorder);
|
print_liste_field_titre($langs->trans("PostOrFunction"),$_SERVER["PHP_SELF"],"p.poste", $begin, $param, '', $sortfield,$sortorder);
|
||||||
if (empty($conf->global->SOCIETE_DISABLE_CONTACTS)) print_liste_field_titre($langs->trans("Company"),$_SERVER["PHP_SELF"],"s.nom", $begin, $param, '', $sortfield,$sortorder);
|
if (empty($conf->global->SOCIETE_DISABLE_CONTACTS)) print_liste_field_titre($langs->trans("Company"),$_SERVER["PHP_SELF"],"s.nom", $begin, $param, '', $sortfield,$sortorder);
|
||||||
if ($view == 'phone')
|
print_liste_field_titre($langs->trans("Phone"),$_SERVER["PHP_SELF"],"p.phone", $begin, $param, '', $sortfield,$sortorder);
|
||||||
{
|
print_liste_field_titre($langs->trans("Mobile"),$_SERVER["PHP_SELF"],"p.phone_mob", $begin, $param, '', $sortfield,$sortorder);
|
||||||
print_liste_field_titre($langs->trans("Phone"),$_SERVER["PHP_SELF"],"p.phone", $begin, $param, '', $sortfield,$sortorder);
|
print_liste_field_titre($langs->trans("Fax"),$_SERVER["PHP_SELF"],"p.fax", $begin, $param, '', $sortfield,$sortorder);
|
||||||
print_liste_field_titre($langs->trans("Mobile"),$_SERVER["PHP_SELF"],"p.phone_mob", $begin, $param, '', $sortfield,$sortorder);
|
print_liste_field_titre($langs->trans("EMail"),$_SERVER["PHP_SELF"],"p.email", $begin, $param, '', $sortfield,$sortorder);
|
||||||
print_liste_field_titre($langs->trans("Fax"),$_SERVER["PHP_SELF"],"p.fax", $begin, $param, '', $sortfield,$sortorder);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
print_liste_field_titre($langs->trans("Phone"),$_SERVER["PHP_SELF"],"p.phone", $begin, $param, '', $sortfield,$sortorder);
|
|
||||||
print_liste_field_titre($langs->trans("EMail"),$_SERVER["PHP_SELF"],"p.email", $begin, $param, '', $sortfield,$sortorder);
|
|
||||||
}
|
|
||||||
print_liste_field_titre($langs->trans("DateModificationShort"),$_SERVER["PHP_SELF"],"p.tms", $begin, $param, 'align="center"', $sortfield,$sortorder);
|
print_liste_field_titre($langs->trans("DateModificationShort"),$_SERVER["PHP_SELF"],"p.tms", $begin, $param, 'align="center"', $sortfield,$sortorder);
|
||||||
print_liste_field_titre($langs->trans("ContactVisibility"),$_SERVER["PHP_SELF"],"p.priv", $begin, $param, 'align="center"', $sortfield,$sortorder);
|
print_liste_field_titre($langs->trans("ContactVisibility"),$_SERVER["PHP_SELF"],"p.priv", $begin, $param, 'align="center"', $sortfield,$sortorder);
|
||||||
print '<td class="liste_titre"> </td>';
|
print '<td class="liste_titre"> </td>';
|
||||||
@ -293,27 +282,18 @@ if ($result)
|
|||||||
print '<input class="flat" type="text" name="search_societe" size="9" value="'.$search_societe.'">';
|
print '<input class="flat" type="text" name="search_societe" size="9" value="'.$search_societe.'">';
|
||||||
print '</td>';
|
print '</td>';
|
||||||
}
|
}
|
||||||
if ($view == 'phone')
|
print '<td class="liste_titre">';
|
||||||
{
|
print '<input class="flat" type="text" name="search_phonepro" size="8" value="'.$search_phonepro.'">';
|
||||||
print '<td class="liste_titre">';
|
print '</td>';
|
||||||
print '<input class="flat" type="text" name="search_phonepro" size="9" value="'.$search_phonepro.'">';
|
print '<td class="liste_titre">';
|
||||||
print '</td>';
|
print '<input class="flat" type="text" name="search_phonemob" size="8" value="'.$search_phonemob.'">';
|
||||||
print '<td class="liste_titre">';
|
print '</td>';
|
||||||
print '<input class="flat" type="text" name="search_phonemob" size="9" value="'.$search_phonemob.'">';
|
print '<td class="liste_titre">';
|
||||||
print '</td>';
|
print '<input class="flat" type="text" name="search_fax" size="8" value="'.$search_fax.'">';
|
||||||
print '<td class="liste_titre">';
|
print '</td>';
|
||||||
print '<input class="flat" type="text" name="search_fax" size="9" value="'.$search_fax.'">';
|
print '<td class="liste_titre">';
|
||||||
print '</td>';
|
print '<input class="flat" type="text" name="search_email" size="8" value="'.$search_email.'">';
|
||||||
}
|
print '</td>';
|
||||||
else
|
|
||||||
{
|
|
||||||
print '<td class="liste_titre">';
|
|
||||||
print '<input class="flat" type="text" name="search_phone" size="9" value="'.$search_phone.'">';
|
|
||||||
print '</td>';
|
|
||||||
print '<td class="liste_titre">';
|
|
||||||
print '<input class="flat" type="text" name="search_email" size="9" value="'.$search_email.'">';
|
|
||||||
print '</td>';
|
|
||||||
}
|
|
||||||
print '<td class="liste_titre"> </td>';
|
print '<td class="liste_titre"> </td>';
|
||||||
print '<td class="liste_titre" align="center">';
|
print '<td class="liste_titre" align="center">';
|
||||||
$selectarray=array('0'=>$langs->trans("ContactPublic"),'1'=>$langs->trans("ContactPrivate"));
|
$selectarray=array('0'=>$langs->trans("ContactPublic"),'1'=>$langs->trans("ContactPrivate"));
|
||||||
@ -365,22 +345,14 @@ if ($result)
|
|||||||
print '</td>';
|
print '</td>';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($view == 'phone')
|
// Phone
|
||||||
{
|
print '<td>'.dol_print_phone($obj->phone,$obj->country_code,$obj->cidp,$obj->socid,'AC_TEL').'</td>';
|
||||||
// Phone
|
// Phone mobile
|
||||||
print '<td>'.dol_print_phone($obj->phone,$obj->country_code,$obj->cidp,$obj->socid,'AC_TEL').'</td>';
|
print '<td>'.dol_print_phone($obj->phone_mobile,$obj->country_code,$obj->cidp,$obj->socid,'AC_TEL').'</td>';
|
||||||
// Phone mobile
|
// Fax
|
||||||
print '<td>'.dol_print_phone($obj->phone_mobile,$obj->country_code,$obj->cidp,$obj->socid,'AC_TEL').'</td>';
|
print '<td>'.dol_print_phone($obj->fax,$obj->country_code,$obj->cidp,$obj->socid,'AC_TEL').'</td>';
|
||||||
// Fax
|
// EMail
|
||||||
print '<td>'.dol_print_phone($obj->fax,$obj->country_code,$obj->cidp,$obj->socid,'AC_TEL').'</td>';
|
print '<td>'.dol_print_email($obj->email,$obj->cidp,$obj->socid,'AC_EMAIL',18).'</td>';
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// Phone
|
|
||||||
print '<td>'.dol_print_phone($obj->phone,$obj->country_code,$obj->cidp,$obj->socid,'AC_TEL').'</td>';
|
|
||||||
// EMail
|
|
||||||
print '<td>'.dol_print_email($obj->email,$obj->cidp,$obj->socid,'AC_EMAIL',18).'</td>';
|
|
||||||
}
|
|
||||||
|
|
||||||
// Date
|
// Date
|
||||||
print '<td align="center">'.dol_print_date($db->jdate($obj->tms),"day").'</td>';
|
print '<td align="center">'.dol_print_date($db->jdate($obj->tms),"day").'</td>';
|
||||||
|
|||||||
@ -291,9 +291,20 @@ function pdf_build_address($outputlangs,$sourcecompany,$targetcompany='',$target
|
|||||||
if ($usecontact)
|
if ($usecontact)
|
||||||
{
|
{
|
||||||
$stringaddress .= ($stringaddress ? "\n" : '' ).$outputlangs->convToOutputCharset($targetcontact->getFullName($outputlangs,1));
|
$stringaddress .= ($stringaddress ? "\n" : '' ).$outputlangs->convToOutputCharset($targetcontact->getFullName($outputlangs,1));
|
||||||
$stringaddress .= ($stringaddress ? "\n" : '' ).$outputlangs->convToOutputCharset(dol_format_address($targetcontact))."\n";
|
|
||||||
|
if (!empty($targetcontact->address)) {
|
||||||
|
$stringaddress .= ($stringaddress ? "\n" : '' ).$outputlangs->convToOutputCharset(dol_format_address($targetcontact))."\n";
|
||||||
|
}else {
|
||||||
|
$stringaddress .= ($stringaddress ? "\n" : '' ).$outputlangs->convToOutputCharset(dol_format_address($targetcompany))."\n";
|
||||||
|
}
|
||||||
// Country
|
// Country
|
||||||
if ($targetcontact->country_code && $targetcontact->country_code != $sourcecompany->country_code) $stringaddress.=$outputlangs->convToOutputCharset($outputlangs->transnoentitiesnoconv("Country".$targetcontact->country_code))."\n";
|
if (!empty($targetcontact->country_code) && $targetcontact->country_code != $sourcecompany->country_code) {
|
||||||
|
$stringaddress.=$outputlangs->convToOutputCharset($outputlangs->transnoentitiesnoconv("Country".$targetcontact->country_code))."\n";
|
||||||
|
}
|
||||||
|
else if (empty($targetcontact->country_code) && !empty($targetcompany->country_code) && ($targetcompany->country_code != $sourcecompany->country_code)) {
|
||||||
|
$stringaddress.=$outputlangs->convToOutputCharset($outputlangs->transnoentitiesnoconv("Country".$targetcompany->country_code))."\n";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (! empty($conf->global->MAIN_PDF_ADDALSOTARGETDETAILS))
|
if (! empty($conf->global->MAIN_PDF_ADDALSOTARGETDETAILS))
|
||||||
{
|
{
|
||||||
@ -311,7 +322,7 @@ function pdf_build_address($outputlangs,$sourcecompany,$targetcompany='',$target
|
|||||||
{
|
{
|
||||||
$stringaddress .= ($stringaddress ? "\n" : '' ).$outputlangs->convToOutputCharset(dol_format_address($targetcompany))."\n";
|
$stringaddress .= ($stringaddress ? "\n" : '' ).$outputlangs->convToOutputCharset(dol_format_address($targetcompany))."\n";
|
||||||
// Country
|
// Country
|
||||||
if ($targetcompany->country_code && $targetcompany->country_code != $sourcecompany->country_code) $stringaddress.=$outputlangs->convToOutputCharset($outputlangs->transnoentitiesnoconv("Country".$targetcompany->country_code))."\n";
|
if (!empty($targetcompany->country_code) && $targetcompany->country_code != $sourcecompany->country_code) $stringaddress.=$outputlangs->convToOutputCharset($outputlangs->transnoentitiesnoconv("Country".$targetcompany->country_code))."\n";
|
||||||
|
|
||||||
if (! empty($conf->global->MAIN_PDF_ADDALSOTARGETDETAILS))
|
if (! empty($conf->global->MAIN_PDF_ADDALSOTARGETDETAILS))
|
||||||
{
|
{
|
||||||
|
|||||||
@ -172,9 +172,9 @@ class modAdherent extends DolibarrModules
|
|||||||
$this->export_code[$r]=$this->rights_class.'_'.$r;
|
$this->export_code[$r]=$this->rights_class.'_'.$r;
|
||||||
$this->export_label[$r]='MembersAndSubscriptions';
|
$this->export_label[$r]='MembersAndSubscriptions';
|
||||||
$this->export_permission[$r]=array(array("adherent","export"));
|
$this->export_permission[$r]=array(array("adherent","export"));
|
||||||
$this->export_fields_array[$r]=array('a.rowid'=>'Id','a.civilite'=>"UserTitle",'a.lastname'=>"Lastname",'a.firstname'=>"Firstname",'a.login'=>"Login",'a.morphy'=>'Nature','a.societe'=>'Company','a.address'=>"Address",'a.zip'=>"Zip",'a.town'=>"Town",'a.country'=>"Country",'a.phone'=>"PhonePro",'a.phone_perso'=>"PhonePerso",'a.phone_mobile'=>"PhoneMobile",'a.email'=>"Email",'a.naiss'=>"Birthday",'a.statut'=>"Status",'a.photo'=>"Photo",'a.note'=>"Note",'a.datec'=>'DateCreation','a.datevalid'=>'DateValidation','a.tms'=>'DateLastModification','a.datefin'=>'DateEndSubscription','ta.rowid'=>'MemberTypeId','ta.libelle'=>'MemberTypeLabel','c.rowid'=>'SubscriptionId','c.dateadh'=>'DateSubscription','c.cotisation'=>'Amount');
|
$this->export_fields_array[$r]=array('a.rowid'=>'Id','a.civilite'=>"UserTitle",'a.lastname'=>"Lastname",'a.firstname'=>"Firstname",'a.login'=>"Login",'a.morphy'=>'Nature','a.societe'=>'Company','a.address'=>"Address",'a.zip'=>"Zip",'a.town'=>"Town",'a.country'=>"Country",'a.phone'=>"PhonePro",'a.phone_perso'=>"PhonePerso",'a.phone_mobile'=>"PhoneMobile",'a.email'=>"Email",'a.birth'=>"Birthday",'a.statut'=>"Status",'a.photo'=>"Photo",'a.note'=>"Note",'a.datec'=>'DateCreation','a.datevalid'=>'DateValidation','a.tms'=>'DateLastModification','a.datefin'=>'DateEndSubscription','ta.rowid'=>'MemberTypeId','ta.libelle'=>'MemberTypeLabel','c.rowid'=>'SubscriptionId','c.dateadh'=>'DateSubscription','c.cotisation'=>'Amount');
|
||||||
$this->export_TypeFields_array[$r]=array('a.civilite'=>"Text",'a.lastname'=>"Text",'a.firstname'=>"Text",'a.login'=>"Text",'a.morphy'=>'Text','a.societe'=>'Text','a.address'=>"Text",'a.zip'=>"Text",'a.town'=>"Text",'a.country'=>"Text",'a.phone'=>"Text",'a.phone_perso'=>"Text",'a.phone_mobile'=>"Text",'a.email'=>"Text",'a.naiss'=>"Date",'a.statut'=>"Status",'a.note'=>"Text",'a.datec'=>'Date','a.datevalid'=>'Date','a.tms'=>'Date','a.datefin'=>'Date','ta.rowid'=>'List:fk_adherent_type:libelle','ta.libelle'=>'Text','c.dateadh'=>'Date','c.cotisation'=>'Number');
|
$this->export_TypeFields_array[$r]=array('a.civilite'=>"Text",'a.lastname'=>"Text",'a.firstname'=>"Text",'a.login'=>"Text",'a.morphy'=>'Text','a.societe'=>'Text','a.address'=>"Text",'a.zip'=>"Text",'a.town'=>"Text",'a.country'=>"Text",'a.phone'=>"Text",'a.phone_perso'=>"Text",'a.phone_mobile'=>"Text",'a.email'=>"Text",'a.birth'=>"Date",'a.statut'=>"Status",'a.note'=>"Text",'a.datec'=>'Date','a.datevalid'=>'Date','a.tms'=>'Date','a.datefin'=>'Date','ta.rowid'=>'List:fk_adherent_type:libelle','ta.libelle'=>'Text','c.dateadh'=>'Date','c.cotisation'=>'Number');
|
||||||
$this->export_entities_array[$r]=array('a.rowid'=>'member','a.civilite'=>"member",'a.lastname'=>"member",'a.firstname'=>"member",'a.login'=>"member",'a.morphy'=>'member','a.societe'=>'member','a.address'=>"member",'a.zip'=>"member",'a.town'=>"member",'a.country'=>"member",'a.phone'=>"member",'a.phone_perso'=>"member",'a.phone_mobile'=>"member",'a.email'=>"member",'a.naiss'=>"member",'a.statut'=>"member",'a.photo'=>"member",'a.note'=>"member",'a.datec'=>'member','a.datevalid'=>'member','a.tms'=>'member','a.datefin'=>'member','ta.rowid'=>'member_type','ta.libelle'=>'member_type','c.rowid'=>'subscription','c.dateadh'=>'subscription','c.cotisation'=>'subscription');
|
$this->export_entities_array[$r]=array('a.rowid'=>'member','a.civilite'=>"member",'a.lastname'=>"member",'a.firstname'=>"member",'a.login'=>"member",'a.morphy'=>'member','a.societe'=>'member','a.address'=>"member",'a.zip'=>"member",'a.town'=>"member",'a.country'=>"member",'a.phone'=>"member",'a.phone_perso'=>"member",'a.phone_mobile'=>"member",'a.email'=>"member",'a.birth'=>"member",'a.statut'=>"member",'a.photo'=>"member",'a.note'=>"member",'a.datec'=>'member','a.datevalid'=>'member','a.tms'=>'member','a.datefin'=>'member','ta.rowid'=>'member_type','ta.libelle'=>'member_type','c.rowid'=>'subscription','c.dateadh'=>'subscription','c.cotisation'=>'subscription');
|
||||||
// Add extra fields
|
// Add extra fields
|
||||||
$sql="SELECT name, label FROM ".MAIN_DB_PREFIX."extrafields WHERE elementtype = 'member'";
|
$sql="SELECT name, label FROM ".MAIN_DB_PREFIX."extrafields WHERE elementtype = 'member'";
|
||||||
$resql=$this->db->query($sql);
|
$resql=$this->db->query($sql);
|
||||||
@ -207,7 +207,7 @@ class modAdherent extends DolibarrModules
|
|||||||
$this->import_entities_array[$r]=array(); // We define here only fields that use another icon that the one defined into import_icon
|
$this->import_entities_array[$r]=array(); // We define here only fields that use another icon that the one defined into import_icon
|
||||||
$this->import_tables_array[$r]=array('a'=>MAIN_DB_PREFIX.'adherent','extra'=>MAIN_DB_PREFIX.'adherent_extrafields');
|
$this->import_tables_array[$r]=array('a'=>MAIN_DB_PREFIX.'adherent','extra'=>MAIN_DB_PREFIX.'adherent_extrafields');
|
||||||
$this->import_tables_creator_array[$r]=array('a'=>'fk_user_author'); // Fields to store import user id
|
$this->import_tables_creator_array[$r]=array('a'=>'fk_user_author'); // Fields to store import user id
|
||||||
$this->import_fields_array[$r]=array('a.civilite'=>"UserTitle",'a.nom'=>"Lastname*",'a.firstname'=>"Firstname",'a.login'=>"Login*","a.pass"=>"Password","a.fk_adherent_type"=>"MemberType*",'a.morphy'=>'Nature*','a.societe'=>'Company','a.address'=>"Address",'a.zip'=>"Zip",'a.town'=>"Town",'a.country'=>"Country",'a.phone'=>"PhonePro",'a.phone_perso'=>"PhonePerso",'a.phone_mobile'=>"PhoneMobile",'a.email'=>"Email",'a.naiss'=>"Birthday",'a.statut'=>"Status*",'a.photo'=>"Photo",'a.note'=>"Note",'a.datec'=>'DateCreation','a.datefin'=>'DateEndSubscription');
|
$this->import_fields_array[$r]=array('a.civilite'=>"UserTitle",'a.nom'=>"Lastname*",'a.firstname'=>"Firstname",'a.login'=>"Login*","a.pass"=>"Password","a.fk_adherent_type"=>"MemberType*",'a.morphy'=>'Nature*','a.societe'=>'Company','a.address'=>"Address",'a.zip'=>"Zip",'a.town'=>"Town",'a.country'=>"Country",'a.phone'=>"PhonePro",'a.phone_perso'=>"PhonePerso",'a.phone_mobile'=>"PhoneMobile",'a.email'=>"Email",'a.birth'=>"Birthday",'a.statut'=>"Status*",'a.photo'=>"Photo",'a.note'=>"Note",'a.datec'=>'DateCreation','a.datefin'=>'DateEndSubscription');
|
||||||
// Add extra fields
|
// Add extra fields
|
||||||
$sql="SELECT name, label, fieldrequired FROM ".MAIN_DB_PREFIX."extrafields WHERE elementtype = 'member'";
|
$sql="SELECT name, label, fieldrequired FROM ".MAIN_DB_PREFIX."extrafields WHERE elementtype = 'member'";
|
||||||
$resql=$this->db->query($sql);
|
$resql=$this->db->query($sql);
|
||||||
@ -223,7 +223,7 @@ class modAdherent extends DolibarrModules
|
|||||||
// End add extra fields
|
// End add extra fields
|
||||||
$this->import_fieldshidden_array[$r]=array('extra.fk_object'=>'lastrowid-'.MAIN_DB_PREFIX.'adherent'); // aliastable.field => ('user->id' or 'lastrowid-'.tableparent)
|
$this->import_fieldshidden_array[$r]=array('extra.fk_object'=>'lastrowid-'.MAIN_DB_PREFIX.'adherent'); // aliastable.field => ('user->id' or 'lastrowid-'.tableparent)
|
||||||
$this->import_regex_array[$r]=array('a.civilite'=>'code@'.MAIN_DB_PREFIX.'c_civilite','a.fk_adherent_type'=>'rowid@'.MAIN_DB_PREFIX.'adherent_type','a.morphy'=>'(phy|mor)','a.statut'=>'^[0|1]','a.datec'=>'^[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]$','a.datefin'=>'^[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]$');
|
$this->import_regex_array[$r]=array('a.civilite'=>'code@'.MAIN_DB_PREFIX.'c_civilite','a.fk_adherent_type'=>'rowid@'.MAIN_DB_PREFIX.'adherent_type','a.morphy'=>'(phy|mor)','a.statut'=>'^[0|1]','a.datec'=>'^[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]$','a.datefin'=>'^[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]$');
|
||||||
$this->import_examplevalues_array[$r]=array('a.civilite'=>"MR",'a.nom'=>'Smith','a.firstname'=>'John','a.login'=>'jsmith','a.pass'=>'passofjsmith','a.fk_adherent_type'=>'1','a.morphy'=>'"mor" or "phy"','a.societe'=>'JS company','a.address'=>'21 jump street','a.zip'=>'55000','a.town'=>'New York','a.country'=>'1','a.email'=>'jsmith@example.com','a.naiss'=>'1972-10-10','a.statut'=>"0 or 1",'a.note'=>"This is a comment on member",'a.datec'=>dol_print_date($now,'%Y-%m-%d'),'a.datefin'=>dol_print_date(dol_time_plus_duree($now, 1, 'y'),'%Y-%m-%d'));
|
$this->import_examplevalues_array[$r]=array('a.civilite'=>"MR",'a.nom'=>'Smith','a.firstname'=>'John','a.login'=>'jsmith','a.pass'=>'passofjsmith','a.fk_adherent_type'=>'1','a.morphy'=>'"mor" or "phy"','a.societe'=>'JS company','a.address'=>'21 jump street','a.zip'=>'55000','a.town'=>'New York','a.country'=>'1','a.email'=>'jsmith@example.com','a.birth'=>'1972-10-10','a.statut'=>"0 or 1",'a.note'=>"This is a comment on member",'a.datec'=>dol_print_date($now,'%Y-%m-%d'),'a.datefin'=>dol_print_date(dol_time_plus_duree($now, 1, 'y'),'%Y-%m-%d'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -227,13 +227,13 @@ class Export
|
|||||||
$sql.=$this->array_export_sql_end[$indice];
|
$sql.=$this->array_export_sql_end[$indice];
|
||||||
|
|
||||||
//construction du filtrage si le parametrage existe
|
//construction du filtrage si le parametrage existe
|
||||||
if (is_array($array_filterValue))
|
if (is_array($array_filterValue) && !empty($array_filterValue))
|
||||||
{
|
{
|
||||||
$sqlWhere='';
|
$sqlWhere='';
|
||||||
// pour ne pas a gerer le nombre de condition
|
// pour ne pas a gerer le nombre de condition
|
||||||
foreach ($array_filterValue as $key => $value)
|
foreach ($array_filterValue as $key => $value)
|
||||||
{
|
{
|
||||||
$sqlWhere.=" and ".$this->build_filterQuery($this->array_export_TypeFields[$indice][$key], $key, $array_filterValue[$key]);
|
if ($value != '') $sqlWhere.=" and ".$this->build_filterQuery($this->array_export_TypeFields[$indice][$key], $key, $array_filterValue[$key]);
|
||||||
}
|
}
|
||||||
$sql.=$sqlWhere;
|
$sql.=$sqlWhere;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -63,6 +63,7 @@ alter table llx_adherent CHANGE COLUMN prenom firstname varchar(50);
|
|||||||
alter table llx_adherent CHANGE COLUMN ville town text;
|
alter table llx_adherent CHANGE COLUMN ville town text;
|
||||||
alter table llx_adherent CHANGE COLUMN cp zip varchar(10);
|
alter table llx_adherent CHANGE COLUMN cp zip varchar(10);
|
||||||
alter table llx_adherent CHANGE COLUMN pays country varchar(50);
|
alter table llx_adherent CHANGE COLUMN pays country varchar(50);
|
||||||
|
alter table llx_adherent CHANGE COLUMN naiss birth date;
|
||||||
alter table llx_adherent CHANGE COLUMN fk_departement state_id varchar(50);
|
alter table llx_adherent CHANGE COLUMN fk_departement state_id varchar(50);
|
||||||
alter table llx_bank_account CHANGE COLUMN adresse_proprio owner_address text;
|
alter table llx_bank_account CHANGE COLUMN adresse_proprio owner_address text;
|
||||||
alter table llx_bank_account CHANGE COLUMN fk_departement state_id varchar(50);
|
alter table llx_bank_account CHANGE COLUMN fk_departement state_id varchar(50);
|
||||||
|
|||||||
@ -48,7 +48,7 @@ create table llx_adherent
|
|||||||
phone varchar(30),
|
phone varchar(30),
|
||||||
phone_perso varchar(30),
|
phone_perso varchar(30),
|
||||||
phone_mobile varchar(30),
|
phone_mobile varchar(30),
|
||||||
naiss date, -- date de naissance
|
birth date, -- birthday
|
||||||
photo varchar(255), -- filename or url of photo
|
photo varchar(255), -- filename or url of photo
|
||||||
statut smallint NOT NULL DEFAULT 0,
|
statut smallint NOT NULL DEFAULT 0,
|
||||||
public smallint NOT NULL DEFAULT 0, -- certain champ de la fiche sont ils public ou pas ?
|
public smallint NOT NULL DEFAULT 0, -- certain champ de la fiche sont ils public ou pas ?
|
||||||
|
|||||||
@ -289,7 +289,7 @@ GenericMaskCodes4a=<u>Example on the 99th %s of the third party TheCompany done
|
|||||||
GenericMaskCodes4b=<u>Example on third party created on 2007-03-01:</u><br>
|
GenericMaskCodes4b=<u>Example on third party created on 2007-03-01:</u><br>
|
||||||
GenericMaskCodes4c=<u>Example on product created on 2007-03-01:</u><br>
|
GenericMaskCodes4c=<u>Example on product created on 2007-03-01:</u><br>
|
||||||
GenericMaskCodes5=<b>ABC{yy}{mm}-{000000}</b> will give <b>ABC0701-000099</b><br><b>{0000+100}-ZZZ/{dd}/XXX</b> will give <b>0199-ZZZ/31/XXX</b>
|
GenericMaskCodes5=<b>ABC{yy}{mm}-{000000}</b> will give <b>ABC0701-000099</b><br><b>{0000+100}-ZZZ/{dd}/XXX</b> will give <b>0199-ZZZ/31/XXX</b>
|
||||||
GenericNumRefModelDesc=Return a customizable number according to a defined mask.
|
GenericNumRefModelDesc=Returns a customizable number according to a defined mask.
|
||||||
ServerAvailableOnIPOrPort=Server is available at address <b>%s</b> on port <b>%s</b>
|
ServerAvailableOnIPOrPort=Server is available at address <b>%s</b> on port <b>%s</b>
|
||||||
ServerNotAvailableOnIPOrPort=Server is not available at address <b>%s</b> on port <b>%s</b>
|
ServerNotAvailableOnIPOrPort=Server is not available at address <b>%s</b> on port <b>%s</b>
|
||||||
DoTestServerAvailability=Test server connectivity
|
DoTestServerAvailability=Test server connectivity
|
||||||
@ -915,7 +915,7 @@ RunningUpdateProcessMayBeRequired=Running the upgrade process seems to be requir
|
|||||||
YouMustRunCommandFromCommandLineAfterLoginToUser=You must run this command from command line after login to a shell with user <b>%s</b> or you must add -W option at end of command line to provide <b>%s</b> password.
|
YouMustRunCommandFromCommandLineAfterLoginToUser=You must run this command from command line after login to a shell with user <b>%s</b> or you must add -W option at end of command line to provide <b>%s</b> password.
|
||||||
YourPHPDoesNotHaveSSLSupport=SSL functions not available in your PHP
|
YourPHPDoesNotHaveSSLSupport=SSL functions not available in your PHP
|
||||||
DownloadMoreSkins=More skins to download
|
DownloadMoreSkins=More skins to download
|
||||||
SimpleNumRefModelDesc=Return the reference number with format %syymm-nnnn where yy is year, mm is month and nnnn is a sequence without hole and with no reset
|
SimpleNumRefModelDesc=Returns the reference number with format %syymm-nnnn where yy is year, mm is month and nnnn is a sequence without hole and with no reset
|
||||||
ShowProfIdInAddress=Show professionnal id with addresses on documents
|
ShowProfIdInAddress=Show professionnal id with addresses on documents
|
||||||
TranslationUncomplete=Partial translation
|
TranslationUncomplete=Partial translation
|
||||||
SomeTranslationAreUncomplete=Some languages may be partially translated or may contains errors. If you detect some, you can fix <b>.lang</b> text files into directory <b>htdocs/langs</b> and submit them on the forum at <a href="http://www.dolibarr.org/forum" target="_blank">http://www.dolibarr.org</a>.
|
SomeTranslationAreUncomplete=Some languages may be partially translated or may contains errors. If you detect some, you can fix <b>.lang</b> text files into directory <b>htdocs/langs</b> and submit them on the forum at <a href="http://www.dolibarr.org/forum" target="_blank">http://www.dolibarr.org</a>.
|
||||||
@ -1025,7 +1025,7 @@ WatermarkOnDraftInvoices=Watermark on draft invoices (any if empty)
|
|||||||
PropalSetup=Commercial proposals module setup
|
PropalSetup=Commercial proposals module setup
|
||||||
CreateForm=Create forms
|
CreateForm=Create forms
|
||||||
NumberOfProductLines=Number of product lines
|
NumberOfProductLines=Number of product lines
|
||||||
ProposalsNumberingModules=Commercial proposal numbering modules
|
ProposalsNumberingModules=Commercial proposal numbering models
|
||||||
ProposalsPDFModules=Commercial proposal documents models
|
ProposalsPDFModules=Commercial proposal documents models
|
||||||
ClassifiedInvoiced=Classified invoiced
|
ClassifiedInvoiced=Classified invoiced
|
||||||
HideTreadedPropal=Hide the treated commercial proposals in the list
|
HideTreadedPropal=Hide the treated commercial proposals in the list
|
||||||
@ -1036,7 +1036,7 @@ FreeLegalTextOnProposal=Free text on commercial proposals
|
|||||||
WatermarkOnDraftProposal=Watermark on draft commercial proposals (any if empty)
|
WatermarkOnDraftProposal=Watermark on draft commercial proposals (any if empty)
|
||||||
##### Orders #####
|
##### Orders #####
|
||||||
OrdersSetup=Order management setup
|
OrdersSetup=Order management setup
|
||||||
OrdersNumberingModules=Orders numbering modules
|
OrdersNumberingModules=Orders numbering models
|
||||||
OrdersModelModule=Order documents models
|
OrdersModelModule=Order documents models
|
||||||
HideTreadedOrders=Hide the treated or canceled orders in the list
|
HideTreadedOrders=Hide the treated or canceled orders in the list
|
||||||
ValidOrderAfterPropalClosed=To validate the order after proposal closer, makes it possible not to step by the provisional order
|
ValidOrderAfterPropalClosed=To validate the order after proposal closer, makes it possible not to step by the provisional order
|
||||||
@ -1050,7 +1050,7 @@ Bookmark4uSetup=Bookmark4u module setup
|
|||||||
##### Interventions #####
|
##### Interventions #####
|
||||||
InterventionsSetup=Interventions module setup
|
InterventionsSetup=Interventions module setup
|
||||||
FreeLegalTextOnInterventions=Free text on intervention documents
|
FreeLegalTextOnInterventions=Free text on intervention documents
|
||||||
FicheinterNumberingModules=Intervention numbering modules
|
FicheinterNumberingModules=Intervention numbering models
|
||||||
TemplatePDFInterventions=Intervention card documents models
|
TemplatePDFInterventions=Intervention card documents models
|
||||||
WatermarkOnDraftInterventionCards=Watermark on intervention card documents (any if empty)
|
WatermarkOnDraftInterventionCards=Watermark on intervention card documents (any if empty)
|
||||||
##### Contracts #####
|
##### Contracts #####
|
||||||
|
|||||||
@ -243,7 +243,7 @@ if ($action == 'add')
|
|||||||
$adh->typeid = $_POST["type"];
|
$adh->typeid = $_POST["type"];
|
||||||
$adh->note = $_POST["comment"];
|
$adh->note = $_POST["comment"];
|
||||||
$adh->morphy = $_POST["morphy"];
|
$adh->morphy = $_POST["morphy"];
|
||||||
$adh->naiss = $birthday;
|
$adh->birth = $birthday;
|
||||||
|
|
||||||
foreach($_POST as $key => $value){
|
foreach($_POST as $key => $value){
|
||||||
if (preg_match("/^options_/",$key)){
|
if (preg_match("/^options_/",$key)){
|
||||||
|
|||||||
@ -95,7 +95,7 @@ if ($id > 0)
|
|||||||
print '<tr><td>'.$langs->trans("Zip").' '.$langs->trans("Town").'</td><td class="valeur">'.$object->zip.' '.$object->town.' </td></tr>';
|
print '<tr><td>'.$langs->trans("Zip").' '.$langs->trans("Town").'</td><td class="valeur">'.$object->zip.' '.$object->town.' </td></tr>';
|
||||||
print '<tr><td>'.$langs->trans("Country").'</td><td class="valeur">'.$object->country.' </td></tr>';
|
print '<tr><td>'.$langs->trans("Country").'</td><td class="valeur">'.$object->country.' </td></tr>';
|
||||||
print '<tr><td>'.$langs->trans("EMail").'</td><td class="valeur">'.$object->email.' </td></tr>';
|
print '<tr><td>'.$langs->trans("EMail").'</td><td class="valeur">'.$object->email.' </td></tr>';
|
||||||
print '<tr><td>'.$langs->trans("Birthday").'</td><td class="valeur">'.$object->naiss.' </td></tr>';
|
print '<tr><td>'.$langs->trans("Birthday").'</td><td class="valeur">'.$object->birth.' </td></tr>';
|
||||||
|
|
||||||
if (isset($object->photo) && $object->photo !='')
|
if (isset($object->photo) && $object->photo !='')
|
||||||
{
|
{
|
||||||
|
|||||||
@ -101,7 +101,7 @@ if (! $sortfield) { $sortfield="nom"; }
|
|||||||
|
|
||||||
llxHeaderVierge($langs->trans("ListOfValidatedPublicMembers"));
|
llxHeaderVierge($langs->trans("ListOfValidatedPublicMembers"));
|
||||||
|
|
||||||
$sql = "SELECT rowid, firstname, lastname, societe, zip, town, email, naiss, photo";
|
$sql = "SELECT rowid, firstname, lastname, societe, zip, town, email, birth, photo";
|
||||||
$sql.= " FROM ".MAIN_DB_PREFIX."adherent";
|
$sql.= " FROM ".MAIN_DB_PREFIX."adherent";
|
||||||
$sql.= " WHERE entity = ".$entity;
|
$sql.= " WHERE entity = ".$entity;
|
||||||
$sql.= " AND statut = 1";
|
$sql.= " AND statut = 1";
|
||||||
@ -127,7 +127,7 @@ if ($result)
|
|||||||
print '<td><a href="'.$_SERVER["PHP_SELF"].'?page='.$page.'&sortorder=ASC&sortfield=firstname">'.$langs->trans("Firstname").'</a>';
|
print '<td><a href="'.$_SERVER["PHP_SELF"].'?page='.$page.'&sortorder=ASC&sortfield=firstname">'.$langs->trans("Firstname").'</a>';
|
||||||
print ' <a href="'.$_SERVER['PHP_SELF'].'?page='.$page.'&sortorder=ASC&sortfield=lastname">'.$langs->trans("Lastname").'</a>';
|
print ' <a href="'.$_SERVER['PHP_SELF'].'?page='.$page.'&sortorder=ASC&sortfield=lastname">'.$langs->trans("Lastname").'</a>';
|
||||||
print ' / <a href="'.$_SERVER["PHP_SELF"].'?page='.$page.'&sortorder=ASC&sortfield=societe">'.$langs->trans("Company").'</a></td>'."\n";
|
print ' / <a href="'.$_SERVER["PHP_SELF"].'?page='.$page.'&sortorder=ASC&sortfield=societe">'.$langs->trans("Company").'</a></td>'."\n";
|
||||||
//print_liste_field_titre($langs->trans("DateToBirth"),"public_list.php","naiss",'',$param,$sortfield,$sortorder); // est-ce nécessaire ??
|
//print_liste_field_titre($langs->trans("DateToBirth"),"public_list.php","birth",'',$param,$sortfield,$sortorder); // est-ce nécessaire ??
|
||||||
print_liste_field_titre($langs->trans("EMail"),"public_list.php","email",'',$param,$sortfield,$sortorder);
|
print_liste_field_titre($langs->trans("EMail"),"public_list.php","email",'',$param,$sortfield,$sortorder);
|
||||||
print_liste_field_titre($langs->trans("Zip"),"public_list.php","zip","",$param,$sortfield,$sortorder);
|
print_liste_field_titre($langs->trans("Zip"),"public_list.php","zip","",$param,$sortfield,$sortorder);
|
||||||
print_liste_field_titre($langs->trans("Town"),"public_list.php","town","",$param,$sortfield,$sortorder);
|
print_liste_field_titre($langs->trans("Town"),"public_list.php","town","",$param,$sortfield,$sortorder);
|
||||||
@ -141,7 +141,7 @@ if ($result)
|
|||||||
$var=!$var;
|
$var=!$var;
|
||||||
print "<tr $bc[$var]>";
|
print "<tr $bc[$var]>";
|
||||||
print '<td><a href="public_card.php?id='.$objp->rowid.'">'.dolGetFirstLastname($obj->firstname, $obj->lastname).($objp->societe?' / '.$objp->societe:'').'</a></td>'."\n";
|
print '<td><a href="public_card.php?id='.$objp->rowid.'">'.dolGetFirstLastname($obj->firstname, $obj->lastname).($objp->societe?' / '.$objp->societe:'').'</a></td>'."\n";
|
||||||
//print "<td>$objp->naiss</td>\n"; // est-ce nécessaire ??
|
//print "<td>$objp->birth</td>\n"; // est-ce nécessaire ??
|
||||||
print '<td>'.$objp->email.'</td>'."\n";
|
print '<td>'.$objp->email.'</td>'."\n";
|
||||||
print '<td>'.$objp->zip.'</td>'."\n";
|
print '<td>'.$objp->zip.'</td>'."\n";
|
||||||
print '<td>'.$objp->town.'</td>'."\n";
|
print '<td>'.$objp->town.'</td>'."\n";
|
||||||
|
|||||||
@ -127,7 +127,7 @@ if ($resql)
|
|||||||
$obj = $db->fetch_object($resql);
|
$obj = $db->fetch_object($resql);
|
||||||
|
|
||||||
// sendto en RFC2822
|
// sendto en RFC2822
|
||||||
$sendto = str_replace(',',' ',dolGetFirstLastname($obj->firstname, $obj->lastname) ." <".$obj->email.">";
|
$sendto = str_replace(',',' ',dolGetFirstLastname($obj->firstname, $obj->lastname) ." <".$obj->email.">");
|
||||||
|
|
||||||
// Make subtsitutions on topic and body
|
// Make subtsitutions on topic and body
|
||||||
$other=explode(';',$obj->other);
|
$other=explode(';',$obj->other);
|
||||||
|
|||||||
@ -207,7 +207,7 @@ if ($result >= 0)
|
|||||||
$member->morphy='phy';
|
$member->morphy='phy';
|
||||||
$member->photo='';
|
$member->photo='';
|
||||||
$member->public=1;
|
$member->public=1;
|
||||||
$member->naiss=dol_stringtotime($ldapuser[$conf->global->LDAP_FIELD_BIRTHDATE]);
|
$member->birth=dol_stringtotime($ldapuser[$conf->global->LDAP_FIELD_BIRTHDATE]);
|
||||||
|
|
||||||
$member->statut=-1;
|
$member->statut=-1;
|
||||||
if (isset($ldapuser[$conf->global->LDAP_FIELD_MEMBER_STATUS]))
|
if (isset($ldapuser[$conf->global->LDAP_FIELD_MEMBER_STATUS]))
|
||||||
|
|||||||
@ -222,7 +222,7 @@ class AdherentTest extends PHPUnit_Framework_TestCase
|
|||||||
$localobject->phone_perso='New tel perso';
|
$localobject->phone_perso='New tel perso';
|
||||||
$localobject->phone_mobile='New tel mobile';
|
$localobject->phone_mobile='New tel mobile';
|
||||||
$localobject->email='newemail@newemail.com';
|
$localobject->email='newemail@newemail.com';
|
||||||
$localobject->naiss=$timestamp;
|
$localobject->birth=$timestamp;
|
||||||
$result=$localobject->update($user);
|
$result=$localobject->update($user);
|
||||||
print __METHOD__." id=".$localobject->id." result=".$result."\n";
|
print __METHOD__." id=".$localobject->id." result=".$result."\n";
|
||||||
$this->assertLessThan($result, 0);
|
$this->assertLessThan($result, 0);
|
||||||
@ -256,7 +256,7 @@ class AdherentTest extends PHPUnit_Framework_TestCase
|
|||||||
$this->assertEquals($localobject->phone_perso, $newobject->phone_perso);
|
$this->assertEquals($localobject->phone_perso, $newobject->phone_perso);
|
||||||
$this->assertEquals($localobject->phone_mobile, $newobject->phone_mobile);
|
$this->assertEquals($localobject->phone_mobile, $newobject->phone_mobile);
|
||||||
$this->assertEquals($localobject->email, $newobject->email);
|
$this->assertEquals($localobject->email, $newobject->email);
|
||||||
$this->assertEquals($localobject->naiss, $timestamp);
|
$this->assertEquals($localobject->birth, $timestamp);
|
||||||
$this->assertEquals($localobject->morphy, $newobject->morphy);
|
$this->assertEquals($localobject->morphy, $newobject->morphy);
|
||||||
|
|
||||||
//We return newobject because of new values
|
//We return newobject because of new values
|
||||||
@ -281,11 +281,11 @@ class AdherentTest extends PHPUnit_Framework_TestCase
|
|||||||
$db=$this->savdb;
|
$db=$this->savdb;
|
||||||
|
|
||||||
$template = '%DOL_MAIN_URL_ROOT%,%ID%,%CIVILITE%,%FIRSTNAME%,%LASTNAME%,%FULLNAME%,%COMPANY%,'.
|
$template = '%DOL_MAIN_URL_ROOT%,%ID%,%CIVILITE%,%FIRSTNAME%,%LASTNAME%,%FULLNAME%,%COMPANY%,'.
|
||||||
'%ADDRESS%,%ZIP%,%TOWN%,%COUNTRY%,%EMAIL%,%NAISS%,%PHOTO%,%LOGIN%,%PASSWORD%,%PRENOM%,'.
|
'%ADDRESS%,%ZIP%,%TOWN%,%COUNTRY%,%EMAIL%,%BIRTH%,%PHOTO%,%LOGIN%,%PASSWORD%,%PRENOM%,'.
|
||||||
'%NOM%,%SOCIETE%,%ADDRESS%,%ZIP%,%TOWN%,%COUNTRY%';
|
'%NOM%,%SOCIETE%,%ADDRESS%,%ZIP%,%TOWN%,%COUNTRY%';
|
||||||
|
|
||||||
$expected = DOL_MAIN_URL_ROOT.','.$localobject->id.',0,New firstname,New name,New firstname New name,'.
|
$expected = DOL_MAIN_URL_ROOT.','.$localobject->id.',0,New firstname,New name,New firstname New name,'.
|
||||||
'New company,New address,New zip,New town,Belgium,newemail@newemail.com,'.dol_print_date($localobject->naiss,'day').',,'.
|
'New company,New address,New zip,New town,Belgium,newemail@newemail.com,'.dol_print_date($localobject->birth,'day').',,'.
|
||||||
'newlogin,dolibspec,New firstname,New name,New company,New address,New zip,New town,Belgium';
|
'newlogin,dolibspec,New firstname,New name,New company,New address,New zip,New town,Belgium';
|
||||||
|
|
||||||
$result = $localobject->makeSubstitution($template);
|
$result = $localobject->makeSubstitution($template);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user