Gestion des différents type de fichiers
This commit is contained in:
parent
3530509ef7
commit
a8b2d3563f
@ -87,7 +87,14 @@ if ($result)
|
|||||||
$dir = $conf->telephonie->dir_output . "/ligne/commande/";
|
$dir = $conf->telephonie->dir_output . "/ligne/commande/";
|
||||||
$relativepath = urlencode("ligne/commande/".$obj->filename);
|
$relativepath = urlencode("ligne/commande/".$obj->filename);
|
||||||
|
|
||||||
print '<td><a href="'.DOL_URL_ROOT . '/document.php?modulepart=telephonie&file='.urlencode($relativepath).'&type=application/msexcel">'.$obj->filename.'</a></td>';
|
if (substr($obj->filename, -3) == 'txt')
|
||||||
|
{
|
||||||
|
print '<td><a href="'.DOL_URL_ROOT . '/document.php?modulepart=telephonie&file='.urlencode($relativepath).'&type=plain/text">'.$obj->filename.'</a></td>';
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
print '<td><a href="'.DOL_URL_ROOT . '/document.php?modulepart=telephonie&file='.urlencode($relativepath).'&type=application/msexcel">'.$obj->filename.'</a></td>';
|
||||||
|
}
|
||||||
|
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
$i++;
|
$i++;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user