Bez popisu

subquestionnaires.php 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <!---
  2. Developer: Coralys Cubero Rivera
  3. Fall 2018
  4. The program displays a table listing all the subquestionnaires that are saved in our system.
  5. It gives the user the ability to add more and to delete whichever one he doesn't want.
  6. Updated by: Víctor A. Hernández
  7. Summer 2019
  8. --->
  9. <?php
  10. require_once 'processes/config.php';
  11. require_once 'processes/dbh.inc.php';
  12. include_once 'header.php';
  13. ?>
  14. <!-- Subquestionnaires -->
  15. <div class='container'>
  16. <br>
  17. <h3>SUB-QUESTIONNAIRES</h3>
  18. <br>
  19. <a class='btn btn-info' href='newSubquestionnaire.php' style='color:white'><b> New Subquestionnaire </b></a>
  20. <br><br>
  21. <table class='table table-hover' id='tableEvaluations'>
  22. <?php
  23. $query = "SELECT * FROM `subquestionnair`;";
  24. $result = mysqli_query($connection, $query);
  25. echo "
  26. <thead>
  27. <tr>
  28. <th> ID </th>
  29. <th> Title </th>
  30. <th> Description </th>
  31. </tr>
  32. </thead>
  33. <tbody>";
  34. while($row = mysqli_fetch_array($result)) {
  35. echo "<tr>";
  36. echo "<td> <p> ".$row['id']." </p> </td>";
  37. echo "<td> <p> ".$row['title']." </p> </td>";
  38. echo "<td> <p> ".$row['description']." </p> </td>";
  39. echo '<td> <a href="viewSubquestionnaire.php?view='.$row['id'].'"> <b> View </b> </a> </td>';
  40. echo "<td> <a href='confirmDeleteSubquestionnaire.php?del=".$row['id']."'> <b> Delete </b> </a> </td>";
  41. echo "</tr>";
  42. }
  43. echo "</tbody>"
  44. ?>
  45. </table>
  46. </div>
  47. <?php
  48. include_once 'footer.html';
  49. ?>