Plugins  LAST
 All Data Structures Files Functions Variables Pages
am_util.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 let you generate the accounting for the paid off for a selected
25  * year history and remove
26  */
27 $url='?'.dossier::get().'&plugin_code='.$_REQUEST['plugin_code'].'&sa=util'.'&ac='.$_REQUEST['ac'];
28 
29 $menu=array(
30  array($url.'&sb=generate','Génére écriture',' Génération écriture comptable ',1),
31  array($url.'&sb=histo','Historique','Historique des opérations',3)
32  );
33 
34 
35 $sb=(isset($_REQUEST['sb']))?$_REQUEST['sb']:-1;
36 $_REQUEST['sb']=$sb;
37 $def=0;
38 
39 switch($sb)
40  {
41  case 'generate':
42  $def=1;
43  break;
44  case 'histo':
45  $def=3;
46  break;
47  }
48 echo '<div class="menu2">';
49 echo ShowItem($menu,'H','mtitle ','mtitle ',$def,' class="mtitle" ');
50 echo '</div>';
51 
52 /* List + add and modify card */
53 if ($def==1)
54  {
55  require_once('am_generate.inc.php');
56  exit();
57  }
58 
59 /* histo */
60 if ( $def==3)
61  {
62  require_once('am_histo.inc.php');
63  exit();
64  }
$url
Definition: am_util.php:27
$def
Definition: am_util.php:37
$menu
Definition: am_util.php:29
$sb
Definition: am_util.php:35
$_REQUEST['sb']
Definition: am_util.php:36