diff --git a/app/Controllers/AdminController.php b/app/Controllers/AdminController.php
index f3d052e..be66727 100644
--- a/app/Controllers/AdminController.php
+++ b/app/Controllers/AdminController.php
@@ -60,6 +60,11 @@ class AdminController extends BaseController {
}
public function dictMappings_index() {
- return view('admin/dictMappings_index');
+ $db = \Config\Database::connect();
+ $sql = "select TESTCODE from DICT_TESTS where ENDVALIDDATE is null";
+ $query = $db->query($sql);
+ $results = $query->getResultArray();
+ $data['tests'] = $results;
+ return view('admin/dictMappings_index', $data);
}
}
diff --git a/app/Views/admin/dictMappings_index.php b/app/Views/admin/dictMappings_index.php
index 796afe6..81edde0 100644
--- a/app/Views/admin/dictMappings_index.php
+++ b/app/Views/admin/dictMappings_index.php
@@ -1,6 +1,15 @@
= $this->extend('admin/layout/main.php') ?>
= $this->section('content') ?>
+
Dictionary Mapping Order
@@ -37,8 +46,8 @@
@@ -63,7 +72,7 @@
@@ -71,8 +80,8 @@
| LIS Code | : |
- \n";$j++; } ?> |
- \n";$j++; } ?> |
+ \n";$j++; } ?> |
+ \n";$j++; } ?> |
@@ -106,12 +115,6 @@ function index() {
descs = data[i].DESCS;
editBtn = '';
if(data[i].LISCODE == null) { liscode = '-'; }
- /*
- if(data[i].HISCODE != null) { text2 = data[i].TEXT2; }
- if(data[i].MAPPINGTYPE != null) { unit = data[i].UNIT; }
- if(data[i].MAPPINGID != null) { refftext = data[i].REFFTEXT; }
- if(data[i].DESCS != null) { refftext = data[i].DESCS; }
- */
if(maptype == 'S') {
editBtn = '
';
} else {
@@ -204,7 +207,7 @@ function saveSingle() {
method: "POST",
data: data,
success: function(response) {
- $("#liscodeSingle").val('');
+ $(".liscodeSingle").val('');
$("#hiscodeSingle").val('');
$("#descsSingle").val('');
$("#updateSingle").val('');
diff --git a/app/Views/admin/layout/main.php b/app/Views/admin/layout/main.php
index 95b4f31..f540a8d 100644
--- a/app/Views/admin/layout/main.php
+++ b/app/Views/admin/layout/main.php
@@ -49,7 +49,7 @@
-
+
diff --git a/public/assets/jquery-3.7.1.min.js b/public/assets/jquery-3.7.1.min.js
new file mode 100644
index 0000000..7f37b5d
--- /dev/null
+++ b/public/assets/jquery-3.7.1.min.js
@@ -0,0 +1,2 @@
+/*! jQuery v3.7.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */
+!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(ie,e){"use strict";var oe=[],r=Object.getPrototypeOf,ae=oe.slice,g=oe.flat?function(e){return oe.flat.call(e)}:function(e){return oe.concat.apply([],e)},s=oe.push,se=oe.indexOf,n={},i=n.toString,ue=n.hasOwnProperty,o=ue.toString,a=o.call(Object),le={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},C=ie.document,u={type:!0,src:!0,nonce:!0,noModule:!0};function m(e,t,n){var r,i,o=(n=n||C).createElement("script");if(o.text=e,t)for(r in u)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[i.call(e)]||"object":typeof e}var t="3.7.1",l=/HTML$/i,ce=function(e,t){return new ce.fn.init(e,t)};function c(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&0