Commit 64e87b4c by Jansa Jose

app feedback

parent 13ed72c2
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Appfeedback extends CI_Controller {
public function __construct() {
parent::__construct();
if(!$this->session->userdata('logged_in')) {
redirect(base_url());
}
$this->load->model('Appfeedback_model');
}
public function index() {
$all_policy = $this->Policy_model->get_doctor_feedback();
$template['page'] = "ManagePolicy/addPolicy";
$template['page_title'] = "Manage Policy Page";
$template['data'] = $all_policy;
$this->load->view('template', $template);
}
function exams_delete($id){
$delete_data = $this->Exam_model->delete_exams($id);
if($delete_data){
$this->session->set_flashdata('message', array('message' => 'Successfully Deleted', 'title' => 'Success !', 'class' => 'success'));
redirect(base_url().'ManageExams');
}
}
}
\ No newline at end of file
...@@ -194,7 +194,24 @@ function user_menu() { ...@@ -194,7 +194,24 @@ function user_menu() {
{"name":"View","cap":"manage_faqs","url":"ManageFaqs/faq_view_doctor","subcap":"manage_faqs/view_doctor_faqs"} {"name":"View","cap":"manage_faqs","url":"ManageFaqs/faq_view_doctor","subcap":"manage_faqs/view_doctor_faqs"}
]' ]'
), ),
array(
"slug" => "App Feedback Doctor",//fa-wheelchair-alt,fa-blind
"name" => "App Feedback Doctor",
"url" => "Appfeedback",
"icon" => "fa-medium",
"submenu" => false,
"capabilities" => array("app_feedback_doctor"),
),
array(
"slug" => "App Feedback Patient",//fa-wheelchair-alt,fa-blind
"name" => "App Feedback Patient",
"url" => "Appfeedback/patient_index",
"icon" => "fa-medium",
"submenu" => false,
"capabilities" => array("app_feedback_patient"),
),
array( array(
"slug" => "Manage Charity", "slug" => "Manage Charity",
"name" => "Manage Charity", "name" => "Manage Charity",
...@@ -373,6 +390,8 @@ function user_capabilities() { ...@@ -373,6 +390,8 @@ function user_capabilities() {
"manage_faqs/view_doctor_faqs" => "View Doctor Faqs", "manage_faqs/view_doctor_faqs" => "View Doctor Faqs",
"manage_charity/add" => "Add Charity", "manage_charity/add" => "Add Charity",
"manage_charity/add_services" => "Add Charity to Clinic", "manage_charity/add_services" => "Add Charity to Clinic",
"app_feedback_doctor" => "Doctor's App Feedback",
"app_feedback_patient" => "Patient's App Feedback",
"manage_wallet/withdrawal" => "Withdrawal History", "manage_wallet/withdrawal" => "Withdrawal History",
"cancelled_consultations" => "Cancelled Consultations", "cancelled_consultations" => "Cancelled Consultations",
"manage_doctors/add" => "Add New Doctors", "manage_doctors/add" => "Add New Doctors",
...@@ -419,6 +438,9 @@ function user_page_capabilities() { ...@@ -419,6 +438,9 @@ function user_page_capabilities() {
"ManageClinic-view" => "manage_clinic/view", "ManageClinic-view" => "manage_clinic/view",
"ManageClinic-bookingList" => "manage_clinic/bookinglist", "ManageClinic-bookingList" => "manage_clinic/bookinglist",
"Appfeedback-index" => "app_feedback_doctor",
"Appfeedback-patient_index" => "app_feedback_patient",
"Promocode-index" => "manage_promocode/add", "Promocode-index" => "manage_promocode/add",
"Promocode-promocode_view" => "manage_promocode/view", "Promocode-promocode_view" => "manage_promocode/view",
"ManageFaqs-index" => "manage_faqs/add", "ManageFaqs-index" => "manage_faqs/add",
......
<?php
class Appfeedback_model extends CI_Model {
public function _consruct(){
parent::_construct();
}
function get_doctor_feedback($policyData){
$result = $this->db->get_where('tbl_app_feedback',array('doctor_id !=' =>'0'))->result();
print_r($result);
echo $this->db->last_query();exit();
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment