Preview: manage_attendance.php
Size: 1.32 KB
/home/jambtst2015/public_html/app/application/views/backend/teacher/manage_attendance.php
<hr />
<?php echo form_open(base_url() . 'index.php?teacher/attendance_selector/');?>
<div class="row">
<div class="col-md-3 col-sm-offset-2">
<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>
<?php
$query = $this->db->get_where('section' , array('class_id' => $class_id));
if($query->num_rows() > 0):
$sections = $query->result_array();
?>
<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">
<?php foreach($sections as $row):?>
<option value="<?php echo $row['section_id'];?>"><?php echo $row['name'];?></option>
<?php endforeach;?>
</select>
</div>
</div>
<?php endif;?>
<input type="hidden" name="class_id" value="<?php echo $class_id;?>">
<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 btn-raised"><?php echo get_phrase('manage_attendance');?></button>
</div>
</div>
<?php echo form_close();?>
Directory Contents
Dirs: 0 × Files: 34