<?php require_once 'models/department.class.php'; require_once 'repository/departmentrepository.class.php'; $repository = new DepartmentRepository(); $department1 = new Department(); $department1->initialize(1, "BCT", "Dhaneshwor", "Vjit", 20, 3); $repository->add($department1); $department2 = new Department(); $department2->initialize(2, "BEX", "Sajan Thapa", "Romit Amgai", 25, 2); $repository->add($department2); $department3 = new Department(); $department3->initialize(3, "BEL", "Rajiv Shah", "Ritesh", 18, 1); $repository->add($department3); $department4 = new Department(); $department4->initialize(4, "BCE", "Promish", "Sagun", 22, 0); $repository->add($department4); include_once 'includes/formvalidation.php'; include_once 'includes/header.php'; ?> <tr> <th colspan="8" class="text-center">department Info<button class="btn btn-xs btn-primary pull-right" data-toggle="modal" data-target="#add_department"><span class="glyphicon glyphicon-plus"></span></button></th> </tr> <tr> <th><input type="checkbox" id="select_all"/></th> <th>Id</th> <th>Name</th> <th>Hod</th> <th>Vhod</th> <th>Teacher</th> <th>Floor</th>