diff --git a/app/Config/Routes.php b/app/Config/Routes.php index 25eb0ea..d347798 100644 --- a/app/Config/Routes.php +++ b/app/Config/Routes.php @@ -79,6 +79,12 @@ $routes->group('user', ['filter' => 'role:user'], static function ($routes) { $routes->get('dashboard/viewAccess/(:any)', 'UserController::viewAccess/$1'); }); +// sampling +$routes->group('sampling', ['filter' => 'role:sampling'], static function ($routes) { + $routes->get('', 'samplingController::index'); + $routes->get('dashboard/viewAccess/(:any)', 'SamplingController::viewAccess/$1'); +}); + // fo $routes->group('fo', ['filter' => 'role:fo'], static function ($routes) { $routes->get('', 'FoController::index'); diff --git a/app/Controllers/SamplingController.php b/app/Controllers/SamplingController.php new file mode 100644 index 0000000..51781f4 --- /dev/null +++ b/app/Controllers/SamplingController.php @@ -0,0 +1,44 @@ +query($sql); + $results = $query->getResultArray(); + $data['data'] = $results; + $data['accessnumber'] = $accessnumber; + return view('sampling/dashboard_viewAccess', $data); + } + + public function changePass() { + if ($this->request->getMethod() === 'POST') { + $password1 = $this->request->getVar('password1'); + $password2 = $this->request->getVar('password2'); + $data['password1'] = $password1; + $data['password2'] = $password2; + if($password1 == $password2) { + $password = password_hash($password1,PASSWORD_DEFAULT); + $db = \Config\Database::connect(); + $sql = "update cmod.dbo.CM_USERS set PASSWORD='$password' where USERID='$userid'"; + $db->query($sql); + return redirect()->to("/"); + } else { + return redirect()->to("/auth/setpass/$userid")->with('flash_error', 'password is not the same.'); + } + } + return view('changePass'); + } +} diff --git a/app/Views/admin/dictChapters_index.php b/app/Views/admin/dictChapters_index.php index 02f152e..1b6deef 100644 --- a/app/Views/admin/dictChapters_index.php +++ b/app/Views/admin/dictChapters_index.php @@ -2,8 +2,10 @@ section('content') ?>
+
+
Dictionary Chapter
+
-
Dictionary Chapters
diff --git a/app/Views/admin/dictMappings_index.php b/app/Views/admin/dictMappings_index.php index a7c15bb..f49b6be 100644 --- a/app/Views/admin/dictMappings_index.php +++ b/app/Views/admin/dictMappings_index.php @@ -11,11 +11,15 @@ foreach($tests as $data) { ?>
+
+
Dictionary Mapping Order
+
-
Dictionary Mapping Order
- - -
+ + + + +
@@ -116,9 +120,9 @@ function index() { editBtn = ''; if(data[i].LISCODE == null) { liscode = '-'; } if(maptype == 'S') { - editBtn = ' '; + editBtn = ' '; } else { - editBtn = ' '; + editBtn = ' '; } let datarow = '' + '' + '' + '' + '' + diff --git a/app/Views/admin/dictTests_index.php b/app/Views/admin/dictTests_index.php index 9ba8154..d79b1d6 100644 --- a/app/Views/admin/dictTests_index.php +++ b/app/Views/admin/dictTests_index.php @@ -2,8 +2,10 @@ section('content') ?>
-
-
Dictionary Test
+
+
Dictionary Test
+
+
Testcode
@@ -12,7 +14,7 @@
Shorttext
- +
diff --git a/app/Views/admin/layout/sidebar.php b/app/Views/admin/layout/sidebar.php index 43baefe..02cc1c6 100644 --- a/app/Views/admin/layout/sidebar.php +++ b/app/Views/admin/layout/sidebar.php @@ -14,7 +14,7 @@
\ No newline at end of file diff --git a/app/Views/admin/userroles_index.php b/app/Views/admin/userroles_index.php index e7c659c..63f516c 100644 --- a/app/Views/admin/userroles_index.php +++ b/app/Views/admin/userroles_index.php @@ -2,9 +2,12 @@ section('content') ?>
+
+
Users Role Manager
+
- -
+ +
' + maptype + '' + hiscode+ ' ' + liscode + '' + descs + '' + editBtn + '
@@ -56,7 +59,7 @@ function index() { $("#table-body").html(""); var data = response['userroles']; for (var i = 0; i < data.length; i++) { - let editBtn = ' '; + let editBtn = ' '; //let deleteBtn = ''; let datarow = '' + '' + '' + '' + diff --git a/app/Views/admin/users_index.php b/app/Views/admin/users_index.php index 484aeb6..560c636 100644 --- a/app/Views/admin/users_index.php +++ b/app/Views/admin/users_index.php @@ -2,6 +2,9 @@ section('content') ?>
+
+
Users Manager
+
' + data[i].USERROLEID + '' + data[i].USERROLENAME+ '' + editBtn + '
diff --git a/app/Views/fo/dashboard.php b/app/Views/fo/dashboard.php index 69d63ba..4502097 100644 --- a/app/Views/fo/dashboard.php +++ b/app/Views/fo/dashboard.php @@ -1,4 +1,4 @@ -extend('admin/layout/main.php') ?> +extend('fo/layout/main.php') ?> section('content') ?> @@ -193,7 +193,7 @@ function index() { } function viewAccess(access) { - let url = 'admin/dashboard/viewAccess/'+access; + let url = 'fo/dashboard/viewAccess/'+access; $('.modal-content').load(url, function(){ $('#modal').modal('show'); }); diff --git a/app/Views/fo/layout/sidebar.php b/app/Views/fo/layout/sidebar.php index c598001..6880040 100644 --- a/app/Views/fo/layout/sidebar.php +++ b/app/Views/fo/layout/sidebar.php @@ -8,7 +8,7 @@ \ No newline at end of file diff --git a/app/Views/sampling/dashboard.php b/app/Views/sampling/dashboard.php new file mode 100644 index 0000000..0b72e50 --- /dev/null +++ b/app/Views/sampling/dashboard.php @@ -0,0 +1,206 @@ +extend('sampling/layout/main.php') ?> + +section('content') ?> + + + +
+
+ +
+ + + +
+ +
+
+ Date   :    - +
+
+ +
+
+ +
+
+ + + + + + + + + + + + +
OrderMRPatientRequestHospTestStatus
+
+
+
+ + + +endSection() ?> + +section('script') ?> + +endSection() ?> \ No newline at end of file diff --git a/app/Views/sampling/dashboard_viewAccess.php b/app/Views/sampling/dashboard_viewAccess.php new file mode 100644 index 0000000..0c605ac --- /dev/null +++ b/app/Views/sampling/dashboard_viewAccess.php @@ -0,0 +1,226 @@ + + + + + + + + \ No newline at end of file diff --git a/app/Views/sampling/layout/form.php b/app/Views/sampling/layout/form.php new file mode 100644 index 0000000..dd62f2d --- /dev/null +++ b/app/Views/sampling/layout/form.php @@ -0,0 +1,56 @@ + + + + + + + + + + Summit CRM + + + + + + + renderSection('head'); ?> + + + +
+
+
+

Summit-CRM

+
+
+ +
+
+
+
+ +
+
+ renderSection('content'); ?> +
+
+ +
+
+
+
+ + + + + renderSection('script'); ?> + + + \ No newline at end of file diff --git a/app/Views/sampling/layout/main.php b/app/Views/sampling/layout/main.php new file mode 100644 index 0000000..4986f12 --- /dev/null +++ b/app/Views/sampling/layout/main.php @@ -0,0 +1,58 @@ + + + + + + + + + Analis Dashboard + + + + + + + + include('sampling/layout/topbar'); ?> + +
+ + include('sampling/layout/sidebar'); ?> + +
+
+
+ + + + + + renderSection('content'); ?> + +
+
+ + +
+
+ + + + + renderSection('script'); ?> + + diff --git a/app/Views/sampling/layout/sidebar.php b/app/Views/sampling/layout/sidebar.php new file mode 100644 index 0000000..074565b --- /dev/null +++ b/app/Views/sampling/layout/sidebar.php @@ -0,0 +1,14 @@ +
+ +
\ No newline at end of file diff --git a/app/Views/sampling/layout/topbar.php b/app/Views/sampling/layout/topbar.php new file mode 100644 index 0000000..dd776ff --- /dev/null +++ b/app/Views/sampling/layout/topbar.php @@ -0,0 +1,23 @@ + \ No newline at end of file diff --git a/app/Views/sampling/layout/window.php b/app/Views/sampling/layout/window.php new file mode 100644 index 0000000..5eb7452 --- /dev/null +++ b/app/Views/sampling/layout/window.php @@ -0,0 +1,40 @@ + + + + + + + + + + Summit CRM + + + + renderSection('head'); ?> + + + +
+
+
+

Summit-CRM

+
+
+
+ renderSection('content'); ?> +
+ + + + renderSection('script'); ?> + + + \ No newline at end of file diff --git a/app/Views/user/dashboard.php b/app/Views/user/dashboard.php index 69d63ba..00d57b5 100644 --- a/app/Views/user/dashboard.php +++ b/app/Views/user/dashboard.php @@ -1,4 +1,4 @@ -extend('admin/layout/main.php') ?> +extend('user/layout/main.php') ?> section('content') ?> @@ -193,7 +193,7 @@ function index() { } function viewAccess(access) { - let url = 'admin/dashboard/viewAccess/'+access; + let url = 'user/dashboard/viewAccess/'+access; $('.modal-content').load(url, function(){ $('#modal').modal('show'); }); diff --git a/app/Views/user/layout/sidebar.php b/app/Views/user/layout/sidebar.php index c598001..5366daa 100644 --- a/app/Views/user/layout/sidebar.php +++ b/app/Views/user/layout/sidebar.php @@ -8,7 +8,7 @@ \ No newline at end of file diff --git a/public/assets/css/styles.css b/public/assets/css/styles.css index 96cc5bf..7e363de 100644 --- a/public/assets/css/styles.css +++ b/public/assets/css/styles.css @@ -8345,6 +8345,32 @@ textarea.form-control-lg { background-color: rgba(127, 181, 110, var(--bs-bg-opacity)) !important; color: white; } +.bg-custom-green { + --bs-bg-opacity: 1; + background-color: rgba(76, 178, 105, var(--bs-bg-opacity)) !important; + color: white; +} +.bg-custom-2-green { + --bs-bg-opacity: 1; + background-color: rgba(39, 92, 54, var(--bs-bg-opacity)) !important; + color: white; +} +.btn-success-2 { + --bs-btn-color: #fff; + --bs-btn-bg: #4cb269; + --bs-btn-border-color: #4cb269; + --bs-btn-hover-color: #fff; + --bs-btn-hover-bg: #157347; + --bs-btn-hover-border-color: #146c43; + --bs-btn-focus-shadow-rgb: 60, 153, 110; + --bs-btn-active-color: #fff; + --bs-btn-active-bg: #146c43; + --bs-btn-active-border-color: #13653f; + --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); + --bs-btn-disabled-color: #fff; + --bs-btn-disabled-bg: #198754; + --bs-btn-disabled-border-color: #198754; +} .bg-green { --bs-bg-opacity: 1; background-color: rgba(52, 102, 36, var(--bs-bg-opacity)) !important;