コード例 #1
0
ファイル: highest_marks.php プロジェクト: GotaloveCode/sms
            $class = 'row1';
        } else {
            $class = 'row2';
        }
        $i += 1;
        ?>
<tr class="<?php 
        echo $class;
        ?>
">
<td align="center"><?php 
        echo $subject_name;
        ?>
 </td>
<?php 
        $subjectAnalysis_ = new subjectAnalysis();
        $gradeTable = gradeTable($subject_id);
        $mean_score = $subjectAnalysis_->highestScore($subject_id, $term_id, $gradeTable);
        $student_name = $subjectAnalysis_->getStudentWithHigestMark($mean_score, $subject_id, $term_id, $gradeTable);
        ?>
<td align="center"><?php 
        echo $student_name;
        ?>
</td>
<td align="center"><?php 
        echo $mean_score;
        ?>
</td>
<td align="center"><?php 
        $grade = $subjectAnalysis_->getGrade($mean_score, $gradeTable);
        echo $grade;
コード例 #2
0
ファイル: subject_analysis.php プロジェクト: GotaloveCode/sms
        } else {
            $class = 'row2';
        }
        $i += 1;
        ?>
<tr class="<?php 
        echo $class;
        ?>
">
<td align="center"><?php 
        echo $subject_name;
        ?>
 </td>
<?php 
        $gradeTable = gradeTable($subject_id);
        $subjectAnalysis_ = new subjectAnalysis();
        $query = "SELECT grade from grades";
        $query_result = mysql_query($query);
        while ($row_query = mysql_fetch_assoc($query_result)) {
            extract($row_query);
            $grade_count = $subjectAnalysis_->countGrade($subject_id, $grade, $term_id, $class_id, $gradeTable);
            $i += 1;
            ?>
<td align="center"><?php 
            echo $grade_count;
            ?>
</td>
<?php 
        }
        $gradeTable = 'grades';
        ?>
コード例 #3
0
        echo $mid_termPosition;
        ?>
</b></td>
			<td><b><?php 
        $end_termPosition = $examTypeMarks_->PositionStream($term_id, $stud_id, 'end_term', $class_for);
        echo $end_termPosition;
        ?>
</b></td>			
			<td align="center"><b><?php 
        $average_ = new studentProfile();
        $average = $average_->getStudentAverage($term_id, $stud_id);
        echo $average;
        ?>
</b></td>
			<td align="center"><b></b><?php 
        $subjectAnalysis_ = new subjectAnalysis();
        $grade = $subjectAnalysis_->getGrade($average, $gradeTable);
        echo $grade;
        ?>
</td>
			<td align="center"><b></b><?php 
        $position = $average_->studentPosition($term_id, $stud_id);
        echo $position;
        ?>
</td>
		</tr>
        </table>
        <!--
	   <hr  noshade="noshade"/>
        <div class="div_pad"><b>Class Teacher's Comment:</b></div><br><br>
		<hr  noshade="noshade"/>