-
-
-
-
-
-
-
-
-
+
+
-
-
-
-
- 姓名 |
- 房號 |
- 對話摘要 |
- 狀態 |
- 操作 |
-
-
-
-
-
-
-
第 1 頁,共 1 頁
-
-
-
-
+
+
-
+
+
+
+
+ 姓名 |
+ 房號 |
+ 對話摘要 |
+ 狀態 |
+ 操作 |
+
+
+
+
-
-
+
+ }
+
+ // Modal 搜尋
+ document.getElementById("modalSearchInput").addEventListener("input", function () {
+ const keyword = this.value.trim().toLowerCase();
+ const resultBox = document.getElementById("modalSearchResult");
+ resultBox.innerHTML = "";
+
+ if (!keyword) return;
+
+ const results = residents.filter(r =>
+ r.name.toLowerCase().includes(keyword) || r.room.toLowerCase().includes(keyword)
+ );
+
+ if (results.length === 0) {
+ resultBox.innerHTML = `
找不到相關居民`;
+ } else {
+ results.forEach(r => {
+ const li = document.createElement("li");
+ li.className = "list-group-item list-group-item-action";
+ li.innerHTML = `
${r.name} - ${r.room}`;
+ li.onclick = () => window.location.href = `message.html?id=${r.id}`;
+ resultBox.appendChild(li);
+ });
+ }
+ });
+
+ renderTable();
+
\ No newline at end of file
diff --git a/Backstage/repair_firm_list.html b/Backstage/repair_firm_list.html
index ca3ba42..85c5d68 100644
--- a/Backstage/repair_firm_list.html
+++ b/Backstage/repair_firm_list.html
@@ -14,21 +14,9 @@
}
.container.mt-4 {
flex-grow: 1;
- padding-bottom: 70px;
- }
- nav.pagination-fixed {
- position: fixed;
- left: 0;
- bottom: 0;
- width: 100%;
- background-color: #f8f9fa;
- padding: 10px 0;
- border-top: 1px solid #dee2e6;
- z-index: 1000;
- }
- nav.pagination-fixed .pagination {
- margin-bottom: 0;
+ /* Removed padding-bottom as pagination is no longer fixed */
}
+ /* Removed .pagination-controls fixed styling */
@@ -37,13 +25,13 @@
@@ -55,10 +43,10 @@