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; }
= $this->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 @@
Loading...
Fetching verification details for #' + accessNumber + '...
');
$.ajax({
url: '= base_url('api/result/'); ?>'+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: `=base_url('api/request/collect');?>/${accessnumber}`,
+ url: `=base_url('api/request/verify');?>/${accessnumber}`,
type: "POST",
contentType: "application/json; charset=utf-8",
dataType: "json",
- data: JSON.stringify({ samplenumber:samplenumber, status:status, userid:"=session('userid');?>" }),
+ data: JSON.stringify({ userid:"=session('userid');?>" }),
success: function(response) {
console.log("Success:", response);
},
@@ -294,7 +299,6 @@
}
});
}
- */
function unreceive(accessnumber, samplenumber) {
// toggle checkbox
@@ -351,5 +355,6 @@
});
});
});
+
= $this->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 @@
-