File: /storage/v6964/school/public_html/school/application/views/backend/admin/showStudentClasswise.php
<table id="example" class="table display">
<thead>
<tr>
<th><div>#</div></th>
<th><div><?php echo get_phrase('Image');?></div></th>
<th><div><?php echo get_phrase('roll_number');?></div></th>
<th><div><?php echo get_phrase('name');?></div></th>
<th><div><?php echo get_phrase('class');?></div></th>
<th><div><?php echo get_phrase('sex');?></div></th>
<th><div><?php echo get_phrase('email');?></div></th>
<th><div><?php echo get_phrase('phone');?></div></th>
<th><div><?php echo get_phrase('parent');?></div></th>
<th><div><?php echo get_phrase('actions');?></div></th>
</tr>
</thead>
<tbody>
<?php $counter = 1; $students = $this->db->get_where('student', array('class_id' => $class_id))->result_array();
foreach($students as $key => $student):?>
<tr>
<td><?php echo $counter++;?></td>
<td><img src="<?php echo $this->crud_model->get_image_url('student', $student['student_id']);?>" class="img-circle" width="30"></td>
<td><?php echo $student['roll'];?></td>
<td><?php echo $student['name'];?></td>
<td><?php echo $this->crud_model->get_type_name_by_id('class', $student['class_id']);?></td>
<td><?php echo $student['sex'];?></td>
<td><?php echo $student['email'];?></td>
<td><?php echo $student['phone'];?></td>
<td><?php echo $this->crud_model->get_type_name_by_id('parent', $student['parent_id']);?></td>
<td>
<a href="<?php echo base_url();?>admin/edit_student/<?php echo $student['student_id'];?>" ><button type="button" class="btn btn-info btn-circle btn-xs"><i class="fa fa-pencil"></i></button></a>
<a href="#" onclick="confirm_modal('<?php echo base_url();?>admin/new_student/delete/<?php echo $student['student_id'];?>');"><button type="button" class="btn btn-danger btn-circle btn-xs"><i class="fa fa-times"></i></button></a>
<a onclick="showAjaxModal('<?php echo base_url();?>modal/popup/resetstudentPassword/<?php echo $student['student_id'];?>')" class="btn btn-success btn-circle btn-xs"><i class="fa fa-key"></i></a>
</td>
</tr>
<?php endforeach;?>
</tbody>
</table>