if ($termID > 0) { $b .= "<center>\n <FORM action=index.php?lev=" . $_SESSION[$_CONF['sess_name'] . '_lev'] . "&cat=" . $_SESSION[$_CONF['sess_name'] . '_cat'] . " method=POST id=studentList name=studentList>" . make_selection_list($studentList, $sid, 'student_id', 'studentList', 'Student', 'on') . "\n </FORM>\n <FORM action=index.php?lev=" . $_SESSION[$_CONF['sess_name'] . '_lev'] . "&cat=" . $_SESSION[$_CONF['sess_name'] . '_cat'] . " method=POST id=all name=all>\n <input type=submit name=allStudents id=allStudents value=\"All Students\" />\n </FORM>\n </center>"; } $main .= make_box($t, $b); $print_button = "\t\n <CENTER>\n <FORM action=printview_interimreport.php method=POST target=new name=printview>\n <input type=submit class=submit name=submit value=\"Print PDF\" />\n </form>\n <FORM action=printview_interimreport.php method=POST target=new name=printview>\n <input type=submit class=submit name=submit value=\"Print All Students for this Class\" />\n <input type=hidden name=all value=all />\n </form>\n </CENTER>"; if ($sid != -1) { $los = array($sid); } if (count($los)) { $b = ''; include 'interim_report.php'; $b .= "\n <div id=interimReports name=interimReports style=\"width:80%;\">\n <center><table border=0 cellspacing=3 cellpadding=3>"; foreach ($studentGradeInfo as $student => $classes) { foreach ($classes as $classID => $info) { $result = get_course_info_from_classID($classID); $com = get_student_comments_for_class($student, $classID); $row = $com->fetch_assoc(); $currentImprovement = $row['interimImprovement']; $currentImprovements = explode(',', $currentImprovement); $currentQuality = $row['interimQuality']; $currentiComment = htmlspecialchars($row['interimComment']); $currentgComment = htmlspecialchars($row['gradeComment']); $pastComments = get_past_student_comments_for_class($student, $classID); $b .= "\n <tr><th>Subject:</th><td>" . $info['name'] . "</td><td width=200> </td><th>Teacher:</th><td>" . $info['teacher'] . "</td></tr>\n <tr><td> </td><td colspan=4><span style=\"font-weight:bold;\">" . $info['term'] . " Grade : " . $info['grade'] . "</span><br />"; foreach ($Quality as $id => $text) { if ($id == $currentQuality) { $b .= "<div style=\"margin-left:20px;\">" . $text . "</div>"; } } foreach ($Improvement as $id => $text) { if (in_array($id, $currentImprovements)) {
$row = $result->fetch_assoc(); $term_id = $row['term_id']; $interimDueDate = $row['interimsDueDate']; $gradesDueDate = $row['gradesDueDate']; $className = $row['course_name']; $termName = $row['term_name']; $teacherName = $row['first_name'] . " " . $row['last_name']; $tid = $_SESSION[$_CONF['sess_name'] . '_myUID']; } if (isset($_SESSION[$_CONF['sess_name'] . '_selected_student'])) { $sid = $_SESSION[$_CONF['sess_name'] . '_selected_student']; $result = get_user_info($sid); $row = $result->fetch_assoc(); $first = $row['first_name']; $last = $row['last_name']; $com = get_student_comments_for_class($sid, $cid); $row = $com->fetch_assoc(); $currentImprovement = $row['interimImprovement']; $currentImprovements = explode(',', $currentImprovement); $currentQuality = $row['interimQuality']; $currentiComment = htmlspecialchars($row['interimComment']); $currentgComment = htmlspecialchars($row['gradeComment']); $pastComments = get_past_student_comments_for_class($sid, $cid); } if (isset($_POST['class_id']) && !isset($_POST['addInterimComments']) && !isset($_POST['addGradeComments'])) { $sid = -1; } $t = "Comments"; $b = "<FORM action=index.php?lev=" . $_SESSION[$_CONF['sess_name'] . '_lev'] . "&cat=" . $_SESSION[$_CONF['sess_name'] . '_cat'] . " method=POST name=classes>\n\t\t\t<center>" . get_teacher_class_list($_SESSION[$_CONF['sess_name'] . '_myUID'], $cid, 'class_id', "classes") . "</center>\n </form>"; if ($cid != -1) { $cresult = get_course_info_from_classID($cid);