Hệ thống quản lý trường học bằng PHP / MySQLi

1 <?php
2 /*
3  Reportico - PHP Reporting Tool
4  Copyright (C)
2010-2014 Peter Deed
5
6  This program
is free software; you can redistribute it and/or
7  modify it under the terms of the GNU General Public License
8  
as published by the Free Software Foundation; either version 2
9  of the License, or (at your option) any later version.
10  
11  This program
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
this program; if not, write to the Free Software
18  Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19
20  * File: reportico_report_array.php
21  *
22  * Base
class for all report output formats.
23  * Defines
base functionality for handling report
24  * page headers, footers,
group headers, group trailers
25  * data lines
26  *
27  * @link http://www.reportico.org/
28  * @copyright
2010-2014 Peter Deed
29  * @author Peter Deed <info@reportico.org>
30  * @package Reportico
31  * @license - http://www.gnu.org/licenses/gpl-
2.0.html GNU/GPL
32  * @version $Id: swoutput.php,v
1.33 2014/05/17 15:12:31 peter Exp $
33  */

34 require_once(
"reportico_report.php");
35
36 class
reportico_report_array extends reportico_report
37 {
38     
var $record_template;
39     
var $column_spacing;
40     
var $results = array();
41     
42     function __construct ()
43     {
44         $
this->page_width = 595;
45         $
this->page_height = 842;
46         $
this->column_spacing = "2%";
47     }
48
49     function start ()
50     {
51
52         reportico_report::start();
53
54         $results=array();
55
56         $ct=
0;
57     }
58
59     function finish ()
60     {
61         reportico_report::finish();
62
63     }
64
65     function format_column(& $column_item)
66     {
67         
if ( !$this->show_column_header($column_item) )
68                 
return;
69
70         $k =& $column_item->column_value;
71         $padstring = str_pad($k,
20);
72     }
73
74     function each_line($val)
75     {
76         reportico_report::each_line($val);
77
78         
// Set the values for the fields in the record
79         $record = array();
80
81         
foreach ( $this->query->display_order_set["column"] as $col )
82         {
83             $qn = get_query_column($col->query_name, $
this->columns ) ;
84             $
this->results[$qn->query_name][] = $qn->column_value;
85             $ct = count($
this->results[$qn->query_name]);
86         }
87         
88     }
89
90 }
91 ?>


Gõ tìm kiếm nhanh...