$result = $line->isObjectSignedExists(); if ($result < 0) { setEventMessages($line->error, null, 'errors'); } elseif ($result > 0) { print img_warning($langs->trans('LeadObjectWindExists')); } } print '</td>'; // RefInt print '<td><a href="card.php?id=' . $line->id . '">' . $line->ref_int . '</a></td>'; // Societe print '<td>'; if (!empty($line->fk_soc) && $line->fk_soc != -1) { $soc = new Societe($db); $soc->fetch($line->fk_soc); print $soc->getNomURL(1); } else { print ' '; } print '</td>'; // Commercial print '<td>'; if (!empty($line->fk_user_resp)) { $userstatic = new User($db); $userstatic->fetch($line->fk_user_resp); if (!empty($userstatic->id)) { print $userstatic->getFullName($langs); } } print '</td>'; // Status