Backend Service
This commit is contained in:
@@ -0,0 +1,3 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,44 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||||
|
|
||||||
|
class Cm extends Web_Controller {
|
||||||
|
|
||||||
|
public function index() {
|
||||||
|
$data = array();
|
||||||
|
$sitedata = $this->input->get();
|
||||||
|
$product_id = '';
|
||||||
|
$data["facility_image"] = "/assets/img/bg/provider.jpg";
|
||||||
|
$data["facility_text"] = 'Merms Providers';
|
||||||
|
|
||||||
|
|
||||||
|
if (isset($sitedata) && isset($sitedata['site']) && $sitedata['site'] != '') {
|
||||||
|
$product_id = trim($sitedata['site']);
|
||||||
|
|
||||||
|
switch ($product_id) {
|
||||||
|
case "ogun":
|
||||||
|
$data["facility_image"] = "/assets/img/bg/provider.jpg";
|
||||||
|
$data["facility_text"] = 'Ogun Medical Center';
|
||||||
|
break;
|
||||||
|
case "uchibadan":
|
||||||
|
$data["facility_image"] = "/assets/img/bg/provider.jpg";
|
||||||
|
$data["facility_text"] = 'UCH Providers';
|
||||||
|
break;
|
||||||
|
case "oyo":
|
||||||
|
$data["facility_image"] = "/assets/img/bg/provider.jpg";
|
||||||
|
$data["facility_text"] = 'OYO Health Center';
|
||||||
|
break;
|
||||||
|
case "ife":
|
||||||
|
$data["facility_image"] = "/assets/img/bg/provider.jpg";
|
||||||
|
$data["facility_text"] = 'IFE Providers';
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// echo "Here " . $product_id;
|
||||||
|
// $data["facility_image"] = '';
|
||||||
|
|
||||||
|
$this->renderExternalPage('welcome_message', $data);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -4,27 +4,25 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
|||||||
|
|
||||||
class Home extends Web_Controller {
|
class Home extends Web_Controller {
|
||||||
|
|
||||||
|
|
||||||
public function index() {
|
public function index() {
|
||||||
|
|
||||||
$data = array();
|
$data = array();
|
||||||
$this->renderExternalPage('welcome_message', $data);
|
$this->renderExternalPage('welcome_message', $data);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function custom(){
|
public function custom() {
|
||||||
$data = array();
|
$data = array();
|
||||||
|
|
||||||
if ($this->uri->segment(3) === FALSE)
|
if ($this->uri->segment(3) === FALSE) {
|
||||||
{
|
$product_id = 0;
|
||||||
$product_id = 0;
|
} else {
|
||||||
}
|
$product_id = $this->uri->segment(3);
|
||||||
else
|
}
|
||||||
{
|
|
||||||
$product_id = $this->uri->segment(3);
|
echo "Here " . $product_id;
|
||||||
}
|
$data["facility_image"] = '';
|
||||||
|
|
||||||
echo "Here " .$product_id;
|
$this->renderExternalPage('welcome_message', $data);
|
||||||
$data["facility_image"]='';
|
}
|
||||||
|
|
||||||
$this->renderExternalPage('welcome_message', $data);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,10 +4,24 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
|||||||
|
|
||||||
class Welcome extends Web_Controller {
|
class Welcome extends Web_Controller {
|
||||||
|
|
||||||
|
|
||||||
public function index() {
|
public function index() {
|
||||||
$data = array();
|
$data = array();
|
||||||
$this->renderExternalPage('welcome_message', $data);
|
$this->renderExternalPage('welcome_message', $data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function cm() {
|
||||||
|
$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);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,11 @@
|
|||||||
<?
|
<?
|
||||||
$facility_image = "/assets/img/bg/provider.jpg";
|
if ($facility_image == '') {
|
||||||
|
$facility_image = "/assets/img/bg/provider.jpg";
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($facility_text == '') {
|
||||||
|
$facility_text = "erms Providers";
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<!-- begin app -->
|
<!-- begin app -->
|
||||||
@@ -26,7 +32,7 @@ $facility_image = "/assets/img/bg/provider.jpg";
|
|||||||
<div class="col-sm-6 col-lg-5 col-xxl-3 align-self-center order-2 order-sm-1">
|
<div class="col-sm-6 col-lg-5 col-xxl-3 align-self-center order-2 order-sm-1">
|
||||||
<div class="d-flex align-items-center h-100-vh">
|
<div class="d-flex align-items-center h-100-vh">
|
||||||
<div class="login p-50">
|
<div class="login p-50">
|
||||||
<h1 class="mb-2">Merms Providers</h1>
|
<h1 class="mb-2"><?=$facility_text?></h1>
|
||||||
<p>Welcome back, please login to your account.</p>
|
<p>Welcome back, please login to your account.</p>
|
||||||
<form id='loginForm' action="/login" method='POST' class="mt-3 mt-sm-5">
|
<form id='loginForm' action="/login" method='POST' class="mt-3 mt-sm-5">
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user