Add a fundraising reports MOCKUP page so carolyn can take screenshots and link it into the menu

This commit is contained in:
james 2009-10-16 15:43:26 +00:00
parent b240e36f19
commit 5da58aeb12
2 changed files with 110 additions and 1 deletions

View File

@ -0,0 +1,109 @@
<?
/*
This file is part of the 'Science Fair In A Box' project
SFIAB Website: http://www.sfiab.ca
Copyright (C) 2009 James Grant <james@lightbox.org>
This program 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, version 2.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
*/
?>
<?
require("../common.inc.php");
require_once("../user.inc.php");
user_auth_required('committee', 'admin');
require("fundraising_common.inc.php");
send_header("Fundraising Reports",
array('Committee Main' => 'committee_main.php',
'Administration' => 'admin/index.php',
'Fundraising' => 'admin/fundraising.php'),
"fundraising"
);
?>
<script type="text/javascript">
$(document).ready( function(){
$("#standardreportsaccordion").accordion();
});
</script>
<h3>Standard Reports</h3>
<div id="standardreportsaccordion" style="width: 600px;">
<h3><a a href="#">List of Prospects by Appeal</a></h3>
<div>
<table><tr><td>
Choose an appeal:
</td><td>
<select name="fundraising_campaigns_id">
<option value="">All appeals</option>
<?
$q=mysql_query("SELECT * FROM fundraising_campaigns WHERE fiscalyear='{$config['FISCALYEAR']}' ORDER BY name");
while($r=mysql_fetch_object($q)) {
echo "<option value=\"$r->id\">$r->name</option>\n";
}
?>
</select>
</td></tr>
<tr><td>
Report Type:
</td><td>
<select name="fundraising_campaigns_id">
<option value="">PDF</option>
<option value="">CSV</option>
</select>
</td></tr>
<tr><td colspan="2" style="text-align: center;">
<input type="submit" value="Generate Report">
</td></tr></table>
</div>
<h3><a href="#">Results of Appeal by Purpose</a></h3>
<div>
<table><tr><td>
Choose an appeal:
</td><td>
<select name="fundraising_campaigns_id">
<option value="">All appeals</option>
<?
$q=mysql_query("SELECT * FROM fundraising_campaigns WHERE fiscalyear='{$config['FISCALYEAR']}' ORDER BY name");
while($r=mysql_fetch_object($q)) {
echo "<option value=\"$r->id\">$r->name</option>\n";
}
?>
</select>
</td></tr>
<tr><td>
Report Type:
</td><td>
<select name="fundraising_campaigns_id">
<option value="">PDF</option>
<option value="">CSV</option>
</select>
</td></tr>
<tr><td colspan="2" style="text-align: center;">
<input type="submit" value="Generate Report">
</td></tr></table>
</div>
</div>
<br />
<br />
<h3>Custom Reports</h3>
<ul>
<li><a href="#">(custom reports will be here)</a></li>
</ul>
<?
send_footer();
?>

View File

@ -463,7 +463,7 @@ if(is_array($nav)) {
echo "<li><a href=\"{$config['SFIABDIRECTORY']}/admin/fundraising_setup.php\">".i18n("Fundraising Setup").'</a></li>';
echo "<li><a href=\"{$config['SFIABDIRECTORY']}/admin/fundraising_campaigns.php\">".i18n("Manage Appeals").'</a></li>';
echo "<li><a href=\"{$config['SFIABDIRECTORY']}/admin/donors.php\">".i18n("Manage Donors/Sponsors").'</a></li>';
echo "<li><a href=\"{$config['SFIABDIRECTORY']}/admin/reports.php?area=fundraising\">".i18n("Fundraising Reports").'</a></li>';
echo "<li><a href=\"{$config['SFIABDIRECTORY']}/admin/fundraising_reports.php\">".i18n("Fundraising Reports").'</a></li>';
echo "</ul><br />\n";
break;
default: