From 1ba0d841334db1bbb09e4a40a34d7881e59d7892 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 5 Jun 2009 11:59:28 +0000 Subject: [PATCH] Minor change --- htdocs/admin/agenda.php | 32 +++++++++++++++++++------------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/htdocs/admin/agenda.php b/htdocs/admin/agenda.php index 4a4ba6e182a..2588e591e99 100644 --- a/htdocs/admin/agenda.php +++ b/htdocs/admin/agenda.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2008-2009 Laurent Destailleur * * 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 @@ -17,11 +17,11 @@ */ /** - \file htdocs/admin/agenda.php - \ingroup agenda - \brief Autocreate actions for agenda module setup page - \version $Id$ -*/ + * \file htdocs/admin/agenda.php + * \ingroup agenda + * \brief Autocreate actions for agenda module setup page + * \version $Id$ + */ require("./pre.inc.php"); require_once(DOL_DOCUMENT_ROOT."/lib/admin.lib.php"); @@ -63,7 +63,7 @@ $eventstolog=array( /* * Actions */ -if ($action == "save") +if ($_POST["action"] == "save" && empty($_POST["cancel"])) { $i=0; @@ -108,7 +108,8 @@ print ''; $var=true; print ""; print ""; -print ""; +print ""; +print '\n"; foreach ($eventstolog as $key => $arr) { @@ -116,18 +117,23 @@ foreach ($eventstolog as $key => $arr) { $var=!$var; print ''; - print ''; - print ''; + print ''."\n"; + if ($arr['test']) print ''; + else print ''; + print ''."\n"; } } print '
".$langs->trans("ActionsEvents")."".$langs->trans("ActionsEvents")."'.$langs->trans("All").'/'.$langs->trans("None").''; print "
'.$arr['id'].''; + print ''.$arr['id']; + if (! $arr['test']) print ' ('.$langs->trans("ModuleDisabledSoNoEvent").')'; + print ''; $key='MAIN_AGENDA_ACTIONAUTO_'.$arr['id']; $value=$conf->global->$key; - print ''; - print '
'; print '
'; -print "trans("Save")."\">"; +print ''; +print '     '; +print ''; print "
"; print "\n";