+
diff --git a/application/config/routes.php b/application/config/routes.php index 6f675cae..e97952e9 100755 --- a/application/config/routes.php +++ b/application/config/routes.php @@ -231,11 +231,11 @@ $route['configedit']='configurationctrl/configedit'; $route['departmentListing'] = 'department/departmentListing'; $route['departmentListing/(:num)'] = "department/departmentListing/$1"; - - $route['adddepartment'] = "department/adddepartment"; $route['addNewdepartment'] = "department/addNewdepartment"; - +$route['editOlddepartment'] = "department/viewdepartment"; +$route['editOlddepartment/(:num)'] = "department/viewdepartment/$1"; +$route['editdepartment'] = "department/editdepartment"; /* End of file routes.php */ /* Location: ./application/config/routes.php */ diff --git a/application/controllers/department.php b/application/controllers/department.php index 41e7b792..148e921f 100755 --- a/application/controllers/department.php +++ b/application/controllers/department.php @@ -178,7 +178,7 @@ class department extends BaseController $data['department'] = $this->department_model->getDeptInfo($DepartmentID); $data['depcode'] = $this->department_model->getdepcode(); - $this->global['pageTitle'] = 'Siddharth : Edit Supplier'; + $this->global['pageTitle'] = 'Siddharth : Edit Department'; $this->loadViews("editdepartment", $this->global,$data, NULL); } diff --git a/application/views/adddepartment.php b/application/views/adddepartment.php index d3170dbf..ea48ed38 100755 --- a/application/views/adddepartment.php +++ b/application/views/adddepartment.php @@ -1,82 +1,49 @@ +