$day = $day ? $day : date("d"); } // View by day $langs->load("users"); $langs->load("agenda"); $langs->load("other"); $langs->load("commercial"); // Initialize technical object to manage hooks of thirdparties. Note that conf->hooks_modules contains array array $hookmanager->initHooks(array('agenda')); /* * Actions */ if ($action == 'delete_action') { $event = new ActionComm($db); $event->fetch($actionid); $result = $event->delete(); } /* * View */ $help_url = 'EN:Module_Agenda_En|FR:Module_Agenda|ES:Módulo_Agenda'; llxHeader('', $langs->trans("Agenda"), $help_url); $form = new Form($db); $companystatic = new Societe($db); $now = dol_now(); $nowarray = dol_getdate($now); $nowyear = $nowarray['year']; $nowmonth = $nowarray['mon']; $nowday = $nowarray['mday']; // Define list of all external calendars (global setup) $listofextcals = array();
} } } /* * Action suppression de l'action */ if ($action == 'confirm_delete' && GETPOST("confirm") == 'yes') { $actioncomm = new ActionComm($db); $actioncomm->fetch($id); if ($user->rights->agenda->myactions->delete || $user->rights->agenda->allactions->delete) { $result=$actioncomm->delete(); if ($result >= 0) { Header("Location: index.php"); exit; } else { $mesg=$actioncomm->error; } } } /* * Action mise a jour de l'action