diff --git a/admin/reports_acscript.php b/admin/reports_acscript.php index 615cf2b..8ef766c 100644 --- a/admin/reports_acscript.php +++ b/admin/reports_acscript.php @@ -8,9 +8,16 @@ if($_GET['year']) $foryear=$_GET['year']; else $foryear=$config['FAIRYEAR']; - if($_GET['awardtype']) $awardtype=" AND award_types.type='".mysql_escape_string($_GET['awardtype'])."'"; + if($_GET['awardtype']=="All") $awardtype=""; + else if($_GET['awardtype']) $awardtype=" AND award_types.type='".mysql_escape_string($_GET['awardtype'])."'"; else $awardtype=""; + if($_GET['show_unawarded_awards']=="on") $show_unawarded_awards="yes"; + else $show_unawarded_awards="no"; + + if($_GET['show_unawarded_prizes']=="on") $show_unawarded_prizes="yes"; + else $show_unawarded_prizes="no"; + $type=$_GET['type']; if(!$type) $type="pdf"; @@ -78,7 +85,7 @@ `order`"); echo mysql_error(); - if($config['reports_show_unawarded_awards']==no) + if($show_unawarded_awards=="no") { $skipAward=true; while($pr=mysql_fetch_object($pq)) @@ -106,7 +113,7 @@ $prevprizeid=-1; while($pr=mysql_fetch_object($pq)) { - if($pr->projectnumber || $config['reports_show_unawarded_prizes']==yes) + if($pr->projectnumber || $show_unawarded_prizes=="yes") { if($prevprizeid!=$pr->id) { diff --git a/admin/reports_ceremony.php b/admin/reports_ceremony.php index d5b0029..c9e783f 100644 --- a/admin/reports_ceremony.php +++ b/admin/reports_ceremony.php @@ -31,17 +31,47 @@ 'Administration' => 'admin/index.php') ); echo "
"; + echo "
"; + echo ""; + + echo ""; + + //list output formats + echo " + "; + + //list award subsets to output + echo ""; + + echo ""; + echo ""; + echo ""; + echo ""; + + echo "
".i18n("Year").":"; - echo "FULL PDF  "; - echo "(Divisional)   "; - echo "(Special)   "; - echo "(Interdisciplinary)   "; - echo "(Other)   "; - echo "(Grand)   "; - echo "
"; - echo i18n("Award Ceremony Script").": "; - echo "CSV   "; - echo "
"; + //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"); + + echo "
+ ".i18n("Type").": + + ".i18n("Award Type").":
".i18n("Show awards without winners").":
".i18n("Show prizes without winners").":
"; + echo ""; + echo "
"; send_footer(); ?>