';
-
- $linkback = ''.$langs->trans("BackToList").'';
-
- // Reference
- print '| '.$langs->trans('Ref').' | ';
- print '';
- print $form->showrefnav($object, 'id', $linkback);
- print ' | ';
- print '
';
+ $linkback = ''.$langs->trans("BackToList").'';
+
+ dol_banner_tab($object, 'rowid', $linkback);
+
+ print '';
+
+ print '
';
+ print '
';
// Login
if (empty($conf->global->ADHERENT_LOGIN_NOT_REQUIRED))
{
- print '| '.$langs->trans("Login").' / '.$langs->trans("Id").' | '.$object->login.' |
';
+ print '| '.$langs->trans("Login").' / '.$langs->trans("Id").' | '.$object->login.' |
';
}
+ // Type
+ print '| '.$langs->trans("Type").' | '.$adht->getNomUrl(1)." |
\n";
+
// Morphy
- print '| '.$langs->trans("Nature").' | '.$object->getmorphylib().' | ';
+ print '
| '.$langs->trans("Nature").' | '.$object->getmorphylib().' | ';
/*print '';
print $form->showphoto('memberphoto',$member);
print ' | ';*/
print '
';
- // Type
- print '| '.$langs->trans("Type").' | '.$adht->getNomUrl(1)." |
\n";
-
// Company
print '| '.$langs->trans("Company").' | '.$object->societe.' |
';
@@ -107,21 +105,13 @@ if ($id)
print '| '.$langs->trans("UserTitle").' | '.$object->getCivilityLabel().' | ';
print '
';
- // Lastname
- print '| '.$langs->trans("Lastname").' | '.$object->lastname.' | ';
- print '
';
-
- // Firstname
- print '| '.$langs->trans("Firstname").' | '.$object->firstname.' |
';
-
- // Status
- print '| '.$langs->trans("Status").' | '.$object->getLibStatut(4).' |
';
-
print "
";
+
+ print '
';
print '
';
- $colwidth='20';
+ $cssclass='titlefield';
$permission = $user->rights->adherent->creer; // Used by the include of notes.tpl.php
include DOL_DOCUMENT_ROOT.'/core/tpl/notes.tpl.php';
diff --git a/htdocs/contact/document.php b/htdocs/contact/document.php
index 62822a97690..6cf3daf5cad 100644
--- a/htdocs/contact/document.php
+++ b/htdocs/contact/document.php
@@ -95,6 +95,8 @@ if ($object->id)
$totalsize+=$file['size'];
}
+ $linkback = ''.$langs->trans("BackToList").'';
+
dol_banner_tab($object, 'id', $linkback, 1, 'rowid', 'ref', '');
print '';
diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index bc1bdf7e790..6b541760a55 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -5265,9 +5265,9 @@ class Form
$dir=$conf->societe->multidir_output[$entity];
$smallfile=$object->logo;
$smallfile=preg_replace('/(\.png|\.gif|\.jpg|\.jpeg|\.bmp)/i','_small\\1',$smallfile);
- if ($object->logo) $file=$id.'/logos/thumbs/'.$smallfile;
+ if (! empty($object->logo)) $file=$id.'/logos/thumbs/'.$smallfile;
}
- if ($modulepart=='contact')
+ else if ($modulepart=='contact')
{
$dir=$conf->societe->multidir_output[$entity].'/contact';
$file=$id.'/photos/'.$object->photo;
@@ -5275,19 +5275,19 @@ class Form
else if ($modulepart=='userphoto')
{
$dir=$conf->user->dir_output;
- if ($object->photo) $file=get_exdir($id, 2, 0, 0, $object, 'user').$object->photo;
+ if (! empty($object->photo)) $file=get_exdir($id, 2, 0, 0, $object, 'user').$object->photo;
if (! empty($conf->global->MAIN_OLD_IMAGE_LINKS)) $altfile=$object->id.".jpg"; // For backward compatibility
$email=$object->email;
}
else if ($modulepart=='memberphoto')
{
$dir=$conf->adherent->dir_output;
- if ($object->photo) $file=get_exdir($id, 2, 0, 0, $object, 'invoice_supplier').'photos/'.$object->photo;
+ if (! empty($object->photo)) $file=get_exdir($id, 2, 0, 0, $object, 'invoice_supplier').'photos/'.$object->photo;
if (! empty($conf->global->MAIN_OLD_IMAGE_LINKS)) $altfile=$object->id.".jpg"; // For backward compatibility
$email=$object->email;
} else {
$dir=$conf->$modulepart->dir_output;
- if ($object->photo) $file=get_exdir($id, 2, 0, 0, $adherent, 'member').'photos/'.$object->photo;
+ if (! empty($object->photo)) $file=get_exdir($id, 2, 0, 0, $object, 'member').'photos/'.$object->photo;
if (! empty($conf->global->MAIN_OLD_IMAGE_LINKS)) $altfile=$object->id.".jpg"; // For backward compatibility
$email=$object->email;
}