dolibarr/htdocs/admin/triggers.php

59 lines
1.4 KiB
PHP
Raw Normal View History

2005-07-07 03:33:51 +02:00
<?php
/* Copyright (C) 2005-2007 Laurent Destailleur <eldy@users.sourceforge.net>
2005-07-07 03:33:51 +02: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-08-01 00:21:57 +02:00
* along with this program. If not, see <http://www.gnu.org/licenses/>.
2005-07-07 03:33:51 +02:00
*/
2009-07-26 13:19:11 +02:00
2005-07-07 03:33:51 +02:00
/**
2008-10-12 13:41:13 +02:00
* \file htdocs/admin/triggers.php
* \brief Page de configuration et activation des triggers
*/
2005-07-07 03:33:51 +02:00
require("../main.inc.php");
2010-04-28 12:33:16 +02:00
require_once(DOL_DOCUMENT_ROOT."/core/class/interfaces.class.php");
2005-07-07 03:33:51 +02:00
$langs->load("admin");
2005-07-07 03:33:51 +02:00
if (!$user->admin)
accessforbidden();
/*
* Action
2009-11-09 21:20:23 +01:00
*/
2005-07-07 03:33:51 +02:00
2009-07-26 13:19:11 +02:00
/*
* View
*/
2005-07-07 03:33:51 +02:00
llxHeader("","");
$html = new Form($db);
2005-07-07 03:33:51 +02:00
print_fiche_titre($langs->trans("TriggersAvailable"),'','setup');
2005-07-07 03:33:51 +02:00
print $langs->trans("TriggersDesc")."<br>";
print "<br>\n";
$template_dir = DOL_DOCUMENT_ROOT.'/core/tpl/';
2005-07-07 03:33:51 +02:00
$interfaces = new Interfaces($db);
$triggers = $interfaces->getTriggersList(0);
2005-07-07 03:33:51 +02:00
include($template_dir.'triggers.tpl.php');
2005-07-07 03:33:51 +02:00
llxFooter();
2005-07-07 03:33:51 +02:00
?>