noalyss Version-10
NOALYSS : serveur de comptabilité et ERP (2002)
Loading...
Searching...
No Matches
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) {
25 header('Content-type: text/xml; charset=UTF-8');
26 echo Manage_Table_SQL::ajax_error(_('Accès non autorisé'))->saveXML();
27 record_log("security OTAX");
28 return;
29}
30
31try {
32 $table=$http->request('table');
33 $action=$http->request('action');
34 $p_id=$http->request('p_id', "number");
35 $ctl_id=$http->request('ctl');
36
37} catch(Exception $e) {
38 echo $e->getMessage();
39 return;
40}
41
43
44if ($action == "input") {
45 $acc_other_tax->send_header();
46 echo $acc_other_tax->ajax_input()->saveXML();
47} elseif ($action=="save") {
48
49 $acc_other_tax->send_header();
50 echo $acc_other_tax->ajax_save()->saveXML();
51}elseif ($action=="delete") {
52 $acc_other_tax->send_header();
53 echo $acc_other_tax->ajax_delete()->saveXML();
54
55}else {
56 die("error");
57}
record_log($p_message)
Record an error message into the log file of the server or in the log folder of NOALYSS Record also t...
global $g_user
if no group available , then stop
_("actif, passif,charge,...")
static build($p_id=-1)
Build and returns an object.
static ajax_error($p_message)
returns an XML object for error message as unauthorized access.
if( $delta< 0) elseif( $delta==0)
$table
Definition menu.inc.php:104