URL correcte sur le document

This commit is contained in:
Rodolphe Quiedeville 2007-04-13 15:43:47 +00:00
parent c70b1914f8
commit 2e12bed112

View File

@ -56,8 +56,12 @@ if ($resql)
$var=!$var;
print "<tr $bc[$var]>";
print '<td><a href="fiche.php?id='.$obj->rowid.'">'.stripslashes($obj->name).'</a></td>';
print '<td>';
$loc = get_exdir($obj->rowid).$obj->rowid.".pdf";
$file = stripslashes($obj->name);
echo '<a href="'.DOL_URL_ROOT.'/document.php?modulepart=ged&type=application/binary&file='.urlencode($loc).'">'.$file.'</a></td>';
print '<td>'.strftime("%d/%m/%Y %H:%M",$obj->date_generation).'</td>';
print "</tr>\n";
}