Copyright (C) 2005 James Grant 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. */ ?> 0) { $q = mysql_query("SELECT id FROM reports WHERE system_report_id='$sid'"); $r = mysql_fetch_assoc($q); $id = $r['id']; } if($show_options == false) { if($id && $year) { $report = report_load($id); $report['year'] = $year; if($type != '') $report['option']['type'] = $type; if($stock != '') $report['option']['stock'] = $stock; report_gen($report); } else { exit; header("Location: reports.php"); } exit; } $report = report_load($id); send_header('Report Options', array( 'Committee Main' => 'committee_main.php', 'My Reports' => 'admin/reports.php')); echo '
'; echo ""; echo ''; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ''; /* See if the report is in this committee member's list */ $q = mysql_query("SELECT * FROM reports_committee WHERE users_id='{$_SESSION['users_uid']}' AND reports_id='{$report['id']}'"); echo ""; if(mysql_num_rows($q) > 0) { /* Yes, it is */ $i = mysql_fetch_object($q); echo ""; echo ""; echo ""; echo ""; } else { echo ""; } echo ''; echo ""; $format = $report['options']['type']; $stock = $report['options']['stock']; $year = $config['FAIRYEAR']; /* Out of all the report optoins, we really only want these ones */ $option_keys = array('type','stock'); foreach($report_options as $ok=>$o) { if(!in_array($ok, $option_keys)) continue; echo ""; echo ""; } /* Find all the years */ $q = mysql_query("SELECT DISTINCT year FROM config WHERE year>1000 ORDER BY year DESC"); echo ""; echo ""; echo "
".i18n('Report Name').":{$report['name']}
".i18n('Description').":{$report['desc']}
".i18n('Created By').":{$report['creator']}

".i18n('My Reports Info')."

".i18n('Category').":{$i->category}
".i18n('Comment').":{$i->comment}
".i18n('This report is NOT in your \'My Reports\' list.')."

".i18n('Report Options')."

{$o['desc']}:
".i18n('Year').":
"; echo '
'; echo ""; echo '
'; send_footer(); ?>