2005-07-07 03:33:51 +02:00
|
|
|
<?php
|
2007-10-13 01:38:31 +02:00
|
|
|
/* 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
|
|
|
|
2010-03-01 10:20:41 +01: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
|
|
|
|
2010-09-29 12:10:33 +02:00
|
|
|
$langs->load("admin");
|
|
|
|
|
|
2005-07-07 03:33:51 +02:00
|
|
|
if (!$user->admin)
|
|
|
|
|
accessforbidden();
|
|
|
|
|
|
2010-04-02 11:59:18 +02:00
|
|
|
/*
|
|
|
|
|
* 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("","");
|
|
|
|
|
|
2007-12-27 22:18:24 +01:00
|
|
|
$html = new Form($db);
|
2005-07-07 03:33:51 +02:00
|
|
|
|
2006-08-12 17:32:57 +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";
|
|
|
|
|
|
2010-04-22 20:37:42 +02:00
|
|
|
$template_dir = DOL_DOCUMENT_ROOT.'/core/tpl/';
|
2005-07-07 03:33:51 +02:00
|
|
|
|
2010-04-22 20:37:42 +02:00
|
|
|
$interfaces = new Interfaces($db);
|
|
|
|
|
$triggers = $interfaces->getTriggersList(0);
|
2005-07-07 03:33:51 +02:00
|
|
|
|
2010-04-22 20:37:42 +02:00
|
|
|
include($template_dir.'triggers.tpl.php');
|
2005-07-07 03:33:51 +02:00
|
|
|
|
2011-08-27 16:24:16 +02:00
|
|
|
llxFooter();
|
2005-07-07 03:33:51 +02:00
|
|
|
?>
|