From 1da21bea9ef06f16d3c67fbada8caebccfcc3220 Mon Sep 17 00:00:00 2001 From: jacob Date: Tue, 6 Oct 2009 14:44:27 +0000 Subject: [PATCH] Updated the activity log tab. Now in working order. --- admin/donors.php | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) 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; }