Proyecto en colaboración con OPASO

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <!-- Authors : Carlos C. Corrada-Bravo
  2. David J. Ortiz-Rivera
  3. Organization : Centro de Desarrollo y Consultoria Computacional
  4. Project : OPASO Material Registry
  5. File : menu
  6. Description : Display user menu -->
  7. <!-- verify session -->
  8. <?php require_once("header.php");?>
  9. <!doctype html>
  10. <html lang="en">
  11. <!-- encoding/imports/styling -->
  12. <head>
  13. <meta charset="utf-8">
  14. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  15. <title class="title">Menu</title>
  16. <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous">
  17. <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
  18. <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">
  19. <link rel="stylesheet" href="/style/main.css">
  20. <link rel="stylesheet" href="/style/menu.css">
  21. </head>
  22. <!-- content -->
  23. <body>
  24. <div class="content">
  25. <!-- navbar -->
  26. <?php require_once("navbar.php")?>
  27. <div class="main">
  28. <div class="header-wrapper">
  29. <h5 class="header">Menu</h5>
  30. <!-- processing -->
  31. <div class="processing">
  32. <p class="processing-text">Fetching laboratories...</p>
  33. <div class="loader"></div>
  34. </div>
  35. </div>
  36. <div class="main-wrapper">
  37. <!-- Menu -->
  38. <div class="menu">
  39. <div class="sub-menu-wrapper">
  40. <?php
  41. if(($_SESSION["access_level"] === "admin") or ($_SESSION["access_level"] === "investigator")){
  42. echo '<div class="sub-menu admin">
  43. <h6 class="header">Admin</h6><br>
  44. <div class="col-lg-5 menu-link-wrapper">
  45. <a class="menu-link" href="/manage-personnel">Mangage Personnel
  46. <i class="fas fa-user-alt menu-link-icon"></i>
  47. </a>
  48. </div>
  49. <div class="col-lg-5 menu-link-wrapper">
  50. <a class="menu-link" href="/manage-laboratories">Mangage Laboratories
  51. <i class="fas fa-building menu-link-icon"></i>
  52. </a>
  53. </div>
  54. <div class="col-lg-5 menu-link-wrapper">
  55. <a class="menu-link" href="/transactions">Transactions
  56. <i class="material-icons menu-link-icon">attach_money</i>
  57. </a>
  58. </div>';
  59. if($_SESSION["access_level"] === "admin"){
  60. echo '<div class="col-lg-5 menu-link-wrapper">
  61. <a class="menu-link" href="/requests">Requests
  62. <i class="material-icons menu-link-icon">notes</i>
  63. </a>
  64. </div>';
  65. }
  66. echo '</div>';
  67. }
  68. ?>
  69. <div class="sub-menu materials">
  70. <h6 class="header">Materials</h6><br>
  71. <div class="col-lg-5 menu-link-wrapper">
  72. <a class="menu-link" href="/materials">See Materials
  73. <i class="fas fa-flask menu-link-icon"></i>
  74. </a>
  75. </div>
  76. <div class="col-lg-5 menu-link-wrapper">
  77. <a class="menu-link" href="/hazards">See Materials by Hazard
  78. <i class="material-icons menu-link-icon">warning</i>
  79. </a>
  80. </div>
  81. <div class="col-lg-5 menu-link-wrapper">
  82. <a class="menu-link" href="/offered">Offered Materials
  83. <i class="material-icons menu-link-icon">redeem</i>
  84. </a>
  85. </div>
  86. </div>
  87. </div>
  88. <div class="sub-menu-wrapper">
  89. <div class="sub-menu laboratories">
  90. <h6 class="header">Laboratories</h6><br>
  91. </div>
  92. </div>
  93. </div>
  94. </div>
  95. </div>
  96. <!-- footer -->
  97. <?php require_once("footer.php")?>
  98. </div>
  99. <!-- scripts -->
  100. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
  101. <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.6/umd/popper.min.js" integrity="sha384-wHAiFfRlMFy6i5SRaxvfOCifBUQy1xHdJ/yoi7FRNXMRBu5WHdZYu1hA6ZOblgut" crossorigin="anonymous"></script>
  102. <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/js/bootstrap.min.js" integrity="sha384-B0UglyR+jN6CkvvICOB2joaf5I4l3gm9GU6Hc1og6Ls7i6U/mkkaduKaBhlAXv9k" crossorigin="anonymous"></script>
  103. <script type="text/javascript" src="/scripts/main.js"></script>
  104. <script type="text/javascript" src="/scripts/menu.js"></script>
  105. </body>
  106. </html>