Plugins  LAST
 All Data Structures Files Functions Variables Pages
historic.inc.php
Go to the documentation of this file.
1 <?php
2 
3 /*
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 /* $Revision$ */
21 
22 // Copyright (c) 2002 Author Dany De Bontridder dany@alchimerys.be
23 
24 /**
25  * @file
26  * @brief show history of call
27  *
28  */
29 global $cn;
30 
31 $sql="select af_id,af_date,to_char(af_date,'DD.MM.YY') as str_date,af_percent,af_amount,af_card,af_ledger,af.jr_internal,
32 bd.b_id,bd.b_name,bd.b_exercice,bd.b_type,jrn.jr_id,
33 cr.cr_id,cr_name,
34 jrn_def_name
35 from
36 coprop.appel_fond as af
37 left join coprop.budget as bd on (af.b_id=bd.b_id)
38 left join coprop.clef_repartition as cr on (af.cr_id=cr.cr_id)
39 join jrn_def on (jrn_def_id=af_ledger)
40 join jrn on (jrn.jr_internal=af.jr_internal)
41 where af_confirmed='Y'
42 order by 2
43 ";
44 $array=$cn->get_array($sql);
45 require_once 'template/historic.php';
46 ?>
$sql
$array
global $cn