From 4d8e359049cd9bd6ada797cfc92008953fe88fa6 Mon Sep 17 00:00:00 2001 From: dave Date: Tue, 13 Jul 2010 05:20:38 +0000 Subject: [PATCH] Fix award ceremony script. --- admin/reports_ceremony.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/admin/reports_ceremony.php b/admin/reports_ceremony.php index 9589e0c..21aedf6 100644 --- a/admin/reports_ceremony.php +++ b/admin/reports_ceremony.php @@ -27,7 +27,7 @@ require_once('reports.inc.php'); user_auth_required('admin'); send_header("Award Ceremony Scripts", - array('Committee Main' => 'committee_main.php', + array('Main' => 'user_main.php', 'Administration' => 'admin/index.php'), "print_awards_ceremony_scripts" ); @@ -38,7 +38,12 @@ echo "".i18n("Year").":"; //get the year information, use fairname since it should be there for all years[right?] - $results = mysql_query("SELECT year FROM config WHERE var='fairname' AND year > 0 ORDER BY year DESC"); + /* Find our conference oid */ + $q = mysql_query("SELECT oid FROM conferences WHERE id='{$_SESSION['conferences_id']}'"); + $c = mysql_fetch_assoc($q); + $conferences_oid = $c['oid']; + + $results = mysql_query("SELECT year FROM conferences WHERE oid='$conferences_oid' AND year > 0 ORDER BY year DESC"); echo "