product page
This commit is contained in:
@@ -11,10 +11,12 @@ $routes->post('login', 'Login::StartLogin');
|
||||
$routes->get('login', 'Login::HomeLogin');
|
||||
$routes->get('logout', 'Login::StartLogin');
|
||||
|
||||
|
||||
$routes->get('register', 'Login::RegisterAccount');
|
||||
$routes->get('register/resetpass', 'Login::RegisterAccount');
|
||||
$routes->post('/register/startacc', 'Login::RegisterAccount');
|
||||
|
||||
|
||||
$routes->get('product/(:any)', 'Provider::ProviderProduct/$1');
|
||||
|
||||
$routes->get('providers', 'Provider::StartProviders');
|
||||
|
||||
@@ -72,4 +72,8 @@ class Provider extends SecureBaseController
|
||||
$this->renderProviderSecurePage('dash', $data);
|
||||
}
|
||||
|
||||
public function ProviderProduct($productID){
|
||||
$data = array();
|
||||
return $this->providerSecurePage('product', $data);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,6 +34,21 @@ abstract class SecureBaseController extends CoreController
|
||||
|
||||
}
|
||||
|
||||
protected function providerSecurePage($page_name, $data):string {
|
||||
|
||||
// you dont have bussines here if you are not in session
|
||||
/* if (!isset($_SESSION['session_id']) or ! isset($_SESSION['username']) or $_SESSION['username'] == '') {
|
||||
// redirect(logout);
|
||||
return redirect()->to('/logout');
|
||||
}
|
||||
*/
|
||||
// echo 'ameye 001';
|
||||
// return view('template/provider_page');
|
||||
|
||||
return
|
||||
view('provider/' . $page_name, $data);
|
||||
}
|
||||
|
||||
protected function renderProviderSecurePage($page_name, $data):string {
|
||||
|
||||
// you dont have bussines here if you are not in session
|
||||
|
||||
@@ -3,27 +3,32 @@ $product_array = [
|
||||
[
|
||||
"name" => "Personal Website",
|
||||
"description" => "Product description here",
|
||||
"status" => 0
|
||||
"status" => 0,
|
||||
"product" => 'A000001'
|
||||
],
|
||||
[
|
||||
"name" => "Professional Website",
|
||||
"description" => "Product description here",
|
||||
"status" => 0
|
||||
"status" => 0,
|
||||
"product" => 'A000002'
|
||||
],
|
||||
[
|
||||
"name" => "Personal Blog",
|
||||
"description" => "Product description here",
|
||||
"status" => 0
|
||||
"status" => 0,
|
||||
"product" => 'A000003'
|
||||
],
|
||||
[
|
||||
"name" => "Professional Blog",
|
||||
"description" => "Product description here",
|
||||
"status" => 0
|
||||
"status" => 0,
|
||||
"product" => 'A000004'
|
||||
],
|
||||
[
|
||||
"name" => "Practice EMR",
|
||||
"description" => "Product description here",
|
||||
"status" => 0
|
||||
"status" => 0,
|
||||
"product" => 'A000005'
|
||||
]
|
||||
];
|
||||
?>
|
||||
@@ -36,16 +41,18 @@ $product_array = [
|
||||
?>
|
||||
<div class="col-lg-6 col-xxl-6 m-b-30" style=" min-width: 200px;">
|
||||
<div style="padding: 2px; border-radius: 10px;">
|
||||
<div class="card card-statistics h-25 mb-0">
|
||||
<div class="card-header d-flex justify-content-between">
|
||||
<div class="card-heading" style="padding: 1px; background-color: aliceblue;">
|
||||
<h4 class="card-title" style="color: #6b0392; font-size: 14px;"><?=$row['name']?></h4>
|
||||
<a href="/product/<?=$row['product']?>">
|
||||
<div class="card card-statistics h-25 mb-0" style="background-color: aliceblue;">
|
||||
<div class="card-header d-flex justify-content-between">
|
||||
<div class="card-heading" style="padding: 1px;">
|
||||
<h4 class="card-title" style="color: #6b0392; font-size: 14px;"><?=$row['name']?></h4>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<?=$row['description']?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<?=$row['description']?>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
<?php $this->extend('template/provider_page') ?>
|
||||
<?php $this->section('content') ?>
|
||||
|
||||
YES HERE
|
||||
|
||||
<?= $this->endSection() ?>
|
||||
|
||||
@@ -1,17 +1,13 @@
|
||||
<?php
|
||||
$menu = array(
|
||||
'office' =>[
|
||||
'Dashboard'=>['provider','Dashboard','1'],
|
||||
'Calendar'=>['provider/calendar','Calendar','0'],
|
||||
'Add Patient'=>['patient/addnew','Add Patient','0'],
|
||||
'Find Patient'=>['patient/findpatient','Find Patient','0']
|
||||
'Dashboard'=>['providers','Dashboard','1'],
|
||||
'Calendar'=>['providers','Calendar','0'],
|
||||
],
|
||||
|
||||
'encounter' =>[
|
||||
'Dashboard'=>['provider','Dashboard','1'],
|
||||
'Calendar'=>['provider/calendar','Calendar','0'],
|
||||
'Add Patient'=>['patient/addnew','Add Patient','0'],
|
||||
'Find Patient'=>['patient/findpatient','Find Patient','0']
|
||||
'resources' =>[
|
||||
'Dashboard'=>['providers','Media','1'],
|
||||
'Calendar'=>['providers','Calendar','0'],
|
||||
],
|
||||
|
||||
'another'
|
||||
@@ -78,18 +74,18 @@ $menu = array(
|
||||
<li>
|
||||
<a class="has-arrow" href="javascript:void(0)" aria-expanded="false"> <i class="nav-icon ti ti-layout-grid4-alt"></i> <span class="nav-title">Widgets</span> <span class="nav-label label label-success">New</span> </a>
|
||||
<ul aria-expanded="false">
|
||||
<li> <a href="widget-chart.html">Chart Widget</a> </li>
|
||||
<li> <a href="#">Chart Widget</a> </li>
|
||||
|
||||
<li> <a href="widget-list.html">List Widget</a> </li>
|
||||
<li> <a href="#">List Widget</a> </li>
|
||||
|
||||
<li> <a href="widget-social.html">Social Widget</a> </li>
|
||||
<li> <a href="#">Social Widget</a> </li>
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a class="has-arrow" href="javascript:void(0)" aria-expanded="false"><i class="nav-icon ti ti-layout-column3-alt"></i><span class="nav-title">Reports</span></a>
|
||||
<ul aria-expanded="false">
|
||||
<li> <a href="/reports">General Reports</a> </li>
|
||||
<li> <a href="#">General Reports</a> </li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
@@ -1,4 +1,316 @@
|
||||
ameye
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
Join Fox News for access to this content
|
||||
You have reached your maximum number of articles. Log in or create an account FREE of charge to continue reading.
|
||||
<head>
|
||||
<title>MERMS - Panel</title>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
|
||||
<meta name="description" content="Admin template that can be used to build dashboards for CRM, CMS, etc." />
|
||||
<meta name="author" content="Potenza Global Solutions" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta http-equiv="refresh" content="1200; url=/logout" />
|
||||
<!-- app favicon -->
|
||||
<link rel="shortcut icon" href="/assets/img/favicon.ico">
|
||||
<!-- google fonts -->
|
||||
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700" rel="stylesheet">
|
||||
<!-- plugin stylesheets -->
|
||||
<link rel="stylesheet" type="text/css" href="/assets/css/vendors.css" />
|
||||
<!-- app style -->
|
||||
<link rel="stylesheet" type="text/css" href="/assets/css/style.css" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- begin app -->
|
||||
<div class="app">
|
||||
<!-- begin app-wrap -->
|
||||
<div class="app-wrap">
|
||||
<!-- begin pre-loader -->
|
||||
<div class="loader">
|
||||
<div class="h-100 d-flex justify-content-center">
|
||||
<div class="align-self-center">
|
||||
<img src="/assets/img/loader/loader.svg" alt="loader">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end pre-loader -->
|
||||
<!-- begin app-header -->
|
||||
<header class="app-header top-bar">
|
||||
<!-- begin navbar -->
|
||||
<nav class="navbar navbar-expand-md">
|
||||
|
||||
<!-- begin navbar-header -->
|
||||
<div class="navbar-header d-flex align-items-center">
|
||||
<a href="javascript:void:(0)" class="mobile-toggle"><i class="ti ti-align-right"></i></a>
|
||||
<a class="navbar-brand" href="/providers">
|
||||
<img src="/assets/img/logo.png" class="img-fluid logo-desktop" alt="logo" />
|
||||
<img src="/assets/img/logo-icon.png" class="img-fluid logo-mobile" alt="logo" />
|
||||
</a>
|
||||
</div>
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<i class="ti ti-align-left"></i>
|
||||
</button>
|
||||
<!-- end navbar-header -->
|
||||
<!-- begin navigation -->
|
||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||
<div class="navigation d-flex">
|
||||
<ul class="navbar-nav nav-left">
|
||||
<li class="nav-item">
|
||||
<a href="javascript:void(0)" class="nav-link sidebar-toggle">
|
||||
<i class="ti ti-align-right"></i>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
<li class="nav-item dropdown">
|
||||
<a href="javascript:void(0)" class="nav-link " id="navbarDropdown1" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Actions
|
||||
<i class="fa fa-angle-down"></i>
|
||||
</a>
|
||||
<div class="dropdown-menu animated fadeIn" aria-labelledby="navbarDropdown">
|
||||
<a class="dropdown-item nav-link" href="#">Add Patient</a>
|
||||
<a class="dropdown-item nav-link" href="#">Find Patient</a>
|
||||
</div>
|
||||
</li>
|
||||
<li class="nav-item full-screen d-none d-lg-block" id="btnFullscreen">
|
||||
<a href="javascript:void(0)" class="nav-link expand">
|
||||
<i class="icon-size-fullscreen"></i>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="navbar-nav nav-right ml-auto">
|
||||
|
||||
|
||||
|
||||
<li class="nav-item dropdown">
|
||||
<a class="nav-link dropdown-toggle" href="javascript:void(0)" id="navbarDropdown3" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
<i class="fe fe-bell"></i>
|
||||
<span class="notify">
|
||||
<span class="blink"></span>
|
||||
<span class="dot"></span>
|
||||
</span>
|
||||
</a>
|
||||
<div class="dropdown-menu extended animated fadeIn" aria-labelledby="navbarDropdown">
|
||||
<ul>
|
||||
<li class="dropdown-header bg-gradient p-4 text-white text-left">Notifications
|
||||
<a href="#" class="float-right btn btn-square btn-inverse-light btn-xs m-0">
|
||||
<span class="font-13"> Clear all</span></a>
|
||||
</li>
|
||||
<li class="dropdown-body min-h-240 nicescroll">
|
||||
<ul class="scrollbar scroll_dark max-h-240">
|
||||
<li>
|
||||
<a href="javascript:void(0)">
|
||||
<div class="notification d-flex flex-row align-items-center">
|
||||
<div class="notify-icon bg-img align-self-center">
|
||||
<div class="bg-type bg-type-md">
|
||||
<span>HY</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="notify-message">
|
||||
<p class="font-weight-bold">New registered user</p>
|
||||
<small>Just now</small>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="javascript:void(0)">
|
||||
<div class="notification d-flex flex-row align-items-center">
|
||||
<div class="notify-icon bg-img align-self-center">
|
||||
<div class="bg-type bg-type-md bg-success">
|
||||
<span>GM</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="notify-message">
|
||||
<p class="font-weight-bold">New invoice received</p>
|
||||
<small>22 min</small>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="javascript:void(0)">
|
||||
<div class="notification d-flex flex-row align-items-center">
|
||||
<div class="notify-icon bg-img align-self-center">
|
||||
<div class="bg-type bg-type-md bg-danger">
|
||||
<span>FR</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="notify-message">
|
||||
<p class="font-weight-bold">Server error report</p>
|
||||
<small>7 min</small>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="javascript:void(0)">
|
||||
<div class="notification d-flex flex-row align-items-center">
|
||||
<div class="notify-icon bg-img align-self-center">
|
||||
<div class="bg-type bg-type-md bg-info">
|
||||
<span>HT</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="notify-message">
|
||||
<p class="font-weight-bold">Database report</p>
|
||||
<small>1 day</small>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="javascript:void(0)">
|
||||
<div class="notification d-flex flex-row align-items-center">
|
||||
<div class="notify-icon bg-img align-self-center">
|
||||
<div class="bg-type bg-type-md">
|
||||
<span>DE</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="notify-message">
|
||||
<p class="font-weight-bold">Order confirmation</p>
|
||||
<small>2 day</small>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="dropdown-footer">
|
||||
<a class="font-13" href="javascript:void(0)"> View All Notifications
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li class="nav-item dropdown user-profile">
|
||||
<a href="javascript:void(0)" class="nav-link dropdown-toggle " id="navbarDropdown4" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
<img src="/assets/img/avtar/02.jpg" alt="avtar-img">
|
||||
<span class="bg-success user-status"></span>
|
||||
</a>
|
||||
<div class="dropdown-menu animated fadeIn" aria-labelledby="navbarDropdown">
|
||||
<div class="bg-gradient px-4 py-3">
|
||||
<div class="d-flex align-items-center justify-content-between">
|
||||
<div class="mr-1">
|
||||
<h4 class="text-white mb-0"><?= isset($_SESSION['user_firstname'])? $_SESSION['user_firstname']:''; ?> <?= isset($_SESSION['user_lastname'])? $_SESSION['user_lastname']:''; ?></h4>
|
||||
<small class="text-white"><?= isset($_SESSION['user_email'])? $_SESSION['user_email']:''; ?></small>
|
||||
</div>
|
||||
<a href="/logout" class="text-white font-20 tooltip-wrapper" data-toggle="tooltip" data-placement="top" title="" data-original-title="Logout"> <i
|
||||
class="zmdi zmdi-power"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="p-4">
|
||||
<a class="dropdown-item d-flex nav-link" href="/profile">
|
||||
<i class="fa fa-user pr-2 text-success"></i> Profile</a>
|
||||
<a class="dropdown-item d-flex nav-link" href="/profile/inbox">
|
||||
<i class="fa fa-envelope pr-2 text-primary"></i> Inbox
|
||||
<span class="badge badge-primary ml-auto">6</span>
|
||||
</a>
|
||||
<a class="dropdown-item d-flex nav-link" href="/profile/settings">
|
||||
<i class=" ti ti-settings pr-2 text-info"></i> Settings
|
||||
</a>
|
||||
<!-- a class="dropdown-item d-flex nav-link" href="javascript:void(0)">
|
||||
<i class="fa fa-compass pr-2 text-warning"></i> Need help?</a-->
|
||||
<div class="row mt-2">
|
||||
<div class="col">
|
||||
<a class="bg-light p-3 text-center d-block" href="/profile/inbox">
|
||||
<i class="fe fe-mail font-20 text-primary"></i>
|
||||
<span class="d-block font-13 mt-2">My messages</span>
|
||||
</a>
|
||||
</div>
|
||||
<div class="col">
|
||||
<a class="bg-light p-3 text-center d-block" href="/profile/inbox?action=compose">
|
||||
<i class="fe fe-plus font-20 text-primary"></i>
|
||||
<span class="d-block font-13 mt-2">Compose new</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end navigation -->
|
||||
</nav>
|
||||
<!-- end navbar -->
|
||||
</header>
|
||||
|
||||
|
||||
|
||||
<!-- begin app-container -->
|
||||
<div class="app-container">
|
||||
<!-- begin app-nabar -->
|
||||
<aside class="app-navbar">
|
||||
<?php include "menu/sidemain.php"; ?>
|
||||
</aside>
|
||||
<!-- end app-navbar -->
|
||||
<!-- begin app-main -->
|
||||
<div class="app-main" id="main">
|
||||
<!-- begin container-fluid -->
|
||||
<div class="container-fluid">
|
||||
|
||||
<?php include "topstrip.php"; ?>
|
||||
<?php include "topstrip2.php"; ?>
|
||||
<?= $this->renderSection('content') ?>
|
||||
</div>
|
||||
<!-- end container-fluid -->
|
||||
</div>
|
||||
<!-- end app-main -->
|
||||
</div>
|
||||
<!-- end app-container -->
|
||||
<!-- begin footer -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<footer class="footer">
|
||||
<div class="row">
|
||||
<div class="col-12 col-sm-6 text-center text-sm-left">
|
||||
<p>© Copyright MERMS <?=date("Y");?>. All rights reserved.</p>
|
||||
</div>
|
||||
<div class="col col-sm-6 ml-sm-auto text-center text-sm-right">
|
||||
<p>MERMS - <?= isset($_SESSION['practice_name'])? $_SESSION['practice_name']:''; ?></p>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
<!-- end footer -->
|
||||
</div>
|
||||
<!-- end app-wrap -->
|
||||
</div>
|
||||
<!-- end app -->
|
||||
|
||||
<!-- plugins -->
|
||||
<script src="/assets/js/vendors.js"></script>
|
||||
|
||||
<!-- custom app -->
|
||||
<script src="/assets/js/app.js"></script>
|
||||
|
||||
<form method="post" name="post_nav" action="">
|
||||
<input type="hidden" name="patientID" value="">
|
||||
</form>
|
||||
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
function post_nav_action(what, value) {
|
||||
// alert(what);
|
||||
document.post_nav.action = what + '';
|
||||
document.post_nav.patientID.value = value;
|
||||
document.post_nav.submit();
|
||||
return false;
|
||||
}
|
||||
function selectPatient( practicePatientId ){
|
||||
//alert( practicePatientId );
|
||||
return post_nav_action('/patient/patientView', practicePatientId);
|
||||
}
|
||||
|
||||
function calendarPatient( practicePatientId ){
|
||||
// alert( practicePatientId );
|
||||
return post_nav_action('/patient', practicePatientId);
|
||||
}
|
||||
|
||||
// -->
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user