diff --git a/admin/award_awards.php b/admin/award_awards.php index 1bb254c4..0f00c1e3 100644 --- a/admin/award_awards.php +++ b/admin/award_awards.php @@ -74,6 +74,8 @@ else $id=$_POST['id']; + $self_nominate = ($_POST['self_nominate'] == 'yes') ? 'yes' : 'no'; + $schedule_judges = ($_POST['schedule_judges'] == 'yes') ? 'yes' : 'no'; $exec="UPDATE award_awards SET ". "name='".mysql_escape_string(stripslashes($_POST['name']))."', ". "`order`='".mysql_escape_string(stripslashes($_POST['order']))."', ". @@ -82,6 +84,8 @@ "presenter='".mysql_escape_string(stripslashes($_POST['presenter']))."', ". "excludefromac='".mysql_escape_string(stripslashes($_POST['excludefromac']))."', ". "cwsfaward='".mysql_escape_string(stripslashes($_POST['cwsfaward']))."', ". + "self_nominate='$self_nominate', ". + "schedule_judges='$schedule_judges', ". "criteria='".mysql_escape_string(stripslashes($_POST['criteria']))."', ". "description='".mysql_escape_string(stripslashes($_POST['description']))."' ". "WHERE id='$id'"; @@ -157,6 +161,8 @@ award_awards.presenter, award_awards.excludefromac, award_awards.cwsfaward, + award_awards.self_nominate, + award_awards.schedule_judges, award_types.id AS award_types_id, award_types.type, award_sponsors.id AS award_sponsors_id, @@ -188,6 +194,9 @@ echo mysql_error(); $award_awards_presenter=$r->presenter; $award_awards_excludefromac=$r->excludefromac; $award_awards_cwsfaward=$r->cwsfaward; + $award_awards_self_nominate=$r->self_nominate; + $award_awards_schedule_judges=$r->schedule_judges; + //select the current categories that this award is linked to $ccq=mysql_query("SELECT * FROM award_awards_projectcategories WHERE award_awards_id='$r->id'"); @@ -207,6 +216,10 @@ echo mysql_error(); $buttontext="Add Award"; $firstsponsor="\n"; $firsttype="\n"; + /* We want these two on by default for new + * awards */ + $award_awards_self_nominate = 'yes'; + $award_awards_schedule_judges = 'yes'; } $buttontext=i18n($buttontext); @@ -223,6 +236,8 @@ echo mysql_error(); if($_POST['presenter']) $award_awards_presenter=$_POST['presenter']; if($_POST['excludefromac']) $award_awards_excludefromac=$_POST['excludefromac']; if($_POST['cwsfaward']) $award_awards_cwsfaward=$_POST['cwsfaward']; + if($_POST['self_nominate']) $award_awards_self_nominate=$_POST['self_nominate']; + if($_POST['schedule_judges']) $award_awards_schedule_judges=$_POST['schedule_judges']; echo "