Surae007 commited on
Commit
cdacbba
·
verified ·
1 Parent(s): 2f46b7a

เขียน wesite ภาษาไทย สำหรับ โปรแกรมในการจัดทำข้อมูลการเบิกยา และการจ่ายยากลุ่มยา จ 2 ให้กับผู้ป่วยในโรงพยาบาล โดยคุณโดยตั้งแต่ในขั้นตอน การส่งเอกสารเบิกยา ขั้นตอนกำลังอนุมัติ อนุมัติแล้ว ติดต่อคนไข้แล้ว จ่ายยาแล้ว และมีระบบ feature เพิ่มเติมจากที่คุณติดว่าเหมาะสมมากที่สุด ครอบคลุมที่สุดเท่าที่จะเป็นไปได้ จงจัดทำให้ฉันระดับ masterpiece

Browse files
Files changed (7) hide show
  1. README.md +8 -5
  2. components/footer.js +52 -0
  3. components/navbar.js +116 -0
  4. create-request.html +106 -0
  5. index.html +204 -19
  6. script.js +33 -0
  7. style.css +24 -18
README.md CHANGED
@@ -1,10 +1,13 @@
1
  ---
2
- title: Medtrackrx
3
- emoji: 📉
4
- colorFrom: gray
5
- colorTo: yellow
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
1
  ---
2
+ title: MedTrackRx - ยาติดตามระบบ 🏥💊
3
+ colorFrom: pink
4
+ colorTo: pink
5
+ emoji: 🐳
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite-v3
10
  ---
11
 
