Reduction du nom

This commit is contained in:
Rodolphe Quiedeville 2005-11-22 18:26:28 +00:00
parent cdca6ab594
commit 801dc3b10b

View File

@ -114,8 +114,11 @@ if ($resql)
print '<a href="'.DOL_URL_ROOT.'/telephonie/client/fiche.php?id='.$obj->socidp.'">';
print img_file();
print '</a>&nbsp;';
$nom = $obj->nom;
if (strlen($obj->nom) > 33)
$nom = substr($obj->nom,0,30)."...";
print '<a href="'.DOL_URL_ROOT.'/telephonie/client/fiche.php?id='.$obj->socidp.'">'.stripslashes($obj->nom).'</a></td>';
print '<a href="'.DOL_URL_ROOT.'/telephonie/client/fiche.php?id='.$obj->socidp.'">'.stripslashes($nom).'</a></td>';
print "</tr>\n";
$var=!$var;