Plugins  LAST
 All Data Structures Files Functions Variables Pages
formulaire_listing.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 display list of formulaire + button
27  *
28  */
29 ?>
30 <div id="form_list_div">
31 <table class="result">
32  <tr>
33  <th>Nom du formulaire</th>
34  <th>Description</th>
35 
36  <th></th>
37  <th></th>
38  <th></th>
39  </tr>
40 <?php
41  for ($i=0;$i<count($alist);$i++):
42  $class=($i%2==0)?'class="odd"':'class="even"';
43 ?>
44  <tr <?php echo $class; ?>>
45  <td>
46  <?php echo h($alist[$i]['f_title'])?>
47  </td>
48  <td>
49  <?php echo h($alist[$i]['f_description'])?>
50  </td>
51  <td>
52  <?php echo HtmlInput::anchor('Définition', "",sprintf('onclick="rapav_form_def(\'%s\',\'%s\',\'%s\',\'%s\')"',$_REQUEST['plugin_code'],$_REQUEST['ac'],dossier::id(),$alist[$i]['f_id']))?>
53  </td>
54  <td>
55  <?php echo HtmlInput::anchor('Paramètre', "",sprintf('onclick="rapav_form_param(\'%s\',\'%s\',\'%s\',\'%s\')"',$_REQUEST['plugin_code'],$_REQUEST['ac'],dossier::id(),$alist[$i]['f_id']))?>
56  </td>
57  <td>
58  <?php echo HtmlInput::anchor('Export définition', sprintf("extension.raw.php?plugin_code=%s&ac=%s&gDossier=%s&d_id=%s&act=rapav_form_export",$_REQUEST['plugin_code'],$_REQUEST['ac'],dossier::id(),$alist[$i]['f_id']))?>
59  </td>
60  </tr>
61 
62 <?php endfor; ?>
63 </table>
64  <?php
65  echo HtmlInput::button("add_form_bt","Ajout d'un formulaire",'onclick="$(\'add_form_div\').show();$(\'add_form_bt\').hide()"');
66 echo '<div id="add_form_div" style="display:none">';
67 echo '<form method="POST">';
68 echo '<h2> Nouveau formulaire</h2>';
69 $name=new IText("titre");
70 $description=new IText("description");
71 echo '<table>';
72 echo tr(td("Titre : ").td($name->input()));
73 echo tr(td('Description').td($description->input()));
74 echo '</table>';
75 echo HtmlInput::submit ("add_form","Sauver");
76 echo '</form>';
77 echo '<form enctype="multipart/form-data" method="POST"> ';
78 echo '<h2> Depuis un fichier</h2>';
79 $file=new IFile('form');
80 echo $file->input();
81 echo HtmlInput::submit ("restore_form","Sauver");
82 echo '</form>';
83 ?>
84 </div>
85 </div>
86 <div id="form_mod_div">
87 
88 </div>
else $class
Definition: show_import.php:25
endfor
$select_type id
$categorie_appel table
$_REQUEST['sb']
Definition: am_print.php:39