noalyss Version-9
NOALYSS : serveur de comptabilité et ERP (2002)
Loading...
Searching...
No Matches
ajax_action_concerned_list.php
Go to the documentation of this file.
1<?php
2
3/*
4 * Copyright (C) 2020 Dany De Bontridder <dany@alchimerys.be>
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
10 *
11 * This program 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 this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 */
20
21/**
22 * @file
23 * @brief display list of other concerned person in Follow Up
24 */
25if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
27try {
28 // follow_up id
29 $ag_id=$http->request("ag_id","number");
30} catch (Exception $ex) {
31 record_log(__FILE__.$ex->getMessage().$ex->getTraceAsString());
32 return;
33}
34/*
35 * security Who can do it ?
36 */
37if ( ! $g_user->can_write_action($ag_id) ) {
38 record_log(__FILE__."security : access refused");
39 return;
40}
41ob_start();
42echo HtmlInput::title_box(_("Liste Autres Fiches"), "action_concerned_list_dv");
43
45$follow->display_table();
46
47echo $follow->button_action_add_concerned_card( );
48$csv="export.php?".
49 http_build_query(["gDossier"=>Dossier::id(),
50 "act"=>"CSV:FollowUpContactOption",
51 "ag_id"=>$ag_id]);
52echo HtmlInput::button_anchor(_("Export CSV"), $csv,"",' title="Export Contacts options"','smallbutton');
53
54echo HtmlInput::button_close("action_concerned_list_dv");
55$response = ob_get_clean();
56
57if ( headers_sent() && DEBUGNOALYSS > 0) {
58 echo $response;
59}
61header('Content-type: text/xml; charset=UTF-8');
62echo <<<EOF
63<?xml version="1.0" encoding="UTF-8"?>
64<data>
65<ctl>$ctl</ctl>
66<code>$html</code>
67</data>
68EOF;
69?>
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
$ag_id
if(headers_sent() &&DEBUGNOALYSS > 0) $html
_("actif, passif,charge,...")
$ex
Others concerned card in an action.
static title_box($p_name, $p_div, $p_mod="close", $p_js="", $p_draggable="n", $p_enlarge='n', $raw="")
Title for boxes, you can customize the symbol thanks symbol with the mode "custom".
manage the http input (get , post, request) and extract from an array
escape_xml($p_xml)
When data are transfered thanks ajax in a xml document, the xml can not contains some character,...