noalyss Version-9
contact_option_ref_mtable.class.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// Copyright (2002-2020) Author Dany De Bontridder <danydb@noalyss.eu>
21
22
23/**
24 * @file
25 * @brief Manage the Options for the Card_Multiple in the Follow Up
26 */
27
28/**
29 * @class Contact_Option_Ref_MTable
30 * @brief Manage the Options for the Card_Multiple in the Follow Up
31 */
32require_once NOALYSS_INCLUDE."/database/contact_option_ref_sql.class.php";
33
35
36 function __construct(Contact_Option_Ref_SQL $obj)
37 {
38 parent::__construct($obj);
39 $this->set_col_label("cor_label", _("Nom"));
40 $this->set_col_label("cor_type", _("Type "));
41 $this->set_col_label("document_option_id", _("Action"));
42 $this->set_col_label("cor_value_select",_("Options"));
43 $this->set_property_visible("cor_id", false);
44 $this->set_col_type("cor_type","select",[
45 ["label"=>_("Texte"),"value"=>0],
46 ["label"=>_("Nombre"),"value"=>1],
47 ["label"=>_("Choix"),"value"=>3],
48 ["label"=>_("Date"),"value"=>2],
49 ["label"=>_("Coche"),"value"=>4]
50 ]);
51 }
52
53}
Manage the Options for the Card_Multiple in the Follow Up.
__construct(Contact_Option_Ref_SQL $obj)
Purpose is to propose a librairy to display a table content and allow to update and delete row ,...
set_col_type($p_key, $p_value, $p_array=NULL)
set the type of a column , it will change in the input db box , the select must supply an array of po...
set_property_visible($p_key, $p_value)
set a column of the data row visible or not
set_col_label($p_key, $p_display)
set the name to display for a column