Plugins  LAST
 All Data Structures Files Functions Variables Pages
declaration_display.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 content of a declaration
27  *
28  */
29 ?>
30 <h1><?php echo $this->d_title?></h1>
31 <h2> Du <?php echo $this->d_start?> au <?php echo $this->d_end?></h2>
32 <?php
33 $script=sprintf("modify_rapav_description('%s','%s','%s','%s')",
34  $_REQUEST['plugin_code'],
35  $_REQUEST['ac'],
36  $_REQUEST['gDossier'],
37  $this->d_id
38  );
39 ?>
40 <span id="description_flag"></span>
41  <textarea label="Description" style="width:75%;height:4em" class="input_text" id="description">
42 <?php echo $this->d_description?>
43 
44 
45  </textarea>
46  <?php echo HtmlInput::button_action(_('Modifie description'), $script , 'modify_listing_description','tinybutton'); ?>
47 
48 <?php
49  if ( empty($array) ) { echo 'Aucune donnĂ©e'; exit();}
50 
51  // Create infobulle
52  echo HtmlInput::hidden('d_id',$this->d_id);
53 for ($i=0;$i<count($array);$i++):
54  $row=$array[$i];
55 if ($this->d_step <> 0 ) $per= $row['dr_start']." : ".$row['dr_end'];
56 $per=(isset($per))?$per:"";
57 switch($row['dr_type'])
58 {
59  case 1:
60  echo '<h1 class="title">'.$row['dr_libelle'].'</h1>';
61  break;
62  case 2:
63  echo '<h2 class="title">'.$row['dr_libelle'].'</h2>';
64  break;
65  case 6:
66  echo '<h3 class="title">'.$row['dr_libelle'].'</h3>';
67  break;
68  case 3:
69  $input=new INum('amount[]',$row['dr_amount']);
70  $input->size=15;
71  echo HtmlInput::hidden('code[]',$row['dr_id']);
72  echo '<p>'.$row['dr_code']." ".$row['dr_libelle']." = ".$input->input()." $per ".' </p>';
73  break;
74  case 7:
75  echo '<p>'.$row['dr_libelle'].'</p>';
76  break;
77  case 8:
78  echo '<p class="notice" > '.$row['dr_libelle'].'</p>';
79  break;
80  case 9:
81  $input=new INum('amount[]',$row['dr_amount']);
82  $input->size=15;
83  echo HtmlInput::hidden('code[]',$row['dr_id']);
84  echo '<p>'.$row['dr_code']." ".$row['dr_account'].$row['dr_libelle']." = ".$input->input()." $per ".' </p>';
85  break;
86 
87 }
88 
89 endfor;
90 ?>
$note style
$categorie_appel label
for($i=0;$i< Database::num_row($ret);$i++) $row
switch($row['dr_type']) endfor
if(isset($_POST['remove'])) $array
$_REQUEST['sb']
Definition: am_print.php:39