noalyss Version-9
ajax_document_state.php
Go to the documentation of this file.
1<?php
2
3/*
4 * This file is part of NOALYSS.
5 *
6 * Noalyss 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-2020) Author Dany De Bontridder <danydb@noalyss.eu>
21
22if (!defined('ALLOWED')) die('Appel direct ne sont pas permis');
23
24global $g_user;
25
26if ( $g_user->check_module('CFGDOCST') == 0 ) {
27 record_log("forbidden : CFGDOCST ".__FILE__);
28 exit();
29}
30
31
32/**
33 * @file
34 * @brief Manage Document_State
35 */
36try {
37 $table=$http->request('table');
38 $action=$http->request('action');
39 $p_id=$http->request('p_id', "number");
40 $ctl_id=$http->request('ctl');
41
42} catch(Exception $e) {
43 echo $e->getMessage();
44 return;
45}
46
47
50$mtable->build();
51$mtable->set_object_name($ctl_id);
52if ($action=="input")
53{
54
55 header('Content-type: text/xml; charset=UTF-8');
56 echo $mtable->ajax_input()->saveXML();
57 return;
58}
59elseif ($action=="save")
60{
61 $xml=$mtable->ajax_save();
62 header('Content-type: text/xml; charset=UTF-8');
63 echo $xml->saveXML();
64}
65elseif ($action=="delete")
66{
67 return;
68}
record_log($p_message)
Record an error message into the log file of the server.
Definition: ac_common.php:1342
switch($op2) $xml
Definition: ajax_card.php:806
global $g_user
catch(Exception $e) $document_state_sql
this instance extends Manage_Table_SQL and aims to manage the Table tmp_pcmn thanks a web interface (...
for($e=0; $e< count($afiche); $e++) exit
if( $delta< 0) elseif( $delta==0)
$table
Definition: menu.inc.php:103