Plugins  LAST
 All Data Structures Files Functions Variables Pages
formulaire_definition.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 show the definition
27  *
28  */
29 $type_row=$cn->make_array("select p_type,p_description from rapport_advanced.type_row order by p_description");
30 $type_periode=$cn->make_array("select t_id,t_description from rapport_advanced.periode_type order by t_description");
31 ?>
32 <table id="table_formulaire_definition_id" class="result" style="table-layout: auto">
33  <thead>
34  <tr>
35  <th>
36  Effacer
37  </th>
38  <th style="width:92px">
39  Code <?php echo HtmlInput::infobulle(200)?>
40  </th>
41  <th>
42  Libellé
43  </th>
44  <th style="width:92px">
45  Type de ligne
46  </th>
47  <th>
48  Période
49  </th>
50  <th style="width:92px">
51  Ordre d'apparition
52  </th>
53  </tr>
54  </thead>
55  <tbody id="table_body_id">
56  <?php for ($i=0;$i<$max;$i++):?>
57  <tr id="row_<?php echo $i?>">
58  <td>
59  <?php
60  $a=new ICheckBox('del_row[]',$this->definition[$i]->p_id);
61  echo $a->input();
62  ?>
63  </td>
64  <td>
65  <?php echo HtmlInput::hidden('p_id[]',$this->definition[$i]->p_id) ?>
66  <?php
67  $p_code=new IText('p_code[]',$this->definition[$i]->p_code);
68  $p_code->size="10";
69  echo $p_code->input();
70  ?>
71  </td>
72  <td>
73  <?php
74  $p_libelle=new IText('p_libelle[]',$this->definition[$i]->p_libelle);
75  $p_libelle->size="50";
76  //$p_libelle->css_size="100%";
77  echo $p_libelle->input();
78  ?>
79  </td>
80  <td>
81  <?php
82  $p_type=new ISelect('p_type[]');
83  $p_type->value=$type_row;
84  $p_type->selected=$this->definition[$i]->p_type;
85  echo $p_type->input();
86  ?>
87  </td>
88  <td>
89  <?php
90  $p_type_periode=new ISelect('t_id[]');
91  $p_type_periode->value=$type_periode;
92  $p_type_periode->selected=$this->definition[$i]->t_id;
93  echo $p_type_periode->input();
94  ?>
95  </td>
96  <td>
97  <?php
98  if ($this->definition[$i]->p_order=='')
99  $value=$i*10;
100  else
101  $value=$this->definition[$i]->p_order;
102  $p_order=new INum('p_order[]',$value);
103  $p_order->prec=0;
104  $p_order->size=4;
105  echo $p_order->input();
106  ?>
107  </td>
108  </tr>
109  <?php endfor;?>
110  </tbody>
111 </table>
112 <p>
113 <?php echo HtmlInput::button_anchor("Ajout d'une ligne","javascript:void(0)","add_def",
114  sprintf('onclick="add_row_definition(\'%s\',\'%s\',\'%s\')"',$_REQUEST['plugin_code'],$_REQUEST['ac'],$_REQUEST['gDossier']))?>
115 </p>
116 <p>
117  <?php
118  $file=new IFile('rapav_template');
119  ?>
120  Modèle :
121  <?php
122  if ( $this->f_filename == "")
123  echo $file->input();
124  else {
125  $remove_doc= HtmlInput::anchor("Efface", "",
126  sprintf("onclick=\"rapav_remove_doc_template('%s','%s','%s','%s')\"",
127  $_REQUEST['plugin_code'],
128  $_REQUEST['ac'],
129  $_REQUEST['gDossier'],
130  $this->f_id
131  ));
132  echo '<span id="rapav_template"> '.$this->anchor_document().'</span>';
133  echo '<span id="rapav_template_ctl"> '.$remove_doc.'</span>';
134  echo '<span id="rapav_new_file" style="display:none"> '.$file->input().'</span>';
135  }
136  ?>
137 </p>
$note style
$p_card javascript
$oPeriode p_id
function add_row_definition(plugin_code, ac, dossier)
Add a row to the table in formulaire_definition table id = table_formulaire_definition_id.
$categorie_appel table
$_REQUEST['sb']
Definition: am_print.php:39
$file
Definition: import_bank.php:60
global $cn