student.php 797 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. $root = $_SERVER['DOCUMENT_ROOT'];
  3. include($root . "/util/session.php");//checks that the user is logged in
  4. include($root . "/util/privilege_check.php");
  5. checkPrivilege("student");
  6. if(!empty($_GET['msg'])){
  7. $msg=$_GET['msg'];
  8. }
  9. ?>
  10. <html>
  11. <head>
  12. <title>Student Menu</title>
  13. <link rel="stylesheet" type="text/css" href="studentStyle.css">
  14. </head>
  15. <body>
  16. <?php
  17. include($root . "/student/header.php")
  18. ?>
  19. <div style = "font-size:14px; color:#33cc33; margin-top:10px"><?php
  20. if(isset($msg)){
  21. echo $msg;
  22. } ?>
  23. </div>
  24. <div id="menu">
  25. <ul>
  26. <li><a href="/student/checkExams.php">Start an exam</a></li>
  27. <li><a href="/student/checkResults.php">Check scores</a></li>
  28. </ul>
  29. </div>
  30. <?php
  31. include($root . "/student/footer.php")
  32. ?>
  33. </body>
  34. </html>