From 9aeb0cf912efd27be3235ebe00eed979dc42d65b Mon Sep 17 00:00:00 2001 From: "venbatechnologies@gmail.com" Date: Tue, 12 Sep 2017 12:51:19 +0530 Subject: [PATCH] department details edit page and corrections --- application/config/routes.php | 6 +- application/controllers/department.php | 2 +- application/views/adddepartment.php | 119 +++++--------- application/views/editdepartment.php | 209 +++++++++++++++++++++++++ 4 files changed, 256 insertions(+), 80 deletions(-) create mode 100644 application/views/editdepartment.php 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 @@ +
+ +
+

+
Siddharth Industries - Department DETAILS
+ +

+ +
+ +
+
+ Back +
+
+
+ +
+ + + +
+ + + + +
+
+
+
+ + + Department Information +
+ DEPCode + +
+
+ DepartmentName* + + +
+ +
+ Head Department + +
+
+
+ IsActive
+ > +
+
+ +
+
+
+ + +
+
+
+
+
+
+
+ + + +
+
+
+ load->helper('form'); + $error = $this->session->flashdata('error'); + if($error) + { + ?> +
+ + session->flashdata('error'); ?> +
+ + session->flashdata('success'); + if($success) + { + ?> +
+ + session->flashdata('success'); ?> +
+ + +
+
+ ', '
'); ?> +
+
+
+
+ + +