noalyss Version-9
ajax_other_tax.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 * PhpCompta 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 * Copyright (2002-2022) Author Dany De Bontridder <danydb@noalyss.eu>
19 */
20global $g_user;
21if (!defined('ALLOWED'))
22 die('Appel direct ne sont pas permis');
23
24if ( $g_user->check_module("OTAX") == 0) die("");
25
26try {
27 $table=$http->request('table');
28 $action=$http->request('action');
29 $p_id=$http->request('p_id', "number");
30 $ctl_id=$http->request('ctl');
31
32} catch(Exception $e) {
33 echo $e->getMessage();
34 return;
35}
36
38
39if ($action == "input") {
40 $acc_other_tax->send_header();
41 echo $acc_other_tax->ajax_input()->saveXML();
42} elseif ($action=="save") {
43
44 $acc_other_tax->send_header();
45 echo $acc_other_tax->ajax_save()->saveXML();
46}elseif ($action=="delete") {
47 $acc_other_tax->send_header();
48 echo $acc_other_tax->ajax_delete()->saveXML();
49
50}else {
51 die("error");
52}
catch(Exception $e) $acc_other_tax
global $g_user
$action
$ctl_id
static build($p_id=-1)
Build and returns an object.
if( $delta< 0) elseif( $delta==0)
$table
Definition: menu.inc.php:103