noalyss Version-9
ajax_mobile_device_menu.php
Go to the documentation of this file.
1<?php
2
3/*
4 * This file is part of NOALYSS.
5 *
6 * PhpCompta is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * PhpCompta is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with PhpCompta; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 */
20// Copyright (2002-2021) Author Dany De Bontridder <danydb@noalyss.eu>
21
22if (!defined('ALLOWED'))
23 die('Appel direct ne sont pas permis');
24
25/**
26 * @file
27 * @brief callback script for mobile_device_mtable
28 * @see Mobile_Device_MTable
29 */
31try
32{
33 $table=$http->request('table');
34 $action=$http->request('action');
35 $p_id=$http->request('p_id', "number");
36 $ctl_id=$http->request('ctl');
37 $profile_id=$http->request("profile_id","number");
38}
39catch (Exception $e)
40{
41 echo $e->getMessage();
42 return;
43}
44
46$object->set_profile_id($profile_id);
47$object->set_object_name($ctl_id);
48$object->send_header();
49switch ($action)
50{
51 case "input":
52 echo $object->ajax_input()->saveXML();
53 break;
54
55 case "save":
56 echo $object->ajax_save()->saveXML();
57 break;
58
59 case "delete":
60 echo $object->ajax_delete()->saveXML();
61 break;
62
63 default:
64
65 break;
66}
catch(Exception $e) $object
manage the http input (get , post, request) and extract from an array
static build($p_id, $profile_id)
$table
Definition: menu.inc.php:103