diff --git a/htdocs/adherents/adherent.class.php b/htdocs/adherents/adherent.class.php index 2aa8c4bceff..05be6c0643f 100644 --- a/htdocs/adherents/adherent.class.php +++ b/htdocs/adherents/adherent.class.php @@ -517,8 +517,9 @@ class Adherent /** - \brief fonction qui récupére l'adhérent en donnant son rowid - \param rowid + \brief Fonction qui récupére l'adhérent en donnant son rowid + \param rowid + \return int <0 si KO, >0 si OK */ function fetch($rowid) { @@ -531,13 +532,14 @@ class Adherent $sql.= " FROM ".MAIN_DB_PREFIX."adherent_type as t, ".MAIN_DB_PREFIX."adherent as d"; $sql.= " LEFT JOIN ".MAIN_DB_PREFIX."c_pays as p ON d.pays = p.rowid"; $sql.= " WHERE d.rowid = ".$rowid." AND d.fk_adherent_type = t.rowid"; - - $result=$this->db->query( $sql); - if ($result) + dolibarr_syslog("Adherent.class::fetch sql=".$sql); + + $resql=$this->db->query($sql); + if ($resql) { - if ($this->db->num_rows($result)) + if ($this->db->num_rows($resql)) { - $obj = $this->db->fetch_object($result); + $obj = $this->db->fetch_object($resql); $this->id = $obj->rowid; $this->statut = $obj->statut; @@ -568,12 +570,13 @@ class Adherent $this->type = $obj->type; $this->need_subscription = ($obj->cotisation=='yes'?1:0); } + return 1; } else { - dolibarr_print_error($this->db); + $this->error=$this->db->error(); + return -1; } - } diff --git a/htdocs/adherents/adherent_type.class.php b/htdocs/adherents/adherent_type.class.php index 2f7bcf7e6be..c44a0b9f4bf 100644 --- a/htdocs/adherents/adherent_type.class.php +++ b/htdocs/adherents/adherent_type.class.php @@ -159,39 +159,43 @@ class AdherentType } /** - \brief fonction qui permet de récupérer le status de l'adhérent - \param rowid -*/ - + \brief Fonction qui permet de récupérer le status de l'adhérent + \param rowid + \return int <0 si KO, >0 si OK + */ function fetch($rowid) - { - $sql = "SELECT d.rowid, d.libelle, d.statut, d.cotisation, d.mail_valid, d.note, d.vote"; - $sql .= " FROM ".MAIN_DB_PREFIX."adherent_type as d"; - $sql .= " WHERE d.rowid = $rowid"; - - if ( $this->db->query( $sql) ) - { - if ($this->db->num_rows()) - { - $obj = $this->db->fetch_object(); - - $this->id = $obj->rowid; - $this->libelle = $obj->libelle; - $this->statut = $obj->statut; - $this->cotisation = $obj->cotisation; - $this->mail_valid = $obj->mail_valid; - $this->commentaire = $obj->note; - $this->vote = $obj->vote; - } - } - else - { - print $this->db->error(); - } + { + $sql = "SELECT d.rowid, d.libelle, d.statut, d.cotisation, d.mail_valid, d.note, d.vote"; + $sql .= " FROM ".MAIN_DB_PREFIX."adherent_type as d"; + $sql .= " WHERE d.rowid = ".$rowid; + dolibarr_syslog("Adherent_type::fetch sql=".$sql); - } + $resql=$this->db->query($sql); + if ($resql) + { + if ($this->db->num_rows($resql)) + { + $obj = $this->db->fetch_object($resql); + + $this->id = $obj->rowid; + $this->libelle = $obj->libelle; + $this->statut = $obj->statut; + $this->cotisation = $obj->cotisation; + $this->mail_valid = $obj->mail_valid; + $this->commentaire = $obj->note; + $this->vote = $obj->vote; + } + return 1; + } + else + { + $this->error=$this->db->error(); + return -1; + } + } - function liste_array() + + function liste_array() { $projets = array(); diff --git a/htdocs/adherents/fiche.php b/htdocs/adherents/fiche.php index 4edd6218ff1..28de40bc746 100644 --- a/htdocs/adherents/fiche.php +++ b/htdocs/adherents/fiche.php @@ -29,6 +29,7 @@ */ require("./pre.inc.php"); +require_once(DOL_DOCUMENT_ROOT."/lib/member.lib.php"); require_once(DOL_DOCUMENT_ROOT."/adherents/adherent.class.php"); require_once(DOL_DOCUMENT_ROOT."/adherents/adherent_type.class.php"); require_once(DOL_DOCUMENT_ROOT."/adherents/adherent_options.class.php"); @@ -557,13 +558,21 @@ if ($action == 'create') print '
| '.$langs->trans("Lastname").'* | '; print ' | '.$langs->trans("Comments").' : | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| '.$langs->trans("Firstname").'* | '; $rowspan=12; print ' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| '.$langs->trans("Login").'* | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| '.$langs->trans("Password").'* | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| '.$langs->trans("MemberType").'* | '; $listetype=$adht->liste_array(); @@ -583,15 +592,21 @@ if ($action == 'create') print " | \n"; print '||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| '.$langs->trans("Company").' | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| '.$langs->trans("Address").' | '; print ' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| '.$langs->trans("Zip").' / '.$langs->trans("Town").' | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| '.$langs->trans("Country").' | '; $htmls->select_pays($adh->pays_code?$adh->pays_code:$mysoc->pays_code,'pays_code'); print ' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| '.$langs->trans("EMail").($conf->global->ADHERENT_MAIL_REQUIRED?'*':'').' | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| '.$langs->trans("Login").'* | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| '.$langs->trans("Password").'* | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ".$langs->trans("Birthday")." | \n";
@@ -659,17 +674,13 @@ if ($rowid && $action != 'edit')
$html = new Form($db);
- /*
- * Affichage onglets
- */
- $h = 0;
+ /*
+ * Affichage onglets
+ */
+ $head = member_prepare_head($adh);
- $head[$h][0] = DOL_URL_ROOT.'/adherents/fiche.php?rowid='.$rowid;
- $head[$h][1] = $langs->trans("Card");
- $hselected=$h;
- $h++;
+ dolibarr_fiche_head($head, 'general', $langs->trans("Member").": ".$adh->fullname);
- dolibarr_fiche_head($head, $hselected, $langs->trans("MemberCard"));
// Confirmation de la suppression de l'adhérent
if ($action == 'delete')
@@ -737,19 +748,26 @@ if ($rowid && $action != 'edit')
}
- print '
'; + + +print_titre($langs->trans("LDAPInformationsForThisMember")); + +// Affichage attributs LDAP +print '
'.$mesg.' ';
else print ''; -// Onglets -$h = 0; -$head[$h][0] = DOL_URL_ROOT."/admin/ldap.php"; -$head[$h][1] = $langs->trans("LDAPGlobalParameters"); -$hselected=$h; -$h++; -if ($conf->global->LDAP_SYNCHRO_ACTIVE) -{ - $head[$h][0] = DOL_URL_ROOT."/admin/ldap_users.php"; - $head[$h][1] = $langs->trans("LDAPUsersAndGroupsSynchro"); - $h++; -} - -if ($conf->global->LDAP_CONTACT_ACTIVE) -{ - $head[$h][0] = DOL_URL_ROOT."/admin/ldap_contacts.php"; - $head[$h][1] = $langs->trans("LDAPContactsSynchro"); - $h++; -} - -if ($conf->global->LDAP_MEMBERS_ACTIVE) -{ - $head[$h][0] = DOL_URL_ROOT."/admin/ldap_members.php"; - $head[$h][1] = $langs->trans("LDAPMembersSynchro"); - $h++; -} - -dolibarr_fiche_head($head, $hselected, $langs->trans("LDAP")); +dolibarr_fiche_head($head, 'ldap', $langs->trans("LDAP")); $var=true; $html=new Form($db); diff --git a/htdocs/admin/ldap_contacts.php b/htdocs/admin/ldap_contacts.php index aae2f5114ed..49b33ad1f7b 100644 --- a/htdocs/admin/ldap_contacts.php +++ b/htdocs/admin/ldap_contacts.php @@ -32,6 +32,7 @@ require("./pre.inc.php"); require_once(DOL_DOCUMENT_ROOT."/lib/authldap.lib.php"); +require_once(DOL_DOCUMENT_ROOT."/lib/ldap.lib.php"); require_once (DOL_DOCUMENT_ROOT."/contact.class.php"); $langs->load("admin"); @@ -47,7 +48,10 @@ if (!$user->admin) if ($_GET["action"] == 'setvalue' && $user->admin) { $error=0; + if (! dolibarr_set_const($db, 'LDAP_KEY_CONTACTS',$_POST["key"])) $error++; + if (! dolibarr_set_const($db, 'LDAP_CONTACT_DN',$_POST["contactdn"])) $error++; + if (! dolibarr_set_const($db, 'LDAP_FIELD_FULLNAME',$_POST["fieldfullname"])) $error++; if (! dolibarr_set_const($db, 'LDAP_FIELD_NAME',$_POST["fieldname"])) $error++; if (! dolibarr_set_const($db, 'LDAP_FIELD_FIRSTNAME',$_POST["fieldfirstname"])) $error++; if (! dolibarr_set_const($db, 'LDAP_FIELD_MAIL',$_POST["fieldmail"])) $error++; @@ -72,8 +76,11 @@ if ($_GET["action"] == 'setvalue' && $user->admin) llxHeader(); +$head = ldap_prepare_head(); + print_fiche_titre($langs->trans("LDAPSetup"),'','setup'); + // Test si fonction LDAP actives if (! function_exists("ldap_connect")) { @@ -84,36 +91,8 @@ if ($mesg) print ' '.$mesg.' ';
else print ''; -// Onglets -$h = 0; +dolibarr_fiche_head($head, 'contacts', $langs->trans("LDAP")); -$head[$h][0] = DOL_URL_ROOT."/admin/ldap.php"; -$head[$h][1] = $langs->trans("LDAPGlobalParameters"); -$h++; - -if ($conf->global->LDAP_SYNCHRO_ACTIVE) -{ - $head[$h][0] = DOL_URL_ROOT."/admin/ldap_users.php"; - $head[$h][1] = $langs->trans("LDAPUsersAndGroupsSynchro"); - $h++; -} - -if ($conf->global->LDAP_CONTACT_ACTIVE) -{ - $head[$h][0] = DOL_URL_ROOT."/admin/ldap_contacts.php"; - $head[$h][1] = $langs->trans("LDAPContactsSynchro"); - $hselected=$h; - $h++; -} - -if ($conf->global->LDAP_MEMBERS_ACTIVE) -{ - $head[$h][0] = DOL_URL_ROOT."/admin/ldap_members.php"; - $head[$h][1] = $langs->trans("LDAPMembersSynchro"); - $h++; -} - -dolibarr_fiche_head($head, $hselected, $langs->trans("LDAP")); print $langs->trans("LDAPDescContact").' '; print ' '; @@ -123,7 +102,8 @@ print '
'.$mesg.' ';
else print ''; -// Onglets -$h = 0; +dolibarr_fiche_head($head, 'members', $langs->trans("LDAP")); -$head[$h][0] = DOL_URL_ROOT."/admin/ldap.php"; -$head[$h][1] = $langs->trans("LDAPGlobalParameters"); -$h++; - -if ($conf->global->LDAP_SYNCHRO_ACTIVE) -{ - $head[$h][0] = DOL_URL_ROOT."/admin/ldap_users.php"; - $head[$h][1] = $langs->trans("LDAPUsersAndGroupsSynchro"); - $h++; -} - -if ($conf->global->LDAP_CONTACT_ACTIVE) -{ - $head[$h][0] = DOL_URL_ROOT."/admin/ldap_contacts.php"; - $head[$h][1] = $langs->trans("LDAPContactsSynchro"); - $h++; -} - -if ($conf->global->LDAP_MEMBERS_ACTIVE) -{ - $head[$h][0] = DOL_URL_ROOT."/admin/ldap_members.php"; - $head[$h][1] = $langs->trans("LDAPMembersSynchro"); - $hselected=$h; - $h++; -} - - -dolibarr_fiche_head($head, $hselected, $langs->trans("LDAP")); print $langs->trans("LDAPDescMembers").' '; print ' '; @@ -130,81 +107,102 @@ $html=new Form($db); print ' '.$langs->trans("LDAPSynchronizeMembers").' | ';
+print ''.$langs->trans("LDAPSynchronizeUsers").' | ';
+print ''.$langs->trans("LDAPNamingAttribute").' | ';
print "'.$langs->trans("LDAPMemberDn").picto_required().' | ';
-print '';
-print ' | '.$langs->trans("LDAPMemberDnExample").' | '.$langs->trans("LDAPMemberTypeDn").picto_required().' | ';
-print '';
-print ' | '.$langs->trans("LDAPMemberTypeDnExample").' | '.$langs->trans("LDAPMemberDnExample").' | ';
+print ' | ';
+print '';
// Filtre
/*
$var=!$var;
print ''.$langs->trans("LDAPFilterConnection").picto_required().' | ';
print '';
-print ' | '.$langs->trans("LDAPFilterConnectionExample").' | '.$langs->trans("LDAPFilterConnectionExample").' | ';
+print '';
*/
+// Common name
+$var=!$var;
+print ''.$langs->trans("LDAPFieldFullname").' | ';
+print '';
+print ' | '.$langs->trans("LDAPFieldFullnameExample").' | ';
+print 'global->LDAP_KEY_MEMBERS==$conf->global->LDAP_FIELD_FULLNAME?' checked="true"':'')."> | ";
+print ''.$langs->trans("LDAPFieldName").picto_required().' | ';
+print ' | '.$langs->trans("LDAPFieldName").' | ';
print '';
-print ' | '.$langs->trans("LDAPFieldNameExample").' | '.$langs->trans("LDAPFieldNameExample").' | ';
+print 'global->LDAP_KEY_MEMBERS==$conf->global->LDAP_FIELD_NAME?' checked="true"':'')."> | ";
+print '';
// Firstname
$var=!$var;
print ''.$langs->trans("LDAPFieldFirstName").' | ';
print '';
-print ' | '.$langs->trans("LDAPFieldFirstNameExample").' | '.$langs->trans("LDAPFieldFirstNameExample").' | ';
+print 'global->LDAP_KEY_MEMBERS==$conf->global->LDAP_FIELD_FIRSTNAME?' checked="true"':'')."> | ";
+print '';
// Login unix
$var=!$var;
print ''.$langs->trans("LDAPFieldLoginUnix").' | ';
print '';
-print ' | '.$langs->trans("LDAPFieldLoginExample").' | '.$langs->trans("LDAPFieldLoginExample").' | ';
+print 'global->LDAP_KEY_MEMBERS==$conf->global->LDAP_FIELD_LOGIN?' checked="true"':'')."> | ";
+print '';
// Login samba
$var=!$var;
print ''.$langs->trans("LDAPFieldLoginSamba").' | ';
print '';
-print ' | '.$langs->trans("LDAPFieldLoginSambaExample").' | '.$langs->trans("LDAPFieldLoginSambaExample").' | ';
+print 'global->LDAP_KEY_MEMBERS==$conf->global->LDAP_FIELD_LOGIN_SAMBA?' checked="true"':'')."> | ";
+print '';
// Mail
$var=!$var;
print ''.$langs->trans("LDAPFieldMail").' | ';
print '';
-print ' | '.$langs->trans("LDAPFieldMailExample").' | '.$langs->trans("LDAPFieldMailExample").' | ';
+print 'global->LDAP_KEY_MEMBERS==$conf->global->LDAP_FIELD_MAIL?' checked="true"':'')."> | ";
+print '';
// Phone
$var=!$var;
print ''.$langs->trans("LDAPFieldPhone").' | ';
print '';
-print ' | '.$langs->trans("LDAPFieldPhoneExample").' | '.$langs->trans("LDAPFieldFax").' | ';
-print '';
-print ' | '.$langs->trans("LDAPFieldFaxExample").' | '.$langs->trans("LDAPFieldPhoneExample").' | ';
+print 'global->LDAP_KEY_MEMBERS==$conf->global->LDAP_FIELD_PHONE?' checked="true"':'')."> | ";
+print '';
// Mobile
$var=!$var;
print ''.$langs->trans("LDAPFieldMobile").' | ';
print '';
-print ' | '.$langs->trans("LDAPFieldMobileExample").' | '.$langs->trans("LDAPFieldMobileExample").' | ';
+print 'global->LDAP_KEY_MEMBERS==$conf->global->LDAP_FIELD_MOBILE?' checked="true"':'')."> | ";
+print '';
+
+// Fax
+$var=!$var;
+print ''.$langs->trans("LDAPFieldFax").' | ';
+print '';
+print ' | '.$langs->trans("LDAPFieldFaxExample").' | ';
+print 'global->LDAP_KEY_MEMBERS==$conf->global->LDAP_FIELD_FAX?' checked="true"':'')."> | ";
+print ''.$mesg.' ';
else print ''; -// Onglets -$h = 0; +dolibarr_fiche_head($head, 'users', $langs->trans("LDAP")); -$head[$h][0] = DOL_URL_ROOT."/admin/ldap.php"; -$head[$h][1] = $langs->trans("LDAPGlobalParameters"); -$h++; - -if ($conf->global->LDAP_SYNCHRO_ACTIVE) -{ - $head[$h][0] = DOL_URL_ROOT."/admin/ldap_users.php"; - $head[$h][1] = $langs->trans("LDAPUsersAndGroupsSynchro"); - $hselected=$h; - $h++; -} - -if ($conf->global->LDAP_CONTACT_ACTIVE) -{ - $head[$h][0] = DOL_URL_ROOT."/admin/ldap_contacts.php"; - $head[$h][1] = $langs->trans("LDAPContactsSynchro"); - $h++; -} - -if ($conf->global->LDAP_MEMBERS_ACTIVE) -{ - $head[$h][0] = DOL_URL_ROOT."/admin/ldap_members.php"; - $head[$h][1] = $langs->trans("LDAPMembersSynchro"); - $h++; -} - -dolibarr_fiche_head($head, $hselected, $langs->trans("LDAP")); print $langs->trans("LDAPDescUsers").' '; print ' '; @@ -129,79 +107,101 @@ $html=new Form($db); print ' | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| '.$langs->trans("LDAPSynchronizeUsersAndGroup").' | '; +print ''.$langs->trans("LDAPSynchronizeUsers").' | '; +print ''.$langs->trans("LDAPNamingAttribute").' | '; print "|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| '.$langs->trans("LDAPUserDn").picto_required().' | '; -print ''; -print ' | '.$langs->trans("LDAPUserDnExample").' | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| '.$langs->trans("LDAPGroupDn").picto_required().' | '; -print ''; -print ' | '.$langs->trans("LDAPGroupDnExample").' | '.$langs->trans("LDAPUserDnExample").' | '; +print ''; +print ''; // Filtre /* $var=!$var; print ' | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| '.$langs->trans("LDAPFilterConnection").picto_required().' | '; print ''; -print ' | '.$langs->trans("LDAPFilterConnectionExample").' | '.$langs->trans("LDAPFilterConnectionExample").' | '; +print ''; */ +// Common name +$var=!$var; +print '||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| '.$langs->trans("LDAPFieldFullname").' | '; +print ''; +print ' | '.$langs->trans("LDAPFieldFullnameExample").' | '; +print 'global->LDAP_KEY_USERS==$conf->global->LDAP_FIELD_FULLNAME?' checked="true"':'')."> | "; +print '||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| '.$langs->trans("LDAPFieldName").picto_required().' | '; +print ' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| '.$langs->trans("LDAPFieldName").' | '; print ''; -print ' | '.$langs->trans("LDAPFieldNameExample").' | '.$langs->trans("LDAPFieldNameExample").' | '; +print 'global->LDAP_KEY_USERS==$conf->global->LDAP_FIELD_NAME?' checked="true"':'')."> | "; +print ''; // Firstname $var=!$var; print '|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| '.$langs->trans("LDAPFieldFirstName").' | '; print ''; -print ' | '.$langs->trans("LDAPFieldFirstNameExample").' | '.$langs->trans("LDAPFieldFirstNameExample").' | '; +print 'global->LDAP_KEY_USERS==$conf->global->LDAP_FIELD_FIRSTNAME?' checked="true"':'')."> | "; +print ''; // Login unix $var=!$var; print '|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| '.$langs->trans("LDAPFieldLoginUnix").' | '; print ''; -print ' | '.$langs->trans("LDAPFieldLoginExample").' | '.$langs->trans("LDAPFieldLoginExample").' | '; +print 'global->LDAP_KEY_USERS==$conf->global->LDAP_FIELD_LOGIN?' checked="true"':'')."> | "; +print ''; // Login samba $var=!$var; print '|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| '.$langs->trans("LDAPFieldLoginSamba").' | '; print ''; -print ' | '.$langs->trans("LDAPFieldLoginSambaExample").' | '.$langs->trans("LDAPFieldLoginSambaExample").' | '; +print 'global->LDAP_KEY_USERS==$conf->global->LDAP_FIELD_LOGIN_SAMBA?' checked="true"':'')."> | "; +print ''; // Mail $var=!$var; print '|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| '.$langs->trans("LDAPFieldMail").' | '; print ''; -print ' | '.$langs->trans("LDAPFieldMailExample").' | '.$langs->trans("LDAPFieldMailExample").' | '; +print 'global->LDAP_KEY_USERS==$conf->global->LDAP_FIELD_MAIL?' checked="true"':'')."> | "; +print ''; // Phone $var=!$var; print '|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| '.$langs->trans("LDAPFieldPhone").' | '; print ''; -print ' | '.$langs->trans("LDAPFieldPhoneExample").' | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| '.$langs->trans("LDAPFieldFax").' | '; -print ''; -print ' | '.$langs->trans("LDAPFieldFaxExample").' | '.$langs->trans("LDAPFieldPhoneExample").' | '; +print 'global->LDAP_KEY_USERS==$conf->global->LDAP_FIELD_PHONE?' checked="true"':'')."> | "; +print ''; // Mobile $var=!$var; print '|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| '.$langs->trans("LDAPFieldMobile").' | '; print ''; -print ' | '.$langs->trans("LDAPFieldMobileExample").' | '.$langs->trans("LDAPFieldMobileExample").' | '; +print 'global->LDAP_KEY_USERS==$conf->global->LDAP_FIELD_MOBILE?' checked="true"':'')."> | "; +print ''; + +// Fax +$var=!$var; +print '|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| '.$langs->trans("LDAPFieldFax").' | '; +print ''; +print ' | '.$langs->trans("LDAPFieldFaxExample").' | '; +print 'global->LDAP_KEY_USERS==$conf->global->LDAP_FIELD_FAX?' checked="true"':'')."> | "; +print '||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||