registration.html 4.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Title</title>
  6. </head>
  7. <body>
  8. </body>
  9. </html><!DOCTYPE html>
  10. <html lang="en">
  11. <head>
  12. <meta charset="UTF-8">
  13. <title>Aisky-coffee</title>
  14. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  15. <!-- 新 Bootstrap4 核心 CSS 文件 -->
  16. <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/4.1.0/css/bootstrap.min.css">
  17. <!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
  18. <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
  19. <!-- popper.min.js 用于弹窗、提示、下拉菜单 -->
  20. <script src="https://cdn.bootcss.com/popper.js/1.12.5/umd/popper.min.js"></script>
  21. <!-- 最新的 Bootstrap4 核心 JavaScript 文件 -->
  22. <script src="https://cdn.bootcss.com/bootstrap/4.1.0/js/bootstrap.min.js"></script>
  23. <!-- Benson 輸入欄位的格式判斷 -->
  24. <script src="../static/js/registration.js"></script>
  25. <link rel="stylesheet" href="../static/css/registration.css">
  26. </head>
  27. <body>
  28. <div class="container">
  29. <div class="row">
  30. <div class="col-2"></div>
  31. <div class="col">
  32. <div class="row">
  33. <div class="col-4"></div>
  34. <div class="col-4">
  35. <img src="../static/img/coffee.jpg" class="img-fluid">
  36. </div>
  37. <div class="col-4"></div>
  38. </div>
  39. <h1 class="text-center">Registration</h1>
  40. <form method="post" action="/register">
  41. <div class="form">
  42. <div class="wrong-info"><span id="firstname-span"></span></div>
  43. <div class="form-inline">
  44. <label for="first">First Name</label>
  45. <input type="text" class="form-control" id="first" name="firstname">
  46. </div>
  47. <div class="wrong-info"><span id="lastname-span"></span></div>
  48. <div class="form-inline">
  49. <label for="last">Last Name</label>
  50. <input type="text" class="form-control" id="last" name="lastname">
  51. </div>
  52. <div class="wrong-info"><span id="email-span"></span></div>
  53. <div class="form-inline">
  54. <label for="email">Email</label>
  55. <input type="email" class="form-control" id="email" name="email">
  56. </div>
  57. <div class="wrong-info"><span id="phone-span"></span></div>
  58. <div class="form-inline">
  59. <label for="phone">Phone</label>
  60. <input type="number" class="form-control" id="phone" name="phone">
  61. </div>
  62. <div class="wrong-info"><span id="username-span"></span></div>
  63. <div class="form-inline">
  64. <label for="usr">User Name</label>
  65. <input type="text" class="form-control" id="usr" name="username">
  66. </div>
  67. <div class="wrong-info"><span id="password-span"></span></div>
  68. <div class="form-inline">
  69. <label for="pwd">Password</label>
  70. <input type="password" class="form-control" id="pwd" name="password">
  71. </div>
  72. <div class="wrong-info"><span></span></div>
  73. <div class="form-inline">
  74. <label for="cpwd">Confirm Password</label>
  75. <input type="password" class="form-control" id="cpwd" name="confirmpwd">
  76. </div>
  77. </div>
  78. <div>
  79. <input type="submit" class="btn btn-info" value="Register">
  80. <input type="button" class="btn btn-info" value="Cancel" onclick="Login()">
  81. </div>
  82. </form>
  83. </div>
  84. <div class="col-2"></div>
  85. </div>
  86. </div>
  87. </body>
  88. </html>