From 522861ac56a0bf3d9392cd34fddf8855cd20d74e Mon Sep 17 00:00:00 2001 From: Laurent Destailleur <eldy@users.sourceforge.net> Date: Fri, 16 Oct 2009 22:46:16 +0000 Subject: [PATCH] Uniformize code --- htdocs/projet/index.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/htdocs/projet/index.php b/htdocs/projet/index.php index d123e0ccc2e..13500b60180 100644 --- a/htdocs/projet/index.php +++ b/htdocs/projet/index.php @@ -41,6 +41,8 @@ if ($user->societe_id > 0) * View */ +$company=new Societe($db); + llxHeader("",$langs->trans("Projects"),"EN:Module_Projects|FR:Module_Projets|ES:Módulo_Proyectos"); $text=$langs->trans("Projects"); @@ -127,14 +129,16 @@ if ( $resql ) print '<td nowrap="nowrap">'; if ($obj->socid) { - print '<a href="'.DOL_URL_ROOT.'/projet/liste.php?socid='.$obj->socid.'">'.img_object($langs->trans("ShowCompany"),"company")." ".$obj->nom.'</a>'; + $company->id=$obj->socid; + $company->nom=$obj->nom; + print $company->getNomUrl(1); } else { print $langs->trans("Public"); } print '</td>'; - print '<td align="right">'.$obj->nb.'</td>'; + print '<td align="right"><a href="'.DOL_URL_ROOT.'/projet/liste.php?socid='.$obj->socid.'">'.$obj->nb.'</a></td>'; print "</tr>\n"; $i++; -- GitLab