AnonSec Shell
Server IP : 162.214.74.102  /  Your IP : 216.73.217.114
Web Server : Apache
System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64
User : lrsys ( 1015)
PHP Version : 5.6.40
Disable Function : exec,passthru,shell_exec,system
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/lrsys/www/lrsys_apps/school/application/views/backend/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/lrsys/www/lrsys_apps/school/application/views/backend/admin/student_promotion_performance.php
<center>
	<button class="btn btn-primary">
		<i class="entypo-user"></i> <?php echo $this->crud_model->get_type_name_by_id('student' , $param2);?>
	</button>
</center>
<hr />
<?php
	$running_year = $this->db->get_where('settings' , array('type' => 'running_year'))->row()->description; 
    $student_info = $this->crud_model->get_student_info($param2);
    $exams         = $this->crud_model->get_exams();
    foreach ($student_info as $row1):
    foreach ($exams as $row2):
?>

<div class="row">
    <div class="col-md-12">
        <div class="panel panel-primary panel-shadow" data-collapsed="0">
            <div class="panel-heading">
                <div class="panel-title"><?php echo $row2['name'];?></div>
            </div>
            <div class="panel-body">
               
                <table class="table table-bordered">
                   <thead>
                    <tr>
                        <td style="text-align: center;">Subject</td>
                        <td style="text-align: center;">Obtained marks</td>
                        <td style="text-align: center;">Highest mark</td>
                        <td style="text-align: center;">Grade</td>
                        <td style="text-align: center;">Comment</td>
                    </tr>
                </thead>
                <tbody>
                    <?php 
                        $total_marks = 0;
                        $total_grade_point = 0;
                        $subjects = $this->db->get_where('subject' , array(
                            'class_id' => $param3 , 'year' => $running_year
                        ))->result_array();
                        foreach ($subjects as $row3):
                    ?>
                        <tr>
                            <td style="text-align: center;"><?php echo $row3['name'];?></td>
                            <td style="text-align: center;">
                                <?php
                                    $obtained_mark_query = $this->db->get_where('mark' , array(
                                                'subject_id' => $row3['subject_id'],
                                                    'exam_id' => $row2['exam_id'],
                                                        'class_id' => $param3,
                                                            'student_id' => $param2 , 
                                                                'year' => $running_year));
                                    if ( $obtained_mark_query->num_rows() > 0) {
                                        $marks = $obtained_mark_query->result_array();
                                        foreach ($marks as $row4) {
                                            echo $row4['mark_obtained'];
                                            $total_marks += $row4['mark_obtained'];
                                        }
                                    }
                                ?>
                            </td>
                            <td style="text-align: center;">
                                <?php

                                $highest_mark = $this->crud_model->get_highest_marks( $row2['exam_id'] , $param3 , $row3['subject_id'] );
                                echo $highest_mark;


    
                                ?>
                            </td>
                            <td style="text-align: center;">
                                <?php
                                    if($obtained_mark_query->num_rows() > 0) {
                                        if ($row4['mark_obtained'] >= 0 || $row4['mark_obtained'] != '') {
                                            $grade = $this->crud_model->get_grade($row4['mark_obtained']);
                                            echo $grade['name'];
                                            $total_grade_point += $grade['grade_point'];
                                        }
                                    }
                                ?>
                            </td>
                            <td style="text-align: center;">
                                <?php if($obtained_mark_query->num_rows() > 0) 
                                        echo $row4['comment'];
                                ?>
                            </td>
                        </tr>
                    <?php endforeach;?>
                </tbody>
                </table>

                <hr />

                <?php echo get_phrase('total_marks');?> : <?php echo $total_marks;?>
                <br>
                <?php echo get_phrase('average_grade_point');?> : 
                    <?php 
                        $this->db->where('class_id' , $param3);
                        $this->db->where('year' , $running_year);
                        $this->db->from('subject');
                        $number_of_subjects = $this->db->count_all_results();
                        echo ($total_grade_point / $number_of_subjects);
                    ?>
            </div>
        </div>  
    </div>
</div>
<?php
    endforeach;
        endforeach;
?>

Anon7 - 2022
AnonSec Team