diff --git a/application/modules/Delegation/controllers/Delegation.php b/application/modules/Delegation/controllers/Delegation.php
index b99dbf0..9089eda 100644
--- a/application/modules/Delegation/controllers/Delegation.php
+++ b/application/modules/Delegation/controllers/Delegation.php
@@ -68,8 +68,19 @@ public function Assign_Delecation()
$this->notification->sendNotificationForDelegation($Delecation_id, $code, $type);
}
-
- $this->session->set_flashdata('Success', 'Delegation Assigned Successfully');
+ if($Delecation_id){
+ $this->session->set_flashdata('FlashMsg', '
Delegation Assigned Successfully
+
+
');
+ }else{
+ $this->session->set_flashdata('FlashMsg', 'Something Wents Wrong, Delegation Unable To Assigned!
+
+
');
+ }
redirect('Delegation/Delegation_list');
}
@@ -100,7 +111,20 @@ public function Edit_Create_Delecation()
$table="delegation";
$Delecation = $this->MY_Model->edit_option($action, $id, $table);
- $this->session->set_flashdata('Success', 'Delegation Updated Successfully');
+
+ if($Delecation){
+ $this->session->set_flashdata('FlashMsg', 'Delegation Updated Successfully
+
+
');
+ }else{
+ $this->session->set_flashdata('FlashMsg', 'Something Wents Wrong, Delegation Unable To Updated!
+
+
');
+ }
redirect('Delegation/Delegation_list');
}
diff --git a/application/modules/Delegation/views/delegation_list.php b/application/modules/Delegation/views/delegation_list.php
index 383f2f4..e691bbf 100644
--- a/application/modules/Delegation/views/delegation_list.php
+++ b/application/modules/Delegation/views/delegation_list.php
@@ -33,7 +33,7 @@
-
+ = $this->session->flashdata('FlashMsg'); ?>
session->userdata('Success')): ?>
@@ -122,6 +122,16 @@
});
});
+
+