25require
'../main.inc.php';
26require_once DOL_DOCUMENT_ROOT.
'/core/class/interfaces.class.php';
58llxHeader(
'',
'',
'',
'', 0, 0,
'',
'',
'',
'mod-admin page-triggers');
62print
load_fiche_titre($langs->trans(
"TriggersAvailable"),
'',
'title_setup');
64print
'<span class="opacitymedium">'.$langs->trans(
"TriggersDesc").
"</span><br>";
69$triggers = $interfaces->getTriggersList();
73print
'<div class="div-table-responsive-no-min">';
74print
'<table class="noborder">';
75print
'<tr class="liste_titre">';
76print
getTitleFieldOfList(
'', 0, $_SERVER[
"PHP_SELF"],
'none',
"", $param,
'', $sortfield, $sortorder,
'', 1).
"\n";
77print
getTitleFieldOfList($langs->trans(
"File"), 0, $_SERVER[
"PHP_SELF"],
'file',
"", $param, ($align ?
'align="'.$align.
'"' :
''), $sortfield, $sortorder,
'', 1).
"\n";
78print
getTitleFieldOfList($langs->trans(
"Active"), 0, $_SERVER[
"PHP_SELF"],
'active',
"", $param,
'align="center"', $sortfield, $sortorder,
'', 1).
"\n";
79print
getTitleFieldOfList(
'', 0, $_SERVER[
"PHP_SELF"],
'none',
"", $param, ($align ?
'align="'.$align.
'"' :
''), $sortfield, $sortorder,
'', 1).
"\n";
82foreach ($triggers as $trigger) {
83 print
'<tr class="oddeven">';
84 print
'<td class=" width="32">'.$trigger[
'picto'].
'</td>';
85 print
'<td>'.$trigger[
'file'].
'</td>';
86 print
'<td class="center">'.$trigger[
'status'].
'</td>';
88 $text = $trigger[
'info'];
89 $text .=
"<br>\n<strong>".$langs->trans(
"File").
"</strong>:<br>\n".$trigger[
'relpath'];
92 print $form->textwithpicto(
'', $text);
if(!defined('NOREQUIRESOC')) if(!defined( 'NOREQUIRETRAN')) if(!defined('NOTOKENRENEWAL')) if(!defined( 'NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined( 'NOREQUIREAJAX')) llxHeader($head='', $title='', $help_url='', $target='', $disablejs=0, $disablehead=0, $arrayofjs='', $arrayofcss='', $morequerystring='', $morecssonbody='', $replacemainareaby='', $disablenofollow=0, $disablenoindex=0)
Empty header.
Class to manage triggers.
load_fiche_titre($title, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='')
Load a title with picto.
getTitleFieldOfList($name, $thead=0, $file="", $field="", $begin="", $moreparam="", $moreattrib="", $sortfield="", $sortorder="", $prefix="", $disablesortlink=0, $tooltip='', $forcenowrapcolumntitle=0)
Get title line of an array.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.