Plugins  LAST
 All Data Structures Files Functions Variables Pages
ajax_add_row_definition.php
Go to the documentation of this file.
1 <?php
2 //This file is part of NOALYSS and is under GPL
3 //see licence.txt
4 ?>
5 <?php
6 /**
7  * @file
8  * @brief Ajoute une ligne dans la definition
9  */
10 $type_row = $cn->make_array("select p_type,p_description from rapport_advanced.type_row order by p_description");
11 $type_periode = $cn->make_array("select t_id,t_description from rapport_advanced.periode_type order by t_description");
12 ?>
13 <td>
14  Nouv.
15 </td>
16 <td>
17  <?php echo HtmlInput::hidden('p_id[]', -1) ?>
18  <?php
19  $p_code = new IText('p_code[]');
20  $p_code->size = "10";
21  echo $p_code->input();
22  ?>
23 </td>
24 <td>
25  <?php
26  $p_libelle = new IText('p_libelle[]');
27  $p_libelle->css_size = "100%";
28  echo $p_libelle->input();
29  ?>
30 </td>
31 <td>
32  <?php
33  $p_type = new ISelect('p_type[]');
34  $p_type->value = $type_row;
35  echo $p_type->input();
36  ?>
37 </td>
38 <td>
39  <?php
40  $p_type_periode = new ISelect('t_id[]');
42  echo $p_type_periode->input();
43  ?>
44 </td>
45 <td>
46  <?php
47  $p_order = new INum('p_order[]');
48  $p_order->prec = 0;
49  $p_order->size = 4;
50  echo $p_order->input();
51  ?>
52 </td>
global $cn