dolibarr/htdocs/admin/triggers.php

61 lines
1.4 KiB
PHP
Raw Normal View History

2005-07-07 01:33:51 +00:00
<?php
/* Copyright (C) 2005-2012 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 2 of the License, or
* (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");
2010-04-28 10:33:16 +00:00
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
include($template_dir.'triggers.tpl.php');
2005-07-07 01:33:51 +00:00
llxFooter();
$db->close();
2005-07-07 01:33:51 +00:00
?>