Plugins  LAST
 All Data Structures Files Functions Variables Pages
ajax_rapav_search_code.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 list of code of the form
27  *
28  */
29 global $cn;
30 $array=$cn->get_array("select p_id,p_code,p_libelle from rapport_advanced.formulaire_param where p_type=3 and f_id=$1 order by 2",array($f_id));
31 echo HtmlInput::title_box('Code Formulaire','search_code_div');
32 echo _('Cherche').':'.HtmlInput::filter_table('code_tb','0,1',1);
33 ?>
34 <table id='code_tb'>
35  <tr>
36  <th>
37  Code
38  </th>
39  <th>
40  LibellĂ©
41  </th>
42  </tr>
43  <?php for ($i=0;$i<count($array);$i++): ?>
44  <tr>
45  <td>
46  <?php echo HtmlInput::anchor(h($array[$i]['p_code']),"",'onclick="$(\'form_compute\').value+=\'['.$array[$i]['p_code'].']\';removeDiv(\'search_code_div\');"')?>
47  </td>
48  <td>
49  <?php echo h($array[$i]['p_libelle'])?>
50  </td>
51  </tr>
52  <?php endfor;?>
53 </table>
endfor
$categorie_appel table
global $cn