This commit is contained in:
Laurent Destailleur 2022-09-11 14:26:35 +02:00
parent 60c39933d4
commit 85605408fa

View File

@ -1099,7 +1099,7 @@ while ($i < min($num, $limit)) {
// ID // ID
if (!empty($arrayfields['p.rowid']['checked'])) { if (!empty($arrayfields['p.rowid']['checked'])) {
print '<td class="tdoverflowmax50">'; print '<td class="tdoverflowmax50">';
print $obj->rowid; print dol_escape_htmltag($obj->rowid);
print "</td>\n"; print "</td>\n";
if (!$i) { if (!$i) {
$totalarray['nbfield']++; $totalarray['nbfield']++;
@ -1107,7 +1107,7 @@ while ($i < min($num, $limit)) {
} }
// Name // Name
if (!empty($arrayfields['p.lastname']['checked'])) { if (!empty($arrayfields['p.lastname']['checked'])) {
print '<td class="middle tdoverflowmax200">'; print '<td class="middle tdoverflowmax150">';
print $contactstatic->getNomUrl(1); print $contactstatic->getNomUrl(1);
print '</td>'; print '</td>';
if (!$i) { if (!$i) {
@ -1116,35 +1116,35 @@ while ($i < min($num, $limit)) {
} }
// Firstname // Firstname
if (!empty($arrayfields['p.firstname']['checked'])) { if (!empty($arrayfields['p.firstname']['checked'])) {
print '<td class="tdoverflowmax200">'.$obj->firstname.'</td>'; print '<td class="tdoverflowmax150" title="'.dol_escape_htmltag($obj->firstname).'">'.dol_escape_htmltag($obj->firstname).'</td>';
if (!$i) { if (!$i) {
$totalarray['nbfield']++; $totalarray['nbfield']++;
} }
} }
// Job position // Job position
if (!empty($arrayfields['p.poste']['checked'])) { if (!empty($arrayfields['p.poste']['checked'])) {
print '<td class="tdoverflowmax100">'.$obj->poste.'</td>'; print '<td class="tdoverflowmax100">'.dol_escape_htmltag($obj->poste).'</td>';
if (!$i) { if (!$i) {
$totalarray['nbfield']++; $totalarray['nbfield']++;
} }
} }
// Address // Address
if (!empty($arrayfields['p.address']['checked'])) { if (!empty($arrayfields['p.address']['checked'])) {
print '<td>'.$obj->address.'</td>'; print '<td>'.dol_escape_htmltag($obj->address).'</td>';
if (!$i) { if (!$i) {
$totalarray['nbfield']++; $totalarray['nbfield']++;
} }
} }
// Zip // Zip
if (!empty($arrayfields['p.zip']['checked'])) { if (!empty($arrayfields['p.zip']['checked'])) {
print '<td>'.$obj->zip.'</td>'; print '<td>'.dol_escape_htmltag($obj->zip).'</td>';
if (!$i) { if (!$i) {
$totalarray['nbfield']++; $totalarray['nbfield']++;
} }
} }
// Town // Town
if (!empty($arrayfields['p.town']['checked'])) { if (!empty($arrayfields['p.town']['checked'])) {
print '<td>'.$obj->town.'</td>'; print '<td class="tdoverflowmax100" title="'.dol_escape_htmltag($obj->town).'">'.dol_escape_htmltag($obj->town).'</td>';
if (!$i) { if (!$i) {
$totalarray['nbfield']++; $totalarray['nbfield']++;
} }
@ -1165,7 +1165,7 @@ while ($i < min($num, $limit)) {
if (!empty($arrayfields['country.code_iso']['checked'])) { if (!empty($arrayfields['country.code_iso']['checked'])) {
print '<td class="center">'; print '<td class="center">';
$tmparray = getCountry($obj->fk_pays, 'all'); $tmparray = getCountry($obj->fk_pays, 'all');
print $tmparray['label']; print dol_escape_htmltag($tmparray['label']);
print '</td>'; print '</td>';
if (!$i) { if (!$i) {
$totalarray['nbfield']++; $totalarray['nbfield']++;
@ -1222,7 +1222,7 @@ while ($i < min($num, $limit)) {
if (isModEnabled('socialnetworks')) { if (isModEnabled('socialnetworks')) {
foreach ($socialnetworks as $key => $value) { foreach ($socialnetworks as $key => $value) {
if ($value['active'] && !empty($arrayfields['p.'.$key]['checked'])) { if ($value['active'] && !empty($arrayfields['p.'.$key]['checked'])) {
print '<td>'.dol_print_socialnetworks($arraysocialnetworks[$key], $obj->rowid, $obj->socid, $key, $socialnetworks).'</td>'; print '<td class="tdoverflowmax100">'.dol_print_socialnetworks($arraysocialnetworks[$key], $obj->rowid, $obj->socid, $key, $socialnetworks).'</td>';
if (!$i) { if (!$i) {
$totalarray['nbfield']++; $totalarray['nbfield']++;
} }
@ -1291,7 +1291,7 @@ while ($i < min($num, $limit)) {
print $hookmanager->resPrint; print $hookmanager->resPrint;
// Date creation // Date creation
if (!empty($arrayfields['p.datec']['checked'])) { if (!empty($arrayfields['p.datec']['checked'])) {
print '<td class="center">'; print '<td class="center nowraponall">';
print dol_print_date($db->jdate($obj->date_creation), 'dayhour', 'tzuser'); print dol_print_date($db->jdate($obj->date_creation), 'dayhour', 'tzuser');
print '</td>'; print '</td>';
if (!$i) { if (!$i) {
@ -1300,7 +1300,7 @@ while ($i < min($num, $limit)) {
} }
// Date modification // Date modification
if (!empty($arrayfields['p.tms']['checked'])) { if (!empty($arrayfields['p.tms']['checked'])) {
print '<td class="center">'; print '<td class="center nowraponall">';
print dol_print_date($db->jdate($obj->date_update), 'dayhour', 'tzuser'); print dol_print_date($db->jdate($obj->date_update), 'dayhour', 'tzuser');
print '</td>'; print '</td>';
if (!$i) { if (!$i) {