Add Presenter to awards

This commit is contained in:
james 2005-04-26 18:59:38 +00:00
parent 7c95c37d21
commit 098649c8a3
3 changed files with 7 additions and 1 deletions

View File

@ -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 "<form method=\"post\" action=\"award_awards.php\">\n";
@ -222,6 +226,7 @@ echo mysql_error();
echo "</select>";
echo "</td></tr>";
echo "<tr><td>".i18n("Presenter")."</td><td><input type=\"text\" name=\"presenter\" value=\"".htmlspecialchars($award_awards_presenter)."\" size=\"50\" maxlength=\"128\" /></td></tr>\n";
echo "<tr><td>".i18n("Type")."</td><td>";
$tq=mysql_query("SELECT id,type FROM award_types ORDER BY type");
echo "<select name=\"award_types_id\">";

View File

@ -1 +1 @@
4
5

1
db/db.update.5.sql Normal file
View File

@ -0,0 +1 @@
ALTER TABLE `award_awards` ADD `presenter` VARCHAR( 128 ) NOT NULL AFTER `criteria` ;