$subtotal_array = explode('##', $rt);
         $subtotals = $xml->createElement("subtotal");
         $total_mark = subtotals_xml($subtotal_array, $exams, $xml, $marksheet);
         // $titleText = $xml->createTextNode( $total_mark);
         // $subtotals->appendChild($titleText);
         $examid->appendChild($subtotals);
     }
 }
 #class performance ::
 #adding the position ::
 $position = $xml->createElement("position");
 #find class performance per exam ::
 #  print_r($exam);
 $clas_performance = get_all_student_performance_termly($this, $termid);
 # print_r($clas_performance);
 $posiion = position_finder($total_mark, $exam_counts, $clas_performance);
 $titleText = $xml->createTextNode($posiion);
 $position->appendChild($titleText);
 $marksheet->appendChild($position);
 # $classdetails
 #numb os students who sat in the clas
 $t = 0;
 $rs = get_all_student_registered($this, $termid, $classdetails['id']);
 # print_r('::::'.$rs);
 # print_r($rs);
 foreach ($rs as $result) {
     $numstudents = $result['cn'];
 }
 $e = $numstudents;
 # print_r($numstudents);
 $numstudents = $xml->createElement("numstudents");
Ejemplo n.º 2
0
        $counter++;
    }
    ?>
<tr><td>Total</td>
                            <td colspan="4"> <?php 
    echo $mark_counter;
    ?>
 </td>
                        </tr>
<tr>
    <td> Position : </td>
    <td colspan="4">
    <?php 
    $clas_performance = get_all_student_performance_exam($this, $examid);
    $exam_counts = 1;
    $position = position_finder($mark_counter, $exam_counts, $clas_performance);
    echo $position;
    ?>
</td>
</tr>

                    </table>


                <?php 
} else {
    echo $studentdetails['firstname'] . " has not registered for any subjects in " . "<br />" . "Click <a href='javascript:void(0);' onclick=\"updateFieldLayer('" . base_url() . "students/load_registration_form/i/" . @encryptValue($registration_data['id']) . "', '','','academics-content','Please enter the required fields.');\"><i>here</i></a> to register " . ($studentdetails['gender'] == 'Female' ? ' her ' : ' him ') . ' for a subject(s).';
}
?>

Ejemplo n.º 3
0
// var_dump($mark_per_subject);
// Gettng Information about the Subject Performance
if (!empty($mark_per_subject)) {
    foreach ($mark_per_subject as $utb) {
        $clas = $utb['class'];
        $exam = $utb['exm'];
        $subject = $utb['sbj'];
        $mark = $utb['mark'];
        $sbject = $utb['subjt'];
        $school = $utb['school'];
        $exms = $utb['exms'];
    }
    //get_all_student_performance_subject
    $performance = get_all_student_performance_subject($this, $sbject, $school, $exms);
    // Get Student Performance
    $position = position_finder($mark, 0, $performance);
    ?>

<br style="clear: both;" />
    <table>
        <tr>
            <td>
                <label>Class : <?php 
    echo $clas;
    ?>
</label>
            </td>
        </tr>
        <tr>
            <td>
                Exams :<?php