\n"); $error_message = getLanguageText('ERRORMSG-INVALID-ACCESS'); include "form.messages.php"; return; } $student = db_fetch_array($results); // Get class_num $class_num = $student['class_num']; } else { if (array_key_exists('class_num',$_GET)) $class_num = intval($_GET['class_num']); if (array_key_exists('class_num',$_POST)) $class_num = intval($_POST['class_num']); } $templatePageTitle = $school_record['school_name'] . " - " . getLanguageText('TEXT-CLASS-LIST'); // Get class info if (isset($class_num)) { $class_info = getClassInfo($class_num); $templatePageTitle .= "
\n$class_info"; } if (isset($student) && $school_record['verified_only_class_list'] == 'Y' && $student['status'] != 'Verified') { $content = getPageContent($school_num,"Access to Class List Denied"); ?>


\n\n"); $count = 0; while ($row = db_fetch_array($students)) { $snum = $row['record_num']; $name = $row['first_name'] . " " . $row['last_name']; $unum = $row['user_num']; // Get the contact records for this student $query = "select * from contacts " . "where school_num = $school_num " . "and user_num = $unum " . "order by last_name,first_name"; $results = db_query($query); // If there are contact records if (db_num_rows($results) > 0) { $bgclass = "data-odd"; if (($count % 2) == 0) $bgclass = "data-even"; $count++; // Display each contact record while ($row = db_fetch_array($results)) { extract($row); $contact = $first_name . " " . $last_name; if (strlen($home_email) > 0) $home_email = "$home_email"; ?>