| 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/attendance_selector/');?>
<div class="row">
<div class="col-md-3">
<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="select_section(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="section_holder">
<div class="col-md-3">
<div class="form-group">
<label class="control-label" style="margin-bottom: 5px;"><?php echo get_phrase('section');?></label>
<select class="form-control selectboxit" name="section_id">
<option value=""><?php echo get_phrase('select_class_first') ?></option>
</select>
</div>
</div>
</div>
<div class="col-md-3">
<div class="form-group">
<label class="control-label" style="margin-bottom: 5px;"><?php echo get_phrase('date');?></label>
<input type="text" class="form-control datepicker" name="timestamp" data-format="dd-mm-yyyy"
value="<?php echo date("d-m-Y");?>"/>
</div>
</div>
<input type="hidden" name="year" value="<?php echo $running_year;?>">
<div class="col-md-3" style="margin-top: 20px;">
<button type="submit" class="btn btn-info"><?php echo get_phrase('manage_attendance');?></button>
</div>
</div>
<?php echo form_close();?>
<script type="text/javascript">
function select_section(class_id) {
$.ajax({
url: '<?php echo base_url(); ?>index.php?admin/get_section/' + class_id,
success:function (response)
{
jQuery('#section_holder').html(response);
}
});
}
</script>