echo $department->dept_id;
    ?>
</td>
                                                <td><?php 
    echo $department->name;
    ?>
</td>
                                                <td><?php 
    $cors = new Course();
    $courses = $cors->getInfobyDept($department->dept_id);
    echo $courses->num_rows;
    ?>
												</td>
                                                <td><?php 
    $t = new Teacher();
    $teachers = $t->getInfobyDept($department->dept_id);
    echo $teachers->num_rows;
    ?>
												</td>
												<td><button class="btn btn-default" onClick="edit_department_feild(<?php 
    echo $i . ',' . $department->dept_id;
    ?>
);" > &nbsp; Edit &nbsp; </button>&nbsp;
													<button class="btn btn-danger" onClick="delete_department(<?php 
    echo $i . ',' . $department->dept_id;
    ?>
)"; >Delete</button>
												</td>
                                            </tr>
                                            <?php 
}
		        <th>No. of Course(s)</th>
		        <td>
				<?php 
    $cors = new Course();
    $courses = $cors->getInfobyDept(Input::get('did'));
    echo $courses->num_rows;
    ?>
	
				</td>
			</tr>
			<tr>	
		        <th>No. of Teacher(s)</th>
		        <td>
				<?php 
    $t = new Teacher();
    $teachers = $t->getInfobyDept(Input::get('did'));
    echo $teachers->num_rows;
    ?>
				</td>
			</tr>
			<tr>
				<td>
					<input type="submit" value=" &nbsp;Save&nbsp; " class="btn btn-success" name = "submit" />
					
				</td>	
		    	<td>
		    		<input type="button" class="btn btn-danger" value="Cancel" onClick="save_edit_dep()"; />
		    	</td>
			</tr>
		
		</tbody>