diff --git a/htdocs/contact/card.php b/htdocs/contact/card.php
index 9de1672db90..123f9f91f5e 100644
--- a/htdocs/contact/card.php
+++ b/htdocs/contact/card.php
@@ -637,23 +637,25 @@ else
print '';
}
- // Phone / Fax
if (($objsoc->typent_code == 'TE_PRIVATE' || ! empty($conf->global->CONTACT_USE_COMPANY_ADDRESS)) && dol_strlen(trim($object->phone_pro)) == 0) $object->phone_pro = $objsoc->phone; // Predefined with third party
- print '
| ';
- print 'phone_pro).'"> | ';
- print ' | ';
- print 'phone_perso).'"> |
';
-
if (($objsoc->typent_code == 'TE_PRIVATE' || ! empty($conf->global->CONTACT_USE_COMPANY_ADDRESS)) && dol_strlen(trim($object->fax)) == 0) $object->fax = $objsoc->fax; // Predefined with third party
- print ' | ';
- print 'phone_mobile).'"> | ';
- print ' | ';
- print 'fax).'"> |
';
- // EMail
+ // Phone / Fax
+ print '| '.img_picto('', 'object_phoning').' '.$form->editfieldkey('PhonePro', 'phone_pro', '', $object, 0).' | ';
+ print ' | ';
+ print ''.img_picto('', 'object_phoning').' '.$form->editfieldkey('PhonePerso', 'phone_perso', '', $object, 0).' | ';
+ print ' |
';
+
+ print '| '.img_picto('', 'object_phoning_mobile').' '.$form->editfieldkey('PhoneMobile', 'phone_mobile', '', $object, 0).' | ';
+ print ' | ';
+ print ''.img_picto('', 'object_phoning_fax').' '.$form->editfieldkey('Fax', 'fax', '', $object, 0).' | ';
+ print ' |
';
+
if (($objsoc->typent_code == 'TE_PRIVATE' || ! empty($conf->global->CONTACT_USE_COMPANY_ADDRESS)) && dol_strlen(trim($object->email)) == 0) $object->email = $objsoc->email; // Predefined with third party
- print ' | ';
- print 'email).'"> | ';
+
+ // Email
+ print '
| '.img_picto('', 'object_email').' '.$form->editfieldkey('EMail', 'email', '', $object, 0, 'string', '').' | ';
+ print ' | ';
if (! empty($conf->mailing->enabled))
{
$noemail = '';
@@ -928,19 +930,19 @@ else
}
// Phone
- print '
| ';
- print 'phone_pro).'"> | ';
- print ' | ';
- print 'phone_perso).'"> |
';
+ print '| '.img_picto('', 'object_phoning').' '.$form->editfieldkey('PhonePro', 'phone_pro', GETPOST('phone_pro', 'alpha'), $object, 0).' | ';
+ print ' | ';
+ print ''.img_picto('', 'object_phoning').' '.$form->editfieldkey('PhonePerso', 'fax', GETPOST('phone_perso', 'alpha'), $object, 0).' | ';
+ print ' |
';
- print ' | ';
- print 'phone_mobile).'"> | ';
- print ' | ';
- print 'fax).'"> |
';
+ print '| '.img_picto('', 'object_phoning_mobile').' '.$form->editfieldkey('PhoneMobile', 'phone_mobile', GETPOST('phone_mobile', 'alpha'), $object, 0, 'string', '').' | ';
+ print ' | ';
+ print ''.img_picto('', 'object_phoning_fax').' '.$form->editfieldkey('Fax', 'fax', GETPOST('fax', 'alpha'), $object, 0).' | ';
+ print ' |
';
// EMail
- print ' | ';
- print 'email).'"> | ';
+ print '
| '.img_picto('', 'object_email').' '.$form->editfieldkey('EMail', 'email', GETPOST('email', 'alpha'), $object, 0, 'string', '', (! empty($conf->global->SOCIETE_EMAIL_MANDATORY))).' | ';
+ print ' | ';
if (! empty($conf->mailing->enabled))
{
$langs->load("mails");
@@ -949,7 +951,7 @@ else
}
else
{
- print ' | ';
+ print ' | ';
}
print '
';
@@ -975,7 +977,7 @@ else
}
else
{
- print ' | ';
+ print ' | ';
}
print '';
diff --git a/htdocs/societe/card.php b/htdocs/societe/card.php
index cb11324eb68..5dbcd30af25 100644
--- a/htdocs/societe/card.php
+++ b/htdocs/societe/card.php
@@ -1292,6 +1292,12 @@ else
print '';
}
+ // Phone / Fax
+ print '| '.img_picto('', 'object_phoning').' '.$form->editfieldkey('Phone', 'phone', '', $object, 0).' | ';
+ print ' | ';
+ print ''.img_picto('', 'object_phoning_fax').' '.$form->editfieldkey('Fax', 'fax', '', $object, 0).' | ';
+ print ' |
';
+
// Email / Web
print '| '.img_picto('', 'object_email').' '.$form->editfieldkey('EMail', 'email', '', $object, 0, 'string', '', $conf->global->SOCIETE_EMAIL_MANDATORY).' | ';
print ' |
';
@@ -1334,12 +1340,6 @@ else
}
}
- // Phone / Fax
- print '| '.img_picto('', 'object_phoning').' '.$form->editfieldkey('Phone', 'phone', '', $object, 0).' | ';
- print ' | ';
- print ''.img_picto('', 'object_phoning_fax').' '.$form->editfieldkey('Fax', 'fax', '', $object, 0).' | ';
- print ' |
';
-
// Prof ids
$i=1; $j=0;
while ($i <= 6)
@@ -1915,11 +1915,17 @@ else
print '';
}
+ // Phone / Fax
+ print '| '.img_picto('', 'object_phoning').' '.$form->editfieldkey('Phone', 'phone', GETPOST('phone', 'alpha'), $object, 0).' | ';
+ print ' | ';
+ print ''.img_picto('', 'object_phoning_fax').' '.$form->editfieldkey('Fax', 'fax', GETPOST('fax', 'alpha'), $object, 0).' | ';
+ print ' |
';
+
// EMail / Web
print '| '.img_picto('', 'object_email').' '.$form->editfieldkey('EMail', 'email', GETPOST('email', 'alpha'), $object, 0, 'string', '', (! empty($conf->global->SOCIETE_EMAIL_MANDATORY))).' | ';
- print ' |
';
+ print ' | ';
print '| '.img_picto('', 'globe').' '.$form->editfieldkey('Web', 'url', GETPOST('url', 'alpha'), $object, 0).' | ';
- print ' |
';
+ print ' | ';
if (! empty($conf->socialnetworks->enabled))
{
@@ -1949,12 +1955,6 @@ else
}
}
- // Phone / Fax
- print '| '.img_picto('', 'object_phoning').' '.$form->editfieldkey('Phone', 'phone', GETPOST('phone', 'alpha'), $object, 0).' | ';
- print ' | ';
- print ''.img_picto('', 'object_phoning_fax').' '.$form->editfieldkey('Fax', 'fax', GETPOST('fax', 'alpha'), $object, 0).' | ';
- print ' |
';
-
// Prof ids
$i=1; $j=0;
while ($i <= 6)