diff --git a/adminwww/application/models/Practice_model.php b/adminwww/application/models/Practice_model.php index 271f8cd..5ae821f 100644 --- a/adminwww/application/models/Practice_model.php +++ b/adminwww/application/models/Practice_model.php @@ -8,7 +8,17 @@ class Practice_model extends CI_Model { public function getPendingPractice() { $case_statement = "(CASE WHEN status=1 THEN 'Pending' WHEN status=0 THEN 'Deleted' WHEN status=3 THEN 'Deleted' WHEN status=5 THEN 'Acive' ELSE 'Unknown' END)"; - $mysql = "SELECT '' AS process, + $mysql = "SELECT '' AS process, + '' AS semail, + $case_statement AS status, + practice_name,username,email,added::date from practice_pending ORDER BY id DESC LIMIT 200"; + $data['pending_practice'] = ""; + return $query = $this->db->query($mysql); + } + + public function getPractice() { + $case_statement = "(CASE WHEN status=1 THEN 'Pending' WHEN status=0 THEN 'Deleted' WHEN status=3 THEN 'Deleted' WHEN status=5 THEN 'Acive' ELSE 'Unknown' END)"; + $mysql = "SELECT '' AS process, '' AS semail, $case_statement AS status, practice_name,username,email,added::date from practice_pending ORDER BY id DESC LIMIT 200"; diff --git a/adminwww/application/views/practice/parts/view_pending.php b/adminwww/application/views/practice/parts/view_pending.php new file mode 100644 index 0000000..f22b849 --- /dev/null +++ b/adminwww/application/views/practice/parts/view_pending.php @@ -0,0 +1,59 @@ +