look_feel user author in list

This commit is contained in:
Anthony Berton 2021-05-17 18:04:21 +02:00
parent a9ddf2a5ad
commit 0b7f474dd3
4 changed files with 14 additions and 14 deletions

View File

@ -1705,14 +1705,13 @@ if ($resql) {
} }
} }
$userstatic->id = $obj->fk_user_author; $userstatic->fetch($obj->fk_user_author);
$userstatic->login = $obj->login;
// Author // Author
if (!empty($arrayfields['u.login']['checked'])) { if (!empty($arrayfields['u.login']['checked'])) {
print '<td class="center nowraponall">'; print '<td>';
if ($userstatic->id) { if ($userstatic->id) {
print $userstatic->getLoginUrl(1); print $userstatic->getNomUrl(-1);
} }
print "</td>\n"; print "</td>\n";
if (!$i) { if (!$i) {
@ -1744,7 +1743,8 @@ if ($resql) {
$userstatic->entity = $val['entity']; $userstatic->entity = $val['entity'];
$userstatic->photo = $val['photo']; $userstatic->photo = $val['photo'];
$userstatic->login = $val['login']; $userstatic->login = $val['login'];
$userstatic->phone = $val['phone']; $userstatic->user_mobile = $val['user_mobile'];
$userstatic->user_mobile = $val['user_mobile'];
$userstatic->job = $val['job']; $userstatic->job = $val['job'];
$userstatic->gender = $val['gender']; $userstatic->gender = $val['gender'];
//print '<div class="float">': //print '<div class="float">':

View File

@ -1668,14 +1668,13 @@ if ($resql) {
} }
} }
$userstatic->id = $obj->fk_user_author; $userstatic->fetch($obj->fk_user_author);
$userstatic->login = $obj->login;
// Author // Author
if (!empty($arrayfields['u.login']['checked'])) { if (!empty($arrayfields['u.login']['checked'])) {
print '<td align="center">'; print '<td>';
if ($userstatic->id) { if ($userstatic->id) {
print $userstatic->getLoginUrl(1); print $userstatic->getNomUrl(-1);
} else { } else {
print '&nbsp;'; print '&nbsp;';
} }

View File

@ -1880,11 +1880,10 @@ if ($resql) {
// Author // Author
if (!empty($arrayfields['u.login']['checked'])) { if (!empty($arrayfields['u.login']['checked'])) {
$userstatic->id = $obj->fk_user_author; $userstatic->fetch($obj->fk_user_author);
$userstatic->login = $obj->login; print '<td>';
print '<td class="center tdoverflowmax100">';
if ($userstatic->id) { if ($userstatic->id) {
print $userstatic->getLoginUrl(1); print $userstatic->getNomUrl(-1);
} else { } else {
print '&nbsp;'; print '&nbsp;';
} }

View File

@ -1041,7 +1041,9 @@ while ($i < min($num, $limit)) {
$userstatic->entity = $val['entity']; $userstatic->entity = $val['entity'];
$userstatic->photo = $val['photo']; $userstatic->photo = $val['photo'];
$userstatic->login = $val['login']; $userstatic->login = $val['login'];
$userstatic->phone = $val['phone']; $userstatic->office_phone = $val['office_phone'];
$userstatic->office_fax = $val['office_fax'];
$userstatic->user_mobile = $val['user_mobile'];
$userstatic->job = $val['job']; $userstatic->job = $val['job'];
$userstatic->gender = $val['gender']; $userstatic->gender = $val['gender'];
print ($nbofsalesrepresentative < 2) ? $userstatic->getNomUrl(-1, '', 0, 0, 12) : $userstatic->getNomUrl(-2); print ($nbofsalesrepresentative < 2) ? $userstatic->getNomUrl(-1, '', 0, 0, 12) : $userstatic->getNomUrl(-2);