noalyss Version-9
contact_option_ref.inc.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-2020) Author Dany De Bontridder <danydb@noalyss.eu>
21
22if (!defined('ALLOWED'))
23 die('Appel direct ne sont pas permis');
24echo '<div class="content">';
25/**
26 * @file
27 * @brief add option for contact
28 * @see contact_option_list
29 * @see action_document_type_mtable::input()
30 */
32try
33{
34 $action=$http->request("sa", "string", "list");
35}
36catch (Exception $ex)
37{
38 record_log(__FILE__." no p_id");
39 return;
40}
42echo '<p class="info">'.
43 '<a href="https://wiki.noalyss.eu/doku.php?id=menu:cfgaction" target="_blank">'.
44 _("Aide : voir CFGACTION").
45 '</a>'.
46 '</p>';
47// document_option id from document_option where do_code='contact_multiple' and document_type_id=p_id
49
51
52$contact_mtable->set_callback("ajax_misc.php");
53$contact_mtable->set_object_name("s_contact_option");
54$contact_mtable->set_dialog_box("db_contact_option");
55$contact_mtable->add_json_param("op", "contact_option_list");
56
57$contact_mtable->create_js_script();
58$contact_mtable->display_table();
59
60
61echo '</div>';
record_log($p_message)
Record an error message into the log file of the server.
Definition: ac_common.php:1342
$action
$ex
Definition: balance.inc.php:45
Manage the Options for the Card_Multiple in the Follow Up.
abstract of the table public.contact_option_ref
static connect()
manage the http input (get , post, request) and extract from an array
catch(Exception $ex) $cn