From bd4eb9a9ccfb0f3df3a3b797f7e939e8d95899c5 Mon Sep 17 00:00:00 2001 From: james Date: Thu, 3 Mar 2011 19:24:49 +0000 Subject: [PATCH] Reorder status array for Michael Remove registrations_id from field list Adjust remove dateofbirth in favour of birthdate --- participant.inc.php | 21 +++++++++++++-------- testapi.php | 1 + user.inc.php | 6 +----- 3 files changed, 15 insertions(+), 13 deletions(-) diff --git a/participant.inc.php b/participant.inc.php index 2b765b1..e24fcbe 100644 --- a/participant.inc.php +++ b/participant.inc.php @@ -23,6 +23,7 @@ ?> $req=="0000-00-00" || !$r->$req) return "incomplete"; } else { - if(!$r->$req) + if(!$r->$req) { + $fp=fopen("data/logs/incomplete.log","a+"); + $str="user id $userid incomplete on required field: $req, user[$req]='{$r->$req}'\n"; +// echo $str; + fputs($fp,$str); + fclose($fp); return "incomplete"; + } } } return 'complete'; @@ -331,24 +336,24 @@ function participant_status_completion_details($u,$regId=null){ if(!$regId){ return array( 'namecheck' => 'incomplete', + 'students' => 'incomplete', 'tour' => 'incomplete', 'spaward' => 'incomplete', 'safety' => 'incomplete', 'mentor' => 'incomplete', 'project' => 'incomplete', 'emergencycontact' => 'incomplete', - 'students' => 'incomplete' ); } return array( 'namecheck' => namecheckStatus($regId), + 'students' => studentsStatus($regId), 'tour' => tourStatus($regId), 'spaward' => spawardStatus($regId), 'safety' => safetyStatus($regId), 'mentor' => mentorStatus($regId), 'project' => projectStatus($regId), 'emergencycontact' => emergencycontactStatus($regId), - 'students' => studentsStatus($regId) ); } diff --git a/testapi.php b/testapi.php index 3404f2b..4b147eb 100644 --- a/testapi.php +++ b/testapi.php @@ -54,6 +54,7 @@ include "common.inc.php"; window.location.href='api/dates/'+o.value; return false; } +