$this->settings['deathdate'] = new ProfileSettingDate(true);
$this->settings['birthdate'] = new ProfileSettingDate(true);
$this->settings['birthdate_ref'] = new ProfileSettingDate(true);
$this->settings['deathdate'] = new ProfileSettingDate(true);
$this->settings['birthdate'] = new ProfileSettingDate(true);
$this->settings['birthdate_ref'] = new ProfileSettingDate(true);
// Checkout all data...
$res = XDB::query("SELECT p.nationality1, p.nationality2, p.nationality3, IF(p.birthdate = 0, '', p.birthdate) AS birthdate,
p.email_directory as email_directory, pd.promo AS promo_display,
// Checkout all data...
$res = XDB::query("SELECT p.nationality1, p.nationality2, p.nationality3, IF(p.birthdate = 0, '', p.birthdate) AS birthdate,
p.email_directory as email_directory, pd.promo AS promo_display,
- p.freetext, p.freetext_pub, p.ax_id AS matricule_ax, pd.yourself,
+ p.freetext, p.freetext_pub, p.axfreetext, p.ax_id AS matricule_ax, pd.yourself,
p.deathdate, IF(p.birthdate_ref = 0, '', p.birthdate_ref) AS birthdate_ref,
p.title AS profile_title
FROM profiles AS p
p.deathdate, IF(p.birthdate_ref = 0, '', p.birthdate_ref) AS birthdate_ref,
p.title AS profile_title
FROM profiles AS p
{
if ($this->changed['nationality1'] || $this->changed['nationality2'] || $this->changed['nationality3']
|| $this->changed['birthdate'] || $this->changed['freetext'] || $this->changed['freetext_pub']
{
if ($this->changed['nationality1'] || $this->changed['nationality2'] || $this->changed['nationality3']
|| $this->changed['birthdate'] || $this->changed['freetext'] || $this->changed['freetext_pub']
XDB::execute("UPDATE profiles
SET nationality1 = {?}, nationality2 = {?}, nationality3 = {?}, birthdate = {?},
XDB::execute("UPDATE profiles
SET nationality1 = {?}, nationality2 = {?}, nationality3 = {?}, birthdate = {?},
- freetext = {?}, freetext_pub = {?}, email_directory = {?}, title = {?}
+ freetext = {?}, freetext_pub = {?}, axfreetext = {?}, email_directory = {?}, title = {?}
WHERE pid = {?}",
$this->values['nationality1'], $this->values['nationality2'], $this->values['nationality3'],
ProfileSettingDate::toSQLDate($this->values['birthdate']),
WHERE pid = {?}",
$this->values['nationality1'], $this->values['nationality2'], $this->values['nationality3'],
ProfileSettingDate::toSQLDate($this->values['birthdate']),
- $this->values['freetext'], $this->values['freetext_pub'], $new_email,
+ $this->values['freetext'], $this->values['freetext_pub'], $this->values['axfreetext'], $new_email,
$this->values['profile_title'], $this->pid());
}
if ($this->changed['photo_pub']) {
$this->values['profile_title'], $this->pid());
}
if ($this->changed['photo_pub']) {