diff --git a/admin/schools.php b/admin/schools.php index 3fade4ca..e8ac9821 100644 --- a/admin/schools.php +++ b/admin/schools.php @@ -294,13 +294,15 @@ echo "".i18n("School Email")."schoolemail)."\" size=\"60\" maxlength=\"128\" />\n"; echo "".i18n("Access Code")."accesscode)."\" size=\"32\" maxlength=\"32\" />\n"; echo "
".i18n("Science head/teacher or science fair contact at school").""; - if($r->sciencehead_uid > 0) + if($r->sciencehead_uid > 0){ $sh = user_load($r->sciencehead_uid); + $sha = account_load($sh['accounts_id']); + } else $sh = array(); /* Don't show autogenerated emails */ - $e = $sh['email'][0] == '*' ? '' : $sh['email']; - echo "".i18n("Email")."\n"; + + echo "".i18n("Email")."\n"; echo "".i18n("Name")."\n"; echo "".i18n("Phone")."\n"; @@ -459,7 +461,8 @@ echo " ".i18n("School").""; echo " ".i18n("Address").""; echo " ".i18n("Phone").""; - echo " ".i18n("Contact").""; + echo " ".i18n("Science Head").""; + echo " ".i18n("Science Head Email").""; if($config['participant_registration_type']=="schoolpassword") echo " ".i18n("Reg Pass").""; echo " ".i18n("Access Code").""; @@ -474,11 +477,16 @@ echo " $r->address, $r->city, $r->postalcode\n"; echo " $r->phone\n"; $sciencehead = ''; + $scienceheademail = ''; if($r->sciencehead_uid > 0) { $sh = user_load($r->sciencehead_uid); $sciencehead = $sh['name']; +// print_r($sh); + $sha=account_load($sh['accounts_id']); + $scienceheademail=$sha['email']; } echo " $sciencehead\n"; + echo " $scienceheademail\n"; if($config['participant_registration_type']=="schoolpassword") echo " $r->registration_password\n"; echo " $r->accesscode\n";