From 05846f4344809072ffaf07115f92a52321cd5469 Mon Sep 17 00:00:00 2001 From: mahdahar <89adham@gmail.com> Date: Tue, 25 Nov 2025 08:53:52 +0700 Subject: [PATCH] prework --- app/Controllers/Admin.php | 2 ++ app/Views/_layouts/main.php | 5 ++-- app/Views/admin/index.php | 47 ++++++++++++++++------------- app/Views/admin/modal_result.php | 51 +++++++++++++++++++++++++++----- 4 files changed, 73 insertions(+), 32 deletions(-) diff --git a/app/Controllers/Admin.php b/app/Controllers/Admin.php index 70e9878..819c363 100644 --- a/app/Controllers/Admin.php +++ b/app/Controllers/Admin.php @@ -71,6 +71,8 @@ class Admin extends BaseController 'isval' => $row['ISVAL'] ?? 0, 'isdelete' => $isDelete, 'val' => $row['VAL'] ?? 0, + 'val1user' => $row['VAL1USER'] ?? '-', + 'val2user' => $row['VAL2USER'] ?? '-', ]; } diff --git a/app/Views/_layouts/main.php b/app/Views/_layouts/main.php index 80c5735..812473f 100644 --- a/app/Views/_layouts/main.php +++ b/app/Views/_layouts/main.php @@ -128,9 +128,8 @@ background-color: purple; } - .btn-xs { - font-size : 0.7rem; - } + .btn-xs { font-size : 0.7rem; } + .text-xs { font-size : 0.7rem; } renderSection('css'); ?> diff --git a/app/Views/admin/index.php b/app/Views/admin/index.php index 94d9a11..606f4cf 100644 --- a/app/Views/admin/index.php +++ b/app/Views/admin/index.php @@ -74,7 +74,7 @@ Doctor Tests Result To - Validation + Validation Status @@ -115,13 +115,24 @@
Printed - - - - - -
- "; } ?> + + + + + + + + + + + + + +
1 :
2 :
+ + +
+ @@ -138,8 +149,6 @@ - - @@ -249,14 +258,13 @@ }); } - window.verify = function(accessNumber) { + function verifyShow(accessNumber) { const modalBody = $('#verifyModal .modal-body'); modalBody.html('
Loading...

Fetching verification details for #' + accessNumber + '...

'); $.ajax({ url: ''+accessNumber, - method: 'GET', // Or 'POST', depending on your server setup - data: { access_number: accessNumber }, + method: 'GET', dataType: 'html', success: function(response) { modalBody.html(response); @@ -273,19 +281,16 @@ }); }; - /* function verify(accessnumber) { // toggle checkbox - const row = document.getElementById(`row-${accessnumber}-${samplenumber}`); - const checkbox = row.querySelector('.coll-checkbox'); - checkbox.checked = status; + const row = document.getElementById(`row-${accessnumber}`); $.ajax({ - url: `/${accessnumber}`, + url: `/${accessnumber}`, type: "POST", contentType: "application/json; charset=utf-8", dataType: "json", - data: JSON.stringify({ samplenumber:samplenumber, status:status, userid:"" }), + data: JSON.stringify({ userid:"" }), success: function(response) { console.log("Success:", response); }, @@ -294,7 +299,6 @@ } }); } - */ function unreceive(accessnumber, samplenumber) { // toggle checkbox @@ -351,5 +355,6 @@ }); }); }); + endSection() ?> \ No newline at end of file diff --git a/app/Views/admin/modal_result.php b/app/Views/admin/modal_result.php index 748b0f2..1471e1c 100644 --- a/app/Views/admin/modal_result.php +++ b/app/Views/admin/modal_result.php @@ -1,8 +1,43 @@ - +
+
+
+ +
+
+ +
+ +
+ + \ No newline at end of file