Look: Modif esthetiques
This commit is contained in:
parent
1390a2af60
commit
15967a8ddd
@ -263,8 +263,7 @@ class FormFile
|
|||||||
print '<table class="border" width="100%">';
|
print '<table class="border" width="100%">';
|
||||||
|
|
||||||
print '<tr '.$bc[$var].'>';
|
print '<tr '.$bc[$var].'>';
|
||||||
print '<td>'.$langs->trans('Model').'</td>';
|
print '<td align="center">'.$langs->trans('Model').' ';
|
||||||
print '<td align="center">';
|
|
||||||
$html->select_array('model',$modellist,$modelselected,0,0,1);
|
$html->select_array('model',$modellist,$modelselected,0,0,1);
|
||||||
$texte=$langs->trans('Generate');
|
$texte=$langs->trans('Generate');
|
||||||
print '</td>';
|
print '</td>';
|
||||||
@ -304,6 +303,8 @@ class FormFile
|
|||||||
// Boucle sur chaque ligne trouvée
|
// Boucle sur chaque ligne trouvée
|
||||||
foreach($file_list as $i => $file)
|
foreach($file_list as $i => $file)
|
||||||
{
|
{
|
||||||
|
$var=!$var;
|
||||||
|
|
||||||
// Défini chemin relatif par rapport au module pour lien download
|
// Défini chemin relatif par rapport au module pour lien download
|
||||||
$relativepath=$file["name"]; // Cas general
|
$relativepath=$file["name"]; // Cas general
|
||||||
if ($filename) $relativepath=$filename."/".$file["name"]; // Cas propal, facture...
|
if ($filename) $relativepath=$filename."/".$file["name"]; // Cas propal, facture...
|
||||||
@ -311,23 +312,14 @@ class FormFile
|
|||||||
if ($modulepart == 'don') { $relativepath = get_exdir($filename,2).$file["name"]; }
|
if ($modulepart == 'don') { $relativepath = get_exdir($filename,2).$file["name"]; }
|
||||||
if ($modulepart == 'export') { $relativepath = $file["name"]; }
|
if ($modulepart == 'export') { $relativepath = $file["name"]; }
|
||||||
|
|
||||||
// Défini le type MIME du document
|
if (!$iconPDF) print "<tr ".$bc[$var].">";
|
||||||
if (eregi('\.([^\.]+)$',$file["name"],$reg)) $extension=$reg[1];
|
|
||||||
$mimetype=strtoupper($extension);
|
|
||||||
if ($extension == 'pdf') $mimetype='PDF';
|
|
||||||
if ($extension == 'html') $mimetype='HTML';
|
|
||||||
if (eregi('\-detail\.pdf',$file["name"])) $mimetype='PDF Détaillé';
|
|
||||||
|
|
||||||
if (!$iconPDF) print "<tr $bc[$var]>";
|
|
||||||
|
|
||||||
// Affiche colonne type MIME
|
|
||||||
if (!$iconPDF) print '<td nowrap>'.$mimetype.'</td>';
|
|
||||||
// Affiche nom fichier avec lien download
|
// Affiche nom fichier avec lien download
|
||||||
if (!$iconPDF) print '<td>';
|
if (!$iconPDF) print '<td>';
|
||||||
print '<a href="'.DOL_URL_ROOT . '/document.php?modulepart='.$modulepart.'&file='.urlencode($relativepath).'">';
|
print '<a href="'.DOL_URL_ROOT . '/document.php?modulepart='.$modulepart.'&file='.urlencode($relativepath).'">';
|
||||||
if (!$iconPDF)
|
if (!$iconPDF)
|
||||||
{
|
{
|
||||||
print $file["name"];
|
print img_mime($file["name"]).' '.dolibarr_trunc($file["name"],28);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user