Advertisement
Kitood

Untitled

Feb 3rd, 2023
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.29 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7.  
  8. <link rel="stylesheet" href="{{ url_for('static',filename='styles/docdash.css') }}">
  9. <link rel="stylesheet" href="{{ url_for('static',filename='styles/table.css') }}">
  10. <link rel="stylesheet" href="{{ url_for('static',filename='styles/uploads.css') }}">
  11. <link rel="stylesheet" href="{{ url_for('static',filename='styles/upload.css') }}">
  12. <script src="https://kit.fontawesome.com/fc6a73613f.js"></script>
  13. <title>Dashboard</title>
  14.  
  15.  
  16. <!-- BOOTSTRAP -->
  17. <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet"
  18. integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
  19. <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js"
  20. integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4" crossorigin="anonymous">
  21. </script>
  22.  
  23. <link rel="icon" href="https://i.ibb.co/D4mqfVn/HealthID.png" type="image/x-icon">
  24.  
  25. </head>
  26. <body>
  27. <!-- SIDEBAR SECTION -->
  28. <div class="bar">
  29. <div class="sidebar">
  30. <h2>HealthID</h2>
  31.  
  32. <ul class="lsit">
  33. <li><a href="#line" class="rot"><i class="fa-solid fa-staff-snake"></i>Patient Lineup</a></li>
  34. <li><a href="#pres" class="rot"><i class="fa-solid fa-file-prescription"></i>Prescribe</a></li>
  35. <li><a href="#upload" class="rot"><i class="fa-solid fa-upload"></i>Upload Thesis</a></li>
  36. <li><a href="/logout" class="rot"><i class="fa-solid fa-right-from-bracket"></i>Logout</a></li>
  37.  
  38. </ul>
  39.  
  40. <div class="social_media">
  41. <a href="#"><i class="fab fa-github"></i></a>
  42. <a href="#"><i class="fab fa-twitter"></i></a>
  43. <a href="#"><i class="fab fa-instagram"></i></a>
  44. </div>
  45. </div>
  46. </div>
  47.  
  48. <!-- <h1>Welcome {{session.get('name')}}</h1> -->
  49. <div class="main_content">
  50. <div class="header">
  51. <h1 class="der">Welcome {{session.get('name')}}!</h1>
  52. <hr>
  53. </div>
  54. <div class="box">
  55. {% if message_popup %}
  56. <div class="msg">
  57. {% include 'includes/_messages.html' %}
  58. </div>
  59. {% endif %}
  60. </div>
  61.  
  62. <div class="content">
  63. <section class="lines" id="line" >
  64. <h2 class="apt">TODAY'S SCHEDULE</h2>
  65. <!-- Appointments Table -->
  66. <center>
  67. {% if appointments %}
  68. <div class="card mb-3 dabba1">
  69. <div class="card-header "><i class="fas fa-table"></i>Patient Lineup</div>
  70. <div class="card-body">
  71. <div class="table-responsive">
  72. <table class="table table-bordered" id="dataTable" width="100%" cellspacing="0">
  73. <thead>
  74. <th>Patient Name</th>
  75. <th>Date</th>
  76. <th>Time</th>
  77. </thead>
  78. <tbody>
  79. {% for appointment in appointments %}
  80. <tr>
  81. <td>{{appointment['patient_name']}}</td>
  82. <td>{{appointment['date']}}</td>
  83. <td>{{appointment['time']}}</td>
  84. </tr>
  85. {% endfor %}
  86. </tbody>
  87. </table>
  88. </div>
  89. </div>
  90. </div>
  91. </div>
  92. <!-- <div class="card mb-3 card-ki-mkb">
  93. <div class="card-header">
  94. <i class="fas fa-table"></i>
  95. Appointments</div>
  96. <div class="card-body">
  97. <div class="table-responsive">
  98. <table class="table table-bordered" id="dataTable" width="100%" cellspacing="0">
  99. <thead>
  100. <tr>
  101. <th>Patient Name</th>
  102. <th>Date</th>
  103. <th>Time</th>
  104. </tr>
  105. </thead>
  106. <tbody>
  107. {% for appointment in appointments %}
  108. <tr>
  109. <td>{{appointment['patient_name']}}</td>
  110. <td>{{appointment['date']}}</td>
  111. <td>{{appointment['time']}}</td>
  112. <td><button onclick="showForm()">View</button>
  113. <form id="formElement" style="display: none;">
  114. Patient name : {{appointment['patient_name']}}
  115. <br>
  116. Patient email : {{appointment['patient_email']}}
  117. <br>
  118. <label for="Description">Description :</label>
  119. <input type="text" id="Description" name="Description" />
  120. <br>
  121. <label for="Description">Remarks :</label>
  122. <input type="text" id="Remarks" name="Remarks" />
  123. </form>
  124. </td> -->
  125. <!-- <td>{{appointment['patient_name']}}</td>
  126. <td>{{appointment['date']}}</td>
  127. <td>{{appointment['time']}}</td> -->
  128. <!-- <td>hello</td> -->
  129. <!-- <td>hello</td> -->
  130. <!-- <td>hello</td> -->
  131. <!-- </tr>
  132. {% endfor %}
  133. </tbody>
  134. </table>
  135. </div>
  136. </div> -->
  137.  
  138. {% else %}
  139. <div class="box">
  140. <div class="container">
  141. {% include 'includes/_messages.html' %}
  142. </div>
  143. </div>
  144. {% endif %}
  145. </div>
  146. </center>
  147. </section>
  148.  
  149. <section class="pres" id="pres" >
  150. <h2 class="apt">PATIENT PRESCIPTION</h2>
  151. <center>
  152. <div class="pat">
  153. <form method="POST" action="" enctype="multipart/form-data" style="padding-top:44px; width:500px">
  154.  
  155. Patient Name :
  156. <input type="text" name="patient_email" placeholder="Patient Name" required="required" value={{request.form.paper_name}}>
  157. <br>
  158. <br>
  159. Ailment Description :
  160. <input type="text" name="patient_email" placeholder="Describe" required="required" value={{request.form.paper_name}}>
  161. <br>
  162. <br>
  163. Remarks :
  164. <input type="text" class="idk" name="report_name" placeholder="Remarks" required="required" value={{request.form.paper_category}}>
  165. <br>
  166. <br>
  167. Prescription :
  168. <input type="text" class="idk" name="report_name" placeholder="Prescribe" required="required" value={{request.form.paper_category}}>
  169. <br>
  170.  
  171. <div class="tub">
  172. <button type="button" value="upload" name="upload" id="upload" class="btn-block btn-dark but">
  173. Submit</button>
  174. </div>
  175.  
  176. </form>
  177. </div>
  178. <br>
  179.  
  180. </center>
  181. </section>
  182.  
  183. <section class="upload" id="upload">
  184. <h2 class="apt1">UPLOAD REPORTS</h2>
  185. <center>
  186. <div class="mer">
  187. <form method="POST" action="" enctype="multipart/form-data" style="padding-top:44px; width:500px">
  188.  
  189. Patient Email :
  190. <input type="text" name="patient_email" placeholder="Patient Email" required="required" value={{request.form.paper_name}}>
  191. <br>
  192. <br>
  193. Report Name :
  194. <input type="text" class="idk" name="report_name" placeholder="Report Name" required="required" value={{request.form.paper_category}}>
  195. <br>
  196. <input type="file" name="myfile" id="myfile" class="reer" style="width:260px">
  197.  
  198. <div class="tub">
  199. <button type="button" value="upload" name="upload" id="upload" class="btn-block btn-dark but"><i
  200. class="fa fa-fw fa-upload"></i> Upload</button>
  201. </div>
  202.  
  203. </form>
  204. </div>
  205. <br>
  206. </center>
  207. </section>
  208. <br>
  209. <br>
  210. </div>
  211. </div>
  212. <!-- <script type="text/javascript">
  213.  
  214. console.log("hey bc")
  215.  
  216. let viewbtn = document.getElementsByClassName(viewbtn)
  217. let patname = document.getElementsByClassName(patname)
  218. let patemail = document.getElementsByClassName(patemail)
  219. let description = document.getElementsByClassName(descin)
  220. let remarks = document.getElementsByClassName(remarksin)
  221. let description_label = document.getElementsByClassName(desclabel)
  222. let remarks_label = document.getElementsByClassName(remarklabel)
  223.  
  224. function showhidden1(){
  225. console.log("inside function")
  226. patname[0].classList.remove("hidden")
  227. patemail[0].classList.remove("hidden")
  228. description[0].classList.remove("hidden")
  229. remarks[0].classList.remove("hidden")
  230. description_label[0].classList.remove("hidden")
  231. remarks_label[0].classList.remove("hidden")
  232. document.getElementById(nam1).classList.remove('hidden')
  233. document.getElementById(emal1).classList.remove('hidden')
  234. document.getElementById(desc1).classList.remove('hidden')
  235. document.getElementById(remark1).classList.remove('hidden')
  236. }
  237.  
  238.  
  239. viewbtn[0].addEventListener('click',showhidden1)
  240.  
  241. // for(i of viewbtn)
  242. // {
  243. // i.addEventListener("click", showhidden(patnam[0],patemail[0],description[0],remarks[0],description_label[0],remarks_label[0]))
  244. // 0++
  245. // }
  246. </script> -->
  247. </body>
  248. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement