| Server IP : 162.214.74.102 / Your IP : 216.73.216.59 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/public_html/lrsys_apps/school/application/views/backend/admin/ |
Upload File : |
<hr />
<?php echo form_open(base_url() . 'index.php?admin/marks_selector');?>
<div class="row">
<div class="col-md-2">
<div class="form-group">
<label class="control-label" style="margin-bottom: 5px;"><?php echo get_phrase('exam');?></label>
<select name="exam_id" class="form-control selectboxit" required>
<option value=""><?php echo get_phrase('select_exam');?></option>
<?php
$exams = $this->db->get_where('exam' , array('year' => $running_year))->result_array();
foreach($exams as $row):
?>
<option value="<?php echo $row['exam_id'];?>"><?php echo $row['name'];?></option>
<?php endforeach;?>
</select>
</div>
</div>
<div class="col-md-2">
<div class="form-group">
<label class="control-label" style="margin-bottom: 5px;"><?php echo get_phrase('class');?></label>
<select name="class_id" class="form-control selectboxit" onchange="get_class_subject(this.value)">
<option value=""><?php echo get_phrase('select_class');?></option>
<?php
$classes = $this->db->get('class')->result_array();
foreach($classes as $row):
?>
<option value="<?php echo $row['class_id'];?>"><?php echo $row['name'];?></option>
<?php endforeach;?>
</select>
</div>
</div>
<div id="subject_holder"></div>
</div>
<?php echo form_close();?>
<script type="text/javascript">
function get_class_subject(class_id) {
$.ajax({
url: '<?php echo base_url();?>index.php?admin/marks_get_subject/' + class_id ,
success: function(response)
{
jQuery('#subject_holder').html(response);
}
});
}
</script>