Nav apraksta

newExperience.php 4.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <?php
  2. require_once 'processes/config.php';
  3. require_once 'processes/dbh.inc.php';
  4. require_once 'processes/checkLogin.php';
  5. include_once 'header.php';
  6. ?>
  7. <!-- START OF newExperienceP1.php -->
  8. <body>
  9. <header id="main-header">
  10. <a id="logo" href=".">TANIA</a>
  11. <div id="account">
  12. <a class="nav-link" href="./questionnaires.php">Questionnaire Collection</a>
  13. <a class="sign-out" href="./processes/logout.php">Sign Out</a>
  14. </div>
  15. </header>
  16. <div class='container' style="margin-top: 12vh;">
  17. <br>
  18. <div class='row'>
  19. <div class='col-sm-10'>
  20. <h2>Brand New Experience <small>(Basic Info)</small></h2>
  21. <h3><small>Start creating a new experience by first adding its basic info.</small></h3>
  22. </div>
  23. </div><!--row-->
  24. <hr>
  25. <!-- <div class='row'><div class='col'><br><hr><br></div></div> -->
  26. <form class='form-horizontal' method='POST' action='processes/insertExperience.php'>
  27. <!-- TITLE -->
  28. <div class='form-group'>
  29. <label class='control-label col-sm-2' for='e_title'>Title:</label>
  30. <div class='col-sm-9'>
  31. <input type='text' class='form-control text-center' id='e_title' name='title' placeholder='New Experience Title' required>
  32. </div>
  33. </div>
  34. <!-- DESCRIPTION -->
  35. <div class='form-group'>
  36. <label class='control-label col-sm-2' for='e_description'>Description:</label>
  37. <div class='col-sm-9'>
  38. <textarea class='form-control text-center' id='e_description' name='description' rows='1' style='resize:vertical;' placeholder='New Experience Description' required></textarea>
  39. </div>
  40. </div>
  41. <!-- TYPE -->
  42. <div class='form-group'>
  43. <label class='control-label col-sm-2' for='e_description'>Type:</label>
  44. <div class='col-sm-9'>
  45. <input type='text' class='form-control text-center' id='e_description' name='type' placeholder='New Experience Type' required>
  46. </div>
  47. </div>
  48. <!-- DURATION -->
  49. <div class='form-group'>
  50. <label class='control-label col-sm-2' for='e_description'>Duration:</label>
  51. <div class='col-sm-9'>
  52. <input type='number' class='form-control text-center' id='e_description' name='duration' placeholder='New Experience Duration' required>
  53. </div>
  54. </div>
  55. <!-- START DATE -->
  56. <div class='form-group'>
  57. <label class='control-label col-sm-2' for='e_start'>Start Date:</label>
  58. <div class='col-sm-9'>
  59. <input type='date' class='form-control text-center' id='e_start' name='start' placeholder='New Experience Start Date' required>
  60. </div>
  61. </div>
  62. <!-- END DATE -->
  63. <div class='form-group'>
  64. <label class='control-label col-sm-2' for='e_end'>End Date:</label>
  65. <div class='col-sm-9'>
  66. <input type='date' class='form-control text-center' id='e_end' name='end' placeholder='New Experience End Date' required>
  67. </div>
  68. </div>
  69. <!-- INSTITUTION -->
  70. <div class='form-group'>
  71. <label class='control-label col-sm-2' for='e_institution'>Institution:</label>
  72. <div class='col-sm-9'>
  73. <select id='e_institution' name='institution' style='width:100%;' required>
  74. <option disabled selected>Select an Institution</option>
  75. <?php
  76. $query = "SELECT * FROM `institution`;";
  77. $result = mysqli_query($connection, $query);
  78. while($row = mysqli_fetch_assoc($result)):
  79. ?>
  80. <option value='<?php echo $row['id']; ?>'><?php echo $row['name']; ?></option>
  81. <?php endwhile; ?>
  82. </select>
  83. </div>
  84. </div>
  85. <!-- SUBMIT -->
  86. <br><br>
  87. <div class='form-group text-center'>
  88. <div class='col-sm-offset-10 col-sm-2'>
  89. <button id='adding' type='submit' class='btn btn-default' name='submitExperience'>Create Experience</button>
  90. </div>
  91. </div>
  92. </form>
  93. </div>
  94. <!-- END OF newExperienceP1.php -->
  95. <!-- INSTITUTION, EXPERIENCE_QUESTIONNAIR, SUBQUESTIONNAIR, EXPERIENCE_SUBQUESTIONNAIR, REMINDER_SUBQUESTIONNAIR?, SCHEDULE?, REMINDER_STUDENT_SUBQUESTIONNAIR?-->
  96. <?php include_once 'footer.php'; ?>