Backend Service
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Login extends CI_Controller {
|
||||
|
||||
|
||||
public function index()
|
||||
{
|
||||
/* THIS IS HE BACK office Login
|
||||
*/
|
||||
$this->load->view('welcome_message');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Home extends Web_Controller {
|
||||
|
||||
|
||||
public function index() {
|
||||
$data = array();
|
||||
$this->renderExternalPage('welcome_message', $data);
|
||||
}
|
||||
|
||||
public function custom(){
|
||||
$data = array();
|
||||
|
||||
if ($this->uri->segment(3) === FALSE)
|
||||
{
|
||||
$product_id = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
$product_id = $this->uri->segment(3);
|
||||
}
|
||||
|
||||
echo "Here " .$product_id;
|
||||
$data["facility_image"]='';
|
||||
|
||||
$this->renderExternalPage('welcome_message', $data);
|
||||
}
|
||||
}
|
||||
@@ -46,7 +46,12 @@ $data["loc"] = $_SERVER["REMOTE_ADDR"];
|
||||
}
|
||||
|
||||
public function patientView(){
|
||||
echo $data['patient_id'] = trim($this->input->post('patientID'));
|
||||
echo $data['patient_id'] = trim($this->input->post('patientID'));
|
||||
$this->load->model('patient_model');
|
||||
$out = $this->patient_model->LoadPatient(0, $data['patient_id']);
|
||||
|
||||
print_r( $out );
|
||||
|
||||
$this->renderProviderSecurePage('patient/thispatient', $data);
|
||||
|
||||
}
|
||||
|
||||
@@ -15,4 +15,15 @@ class Patient_model extends CI_Model {
|
||||
$data["patient_list"] = $query->result();
|
||||
return $data;
|
||||
}
|
||||
|
||||
public function LoadPatient($practice_id, $patient_id){
|
||||
|
||||
$mysql = "SELECT p.practice_id,p.id AS patient_id,p.member_id,p.long_id,m.firstname,m.lastname,m.phone,p.added "
|
||||
." FROM patients p LEFT JOIN members m ON m.id=p.member_id WHERE p.id=".$patient_id;
|
||||
$query = $this->db->query($mysql);
|
||||
$num = $query->num_rows();
|
||||
$data["patient_return"] = $query->result();
|
||||
return $data;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
|
||||
<?
|
||||
$facility_image = "/assets/img/bg/provider.jpg";
|
||||
?>
|
||||
|
||||
<!-- begin app -->
|
||||
<div class="app">
|
||||
@@ -66,7 +68,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6 col-xxl-9 col-lg-7 o-hidden order-1 order-sm-2" style="background-color:red; background-image: url('/assets/img/bg/provider.jpg'); background-size: 100% 100%;">
|
||||
<div class="col-sm-6 col-xxl-9 col-lg-7 o-hidden order-1 order-sm-2" style="background-color:red; background-image: url('<?=$facility_image?>'); background-size: 100% 100%;">
|
||||
<!-- img class="img-fluid" src="assets/img/bg/provider.jpg" alt="" style="background-size:contain;" -->
|
||||
</div>
|
||||
</div>
|
||||
@@ -78,4 +80,4 @@
|
||||
</div>
|
||||
<!-- end app-wrap -->
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user