Guest User

Untitled

a guest
Jan 27th, 2021
1,091
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html>
  2. <html lang="en">
  3.  
  4. <head>
  5. <?php include '../php/registration-head.php';?>
  6. <title>History of Romania Quiz - Registration</title>
  7. <script src="../js/registration.js"></script>
  8. </head>
  9.  
  10. <!-- To keep it in the center of page-->
  11.  
  12. <img class="wave" src="../img/wave.png">
  13. <div class="container_main">
  14. <div class="img">
  15. <img src="../img/bg.svg">
  16. </div>
  17. <body class="jumbotron vertical-center">
  18. <div class="container_main">
  19. <div class="row">
  20. <div class="col-md-12 login-form ">
  21. <h3>Create an account</h3>
  22. <form class="form" action="../php/add-account.php " method="post" enctype="multipart/form-data" autocomplete="off " id="registerForm">
  23. <div class="form-group btn-group btn-group-toggle" data-toggle="buttons">
  24. <label class="btn btn-secondary" id="studentac">
  25. <input type="radio" name="usertype" id="option1" value="student" autocomplete="off" onclick="StudentForm();" checked/>
  26. Student Account
  27. </label>
  28. <label class="btn btn-secondary active" id="teacherac">
  29. <input type="radio" name="usertype" id="option2" value="teacher" autocomplete="off" onclick="TeacherForm();" />
  30. Teacher Account
  31. </label>
  32. </div>
  33.  
  34. <div class="form-group">
  35. <input type="text" class="form-control" placeholder="User ID * " name="userid" id="userID" required />
  36. </div>
  37. <div class="error-message" id="errorMessage1"></div>
  38. <div class="form-group">
  39. <input type="text" class="form-control" placeholder="Nickname * " name="nickname" required />
  40. </div>
  41.  
  42. <div class="form-group">
  43. <input type="email" class="form-control" placeholder="Email * " name="email" id="email" required />
  44. </div>
  45. <div class="error-message" id="errorMessage2"></div>
  46. <div class="form-group">
  47. <input type="password" class="form-control " placeholder="Password * " name="password" autocomplete="new-password" id="password" required />
  48. </div>
  49.  
  50. <div class="form-group">
  51. <input type="password" class="form-control" placeholder="Confirm Password * " name="confirmpassword" autocomplete="new-password" id="confirmPassword" required />
  52. </div>
  53. <div class="error-message" id="errorMessage3"></div>
  54. <div class="form-group ">
  55. <label>Upload your profile image: </label><input type="file" class="form-control-file" name="avatar" accept="image/*" required />
  56. </div>
  57. <div id="studentform">
  58. <div class="form-group">
  59. <input type="date" name="birthday" id="birthday" class="form-control" placeholder="Your Birthday * " required/></div>
  60. <div class="form-row form-group" style="text-align: center; width: auto;">
  61. <div class="col">
  62. <input type="radio" id="male" name="gender" value="M" checked="checked">
  63. <label for="male">Male</label>
  64. </div>
  65. <div class="col">
  66. <input type="radio" id="female" name="gender" value="F">
  67. <label for="female">Female</label>
  68. </div>
  69. </div>
  70. </div>
  71. <div id="teacherform">
  72. <div class="form-group">
  73.  
  74. <label for="">Course code: </label>
  75. <div id="course1space">
  76. <input type="text" class="form-control" placeholder="Course * " name="course1" id="course1" required /></br>
  77. <div id="course2space"></div>
  78. </div>
  79. <input type="hidden" name="CourseNum" id="coursenum" value="1" />
  80. <input type="button" value="Add New..." id="morecourse" class="btn btn-primary" onclick="MoreCourse();" />
  81. <input type="button" value="Reset" id="resetcourse" class="btn btn-primary" onclick="ResetCourse();" />
  82. </div>
  83. <div class="error-message" id="errorMessage4"></div>
  84. </div>
  85.  
  86. <div class="form-row form-group">
  87. <div class="col">
  88. <label>Select a security question:</label>
  89. </div>
  90. <div class="col">
  91. <select class="form-control" name="securityType" id="security">
  92. <option value="-1" selected disabled hidden></option>
  93. <option value="1">Where do you live?</option>
  94. <option value="2">What game do you like?</option>
  95. <option value="3">Who is your favorite athelete?</option>
  96. <option value="4">What is the name of your father?</option>
  97. <option value="5">What is your dream?</option>
  98. </select>
  99. </div>
  100. <div class="error-message" id="errorMessage5"></div>
  101. </div>
  102. <div class="form-group">
  103. <input type="text" class="form-control" placeholder="Answer * " name="securityAnswer" required />
  104. </div>
  105. <div>
  106. <input type="button" value="Register" name="register" class="btn btn-block btn-primary" onclick="Register();" />
  107. <a href="../index.html" class=" "> Already have an account? Login here</a></h6>
  108. </div>
  109. <input type="hidden" name="source" value="register" hidden />
  110. <input type="Submit" id="submit" hidden />
  111. </form>
  112. </div>
  113. </div>
  114. </div>
  115. </body>
  116.  
  117. </html>
RAW Paste Data