Proyecto en colaboración con OPASO

transactions.php 4.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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 : transactions
  6. Description : Display transactions -->
  7. <!-- verify session -->
  8. <?php require_once("header.php");
  9. /* start user session */
  10. if(!isset($_SESSION)){
  11. session_start();
  12. }
  13. if(!($_SESSION["access_level"] === "admin") and !($_SESSION["access_level"] === "investigator")){
  14. header("Location: /menu");
  15. die();
  16. }
  17. ?>
  18. <!doctype html>
  19. <html lang="en">
  20. <!-- encoding/imports/styling -->
  21. <head>
  22. <meta charset="utf-8">
  23. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  24. <title class="title">Transactions</title>
  25. <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous">
  26. <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
  27. <link rel="stylesheet" href="/style/main.css">
  28. </head>
  29. <!-- content -->
  30. <body>
  31. <!-- alerts -->
  32. <div class="alerts">
  33. <div class="alert">
  34. <div class="message-icon-wrapper">
  35. <i class="message-icon success-icon material-icons">done</i>
  36. <i class="message-icon error-icon failed-icon warning-icon material-icons">close</i>
  37. </div>
  38. <p class="alert-status"></p>
  39. <p class="alert-message"></p>
  40. </div>
  41. </div>
  42. <div class="content">
  43. <!-- navbar -->
  44. <?php require_once("navbar.php")?>
  45. <div class="main">
  46. <div class="header-wrapper">
  47. <h5 class="header">Transactions</h5>
  48. <!-- processing -->
  49. <div class="processing">
  50. <p class="processing-text">Fetching transactions...</p>
  51. <div class="loader"></div>
  52. </div>
  53. </div>
  54. <div class="main-wrapper">
  55. <div class="float-right">
  56. <div class="search-form-wrapper">
  57. <input class="search-form" placeholder="Search for transactions" type="text" name="search-form">
  58. <button class="clear-btn search-form-submit">
  59. <i class="material-icons clear-icon">close</i>
  60. </button>
  61. </div>
  62. </div>
  63. <!-- transaction -->
  64. <h6 class="header sub-header"></h6>
  65. <div class="table-wrapper content-wrapper">
  66. <table class="table">
  67. <thead class="table-header">
  68. <tr>
  69. <th class="sort" value="mat_name" >Type</th>
  70. <th class="sort" value="man_name">Person</th>
  71. <th value="">Date</th>
  72. <th value="">Material</th>
  73. <th value="">Manufacturer</th>
  74. <th >Lab</th>
  75. <th value="uom">Capacity</th>
  76. <th >Amount</th>
  77. </tr>
  78. </thead>
  79. <tbody></tbody>
  80. </table>
  81. </div>
  82. <h6 class="header table-total"></h6>
  83. </div>
  84. </div>
  85. <!-- footer -->
  86. <?php require_once("footer.php")?>
  87. </div>
  88. <!-- scripts -->
  89. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
  90. <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.6/umd/popper.min.js" integrity="sha384-wHAiFfRlMFy6i5SRaxvfOCifBUQy1xHdJ/yoi7FRNXMRBu5WHdZYu1hA6ZOblgut" crossorigin="anonymous"></script>
  91. <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/js/bootstrap.min.js" integrity="sha384-B0UglyR+jN6CkvvICOB2joaf5I4l3gm9GU6Hc1og6Ls7i6U/mkkaduKaBhlAXv9k" crossorigin="anonymous"></script>
  92. <script type="text/javascript" src="/scripts/main.js"></script>
  93. <script type="text/javascript" src="/scripts/transactions.js"></script>
  94. </body>
  95. </html>