%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/ugotscom/public_html/boniface/application/modules/Details/models/
Upload File :
Create Path :
Current File : /home/ugotscom/public_html/boniface/application/modules/Details/models/Details_model.php

<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Details_model extends CI_Model {

   

    function __construct()
    {
        // Call the Model constructor
        parent::__construct();
    }
	/////////////Check User//////////////////////
public function searchlisting($condition){
		$this->db->select('doctor_id,name,speciality,qualifications');
		$this->db->from('doctors');
		$this->db->where($condition);
		$this->db->where('status','1');
		$query = $this->db->get();
    	
		$row = $query->result_array();

		return $row;	
	
}
	  public function get_details($id) {

$this->db->select('*');
$this->db->from('packages');
  $this->db->where('package_id',$id);
    $query = $this->db->get();
    $row = $query->row_array();
    return $row;
         
    }
          public function get_daydetails($id) {

$this->db->select('*');
$this->db->from('dayplanner');
  $this->db->where('package_id',$id);
    $query = $this->db->get();
    $row = $query->result_array();
    return $row;
         
    }
           public function get_hotels($id) {

$this->db->select('*');
$this->db->from('package_hotels');
  $this->db->where('package_id',$id);
  $this->db->order_by("type", "asc");
    $query = $this->db->get();
    $row = $query->result_array();
    return $row;
         
    }
      public function hospital_details($id) {

$this->db->select('*');
$this->db->from('hospitals');
  $this->db->where('hospital_id',$id);
    $query = $this->db->get();
    $row = $query->row_array();
    return $row;
         
    }
}

Zerion Mini Shell 1.0