PHP 8.1.33
Preview: marks.php Size: 3.65 KB
/home/jambtst2015/public_html/app/application/views/backend/parent/marks.php

<?php 
    $child_of_parent = $this->db->get_where('enroll' , array(
        'student_id' => $student_id , 'year' => $running_year
    ))->result_array();
    foreach ($child_of_parent as $row):
?>
<hr />
    <div class="label label-primary pull-right" style="font-size: 14px; font-weight: 100;">
        <i class="entypo-user"></i> <?php echo $this->db->get_where('student' , array('student_id' => $row['student_id']))->row()->name;?>
    </div>
<br><br>
<div class="row">
    <div class="col-md-12">
    
        <div class="tabs-vertical-env">
        
            <ul class="nav tabs-vertical">
                <?php 
                    $exams = $this->db->get_where('exam' , array('year' => $running_year))->result_array();
                    foreach ($exams as $row2):
                ?>
                <li class="">
                    <a href="#<?php echo $row2['exam_id'];?>" data-toggle="tab">
                        <?php echo $row2['name'];?>  <small>( <?php echo $row2['date'];?> )</small>
                    </a>
                </li>
            <?php endforeach;?>
            </ul>
            
            <div class="tab-content">
            
            <?php 
                foreach ($exams as $exam):
                    $this->db->where('exam_id' , $exam['exam_id']);
                    $this->db->where('student_id' , $student_id);
                    $this->db->where('year' , $running_year);
                    $marks = $this->db->get('mark')->result_array();
            ?>
                <div class="tab-pane" id="<?php echo $exam['exam_id'];?>">
                    <table class="table table-bordered responsive">
                        <thead>
                            <tr>
                                <th width="15%"><?php echo get_phrase('class');?></th>
                                <th><?php echo get_phrase('subject');?></th>
                                <th><?php echo get_phrase('total_mark');?></th>
                                <th><?php echo get_phrase('mark_obtained');?></th>
                                <th width="33%"><?php echo get_phrase('comment');?></th>
                            </tr>
                        </thead>
                        <tbody>
                        <?php foreach ($marks as $mark):?>
                            <tr>
                                <td>
                                    <?php echo $this->db->get_where('class' , array(
                                        'class_id' => $mark['class_id']
                                    ))->row()->name;?>
                                </td>
                                <td>
                                    <?php echo $this->db->get_where('subject' , array(
                                        'subject_id' => $mark['subject_id']
                                    ))->row()->name;?>
                                </td>
                                <td><?php echo $mark['mark_total'];?></td>
                                <td><?php echo $mark['mark_obtained'];?></td>
                                <td><?php echo $mark['comment'];?></td>
                            </tr>
                        <?php endforeach;?>
                        </tbody>
                    </table>
                    <a href="<?php echo base_url();?>index.php?parents/student_marksheet_print_view/<?php echo $student_id;?>/<?php echo $exam['exam_id'];?>" 
                        class="btn btn-primary" target="_blank">
                        <?php echo get_phrase('print_marksheet');?>
                    </a>
                </div>
            <?php endforeach;?>

            </div>
            
        </div>  
    
    </div>
</div>
<?php endforeach;?>

Directory Contents

Dirs: 0 × Files: 24

Name Size Perms Modified Actions
1.73 KB lrwxrwxrwx 2024-11-22 17:53:15
Edit Download
2.02 KB lrwxrwxrwx 2024-11-22 17:53:15
Edit Download
6.10 KB lrwxrwxrwx 2024-11-22 17:53:15
Edit Download
4.39 KB lrwxrwxrwx 2024-11-22 17:53:15
Edit Download
3.89 KB lrwxrwxrwx 2024-11-22 17:53:15
Edit Download
4.33 KB lrwxrwxrwx 2024-11-22 17:53:15
Edit Download
3.22 KB lrwxrwxrwx 2024-11-22 17:53:15
Edit Download
6.30 KB lrwxrwxrwx 2024-11-22 17:53:15
Edit Download
4.70 KB lrwxrwxrwx 2024-11-22 17:53:15
Edit Download
3.65 KB lrwxrwxrwx 2024-11-22 17:53:15
Edit Download
2.60 KB lrwxrwxrwx 2024-11-22 17:53:15
Edit Download
702 B lrwxrwxrwx 2024-11-22 17:53:15
Edit Download
1.95 KB lrwxrwxrwx 2024-11-22 17:53:15
Edit Download
1.74 KB lrwxrwxrwx 2024-11-22 17:53:15
Edit Download
6.15 KB lrwxrwxrwx 2024-11-22 17:53:15
Edit Download
2.78 KB lrwxrwxrwx 2024-11-22 17:53:15
Edit Download
6.75 KB lrwxrwxrwx 2024-11-22 17:53:15
Edit Download
1.54 KB lrwxrwxrwx 2024-11-22 17:53:15
Edit Download
4.49 KB lrwxrwxrwx 2024-11-22 17:53:15
Edit Download
2.03 KB lrwxrwxrwx 2024-11-22 17:53:15
Edit Download
5.14 KB lrwxrwxrwx 2024-11-22 17:53:15
Edit Download
1.76 KB lrwxrwxrwx 2024-11-22 17:53:15
Edit Download
1.40 KB lrwxrwxrwx 2024-11-22 17:53:15
Edit Download
1.52 KB lrwxrwxrwx 2024-11-22 17:53:15
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).