Skip to content
Snippets Groups Projects
Commit 522861ac authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Uniformize code

parent a34de44b
No related branches found
No related tags found
No related merge requests found
......@@ -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++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment