diff --git a/admin/donors.php b/admin/donors.php index 3078a05..0f60df3 100644 --- a/admin/donors.php +++ b/admin/donors.php @@ -131,15 +131,12 @@ function save_contact(){ $successMessage = i18n("Contact created successfully"); $u = user_create("sponsor", $_POST['email']); $id = $u['id']; - - }else if($_POST['recordtype'] == 'existing'){ // this is an existing record being updated. Load the user. $successMessage = i18n("Contact updated successfully"); $u = user_load($_POST['userid']); $id = intval($_POST['userid']); - } $sponsor_id = $_POST['sponsor_id']; @@ -331,7 +328,7 @@ function draw_activityinfo_form(){ " . $results["dt"]; - echo "" . $results["name"]; - echo "" . $results["log"]; + echo "" . $row["dt"]; + echo "" . $row["name"]; + echo "" . $row["log"]; echo "\n"; }while($row = mysql_fetch_array($results)); }else{ @@ -359,12 +356,15 @@ function draw_activityinfo_form(){ ?action=activityinfo_save&id="+id, $("#activityinfo").serializeArray()); + $("#debug").load("?action=activityinfo_save&id="+id, $("#activityinfo").serializeArray(), + function(){ + update_activityinfo(); + }); return false; }