Merge pull request #15176 from frederic34/patch-10
add small photo in picto link
This commit is contained in:
commit
624e116ecb
@ -227,12 +227,12 @@ function dol_print_object_info($object, $usetable = 0)
|
||||
else print ': ';
|
||||
if (is_object($object->user_creation))
|
||||
{
|
||||
if ($object->user_creation->id) print $object->user_creation->getNomUrl(1, '', 0, 0, 0);
|
||||
if ($object->user_creation->id) print $object->user_creation->getNomUrl(-1, '', 0, 0, 0);
|
||||
else print $langs->trans("Unknown");
|
||||
} else {
|
||||
$userstatic = new User($db);
|
||||
$userstatic->fetch($object->user_creation_id ? $object->user_creation_id : $object->user_creation);
|
||||
if ($userstatic->id) print $userstatic->getNomUrl(1, '', 0, 0, 0);
|
||||
if ($userstatic->id) print $userstatic->getNomUrl(-1, '', 0, 0, 0);
|
||||
else print $langs->trans("Unknown");
|
||||
}
|
||||
if ($usetable) print '</td></tr>';
|
||||
@ -261,12 +261,12 @@ function dol_print_object_info($object, $usetable = 0)
|
||||
else print ': ';
|
||||
if (is_object($object->user_modification))
|
||||
{
|
||||
if ($object->user_modification->id) print $object->user_modification->getNomUrl(1, '', 0, 0, 0);
|
||||
if ($object->user_modification->id) print $object->user_modification->getNomUrl(-1, '', 0, 0, 0);
|
||||
else print $langs->trans("Unknown");
|
||||
} else {
|
||||
$userstatic = new User($db);
|
||||
$userstatic->fetch($object->user_modification_id ? $object->user_modification_id : $object->user_modification);
|
||||
if ($userstatic->id) print $userstatic->getNomUrl(1, '', 0, 0, 0);
|
||||
if ($userstatic->id) print $userstatic->getNomUrl(-1, '', 0, 0, 0);
|
||||
else print $langs->trans("Unknown");
|
||||
}
|
||||
if ($usetable) print '</td></tr>';
|
||||
@ -295,12 +295,12 @@ function dol_print_object_info($object, $usetable = 0)
|
||||
else print ': ';
|
||||
if (is_object($object->user_validation))
|
||||
{
|
||||
if ($object->user_validation->id) print $object->user_validation->getNomUrl(1, '', 0, 0, 0);
|
||||
if ($object->user_validation->id) print $object->user_validation->getNomUrl(-1, '', 0, 0, 0);
|
||||
else print $langs->trans("Unknown");
|
||||
} else {
|
||||
$userstatic = new User($db);
|
||||
$userstatic->fetch($object->user_validation_id ? $object->user_validation_id : $object->user_validation);
|
||||
if ($userstatic->id) print $userstatic->getNomUrl(1, '', 0, 0, 0);
|
||||
if ($userstatic->id) print $userstatic->getNomUrl(-1, '', 0, 0, 0);
|
||||
else print $langs->trans("Unknown");
|
||||
}
|
||||
if ($usetable) print '</td></tr>';
|
||||
@ -329,12 +329,12 @@ function dol_print_object_info($object, $usetable = 0)
|
||||
else print ': ';
|
||||
if (is_object($object->user_approve))
|
||||
{
|
||||
if ($object->user_approve->id) print $object->user_approve->getNomUrl(1, '', 0, 0, 0);
|
||||
if ($object->user_approve->id) print $object->user_approve->getNomUrl(-1, '', 0, 0, 0);
|
||||
else print $langs->trans("Unknown");
|
||||
} else {
|
||||
$userstatic = new User($db);
|
||||
$userstatic->fetch($object->user_approve_id ? $object->user_approve_id : $object->user_approve);
|
||||
if ($userstatic->id) print $userstatic->getNomUrl(1, '', 0, 0, 0);
|
||||
if ($userstatic->id) print $userstatic->getNomUrl(-1, '', 0, 0, 0);
|
||||
else print $langs->trans("Unknown");
|
||||
}
|
||||
if ($usetable) print '</td></tr>';
|
||||
@ -363,7 +363,7 @@ function dol_print_object_info($object, $usetable = 0)
|
||||
else print ': ';
|
||||
$userstatic = new User($db);
|
||||
$userstatic->fetch($object->user_approve_id2);
|
||||
if ($userstatic->id) print $userstatic->getNomUrl(1, '', 0, 0, 0);
|
||||
if ($userstatic->id) print $userstatic->getNomUrl(-1, '', 0, 0, 0);
|
||||
else print $langs->trans("Unknown");
|
||||
if ($usetable) print '</td></tr>';
|
||||
else print '<br>';
|
||||
@ -392,12 +392,12 @@ function dol_print_object_info($object, $usetable = 0)
|
||||
else print ': ';
|
||||
if (is_object($object->user_closing))
|
||||
{
|
||||
if ($object->user_closing->id) print $object->user_closing->getNomUrl(1, '', 0, 0, 0);
|
||||
if ($object->user_closing->id) print $object->user_closing->getNomUrl(-1, '', 0, 0, 0);
|
||||
else print $langs->trans("Unknown");
|
||||
} else {
|
||||
$userstatic = new User($db);
|
||||
$userstatic->fetch($object->user_closing);
|
||||
if ($userstatic->id) print $userstatic->getNomUrl(1, '', 0, 0, 0);
|
||||
if ($userstatic->id) print $userstatic->getNomUrl(-1, '', 0, 0, 0);
|
||||
else print $langs->trans("Unknown");
|
||||
}
|
||||
if ($usetable) print '</td></tr>';
|
||||
@ -427,7 +427,7 @@ function dol_print_object_info($object, $usetable = 0)
|
||||
else print ': ';
|
||||
if (is_object($object->user_rappro))
|
||||
{
|
||||
if ($object->user_rappro->id) print $object->user_rappro->getNomUrl(1, '', 0, 0, 0);
|
||||
if ($object->user_rappro->id) print $object->user_rappro->getNomUrl(-1, '', 0, 0, 0);
|
||||
else print $langs->trans("Unknown");
|
||||
} else {
|
||||
$userstatic = new User($db);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user