Advertisement
Kitood

Untitled

Feb 2nd, 2023
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.13 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/resdash.css') }}">
  9. <link rel="stylesheet" href="{{ url_for('static',filename='styles/upload.css') }}">
  10. <!-- <link rel="stylesheet" href="{{ url_for('static',filename='styles/table.css') }}"> -->
  11. <script src="https://kit.fontawesome.com/fc6a73613f.js"></script>
  12.  
  13. <!-- BOOTSTRAP -->
  14. <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet"
  15. integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
  16. <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js"
  17. integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4" crossorigin="anonymous">
  18. </script>
  19. <!-- FileStack -->
  20. <!-- File Picker -->
  21. <!-- <script src="//static.filestackapi.com/filestack-js/3.x.x/filestack.min.js"></script> -->
  22. <!-- Drag and Drop -->
  23. <!-- <script src="//static.filestackapi.com/filestack-drag-and-drop-js/{MAJOR_VERSION}.x.x/filestack-drag-and-drop.min.js"></script> -->
  24.  
  25. <title>Dashboard</title>
  26. <!-- Download PDF JS Code -->
  27. <!-- <script>
  28. function downloadPdf() {
  29. window.open("{{ url_for('resdashboard', id=pdf_id) }}");
  30. }
  31. </script> -->
  32. <!-- <script>
  33. window.addEventListener('DOMContentLoaded', function () {
  34. const apikey = 'YOUR_API_KEY';
  35. const client = filestack.init(apikey);
  36. const options = {
  37. maxFiles: 20,
  38. uploadInBackground: false,
  39. onOpen: () => console.log('opened!'),
  40. onUploadDone: (res) => console.log(res),
  41. };
  42. client.picker(options).open();
  43. });
  44. </script> -->
  45. </head>
  46. <body>
  47. <!-- SIDEBAR SECTION -->
  48. <div class="bar">
  49. <div class="sidebar">
  50. <h2>HealthID</h2>
  51.  
  52. <ul class="lsit">
  53. <li><a href="#doc" class="rot"><i class="fa-solid fa-file-waveform" ></i>Thesis</a></li>
  54. <li><a href="#upload" class="rot"><i class="fa-solid fa-upload"></i>Upload Thesis</a></li>
  55. <li><a href="#search" class="rot"><i class="fa-solid fa-book-medical"></i>Search Thesis</a></li>
  56. <li><a href="/logout" class="rot"><i class="fa-solid fa-right-from-bracket"></i>Logout</a></li>
  57. </ul>
  58.  
  59. <div class="social_media">
  60. <a href="#"><i class="fab fa-github"></i></a>
  61. <a href="#"><i class="fab fa-twitter"></i></a>
  62. <a href="#"><i class="fab fa-instagram"></i></a>
  63. </div>
  64. </div>
  65. </div>
  66.  
  67. <div class="main_content">
  68. <div class="header">
  69. <h1>Welcome, {{session.get('name')}} !</h1>
  70. <hr>
  71. </div>
  72. <div class="box">
  73. <div class="container">
  74. {% include 'includes/_messages.html' %}
  75. </div>
  76. </div>
  77. <div class="content">
  78. <section class="doctor" id="doc">
  79. <h2 class="apt">THESIS </h2>
  80. <center>
  81. <div class="card mb-3 card-ki-mkb-1">
  82. <div class="card-header">
  83. <i class="fas fa-table"></i>
  84. Research Papers</div>
  85. <div class="card-body">
  86. <div class="table-responsive">
  87. <table class="table table-bordered" id="dataTable" width="100%" cellspacing="0">
  88. <thead>
  89. <th>Paper Name</th>
  90. <th>Category</th>
  91. <th>View</th>
  92. <th>Author</th>
  93. <th>Institute Name</th>
  94. <th>Date</th>
  95. </thead>
  96. <tbody>
  97. {% for pdf in pdf_list %}
  98. <tr>
  99. <td>{{pdf['paper_name']}}</td>
  100. <td>{{pdf['category']}}</td>
  101. <td><button class="two"><a href="{{pdf['paper_url']}}" class="link-mi">View</a></button></td>
  102. <td>{{pdf['author']}}</td>
  103. <td>{{pdf['institute_name']}}</td>
  104. <td>{{pdf['upload_date']}}</td>
  105. </tr>
  106. {% endfor %}
  107. </tbody>
  108. </table>
  109. </div>
  110. </div>
  111. </div>
  112. </center>
  113. </section>
  114. <section class="upload" id="upload">
  115. <h2 class="apt">UPLOAD THESIS</h2>
  116. <center>
  117. <div class="damn">
  118. <form method="POST" action="" enctype="multipart/form-data">
  119. <!-- <label for="paper_name">Paper Name :</label> -->
  120. Paper Name :
  121. <input type="text" name="paper_name" placeholder="Name" required="required" value={{request.form.paper_name}}>
  122. <br>
  123. <br>
  124. Category :
  125. <input type="text" class="idk" name="paper_category" placeholder="Category" required="required" value={{request.form.paper_category}}>
  126. <br>
  127. <input type="file" name="myfile" id="myfile" class="reer" style="width:260px">
  128. <!-- Upload :
  129. <input type="file" id="myfile" name="myfile"> -->
  130.  
  131. <!-- <input type="submit" value="Submit"> -->
  132. <!-- <label for="myfile">Upload :</label> -->
  133. <!-- <div class="container mt-5">
  134. <h1 class="text-center">Upload your documents here</h1>
  135. <div class="col-sm-12 col-lg-4 mr-auto ml-auto border p-4 dabba">
  136. <form method="post" enctype="multipart/form-data">
  137. <div class="form-group"> -->
  138. <!-- <label><strong>Upload Files</strong></label> -->
  139. <!-- Choose a file: -->
  140. <!-- <input type="file" name="myfile" id="myfile" class="reer"> -->
  141. <!-- <div class="custom-file"> -->
  142. <!-- <div class="upload-btn-wrapper"> -->
  143. <!-- <button class="btn">Upload a file</button>
  144. <input type="file" name="myfile" />
  145. </div>
  146. </div> -->
  147. <!-- </div> -->
  148. <!-- <div class="form-group"> -->
  149. <div class="tub">
  150. <button type="button" value="upload" name="upload" id="upload" class="btn-block btn-dark but"><i
  151. class="fa fa-fw fa-upload"></i> Upload</button>
  152. </div>
  153. <!-- <input type="submit" value="Submit"> -->
  154.  
  155. <!-- </div> -->
  156. </form>
  157. </div>
  158. <br>
  159. <!-- </form> -->
  160. </div>
  161. </center>
  162. </section>
  163.  
  164. <section class="search" id="search">
  165. <h2 class="apt">SEARCH THESES</h2>
  166. </section>
  167. </div>
  168. </div>
  169. <center>
  170. <div class="uh">
  171. <form action="" method="POST">
  172. Search Keyword :
  173. <input type="text" name="keyword" placeholder="Search" value={{request.form.keyword}}>
  174. </form>
  175. </div>
  176. <div class="lol">
  177. <table border="1px solid">
  178. <thead>
  179. <th>Paper Name</th>
  180. <th>Category</th>
  181. <th>View</th>
  182. <th>Author</th>
  183. <th>Institute Name</th>
  184. <th>Date</th>
  185. </thead>
  186.  
  187. <tbody>
  188. {% for result in results %}
  189. <tr>
  190. <td>{{result['paper_name']}}</td>
  191. <td>{{result['category']}}</td>
  192. <td> <button><a href="{{result['paper_url']}}">View</a></button></td>
  193. <td>{{result['author']}}</td>
  194. <td>{{result['institute_name']}}</td>
  195. <td>{{result['upload_date']}}</td>
  196. </tr>
  197. {% endfor %}
  198. </tbody>
  199. </table>
  200. </center>
  201. </div>
  202. <!-- SIDEBAR SECTION -->
  203.  
  204. <!-- Filestack - File Picker -->
  205. <script>
  206. function uploadpdf() {
  207. const client = filestack.init("A0qg3V3jRiyTufmfEmUcgz");
  208. client.picker().open();
  209. }
  210. </script>
  211. <!-- <button onclick="uploadpdf()">Upload A PDF</button> -->
  212. <!-- Filestack - Drag and Drop -->
  213. <!-- <script>
  214. const filestackClient = filestack.init('A0qg3V3jRiyTufmfEmUcgz');
  215. const filestackDnD = new filestackDnD.init(filestackClient, document.querySelector('.drop-container'));
  216. </script>
  217. <div class="drop-container">Drag and Drop</div> -->
  218.  
  219. <!-- This iframe is used as PDF Viewer -->
  220. <!-- <iframe src="https://cdn.filestackcontent.com/5qtHXdNSkqDu5Msg4JBc" frameborder="0" height="500" width="50%"></iframe> -->
  221. <!-- <a href="https://cdn.filestackcontent.com/5qtHXdNSkqDu5Msg4JBc">example</a> -->
  222. <!-- To download the pdf -->
  223. <!-- <button onclick="downloadPdf()">Download PDF</button> -->
  224. </body>
  225. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement