Plugins  LAST
 All Data Structures Files Functions Variables Pages
print_table.inc.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 print for a specific year
25  */
26 
27 echo '<div class="content" style="width:80%;margin-left:10%">';
28 echo '<FORM METHOD="GET">';
29 echo HtmlInput::hidden('sa',$_REQUEST['sa']);
30 echo HtmlInput::hidden('sb',$_REQUEST['sb']);
31 echo HtmlInput::hidden('ac',$_REQUEST['ac']);
32 echo HtmlInput::hidden('plugin_code',$_REQUEST['plugin_code']);
33 echo dossier::hidden();
34 $year=new INum('p_year');
35 $year->value=(isset($_GET['p_year']))?$_GET['p_year']:'';
36 echo "AnnĂ©e ".$year->input();
37 echo HtmlInput::submit('search','Accepter');
38 echo '</form>';
39 /* display for year */
40 if ( isset($_GET['search'])&& $_GET['p_year'] != '' &&isNumber($_GET['p_year'])==1)
41  {
42  $year=$_GET['p_year'];
43  $sql="select * from amortissement.amortissement join fiche_detail using(f_id)
44  where a_id in (select a_id from amortissement.amortissement_detail where ad_year=$1)
45  and ad_id=1 order by ad_value";
46  $array=$cn->get_array($sql,array($_GET['p_year']));
47  require_once('template/listing_year.php');
48  $d=dossier::id();$plugin=$_REQUEST['plugin_code'];$y=$_GET['p_year'];
49 
50  }
51 echo '</div>';
$select_type id
if(isset($_POST['remove'])) $array
$_REQUEST['sb']
Definition: am_print.php:39
$sql
global $cn