Plugins  LAST
 All Data Structures Files Functions Variables Pages
listing_histo.php
Go to the documentation of this file.
1 <?php
2 /*
3  * Copyright 2010 De Bontridder Dany <dany@alchimerys.be>
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 ?>
21 <div class="content" style="width:80%;margin-left:10%">
22 <!-- <h2 class="info">Historique</h2> -->
23 <form method="POST">
24 <?php
25 echo HtmlInput::hidden('sa',$_REQUEST['sa']);
26 echo HtmlInput::hidden('sb',$_REQUEST['sb']);
27 echo HtmlInput::hidden('ac',$_REQUEST['ac']);
28 echo HtmlInput::hidden('plugin_code',$_REQUEST['plugin_code']);
29 echo dossier::hidden();
30 echo _('Cherche').' : '.HtmlInput::filter_table('amortissement_tb','1,2,3,5,6',1);
31 ?>
32 <table id="amortissement_tb" class="result">
33 <tr>
34 <th><?php echo $header->get_header(0)?></th>
35 <th><?php echo $header->get_header(1)?></th>
36 <th style="text-align:right"><?php echo $header->get_header(2)?></th>
37 <th style="text-align:center"><?php echo $header->get_header(3)?></th>
38 <th><?php echo $header->get_header(4)?></th>
39 <th><?php echo $header->get_header(5)?></th>
40 
41 </tr>
42 <?php
43 
44 for ($i=0;$i<count($array);$i++) :
45  $class=($i%2==0)?"odd":"even";
46  echo '<tr class="'.$class.'">';
47  echo td($array[$i]['quick_code']);
48  echo td($array[$i]['vw_name']);
49  echo td(nbm($array[$i]['h_amount']), 'align="right"');
50  echo td($array[$i]['h_year'],'align="center"');
51 
52  echo td($array[$i]['h_pj']);
53  $msg='';
54  if ( $array[$i]['jr_internal'] != '' )
55  {
56  $jrid=$cn->get_value('select jr_id from jrn where jr_internal=$1',array($array[$i]['jr_internal']));
57  $msg=HtmlInput::detail_op($jrid,$array[$i]['jr_internal']);
58  }
59  echo td($msg);
60  $ic=new ICheckBox('p_sel[]');
61  $ic->value=$array[$i]['ha_id'];
62  echo td($ic->input());
63 
64 
65 
66  echo '</tr>';
67 endfor;
68 ?>
69 
70 </table>
71 <?php echo HtmlInput::submit('remove','Effacer la sélection','onclick="confirm(\'Confirmez Effacement ?\')"')?>
72 </form>
73 </div>
$msg
else $class
Definition: show_import.php:25
endfor
$note style
$header
if(isset($_POST['remove'])) $array
$categorie_appel table
$_REQUEST['sb']
Definition: am_print.php:39
global $cn