diff --git a/admin/donors.php b/admin/donors.php
index bc832e5..1b775af 100644
--- a/admin/donors.php
+++ b/admin/donors.php
@@ -65,9 +65,11 @@ switch($_GET['action']) {
"notes='".mysql_escape_string(stripslashes($_POST['notes']))."', ".
"donationpolicyurl='".mysql_escape_string(stripslashes($_POST['donationpolicyurl']))."', ".
"fundingselectiondate='".mysql_escape_string(stripslashes($_POST['fundingselectiondate']))."', ".
+ "proposalsubmissiondate='".mysql_escape_string(stripslashes($_POST['proposalsubmissiondate']))."', ".
"waiveraccepted='".mysql_escape_string(stripslashes($_POST['waiveraccepted']))."' ".
"WHERE id='$id'";
mysql_query($exec);
+ echo mysql_error();
//FIXME accept the logo
//"logo='".mysql_escape_string(stripslashes($_POST['logo']))."', ".
@@ -132,7 +134,7 @@ switch($_GET['action']) {
echo "
";
echo "";
echo " ".i18n("Date")." | \n";
- echo " ".i18n("Goal")." | \n";
+ echo " ".i18n("Purpose")." | \n";
echo " ".i18n("Appeal")." | \n";
echo " ".i18n("Value")." | \n";
echo "
";
@@ -157,7 +159,7 @@ switch($_GET['action']) {
echo "";
echo "";
echo " ".i18n("Date")." | \n";
- echo " ".i18n("Goal")." | \n";
+ echo " ".i18n("Purpose")." | \n";
echo " ".i18n("Appeal")." | \n";
echo " ".i18n("Value")." | \n";
echo "
";
@@ -841,9 +843,9 @@ $(document).ready(function() {
});
$("#organizationinfo_fundingselectiondate").datepicker({ dateFormat: 'yy-mm-dd'});
+ $("#organizationinfo_proposalsubmissiondate").datepicker({ dateFormat: 'yy-mm-dd'});
//, showOn: 'button', buttonText: "=i18n("calendar")?>" });
open_search();
-
});
@@ -871,6 +873,7 @@ function open_editor(id) {
$("#organizationinfo_website").val("");
$("#organizationinfo_donationpolicyurl").val("");
$("#organizationinfo_fundingselectiondate").val("");
+ $("#organizationinfo_proposalsubmissiondate").val("");
$("#organizationinfo_notes").val("");
$("#organizationinfo_save_button").attr('disabled','disabled');
@@ -889,8 +892,7 @@ function open_editor(id) {
function open_search() {
$("#donor_editor").hide();
$("#searchbrowse").show();
-
-
+ donorsearch(false);
}
function update_organizationinfo()
{
@@ -919,6 +921,7 @@ function update_organizationinfo()
$("#organizationinfo_website").val(json.website);
$("#organizationinfo_donationpolicyurl").val(json.donationpolicyurl);
$("#organizationinfo_fundingselectiondate").val(json.fundingselectiondate);
+ $("#organizationinfo_proposalsubmissiondate").val(json.proposalsubmissiondate);
$("#organizationinfo_notes").val(json.notes);
// For some reason, with checkboxes, these have to be arrays
$("[name=waiveraccepted]").val([json.waiveraccepted]);
@@ -1011,10 +1014,13 @@ function activityinfo_save() {
return false;
}
-function donorsearch() {
+function donorsearch(realsearch) {
$("#searchresults").show();
- $("#searchresults").load("donors_search.php", $("#searchform").serializeArray());
- return false;
+ if(realsearch)
+ $("#searchresults").load("donors_search.php", $("#searchform").serializeArray());
+ else
+ $("#searchresults").load("donors_search.php"); //, $("#searchform").serializeArray());
+ return false;
}
var searchtimer;
@@ -1125,8 +1131,8 @@ echo "
";
=i18n("Donation Policy")?> | |
=i18n("Logo")?> | |
- =i18n("Funding Selection Date")?> | |
- =i18n("Proposal Submission Date")?> | |
+
=i18n("Funding Selection Date")?> | |
+ =i18n("Proposal Submission Date")?> | |
/*
@@ -1164,7 +1170,8 @@ echo "
";