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");
32 <
table id=
"table_formulaire_definition_id" class=
"result" style=
"table-layout: auto">
38 <th
style=
"width:92px">
39 Code <?php echo HtmlInput::infobulle(200)?>
44 <th style=
"width:92px">
50 <th style=
"width:92px">
55 <tbody id="table_body_id">
56 <?php for ($i=0;$i<$max;$i++):?>
57 <tr id="row_<?php echo $i?>">
60 $a=new ICheckBox('del_row[]
',$this->definition[$i]->p_id);
65 <?php echo HtmlInput::hidden('p_id[]
',$this->definition[$i]->p_id) ?>
67 $p_code=new IText('p_code[]
',$this->definition[$i]->p_code);
69 echo $p_code->input();
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();
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();
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();
98 if ($this->definition[$i]->p_order=='')
101 $value=$this->definition[$i]->p_order;
102 $p_order=new INum('p_order[]
',$value);
105 echo $p_order->input();
113 <?php echo HtmlInput::button_anchor("Ajout d'une ligne
","javascript:void(0)
","add_def
",
118 $file=
new IFile(
'rapav_template');
122 if ( $this->f_filename ==
"")
125 $remove_doc= HtmlInput::anchor(
"Efface",
"",
126 sprintf(
"onclick=\"rapav_remove_doc_template('%s','%s','%s','%s')\"",
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>';
function add_row_definition(plugin_code, ac, dossier)
Add a row to the table in formulaire_definition table id = table_formulaire_definition_id.