Plugins  LAST
 All Data Structures Files Functions Variables Pages
am_print.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 this file let you print a report about
25  * - card (simple listing)
26  * - paid off of the selected year
27  * - ...
28  */
29 $url='?'.dossier::get().'&plugin_code='.$_REQUEST['plugin_code'].'&sa=report'."&ac=".$_REQUEST['ac'];
30 
31 $menu=array(
32  array($url.'&sb=dfiche','Détail fiche',' Détail fiche ',1),
33  array($url.'&sb=dall','Listing','',2),
34  array($url.'&sb=tabyear','Tableau / année','Tableau amortissement par année',3)
35  );
36 
37 
38 $sb=(isset($_REQUEST['sb']))?$_REQUEST['sb']:-1;
39 $_REQUEST['sb']=$sb;
40 $def=0;
41 
42 switch($sb)
43  {
44  case 'dfiche':
45  $def=1;
46  break;
47  case 'dall':
48  $def=2;
49  break;
50  case 'tabyear':
51  $def=3;
52  break;
53  }
54 echo '<div class="menu2">';
55 echo ShowItem($menu,'H','mtitle ','mtitle ',$def,' class="mtitle" ');
56 echo '</div>';
57 
58 /* List + add and modify card */
59 if ($def==1)
60  {
61  require_once('print_fiche.inc.php');
62  exit();
63  }
64 
65 /* all */
66 if ( $def==2)
67  {
68  require_once('print_all.inc.php');
69  exit();
70  }
71 
72 /* table per year */
73 if ( $def==3)
74  {
75  require_once('print_table.inc.php');
76  exit();
77  }
78 
$menu
Definition: am_print.php:31
$url
Definition: am_print.php:29
$sb
Definition: am_print.php:38
$_REQUEST['sb']
Definition: am_print.php:39
$def
Definition: am_print.php:40