Plugins  LAST
 All Data Structures Files Functions Variables Pages
ajax_add_param_detail.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  * NOALYSS 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 NOALYSS; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19  */
20 /* $Revision$ */
21 
22 // Copyright (c) 2002 Author Dany De Bontridder dany@alchimerys.be
23 
24 /**
25  * @file
26  * @brief Montre un form pour ajouter une formule
27  * retour en XML
28  */
29 require_once 'include/class_formulaire_param.php';
30 require_once 'include/class_formulaire_param_detail.php';
31 
32 global $cn;
33 /**
34  * Retrouve le type de row si == 3
35  */
36 $type=$cn->get_value("select p_type from rapport_advanced.formulaire_param"
37  . " where p_id=$1",array($p_id));
39 if ( $type == 3)
40 {
41  /*
42  * type = formula
43  */
44  $obj->input_new($p_id);
45 } elseif ($type==9) {
46  /*
47  * type = child
48  */
49  $obj->input_new_child($p_id);
50 
51 }
52 ?>
global $cn
$type
Retrouve le type de row si == 3.