From ac450aefdfb7952693eed286e04f798a4a944047 Mon Sep 17 00:00:00 2001 From: justin Date: Mon, 12 Jul 2010 19:47:29 +0000 Subject: [PATCH] Add ability to remove all current divisional awards when running this script (bug 233) --- admin/award_awardcreatedivisional.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/admin/award_awardcreatedivisional.php b/admin/award_awardcreatedivisional.php index e442aff..f69ef4e 100644 --- a/admin/award_awardcreatedivisional.php +++ b/admin/award_awardcreatedivisional.php @@ -24,6 +24,7 @@ id); + } +} + //first, we can only do this if we dont have any type=divisional awards created yet $q=mysql_query("SELECT COUNT(id) AS num FROM award_awards WHERE award_types_id='1' AND year='{$config['FAIRYEAR']}'"); $r=mysql_fetch_object($q); if($r->num) { echo error(i18n("%1 Divisional awards already exist. There must not be any divisional awards in order to run this wizard",array($r->num))); + echo "

" . i18n("Proceed Anyways?") . " "; + echo i18n("This will delete all existing divisional awards."); + echo "

"; } else { @@ -172,7 +183,7 @@ echo ""; echo ""; - echo "".i18n("Prizes")."Edit prize template for divisional awards"; + echo "".i18n("Prizes")."Edit prize template for divisional awards"; //the 'generic' template prizes for the awards are stored with year =-1 and award_awards_id=0 $q=mysql_query("SELECT * FROM award_prizes WHERE year='-1' AND award_awards_id='0' ORDER BY `order`");