index.html 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>查询记录</title>
  6. </head>
  7. <body>
  8. <link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/5.3.3/css/bootstrap.min.css" rel="stylesheet">
  9. <div class="container mt-5">
  10. <form class="mb-3" method="post">
  11. <div>
  12. <label class="form-label" for="staff_id">Staff ID:</label>
  13. <input class="form-control" type="text" id="staff_id"
  14. name="staff_id"
  15. value="{{ form["staff_id"] }}">
  16. </div>
  17. <div>
  18. <label class="form-label" for="video_id">Video ID:</label>
  19. <input class="form-control" type="text" id="video_id"
  20. name="video_id"
  21. value="{{ form["video_id"] }}">
  22. <br>
  23. </div>
  24. <button class="btn btn-primary" type="submit">查询</button>
  25. </form>
  26. <table class="table table-striped" border="1">
  27. <tr>
  28. <th>Staff ID</th>
  29. <th>Remark</th>
  30. <th>Video ID</th>
  31. <th>Send Time</th>
  32. <th>Days Ago</th>
  33. </tr>
  34. {% for row in results %}
  35. <tr>
  36. <td>{{ row[0] }}</td>
  37. <td>{{ row[1] }}</td>
  38. <td>{{ row[2] }}</td>
  39. <td>{{ row[3] }}</td>
  40. <td>{{ row[4] }}</td>
  41. </tr>
  42. {% endfor %}
  43. </table>
  44. </div>
  45. </body>
  46. </html>