Disable the rest of the award_sponsor.confirmed stuff until we figure out what to do with it

Make the sponsor selector work when adding awards
This commit is contained in:
james 2008-11-03 05:09:04 +00:00
parent 4b573c7224
commit 27a3a273d7
2 changed files with 8 additions and 6 deletions

View File

@ -45,6 +45,7 @@
if($_GET['award_types_id'] && $_GET['award_types_id']!="all")
$_SESSION['award_types_id']=$_GET['award_types_id'];
/*
if($_GET['award_sponsors_confirmed'] && $_GET['award_sponsors_confirmed']!="all")
$_SESSION['award_sponsors_confirmed']=$_GET['award_sponsors_confirmed'];
@ -54,10 +55,11 @@
unset($_SESSION['award_types_id']);
if($_GET['award_sponsors_confirmed']=="all")
unset($_SESSION['award_sponsors_confirmed']);
*/
$award_types_id=$_SESSION['award_types_id'];
$sponsors_id=$_SESSION['sponsors_id'];
$award_sponsors_confirmed=$_SESSION['award_sponsors_confirmed'];
//$award_sponsors_confirmed=$_SESSION['award_sponsors_confirmed'];
if($_POST['save']=="edit" || $_POST['save']=="add")
{
@ -256,7 +258,7 @@ echo mysql_error();
echo "<tr><td>".i18n("Name")."</td><td><input type=\"text\" id=\"name\" name=\"name\" value=\"".htmlspecialchars($award_awards_name)."\" size=\"50\" maxlength=\"128\" /><script type=\"text/javascript\">translateButton('name');</script></td></tr>\n";
echo "<tr><td>".i18n("Order")."</td><td><input type=\"text\" name=\"order\" value=\"".htmlspecialchars($award_awards_order)."\" size=\"5\" maxlength=\"5\" />(".i18n("presentation order").")</td></tr>\n";
echo "<tr><td>".i18n("Sponsor")."</td><td>";
$sq=mysql_query("SELECT id,organization FROM award_sponsors ORDER BY organization");
$sq=mysql_query("SELECT id,organization FROM sponsors ORDER BY organization");
echo "<select name=\"sponsors_id\">";
//only show the "choose a sponsor" option if we are adding,if we are editing, then they must have already chosen one.
echo $firstsponsor;
@ -370,7 +372,7 @@ echo mysql_error();
if($r->id == $sponsors_id)
{
$sel="selected=\"selected\"";
$award_sponsors_organization=$r->organization;
$sponsors_organization=$r->organization;
}
else
$sel="";
@ -421,7 +423,7 @@ echo mysql_error();
if($sponsors_id) $where_asi="AND sponsors_id='$sponsors_id'";
if($award_types_id) $where_ati="AND award_types_id='$award_types_id'";
if($award_sponsors_confirmed) $where_asc="AND award_sponsors.confirmed='$award_sponsors_confirmed'";
// if($award_sponsors_confirmed) $where_asc="AND award_sponsors.confirmed='$award_sponsors_confirmed'";
if(!$orderby) $orderby="order";

View File

@ -34,8 +34,8 @@
require_once("rerollprizes.php");
echo "<br />";
echo "<a href=\"award_sponsors.php\">".i18n('Award Sponsors')."</a><br />";
echo "<a href=\"award_contacts.php\">".i18n('Award Sponsors Contacts')."</a><br />";
echo "<a href=\"sponsors.php\">".i18n('Award Sponsors')."</a><br />";
echo "<a href=\"sponsor_contacts.php\">".i18n('Award Sponsors Contacts')."</a><br />";
echo "<a href=\"award_awards.php\">".i18n('Awards Management')."</a><br />";
echo "<br />";
echo "<a href=\"award_prizes.php?award_awards_id=-1\">".i18n('Edit prize template for the divisional awards')."</a>";