12
+ # Welcome to your new DeepSite project!
13
+ This project was created with [DeepSite](https://huggingface.co/deepsite).
components/footer.js ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class CustomFooter extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ footer {
7
+ background: #1e293b;
8
+ color: white;
9
+ padding: 2rem;
10
+ text-align: center;
11
+ margin-top: auto;
12
+ }
13
+ .footer-content {
14
+ display: flex;
15
+ flex-direction: column;
16
+ gap: 1rem;
17
+ }
18
+ .footer-links {
19
+ display: flex;
20
+ justify-content: center;
21
+ gap: 1.5rem;
22
+ margin-bottom: 1rem;
23
+ }
24
+ .footer-links a {
25
+ color: #e2e8f0;
26
+ text-decoration: none;
27
+ transition: color 0.2s;
28
+ }
29
+ .footer-links a:hover {
30
+ color: #818cf8;
31
+ }
32
+ .copyright {
33
+ color: #94a3b8;
34
+ font-size: 0.875rem;
35
+ }
36
+ </style>
37
+ <footer>
38
+ <div class="footer-content">
39
+ <div class="footer-links">
40
+ <a href="/about.html">เกี่ยวกับระบบ</a>
41
+ <a href="/privacy.html">นโยบายความเป็นส่วนตัว</a>
42
+ <a href="/contact.html">ติดต่อเรา</a>
43
+ </div>
44
+ <div class="copyright">
45
+ &copy; <span id="current-year"></span> MedTrackRx - ระบบติดตามการเบิกจ่ายยา. สงวนลิขสิทธิ์.
46
+ </div>
47
+ </div>
48
+ </footer>
49
+ `;
50
+ }
51
+ }
52
+ customElements.define('custom-footer', CustomFooter);
components/navbar.js ADDED
@@ -0,0 +1,116 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class CustomNavbar extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ nav {
7
+ background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
8
+ padding: 1rem;
9
+ display: flex;
10
+ justify-content: space-between;
11
+ align-items: center;
12
+ box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
13
+ }
14
+ .logo {
15
+ color: white;
16
+ font-weight: bold;
17
+ font-size: 1.25rem;
18
+ display: flex;
19
+ align-items: center;
20
+ }
21
+ .logo i {
22
+ margin-right: 0.5rem;
23
+ }
24
+ ul {
25
+ display: flex;
26
+ gap: 1.5rem;
27
+ list-style: none;
28
+ margin: 0;
29
+ padding: 0;
30
+ }
31
+ a {
32
+ color: white;
33
+ text-decoration: none;
34
+ transition: opacity 0.2s;
35
+ font-weight: 500;
36
+ display: flex;
37
+ align-items: center;
38
+ }
39
+ a:hover {
40
+ opacity: 0.9;
41
+ }
42
+ a i {
43
+ margin-right: 0.25rem;
44
+ }
45
+ .mobile-menu-button {
46
+ display: none;
47
+ background: none;
48
+ border: none;
49
+ color: white;
50
+ font-size: 1.5rem;
51
+ cursor: pointer;
52
+ }
53
+ .mobile-menu {
54
+ display: none;
55
+ background: white;
56
+ position: absolute;
57
+ top: 100%;
58
+ left: 0;
59
+ right: 0;
60
+ padding: 1rem;
61
+ box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
62
+ z-index: 50;
63
+ }
64
+ .mobile-menu a {
65
+ color: #4f46e5;
66
+ padding: 0.5rem 0;
67
+ display: block;
68
+ border-bottom: 1px solid #e5e7eb;
69
+ }
70
+ @media (max-width: 768px) {
71
+ ul {
72
+ display: none;
73
+ }
74
+ .mobile-menu-button {
75
+ display: block;
76
+ }
77
+ .mobile-menu.show {
78
+ display: block;
79
+ }
80
+ }
81
+ </style>
82
+ <nav>
83
+ <div class="logo">
84
+ <i data-feather="activity"></i>
85
+ <span>MedTrackRx</span>
86
+ </div>
87
+
88
+ <button class="mobile-menu-button" onclick="this.shadowRoot.querySelector('.mobile-menu').classList.toggle('show')">
89
+ <i data-feather="menu"></i>
90
+ </button>
91
+
92
+ <ul>
93
+ <li><a href="/"><i data-feather="home"></i> หน้าหลัก</a></li>
94
+ <li><a href="/requests.html"><i data-feather="file-text"></i> คำขอทั้งหมด</a></li>
95
+ <li><a href="/inventory.html"><i data-feather="database"></i> คลังยา</a></li>
96
+ <li><a href="/report.html"><i data-feather="pie-chart"></i> รายงาน</a></li>
97
+ <li><a href="/settings.html"><i data-feather="settings"></i> ตั้งค่า</a></li>
98
+ </ul>
99
+
100
+ <div class="mobile-menu hidden">
101
+ <a href="/"><i data-feather="home"></i> หน้าหลัก</a>
102
+ <a href="/requests.html"><i data-feather="file-text"></i> คำขอทั้งหมด</a>
103
+ <a href="/inventory.html"><i data-feather="database"></i> คลังยา</a>
104
+ <a href="/report.html"><i data-feather="pie-chart"></i> รายงาน</a>
105
+ <a href="/settings.html"><i data-feather="settings"></i> ตั้งค่า</a>
106
+ </div>
107
+ </nav>
108
+ `;
109
+
110
+ // Replace feather icons after rendering
111
+ setTimeout(() => {
112
+ feather.replace();
113
+ }, 100);
114
+ }
115
+ }
116
+ customElements.define('custom-navbar', CustomNavbar);
create-request.html ADDED
@@ -0,0 +1,106 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="th">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>สร้างคำเบิกยาใหม่ | MedTrackRx</title>
7
+ <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
8
+ <link rel="stylesheet" href="style.css">
9
+ <script src="https://cdn.tailwindcss.com"></script>
10
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
11
+ <script src="https://unpkg.com/feather-icons"></script>
12
+ </head>
13
+ <body class="bg-gray-50">
14
+ <custom-navbar></custom-navbar>
15
+
16
+ <main class="container mx-auto px-4 py-8">
17
+ <div class="flex items-center mb-6">
18
+ <a href="/" class="text-indigo-600 hover:text-indigo-800 mr-2">
19
+ <i data-feather="home"></i>
20
+ </a>
21
+ <i data-feather="chevron-right" class="text-gray-400 mx-2"></i>
22
+ <h1 class="text-2xl font-bold text-gray-800">สร้างคำเบิกยาใหม่</h1>
23
+ </div>
24
+
25
+ <div class="bg-white rounded-lg shadow-md p-6">
26
+ <form id="medRequestForm">
27
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-8">
28
+ <div>
29
+ <h2 class="text-xl font-semibold mb-4 text-gray-800">ข้อมูลผู้ป่วย</h2>
30
+
31
+ <div class="mb-4">
32
+ <label for="patientId" class="block text-sm font-medium text-gray-700 mb-1">เลขประจำตัวผู้ป่วย</label>
33
+ <input type="text" id="patientId" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500" required>
34
+ </div>
35
+
36
+ <div class="mb-4">
37
+ <label for="patientName" class="block text-sm font-medium text-gray-700 mb-1">ชื่อ-สกุลผู้ป่วย</label>
38
+ <input type="text" id="patientName" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500" required>
39
+ </div>
40
+
41
+ <div class="mb-4">
42
+ <label for="patientWard" class="block text-sm font-medium text-gray-700 mb-1">แผนก/หอผู้ป่วย</label>
43
+ <select id="patientWard" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500" required>
44
+ <option value="">เลือกแผนก</option>
45
+ <option value="ward1">หอผู้ป่วยศัลยกรรม</option>
46
+ <option value="ward2">หอผู้ป่วยอายุรกรรม</option>
47
+ <option value="ward3">หอผู้ป่วยกุมารเวชกรรม</option>
48
+ <option value="ward4">หอผู้ป่วย ICU</option>
49
+ </select>
50
+ </div>
51
+ </div>
52
+
53
+ <div>
54
+ <h2 class="text-xl font-semibold mb-4 text-gray-800">ข้อมูลแพทย์ผู้สั่งจ่าย</h2>
55
+
56
+ <div class="mb-4">
57
+ <label for="doctorId" class="block text-sm font-medium text-gray-700 mb-1">รหัสแพทย์</label>
58
+ <input type="text" id="doctorId" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500" required>
59
+ </div>
60
+
61
+ <div class="mb-4">
62
+ <label for="doctorName" class="block text-sm font-medium text-gray-700 mb-1">ชื่อแพทย์ผู้สั่งจ่าย</label>
63
+ <input type="text" id="doctorName" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500" required>
64
+ </div>
65
+
66
+ <div class="mb-4">
67
+ <label for="requestDate" class="block text-sm font-medium text-gray-700 mb-1">วันที่สั่งจ่าย</label>
68
+ <input type="date" id="requestDate" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500" required>
69
+ </div>
70
+ </div>
71
+ </div>
72
+
73
+ <div class="mb-8">
74
+ <h2 class="text-xl font-semibold mb-4 text-gray-800">รายการยา</h2>
75
+
76
+ <div id="medicationItems" class="space-y-4">
77
+ <!-- Medication items will be added here -->
78
+ <div class="medication-item bg-gray-50 p-4 rounded-lg border border-gray-200">
79
+ <div class="grid grid-cols-1 md:grid-cols-4 gap-4">
80
+ <div>
81
+ <label class="block text-sm font-medium text-gray-700 mb-1">ชื่อยา</label>
82
+ <select class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500 medication-name" required>
83
+ <option value="">เลือกยา</option>
84
+ <option value="morphine">Morphine</option>
85
+ <option value="fentanyl">Fentanyl</option>
86
+ <option value="oxycodone">Oxycodone</option>
87
+ <option value="methadone">Methadone</option>
88
+ <option value="codeine">Codeine</option>
89
+ </select>
90
+ </div>
91
+ <div>
92
+ <label class="block text-sm font-medium text-gray-700 mb-1">ปริมาณ</label>
93
+ <input type="text" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500 medication-dose" required>
94
+ </div>
95
+ <div>
96
+ <label class="block text-sm font-medium text-gray-700 mb-1">หน่วย</label>
97
+ <select class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500 medication-unit" required>
98
+ <option value="mg">mg</option>
99
+ <option value="ml">ml</option>
100
+ <option value="tablet">เม็ด</option>
101
+ <option value="ampoule">แอมพูล</option>
102
+ </select>
103
+ </div>
104
+ <{"ok":false,"message":"Request timeout: The AI model took too long to respond. Please try again with a simpler prompt or try a different model."}
105
+ </body>
106
+ </html>
index.html CHANGED
@@ -1,19 +1,204 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="th">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>MedTrackRx - ระบบติดตามการเบิกจ่ายยา</title>
7
+ <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
8
+ <link rel="stylesheet" href="style.css">
9
+ <script src="https://cdn.tailwindcss.com"></script>
10
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
11
+ <script src="https://unpkg.com/feather-icons"></script>
12
+ <script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.globe.min.js"></script>
13
+ <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
14
+ </head>
15
+ <body class="bg-gray-50">
16
+ <custom-navbar></custom-navbar>
17
+
18
+ <div id="vanta-bg" class="fixed top-0 left-0 w-full h-full -z-10"></div>
19
+
20
+ <main class="container mx-auto px-4 py-8 relative">
21
+ <!-- Dashboard Overview -->
22
+ <section class="mb-12">
23
+ <h1 class="text-3xl font-bold text-gray-800 mb-6">ระบบติดตามการเบิกจ่ายยา <span class="text-indigo-600">กลุ่มยา จ 2</span></h1>
24
+
25
+ <div class="grid grid-cols-1 md:grid-cols-4 gap-6 mb-8">
26
+ <div class="bg-white p-6 rounded-lg shadow-md border-l-4 border-blue-500">
27
+ <h3 class="text-gray-500 mb-2">รอส่งเอกสาร</h3>
28
+ <p class="text-3xl font-bold">24</p>
29
+ </div>
30
+ <div class="bg-white p-6 rounded-lg shadow-md border-l-4 border-yellow-500">
31
+ <h3 class="text-gray-500 mb-2">รออนุมัติ</h3>
32
+ <p class="text-3xl font-bold">18</p>
33
+ </div>
34
+ <div class="bg-white p-6 rounded-lg shadow-md border-l-4 border-green-500">
35
+ <h3 class="text-gray-500 mb-2">อนุมัติแล้ว</h3>
36
+ <p class="text-3xl font-bold">32</p>
37
+ </div>
38
+ <div class="bg-white p-6 rounded-lg shadow-md border-l-4 border-purple-500">
39
+ <h3 class="text-gray-500 mb-2">จ่ายยาแล้ว</h3>
40
+ <p class="text-3xl font-bold">56</p>
41
+ </div>
42
+ </div>
43
+
44
+ <div class="bg-white p-6 rounded-lg shadow-md">
45
+ <canvas id="requestChart" class="w-full h-64"></canvas>
46
+ </div>
47
+ </section>
48
+
49
+ <!-- Quick Actions -->
50
+ <section class="mb-12">
51
+ <h2 class="text-2xl font-semibold text-gray-800 mb-4">เมนูดำเนินการ</h2>
52
+ <div class="grid grid-cols-2 md:grid-cols-4 gap-4">
53
+ <a href="/create-request.html" class="bg-indigo-600 hover:bg-indigo-700 text-white p-4 rounded-lg flex items-center justify-center transition-colors">
54
+ <i data-feather="plus" class="mr-2"></i> สร้างคำเบิกใหม่
55
+ </a>
56
+ <a href="/tracking.html" class="bg-green-600 hover:bg-green-700 text-white p-4 rounded-lg flex items-center justify-center transition-colors">
57
+ <i data-feather="search" class="mr-2"></i> ติดตามสถานะ
58
+ </a>
59
+ <a href="/inventory.html" class="bg-blue-600 hover:bg-blue-700 text-white p-4 rounded-lg flex items-center justify-center transition-colors">
60
+ <i data-feather="database" class="mr-2"></i> คลังยา
61
+ </a>
62
+ <a href="/report.html" class="bg-purple-600 hover:bg-purple-700 text-white p-4 rounded-lg flex items-center justify-center transition-colors">
63
+ <i data-feather="file-text" class="mr-2"></i> รายงาน
64
+ </a>
65
+ </div>
66
+ </section>
67
+
68
+ <!-- Recent Requests -->
69
+ <section class="mb-12">
70
+ <div class="flex justify-between items-center mb-4">
71
+ <h2 class="text-2xl font-semibold text-gray-800">คำขอล่าสุด</h2>
72
+ <a href="/requests.html" class="text-indigo-600 hover:underline">ดูทั้งหมด</a>
73
+ </div>
74
+ <div class="bg-white rounded-lg shadow-md overflow-hidden">
75
+ <table class="min-w-full divide-y divide-gray-200">
76
+ <thead class="bg-gray-50">
77
+ <tr>
78
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">เลขที่คำขอ</th>
79
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">ผู้ป่วย</th>
80
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">ประเภทยา</th>
81
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">สถานะ</th>
82
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">วันที่</th>
83
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">ดำเนินการ</th>
84
+ </tr>
85
+ </thead>
86
+ <tbody class="bg-white divide-y divide-gray-200">
87
+ <tr>
88
+ <td class="px-6 py-4 whitespace-nowrap">MR-2023-00142</td>
89
+ <td class="px-6 py-4 whitespace-nowrap">นายสมชาย ใจดี</td>
90
+ <td class="px-6 py-4 whitespace-nowrap">Morphine</td>
91
+ <td class="px-6 py-4 whitespace-nowrap">
92
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">รออนุมัติ</span>
93
+ </td>
94
+ <td class="px-6 py-4 whitespace-nowrap">12/11/2023</td>
95
+ <td class="px-6 py-4 whitespace-nowrap">
96
+ <a href="#" class="text-indigo-600 hover:text-indigo-900">ดูรายละเอียด</a>
97
+ </td>
98
+ </tr>
99
+ <tr>
100
+ <td class="px-6 py-4 whitespace-nowrap">MR-2023-00141</td>
101
+ <td class="px-6 py-4 whitespace-nowrap">น.ส.สุนิสา ใจกล้า</td>
102
+ <td class="px-6 py-4 whitespace-nowrap">Fentanyl</td>
103
+ <td class="px-6 py-4 whitespace-nowrap">
104
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">อนุมัติแล้ว</span>
105
+ </td>
106
+ <td class="px-6 py-4 whitespace-nowrap">11/11/2023</td>
107
+ <td class="px-6 py-4 whitespace-nowrap">
108
+ <a href="#" class="text-indigo-600 hover:text-indigo-900">ดูรายละเอียด</a>
109
+ </td>
110
+ </tr>
111
+ <tr>
112
+ <td class="px-6 py-4 whitespace-nowrap">MR-2023-00140</td>
113
+ <td class="px-6 py-4 whitespace-nowrap">น.ส.พรพิมล สุขใจ</td>
114
+ <td class="px-6 py-4 whitespace-nowrap">Oxycodone</td>
115
+ <td class="px-6 py-4 whitespace-nowrap">
116
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-blue-100 text-blue-800">รอส่งเอกสาร</span>
117
+ </td>
118
+ <td class="px-6 py-4 whitespace-nowrap">10/11/2023</td>
119
+ <td class="px-6 py-4 whitespace-nowrap">
120
+ <a href="#" class="text-indigo-600 hover:text-indigo-900">ดูรายละเอียด</a>
121
+ </td>
122
+ </tr>
123
+ <tr>
124
+ <td class="px-6 py-4 whitespace-nowrap">MR-2023-00139</td>
125
+ <td class="px-6 py-4 whitespace-nowrap">นายดำรงค์ เก่งกล้า</td>
126
+ <td class="px-6 py-4 whitespace-nowrap">Methadone</td>
127
+ <td class="px-6 py-4 whitespace-nowrap">
128
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-purple-100 text-purple-800">จ่ายยาแล้ว</span>
129
+ </td>
130
+ <td class="px-6 py-4 whitespace-nowrap">09/11/2023</td>
131
+ <td class="px-6 py-4 whitespace-nowrap">
132
+ <a href="#" class="text-indigo-600 hover:text-indigo-900">ดูรายละเอียด</a>
133
+ </td>
134
+ </tr>
135
+ </tbody>
136
+ </table>
137
+ </div>
138
+ </section>
139
+ </main>
140
+
141
+ <custom-footer></custom-footer>
142
+
143
+ <script src="components/navbar.js"></script>
144
+ <script src="components/footer.js"></script>
145
+ <script src="script.js"></script>
146
+ <script>
147
+ feather.replace();
148
+
149
+ // Vanta.js background
150
+ VANTA.GLOBE({
151
+ el: "#vanta-bg",
152
+ mouseControls: true,
153
+ touchControls: true,
154
+ gyroControls: false,
155
+ minHeight: 200.00,
156
+ minWidth: 200.00,
157
+ scale: 1.00,
158
+ scaleMobile: 1.00,
159
+ color: 0x3a86ff,
160
+ backgroundColor: 0xf8fafc,
161
+ size: 0.8
162
+ });
163
+
164
+ // Chart.js
165
+ document.addEventListener('DOMContentLoaded', function() {
166
+ const ctx = document.getElementById('requestChart').getContext('2d');
167
+ const requestChart = new Chart(ctx, {
168
+ type: 'bar',
169
+ data: {
170
+ labels: ['ม.ค.', 'ก.พ.', 'มี.ค.', 'เม.ย.', 'พ.ค.', 'มิ.ย.', 'ก.ค.', 'ส.ค.', 'ก.ย.', 'ต.ค.', 'พ.ย.', 'ธ.ค.'],
171
+ datasets: [{
172
+ label: 'จำนวนคำขอ',
173
+ data: [12, 19, 15, 22, 18, 24, 20, 28, 25, 30, 26, 34],
174
+ backgroundColor: 'rgba(79, 70, 229, 0.7)',
175
+ borderColor: 'rgba(79, 70, 229, 1)',
176
+ borderWidth: 1
177
+ }]
178
+ },
179
+ options: {
180
+ responsive: true,
181
+ scales: {
182
+ y: {
183
+ beginAtZero: true
184
+ }
185
+ },
186
+ plugins: {
187
+ legend: {
188
+ display: false
189
+ },
190
+ title: {
191
+ display: true,
192
+ text: 'สถิติการเบิกยา 12 เดือนล่าสุด',
193
+ font: {
194
+ size: 16
195
+ }
196
+ }
197
+ }
198
+ }
199
+ });
200
+ });
201
+ </script>
202
+ <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
203
+ </body>
204
+ </html>
script.js ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Shared functions across all pages
2
+
3
+ // Initialize tooltips
4
+ function initTooltips() {
5
+ const tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'));
6
+ tooltipTriggerList.map(function (tooltipTriggerEl) {
7
+ return new bootstrap.Tooltip(tooltipTriggerEl);
8
+ });
9
+ }
10
+
11
+ // Format Thai date
12
+ function formatThaiDate(dateString) {
13
+ if (!dateString) return '';
14
+ const date = new Date(dateString);
15
+ const options = { day: 'numeric', month: 'numeric', year: 'numeric' };
16
+ return date.toLocaleDateString('th-TH', options);
17
+ }
18
+
19
+ // Toggle mobile menu
20
+ function toggleMobileMenu() {
21
+ const mobileMenu = document.getElementById('mobile-menu');
22
+ mobileMenu.classList.toggle('hidden');
23
+ }
24
+
25
+ // Initialize the app
26
+ document.addEventListener('DOMContentLoaded', function() {
27
+ initTooltips();
28
+
29
+ // Set current year in footer
30
+ document.getElementById('current-year').textContent = new Date().getFullYear() + 543;
31
+
32
+ console.log('MedTrackRx initialized');
33
+ });
style.css CHANGED
@@ -1,28 +1,34 @@
 
 
1
  body {
2
- padding: 2rem;
3
- font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
 
 
 
 
4
  }
