PHP 8.1.33
Preview: manage_attendance_view.php Size: 3.98 KB
/home/jambtst2015/public_html/app/application/views/backend/teacher/manage_attendance_view.php

<hr />

<?php echo form_open(base_url() . 'index.php?teacher/attendance_selector/');?>
<div class="row">

	<div class="col-md-3 col-md-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" , $timestamp);?>"/>
		</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 if($section_id == $row['section_id']) echo 'selected';?>><?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();?>






<hr />
<div class="row" style="text-align: center;">
	<div class="col-sm-4"></div>
	<div class="col-sm-4">
		<div class="tile-stats tile-gray">
			<div class="icon"><i class="entypo-chart-area"></i></div>
			
			<h3 style="color: #696969;"><?php echo get_phrase('attendance_for_class');?> <?php echo $this->db->get_where('class' , array('class_id' => $class_id))->row()->name;?></h3>
			<h4 style="color: #696969;">
				<?php echo get_phrase('section');?> <?php echo $this->db->get_where('section' , array('section_id' => $section_id))->row()->name;?> 
			</h4>
			<h4 style="color: #696969;">
				<?php echo date("d M Y" , $timestamp);?>
			</h4>
		</div>
	</div>
	<div class="col-sm-4"></div>
</div>

<div class="row">

	<div class="col-md-2"></div>

	<div class="col-md-8">

	<?php echo form_open(base_url() . 'index.php?teacher/attendance_update/'.$class_id.'/'.$section_id.'/'.$timestamp);?>
		<div id="attendance_update">
			<table class="table table-bordered">
				<thead>
					<tr>
						<th>#</th>
						<th><?php echo get_phrase('roll');?></th>
						<th><?php echo get_phrase('name');?></th>
						<th><?php echo get_phrase('status');?></th>
					</tr>
				</thead>
				<tbody>
				<?php
					$count = 1;
					if($section_id != ''){
						$attendance_of_students = $this->db->get_where('attendance' , array(
							'class_id' => $class_id, 'section_id' => $section_id , 'year' => $running_year,'timestamp'=>$timestamp
						))->result_array();
					}
					foreach($attendance_of_students as $row):
				?>
					<tr>
						<td><?php echo $count++;?></td>
						<td>
							<?php echo $this->db->get_where('enroll', array('student_id'=>$row['student_id']))->row()->roll;?>
						</td>
						<td>
							<?php echo $this->db->get_where('student' , array('student_id' => $row['student_id']))->row()->name;?>
						</td>
						<td>
							<select class="form-control selectboxit" name="status_<?php echo $row['attendance_id'];?>">
								<option value="0" <?php if($row['status'] == 0) echo 'selected';?>><?php echo get_phrase('undefined');?></option>
								<option value="1" <?php if($row['status'] == 1) echo 'selected';?>><?php echo get_phrase('present');?></option>
								<option value="2" <?php if($row['status'] == 2) echo 'selected';?>><?php echo get_phrase('absent');?></option>
							</select>	
						</td>
					</tr>
				<?php endforeach;?>
				</tbody>
			</table>
		</div>

		<center>
			<button type="submit" class="btn btn-success btn-raised" id="submit_button">
				<i class="entypo-check"></i> <?php echo get_phrase('save_changes');?>
			</button>
		</center>
		<?php echo form_close();?>

	</div>

	

</div>

Directory Contents

Dirs: 0 × Files: 34

Name Size Perms Modified Actions
2.50 KB lrwxrwxrwx 2024-11-22 17:53:15
Edit Download
3.11 KB lrwxrwxrwx 2024-11-22 17:53:15
Edit Download
2.01 KB lrwxrwxrwx 2024-11-22 17:53:15
Edit Download
6.10 KB lrwxrwxrwx 2024-11-22 17:53:15
Edit Download
3.86 KB lrwxrwxrwx 2024-11-22 17:53:15
Edit Download
3.98 KB lrwxrwxrwx 2024-11-22 17:53:15
Edit Download
4.33 KB lrwxrwxrwx 2024-11-22 17:53:15
Edit Download
1.32 KB lrwxrwxrwx 2024-11-22 17:53:15
Edit Download
3.98 KB lrwxrwxrwx 2024-11-22 17:53:15
Edit Download
6.29 KB lrwxrwxrwx 2024-11-22 17:53:15
Edit Download
9.33 KB lrwxrwxrwx 2024-11-22 17:53:15
Edit Download
1.77 KB lrwxrwxrwx 2024-11-22 17:53:15
Edit Download
2.42 KB lrwxrwxrwx 2024-11-22 17:53:15
Edit Download
5.88 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
2.37 KB lrwxrwxrwx 2024-11-22 17:53:15
Edit Download
1.64 KB lrwxrwxrwx 2024-11-22 17:53:15
Edit Download
3.33 KB lrwxrwxrwx 2024-11-22 17:53:15
Edit Download
9.81 KB lrwxrwxrwx 2024-11-22 17:53:15
Edit Download
9.80 KB lrwxrwxrwx 2024-11-22 17:53:15
Edit Download
4.58 KB lrwxrwxrwx 2024-11-22 17:53:15
Edit Download
4.34 KB lrwxrwxrwx 2024-11-22 17:53:15
Edit Download
3.71 KB lrwxrwxrwx 2024-11-22 17:53:15
Edit Download
9.75 KB lrwxrwxrwx 2024-11-22 17:53:15
Edit Download
1.54 KB lrwxrwxrwx 2024-11-22 17:53:15
Edit Download
9.19 KB lrwxrwxrwx 2024-11-22 17:53:15
Edit Download
12.74 KB lrwxrwxrwx 2024-11-22 17:53:15
Edit Download
9.49 KB lrwxrwxrwx 2024-11-22 17:53:15
Edit Download
5.42 KB lrwxrwxrwx 2024-11-22 17:53:15
Edit Download
3.50 KB lrwxrwxrwx 2024-11-22 17:53:15
Edit Download
6.55 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).