noalyss Version-9
ajax_event_display_detail.php
Go to the documentation of this file.
1<?php
2/*
3* This file is part of NOALYSS.
4*
5* PhpCompta is free software; you can redistribute it and/or modify
6* it under the terms of the GNU General Public License as published by
7* the Free Software Foundation; either version 2 of the License, or
8* (at your option) any later version.
9*
10* NOALYSS is distributed in the hope that it will be useful,
11* but WITHOUT ANY WARRANTY; without even the implied warranty of
12* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13* GNU General Public License for more details.
14*
15* You should have received a copy of the GNU General Public License
16* along with PhpCompta; if not, write to the Free Software
17* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18*/
19// Copyright (2023) Author Dany De Bontridder <dany@alchimerys.be>
20global $g_user;
21
22if (!defined('ALLOWED')) die('Appel direct ne sont pas permis');
23
24if ( $g_user->check_module("DASHBOARD") == 0) die();
25
26global $http,$cn;
27
28try {
29 $what=$http->get("what");
30} catch (\Exception $e) {
31 echo $e->getMessage();
32 throw $e;
33}
34
35if ( $what == 'main_display')
36{
37 status_Operation_Event::main_display($cn);
38}else {
39 $status_operation_event=new Status_Operation_Event($cn);
40 $status_operation_event->display($what);
41}
42
43
global $g_user