";
+ if($formaction=="sponsorshipadd") {
$q=mysql_query("SELECT * FROM sponsors ORDER BY organization");
echo mysql_error();
echo " ".i18n("Add")."\n";
+ }
+ else {
+ echo $sponsorship->organization;
+ }
echo "
\n";
echo "
".i18n("Type")."
";
diff --git a/admin/sponsors.php b/admin/sponsors.php
index 5142a40b..aeb947af 100644
--- a/admin/sponsors.php
+++ b/admin/sponsors.php
@@ -4,7 +4,7 @@
SFIAB Website: http://www.sfiab.ca
Copyright (C) 2005 Sci-Tech Ontario Inc
- Copyright (C) 2005 James Grant
+ Copyright (C) 2008 James Grant
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
@@ -50,9 +50,16 @@
"province_code='".mysql_escape_string(stripslashes($_POST['province_code']))."', ".
"postalcode='".mysql_escape_string(stripslashes($_POST['postalcode']))."', ".
"phone='".mysql_escape_string(stripslashes($_POST['phone']))."', ".
+ "tollfree='".mysql_escape_string(stripslashes($_POST['tollfree']))."', ".
"fax='".mysql_escape_string(stripslashes($_POST['fax']))."', ".
"email='".mysql_escape_string(stripslashes($_POST['email']))."', ".
- "notes='".mysql_escape_string(stripslashes($_POST['notes']))."' ".
+ "website='".mysql_escape_string(stripslashes($_POST['website']))."', ".
+ "notes='".mysql_escape_string(stripslashes($_POST['notes']))."', ".
+ "donationpolicyurl='".mysql_escape_string(stripslashes($_POST['donationpolicyurl']))."', ".
+ "fundingselectiondate='".mysql_escape_string(stripslashes($_POST['fundingselectiondate']))."', ".
+ "logo='".mysql_escape_string(stripslashes($_POST['logo']))."', ".
+ "waiveraccepted='".mysql_escape_string(stripslashes($_POST['waiveraccepted']))."', ".
+ "taxreceiptrequired='".mysql_escape_string(stripslashes($_POST['taxreceiptrequired']))."' ".
"WHERE id='$id'";
mysql_query($exec);
@@ -64,20 +71,10 @@
if($_GET['action']=="delete" && $_GET['delete'])
{
- mysql_query("DELETE FROM sponsors WHERE id='".$_GET['delete']."'");
- echo happy("Sponsor successfully deleted");
- }
-
- if($_GET['action']=="confirm" && $_GET['confirm'])
- {
- mysql_query("UPDATE sponsors SET confirmed='yes' WHERE id='".$_GET['confirm']."'");
- echo happy("Sponsor successfully confirmed");
-
- }
- if($_GET['action']=="unconfirm" && $_GET['unconfirm'])
- {
- mysql_query("UPDATE sponsors SET confirmed='no' WHERE id='".$_GET['unconfirm']."'");
- echo happy("Sponsor successfully unconfirmed");
+ //dont allow any deleting until we figure out what we need to do, infact, i think we never should hard delete
+ //this should only soft-delete so things like awards from previous years are still all linked correctly.
+ // mysql_query("DELETE FROM sponsors WHERE id='".$_GET['delete']."'");
+// echo happy("Sponsors cannot be deleted");
}
if($_GET['action']=="edit" || $_GET['action']=="add")
@@ -113,8 +110,28 @@
echo "
";
echo "id\">";
+ /* cannot delete sponsors, we need to be able to link to them from other years, etc... this could be turned back on as a soft delete eventually
echo " ";
echo "id\">";
-
+*/
echo "