5
 
6
- h1 {
7
- font-size: 16px;
8
- margin-top: 0;
9
  }
10
 
11
- p {
12
- color: rgb(107, 114, 128);
13
- font-size: 15px;
14
- margin-bottom: 10px;
15
- margin-top: 5px;
16
  }
17
 
18
- .card {
19
- max-width: 620px;
20
- margin: 0 auto;
21
- padding: 16px;
22
- border: 1px solid lightgray;
23
- border-radius: 16px;
24
  }
25
 
26
- .card p:last-child {
27
- margin-bottom: 0;
 
 
 
28
  }
 
 
 
 
 
1
+ @import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;500;600;700&display=swap');
2
+
3
  body {
4
+ font-family: 'Sarabun', sans-serif;
5
+ }
6
+
7
+ /* Custom scrollbar */
8
+ ::-webkit-scrollbar {
9
+ width: 8px;
10
  }
11
 
12
+ ::-webkit-scrollbar-track {
13
+ background: #f1f1f1;
 
14
  }
15
 
16
+ ::-webkit-scrollbar-thumb {
17
+ background: #888;
18
+ border-radius: 4px;
 
 
19
  }
20
 
21
+ ::-webkit-scrollbar-thumb:hover {
22
+ background: #555;
 
 
 
 
23
  }
24
 
25
+ /* Animation for status badges */
26
+ @keyframes pulse {
27
+ 0% { opacity: 1; }
28
+ 50% { opacity: 0.7; }
29
+ 100% { opacity: 1; }
30
  }
31
+
32
+ .pulse-animation {
33
+ animation: pulse 2s infinite;
34
+ }