Enable style swap in ecm module
This commit is contained in:
parent
8c5e827b30
commit
7976084534
@ -375,7 +375,7 @@ class FormFile
|
|||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
// Hook of thirdparty module
|
// Hook of thirdparty module
|
||||||
if (! empty($hooks) && is_array($hooks))
|
if (! empty($hooks) && is_array($hooks))
|
||||||
{
|
{
|
||||||
@ -490,7 +490,7 @@ class FormFile
|
|||||||
|
|
||||||
// Affiche liste des documents existant
|
// Affiche liste des documents existant
|
||||||
if (empty($useinecm)) print_titre($langs->trans("AttachedFiles"));
|
if (empty($useinecm)) print_titre($langs->trans("AttachedFiles"));
|
||||||
else { $bc[true]=''; $bc[false]=''; };
|
//else { $bc[true]=''; $bc[false]=''; };
|
||||||
$url=$_SERVER["PHP_SELF"];
|
$url=$_SERVER["PHP_SELF"];
|
||||||
print '<table width="100%" class="nobordernopadding">';
|
print '<table width="100%" class="nobordernopadding">';
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
@ -513,7 +513,7 @@ class FormFile
|
|||||||
if (! $relativepath) $relativepath=dol_sanitizeFileName($object->ref).'/';
|
if (! $relativepath) $relativepath=dol_sanitizeFileName($object->ref).'/';
|
||||||
|
|
||||||
$var=!$var;
|
$var=!$var;
|
||||||
print "<tr $bc[$var]><td>";
|
print '<tr '.$bc[$var].'><td>';
|
||||||
//print "XX".$file['name']; //$file['name'] must be utf8
|
//print "XX".$file['name']; //$file['name'] must be utf8
|
||||||
print '<a href="'.DOL_URL_ROOT.'/document.php?modulepart='.$modulepart;
|
print '<a href="'.DOL_URL_ROOT.'/document.php?modulepart='.$modulepart;
|
||||||
if ($forcedownload) print '&attachment=1';
|
if ($forcedownload) print '&attachment=1';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user