From 098649c8a3ff31d470854302694766a18c8e7d49 Mon Sep 17 00:00:00 2001 From: james Date: Tue, 26 Apr 2005 18:59:38 +0000 Subject: [PATCH] Add Presenter to awards --- admin/award_awards.php | 5 +++++ db/db.code.version.txt | 2 +- db/db.update.5.sql | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 db/db.update.5.sql diff --git a/admin/award_awards.php b/admin/award_awards.php index a960abb..a8b2724 100644 --- a/admin/award_awards.php +++ b/admin/award_awards.php @@ -64,6 +64,7 @@ "`order`='".mysql_escape_string(stripslashes($_POST['order']))."', ". "award_sponsors_id='".mysql_escape_string(stripslashes($_POST['award_sponsors_id']))."', ". "award_types_id='".mysql_escape_string(stripslashes($_POST['award_types_id']))."', ". + "presenter='".mysql_escape_string(stripslashes($_POST['presenter']))."', ". "criteria='".mysql_escape_string(stripslashes($_POST['criteria']))."' ". "WHERE id='$id'"; @@ -136,6 +137,7 @@ award_awards.name, award_awards.criteria, award_awards.order, + award_awards.presenter, award_types.id AS award_types_id, award_types.type, award_sponsors.id AS award_sponsors_id, @@ -163,6 +165,7 @@ echo mysql_error(); $award_type=$r->type; $award_sponsors_id=$r->award_sponsors_id; $award_sponsor=$r->organization; + $award_awards_presenter=$r->presenter; //select the current categories that this award is linked to $ccq=mysql_query("SELECT * FROM award_awards_projectcategories WHERE award_awards_id='$r->id'"); @@ -195,6 +198,7 @@ echo mysql_error(); if($_POST['award_sponsors_id']) $award_sponsors_id=$_POST['award_sponsors_id']; if($_POST['eligiblecategories']) $currentcategories=$_POST['eligiblecategories']; if($_POST['eligibledivisions']) $currentdivisions=$_POST['eligibledivisions']; + if($_POST['presenter']) $award_awards_presenter=$_POST['presenter']; echo "
\n"; @@ -222,6 +226,7 @@ echo mysql_error(); echo ""; echo ""; + echo "".i18n("Presenter")."\n"; echo "".i18n("Type").""; $tq=mysql_query("SELECT id,type FROM award_types ORDER BY type"); echo "