forked from jwigal/churchinfo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathReportList.php
124 lines (105 loc) · 3.5 KB
/
ReportList.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<?php
/*******************************************************************************
*
* filename : ReportList.php
* last change : 2003-03-20
* website : http://www.infocentral.org
* copyright : Copyright 2003 Chris Gebhardt
*
* InfoCentral is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
******************************************************************************/
require 'Include/Config.php';
require 'Include/Functions.php';
//Set the page title
$sPageTitle = gettext('Report Menu');
$today = getdate();
$year = $today['year'];
require 'Include/Header.php';
?>
<p>
<a class="MediumText" href="GroupReports.php"><?php
echo gettext('Reports on groups and roles'); ?></a>
<br>
<?php
echo gettext('Report on group and roles selected (it may be a multi-page PDF).'); ?>
</p>
<?php if ($bCreateDirectory) { ?>
<p>
<a class="MediumText" href="DirectoryReports.php"><?php echo gettext('Members Directory'); ?></a>
<br>
<?php echo gettext('Printable directory of all members, grouped by family where assigned'); ?>
</p>
<?php } ?>
<?php /*
<p>
<a href=''><?php echo gettext('Members Directory w/Photos'); ?></a>
<br>
<?php echo gettext('Printable directory of all members. Family photos where available / Individual photos otherwise.'); ?>
</p> */ ?>
<p>
<a class="MediumText" href="LettersAndLabels.php"><?php
echo gettext('Letters and Mailing Labels'); ?></a>
<br><?php
echo gettext('Generate letters and mailing labels.'); ?>
</p>
<p>
<a class="MediumText" href="SundaySchool.php"><?php
echo gettext('Sunday School Reports'); ?></a>
<br><?php
echo gettext('Generate class lists and attendance sheets'); ?>
</p>
<?php
if ($_SESSION['bFinance']) {
echo '<p>';
echo '<a class="MediumText" href="FinancialReports.php">';
echo gettext('Financial Reports')."</a><br>\n";
echo gettext('Pledges and Payments')."</p>";
}
?>
<?php
if ($_SESSION['bAdmin']) {
echo '<p>';
echo '<a class="MediumText" href="CanvassAutomation.php">';
echo gettext('Canvass Automation') . "</a><br>";
echo gettext('Automated support for conducting an every-member canvass.');
}
?>
<p>
<span class="MediumText"><u><?php echo gettext("Event Attendance"); ?></u></span>
<br>
<?php echo gettext("Generate attendance -AND- non-attendance reports for events"); ?>
<br>
<?php
//$sSQL = "SELECT * FROM event_types";
$sSQL = "SELECT DISTINCT event_types.* FROM event_types RIGHT JOIN events_event ON event_types.type_id=events_event.event_type ORDER BY type_id ";
$rsOpps = RunQuery($sSQL);
$numRows = mysql_num_rows($rsOpps);
// List all events
for ($row = 1; $row <= $numRows; $row++)
{
$aRow = mysql_fetch_array($rsOpps);
extract($aRow);
echo ' <a href="EventAttendance.php?Action=List&Event='.
$type_id.'&Type='.gettext($type_name).'" title="List All '.
gettext($type_name).' Events"><strong>'.gettext($type_name).
'</strong></a>'."<br>\n";
}
?>
</p>
<?php
if ($bUSAddressVerification) {
echo '<p>';
echo '<a class="MediumText" href="USISTAddressVerification.php">';
echo gettext('US Address Verification Report')."</a><br>\n";
echo gettext('Generate report comparing all US family addresses '.
'with United States Postal Service Standard Address Format.<br>')."\n";
}
?>
</p>
<?php
require 'Include/Footer.php';
?>