Plugins  LAST
 All Data Structures Files Functions Variables Pages
util_generate.php
Go to the documentation of this file.
1 <?php
2 /*
3  * This file is part of NOALYSS.
4  *
5  * NOALYSS is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * NOALYSS is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with NOALYSS; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 */
19 /* $Revision$ */
20 
21 // Copyright (c) 2002 Author Dany De Bontridder dany@alchimerys.be
22 
23 /*!\file
24  * \brief select the mat. to amortize, the ledger and the year
25  */
26  ?>
27 <form id="gen_amort" method="post">
28 <?php echo HtmlInput::hidden('plugin_code',$_REQUEST['plugin_code']);?>
29 <?php echo HtmlInput::hidden('sa',$_REQUEST['sa']);?>
30 <?php echo HtmlInput::hidden('sb',$_REQUEST['sb']);?>
31 <?php echo dossier::hidden()?>
32 
33 <table>
34 <tr>
35 <td>Année</td>
36 <td><?php echo $year->input();?></td>
37 </tr>
38 <tr>
39 <td>Journal dans lequel l'écriture sera passée</td>
40 <td><?php echo $sel_ledger->input()?></td>
41 </tr>
42 <tr>
43 <td>Date de l'opération</td>
44 <td><?php echo $p_date->input()?></td>
45 </tr>
46 <?php if ( isset ($f_periode)) : ?>
47 <tr>
48  <td>
49  <?php echo $f_periode?>
50  </td>
51  <td>
52  <?php echo $l_form_per?>
53  </td>
54 </tr>
55 <?php endif; ?>
56 <tr>
57 <td>Pièce</td>
58 <td><?php echo $pj->input()?></td>
59 </tr>
60 </table>
61 
62 Cochez ce qu'il faut amortir
63 <table class="result">
64 <tr>
65  <th>Selection</th>
66  <th>Quick Code</th>
67  <th>Nom</th>
68  <th>Description</th>
69 </tr>
70 <?php
71 /*
72  * get all the material
73  */
74 $am=new Amortissement_Sql($cn);
75 $ret=$am->seek ("where a_visible='Y' ");
76 for ( $i =0;$i<Database::num_row($ret);$i++):
77  $array=$am->next($ret,$i);
78  echo HtmlInput::hidden('a_id[]',$array->a_id);
79  $ck=new ICheckBox('p_ck'.$i);
80  $fiche=new Fiche($cn,$array->f_id);
81 
82 ?>
83 <tr>
84 <?php
85 if ( isset($_POST['p_ck'.$i])) $ck->selected=true;else $ck->selected=false;
86  $view=detail_material($array->f_id,$fiche->get_quick_code());
87 ?>
88  <td><?php echo $ck->input()?></td>
89  <td><?php echo $view?></td>
90  <td><?php echo $fiche->strAttribut(ATTR_DEF_NAME)?></td>
91  <td> <?php echo $fiche->strAttribut(9)?></td>
92  <td></td>
93 </tr>
94 <?php
95 endfor;
96 ?>
97 </table>
98 <?php echo HtmlInput::submit('generate',"Générer l'écriture");?>
99 </form>
100 <?php echo HtmlInput::button('check_all','Sélectionner tout',' onclick="select_checkbox(\'gen_amort\')"');?>
101 <?php echo HtmlInput::button('check_none','Tout Désélectionner ',' onclick="unselect_checkbox(\'gen_amort\')"');?>
endif
Definition: detail_item.php:95
$categorie_appel table
$_REQUEST['sb']
Definition: am_print.php:39
if($p_number->value==0) l les annuités seront recalculées et l pct[] ad_year[] select h_amount from amortissement amortissement_histo where a_id