diff --git a/app/Config/Routes.php b/app/Config/Routes.php index a1e7ac1..7f31ff9 100644 --- a/app/Config/Routes.php +++ b/app/Config/Routes.php @@ -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'); diff --git a/app/Controllers/Provider.php b/app/Controllers/Provider.php index e6ecac6..146004a 100644 --- a/app/Controllers/Provider.php +++ b/app/Controllers/Provider.php @@ -72,4 +72,8 @@ class Provider extends SecureBaseController $this->renderProviderSecurePage('dash', $data); } + public function ProviderProduct($productID){ + $data = array(); + return $this->providerSecurePage('product', $data); + } } diff --git a/app/Controllers/SecureBaseController.php b/app/Controllers/SecureBaseController.php index b27a8cd..947f0ee 100644 --- a/app/Controllers/SecureBaseController.php +++ b/app/Controllers/SecureBaseController.php @@ -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 diff --git a/app/Views/provider/components/product_listing.php b/app/Views/provider/components/product_listing.php index 0e6339a..e8d378f 100644 --- a/app/Views/provider/components/product_listing.php +++ b/app/Views/provider/components/product_listing.php @@ -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 = [ ?>
- diff --git a/app/Views/provider/product.php b/app/Views/provider/product.php new file mode 100644 index 0000000..cc422b5 --- /dev/null +++ b/app/Views/provider/product.php @@ -0,0 +1,7 @@ +extend('template/provider_page') ?> +section('content') ?> + + YES HERE + +endSection() ?> + diff --git a/app/Views/template/menu/sidemain.php b/app/Views/template/menu/sidemain.php index 87d58d7..ba84d2a 100644 --- a/app/Views/template/menu/sidemain.php +++ b/app/Views/template/menu/sidemain.php @@ -1,17 +1,13 @@ [ - '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(
  • diff --git a/app/Views/template/provider_page.php b/app/Views/template/provider_page.php index 81836d5..0bca31b 100644 --- a/app/Views/template/provider_page.php +++ b/app/Views/template/provider_page.php @@ -1,4 +1,316 @@ -ameye + + -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. \ No newline at end of file + + MERMS - Panel + + + + + + + + + + + + + + + + + + +
    + +
    + +
    +
    +
    + loader +
    +
    +
    + + +
    + + + +
    + + + + +
    + + + + +
    + +
    + + + + renderSection('content') ?> +
    + +
    + +
    + + + + + + + +
    +
    +
    +

    © Copyright MERMS . All rights reserved.

    +
    +
    +

    MERMS -

    +
    +
    +
    + +
    + +
    + + + + + + + + +
    + +
    + + + + +