dolibarr/htdocs/admin/triggers.php

81 lines
1.9 KiB
PHP
Raw Normal View History

2005-07-07 01:33:51 +00:00
<?php
/* Copyright (C) 2005-2013 Laurent Destailleur <eldy@users.sourceforge.net>
2005-07-07 01:33:51 +00:00
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
2005-07-07 01:33:51 +00:00
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
2011-07-31 22:21:57 +00:00
* along with this program. If not, see <http://www.gnu.org/licenses/>.
2005-07-07 01:33:51 +00:00
*/
2009-07-26 11:19:11 +00:00
2005-07-07 01:33:51 +00:00
/**
2008-10-12 11:41:13 +00:00
* \file htdocs/admin/triggers.php
* \brief Page to view triggers
2008-10-12 11:41:13 +00:00
*/
2005-07-07 01:33:51 +00:00
require '../main.inc.php';
require_once DOL_DOCUMENT_ROOT.'/core/class/interfaces.class.php';
2005-07-07 01:33:51 +00:00
$langs->load("admin");
if (!$user->admin) accessforbidden();
2005-07-07 01:33:51 +00:00
/*
* Action
2009-11-09 20:20:23 +00:00
*/
2005-07-07 01:33:51 +00:00
// None
2005-07-07 01:33:51 +00:00
2009-07-26 11:19:11 +00:00
/*
* View
*/
2005-07-07 01:33:51 +00:00
llxHeader("","");
$form = new Form($db);
2005-07-07 01:33:51 +00:00
print_fiche_titre($langs->trans("TriggersAvailable"),'','setup');
2005-07-07 01:33:51 +00:00
print $langs->trans("TriggersDesc")."<br>";
print "<br>\n";
$template_dir = DOL_DOCUMENT_ROOT.'/core/tpl/';
2005-07-07 01:33:51 +00:00
$interfaces = new Interfaces($db);
$triggers = $interfaces->getTriggersList(0,'priority');
2005-07-07 01:33:51 +00:00
2013-06-05 14:24:32 +00:00
print '<table class="noborder">
<tr class="liste_titre">
<td colspan="2">'.$langs->trans("File").'</td>
<td align="center">'.$langs->trans("Active").'</td>
<td align="center">&nbsp;</td>
</tr>
';
2013-06-05 14:24:32 +00:00
$var=True;
foreach ($triggers as $trigger)
{
$var=!$var;
print '<tr '.$bc[$var].'>';
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 '</tr>';
}
print '</table>';
2005-07-07 01:33:51 +00:00
llxFooter();
$db->close();
2005-07-07 01:33:51 +00:00
?>