New: Add path file of trigger into admin trigger list page

This commit is contained in:
Laurent Destailleur 2013-12-10 15:48:44 +01:00
parent 4d9712ea4c
commit 8fb0986303
3 changed files with 23 additions and 2 deletions

View File

@ -7,6 +7,13 @@ For users:
- New: Add list of orders products in tab "consumption" on thirdparties.
- New: Add graph stats for suppliers orders in tab "stats" on products.
For translators:
- Update language files.
For developers:
- New: Add path file of trigger into admin trigger list page.
***** ChangeLog for 3.5 compared to 3.4.* *****
For users:

View File

@ -68,7 +68,12 @@ foreach ($triggers as $trigger)
print '<td valign="top" width="14" align="center">'.$trigger['picto'].'</td>';
print '<td valign="top">'.$trigger['file'].'</td>';
print '<td valign="top" align="center">'.$trigger['status'].'</td>';
print '<td valign="top">'.$form->textwithpicto('', $trigger['info']).'</td>';
print '<td valign="top">';
$text=$trigger['info'];
$text.="<br>\n<strong>".$langs->trans("File")."</strong>:<br>\n".$trigger['relpath'];
//$text.="\n".$langs->trans("ExternalModule",$trigger['isocreorexternal']);
print $form->textwithpicto('', $text);
print '</td>';
print '</tr>';
}
@ -77,4 +82,4 @@ print '</table>';
llxFooter();
$db->close();
?>
?>

View File

@ -200,6 +200,9 @@ class Interfaces
global $conf, $langs;
$files = array();
$fullpath = array();
$relpath = array();
$iscoreorexternal = array();
$modules = array();
$orders = array();
$i = 0;
@ -238,6 +241,9 @@ class Interfaces
}
$files[$i] = $file;
$fullpath[$i] = $dir.'/'.$file;
$relpath[$i] = preg_replace('/^\//','',$reldir).'/'.$file;
$iscoreorexternal[$i] = ($reldir == '/core/triggers/'?'internal':'external');
$modules[$i] = $modName;
$orders[$i] = $part1.'_'.$part2.'_'.$part3; // Set sort criteria value
@ -280,6 +286,9 @@ class Interfaces
// We set info of modules
$triggers[$j]['picto'] = $objMod->picto?img_object('',$objMod->picto):img_object('','generic');
$triggers[$j]['file'] = $files[$key];
$triggers[$j]['fullpath'] = $fullpath[$key];
$triggers[$j]['relpath'] = $relpath[$key];
$triggers[$j]['iscoreorexternal'] = $iscoreorexternal[$key];
$triggers[$j]['version'] = $objMod->getVersion();
$triggers[$j]['status'] = img_picto($langs->trans("Active"),'tick');
if ($disabledbyname > 0 || $disabledbymodule > 1) $triggers[$j]['status'] = "&nbsp;";