index.jsp 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. <%@ page language="java" contentType="text/html; charset=utf-8"
  2. pageEncoding="utf-8"%>
  3. <%@ taglib prefix="s" uri="/struts-tags"%>
  4. <!DOCTYPE html>
  5. <html>
  6. <head>
  7. <meta charset="UTF-8">
  8. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  9. <link type="text/css" rel="stylesheet" href="css/material-icons.css" />
  10. <link type="text/css" rel="stylesheet" href="css/materialize.min.css" media="screen,projection" />
  11. <link type="text/css" rel="stylesheet" href="css/style.min.css" media="screen,projection" />
  12. <link rel="icon" href="img/favicon.ico" />
  13. <title>Accueil - Microfolie Lens</title>
  14. </head>
  15. <body class="grey lighten-3">
  16. <s:url var="inscriptionurl" action="gotoinscription"/>
  17. <!-- Header -->
  18. <header class="navbar-fixed">
  19. <nav class="red">
  20. <div class="nav-wrapper">
  21. <a href="./" class="brand-logo center mtop-half hide-on-med-and-down"><img src="img/logo.png"
  22. title="Logo Microfolie" class="responsive-img" style="max-width: 128px;" /></a>
  23. <a href="./" class="brand-logo center hide-on-large-only">Microfolie Lens</a>
  24. <a href="#!" data-target="mobile-nav" class="sidenav-trigger"><i class="material-icons">menu</i></a>
  25. <div class="left mleft-2 hide-on-med-and-down">
  26. <a href="./">
  27. <h5>Microfolie Lens</h5>
  28. </a>
  29. </div>
  30. <ul class="right mright-2 hide-on-med-and-down">
  31. <li><a href="abonnes.html">Abonn&eacute;s</a></li>
  32. <li><a href="${inscriptionurl}">Inscription</a></li>
  33. <li><a href="settings">Param&eacute;trage espace</a></li>
  34. </ul>
  35. </div>
  36. </nav>
  37. </header>
  38. <!-- Header Mobile -->
  39. <ul class="sidenav" id="mobile-nav">
  40. <li class="center-align mtop-1">
  41. <img src="img/logo.png" title="Logo Microfolie" class="responsive-img" style="max-height: 150px;" />
  42. </li>
  43. <li class="center-align">
  44. <h4>Microfolie Lens</h4>
  45. <hr />
  46. </li>
  47. <li><a href="abonnes.html">Abonn&eacute;s</a></li>
  48. <li><a href="${inscriptionurl}">Inscription</a></li>
  49. <li><a href="settings">Param&eacute;trage espace</a></li>
  50. </ul>
  51. <div class="mtop-5 hide-on-med-and-down"></div>
  52. <!-- Main -->
  53. <main class="container">
  54. <div class="row">
  55. <div class="col s12 center-align">
  56. <h3>Dashboard</h3>
  57. </div>
  58. </div>
  59. <div class="row">
  60. <div class="col m12 l6">
  61. <canvas id="espaceToday"></canvas>
  62. </div>
  63. <div class="col m12 l6">
  64. <canvas id="espaceMonth"></canvas>
  65. </div>
  66. </div>
  67. <div class="row mtop-2">
  68. <div class="col m12 l6">
  69. <canvas id="freqWeek"></canvas>
  70. </div>
  71. <div class="col m12 l6">
  72. <canvas id="freqHours"></canvas>
  73. </div>
  74. </div>
  75. </main>
  76. <!-- Footer -->
  77. <footer class="page-footer red">
  78. <div class="container">
  79. <div class="row">
  80. <div class="col l6 s12">
  81. <h5 class="white-text">Microfolie Lens</h5>
  82. <p class="grey-text text-lighten-4">Bla bla bla ...</p>
  83. </div>
  84. <div class="col l4 offset-l2 s12">
  85. <h5 class="white-text">Liens utiles</h5>
  86. <ul>
  87. <li><a class="grey-text text-lighten-3" href="./">Accueil</a></li>
  88. <li><a class="grey-text text-lighten-3" href="#apropos">Qui somme nous</a></li>
  89. <li><a class="grey-text text-lighten-3" href="#mention">Mentions l&eacute;gales</a></li>
  90. <li><a class="grey-text text-lighten-3" href="#contact">Contact</a></li>
  91. </ul>
  92. </div>
  93. </div>
  94. </div>
  95. <div class="footer-copyright">
  96. <div class="container">
  97. © 2019 Copyright Text
  98. <a class="grey-text text-lighten-4 right" href="https://villedelens.fr" target="_blank">Ville de
  99. Lens</a>
  100. </div>
  101. </div>
  102. </footer>
  103. <!-- Script -->
  104. <script type="text/javascript" src="js/jquery.min.js"></script>
  105. <script type="text/javascript" src="js/materialize.min.js"></script>
  106. <script type="text/javascript" src="js/script.js"></script>
  107. <!-- Script pour cette page-->
  108. <script type="text/javascript" src="js/chart.min.js"></script>
  109. <script type="text/javascript" src="js/generate-chart.js"></script>
  110. <script type="text/javascript">
  111. $(document).ready(() => {
  112. generateBarChart(
  113. document.getElementById('espaceToday'),
  114. 'Fréquentation des espaces aujourd\'hui',
  115. ["Accueil", "Realite Virtuelle", "Musee Numerique", "Cyber Base", "Shooting Photo", "Jeux Videos", "Espace Scenique"],
  116. [{
  117. title: 'Actuel',
  118. value: [60, 46, 30, 28, 22, 35, 9],
  119. color: { r: 255, g: 99, b: 132 }
  120. },
  121. {
  122. title: 'Moyenne 2019',
  123. value: [88, 42, 21, 34, 19, 38, 11],
  124. color: { r: 235, g: 192, b: 52 }
  125. }]
  126. );
  127. generateBarChart(
  128. document.getElementById('espaceMonth'),
  129. 'Fréquentation des espaces ce mois-ci',
  130. ["Accueil", "Realite Virtuelle", "Musee Numerique", "Cyber Base", "Shooting Photo", "Jeux Videos", "Espace Scenique"],
  131. [{
  132. title: 'Actuel',
  133. value: [260, 146, 90, 128, 112, 235, 109],
  134. color: { r: 255, g: 99, b: 132 }
  135. },
  136. {
  137. title: 'Moyenne 2019',
  138. value: [260, 142, 157, 132, 101, 191, 118],
  139. color: { r: 235, g: 192, b: 52 }
  140. }]
  141. );
  142. generateBarChart(
  143. document.getElementById('freqWeek'),
  144. 'Fréquentation par jours',
  145. ["Mardi", "Mercredi", "Jeudi", "Vendredi", "Samedi"],
  146. [{
  147. title: 'Actuel',
  148. value: [60, 46, 30, 28, 22]
  149. },
  150. {
  151. title: 'Moyenne 2019',
  152. value: [88, 42, 21, 34, 19],
  153. line: true
  154. }]
  155. );
  156. generateBarChart(
  157. document.getElementById('freqHours'),
  158. 'Fréquentation par heures',
  159. ["09H00-11H00", "11H00-13H00", "13H00-15H00", "15H00-17H00", "17H00-19H00"],
  160. [{
  161. title: 'Actuel',
  162. value: [10, 8, 4, 20, 12],
  163. },
  164. {
  165. title: 'Moyenne 2019',
  166. value: [14, 6, 5, 18, 14],
  167. line: true
  168. }]
  169. );
  170. });
  171. </script>
  172. </body>
  173. </html>