abonnes.html 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  6. <link type="text/css" rel="stylesheet" href="css/material-icons.css" />
  7. <link type="text/css" rel="stylesheet" href="css/materialize.min.css" media="screen,projection" />
  8. <link type="text/css" rel="stylesheet" href="css/style.min.css" media="screen,projection" />
  9. <link rel="icon" href="img/favicon.ico" />
  10. <title>Abonnes - Microfolie Lens</title>
  11. </head>
  12. <body class="grey lighten-3">
  13. <!-- Header -->
  14. <header class="navbar-fixed">
  15. <nav class="red">
  16. <div class="nav-wrapper">
  17. <a href="./" class="brand-logo center mtop-half hide-on-med-and-down"><img src="img/logo.png"
  18. title="Logo Microfolie" class="responsive-img" style="max-width: 128px;" /></a>
  19. <a href="./" class="brand-logo center hide-on-large-only">Microfolie Lens</a>
  20. <a href="#!" data-target="mobile-nav" class="sidenav-trigger"><i class="material-icons">menu</i></a>
  21. <div class="left mleft-2 hide-on-med-and-down">
  22. <a href="./">
  23. <h5>Microfolie Lens</h5>
  24. </a>
  25. </div>
  26. <ul class="right mright-2 hide-on-med-and-down">
  27. <li class="active"><a href="abonnes.html">Abonn&eacute;s</a></li>
  28. <li><a href="inscription.jsp">Inscription</a></li>
  29. <li><a href="settings">Param&eacute;trage espace</a></li>
  30. </ul>
  31. </div>
  32. </nav>
  33. </header>
  34. <!-- Header Mobile -->
  35. <ul class="sidenav" id="mobile-nav">
  36. <li class="center-align mtop-1">
  37. <img src="img/logo.png" title="Logo Microfolie" class="responsive-img" style="max-height: 150px;" />
  38. </li>
  39. <li class="center-align">
  40. <h4>Microfolie Lens</h4>
  41. <hr />
  42. </li>
  43. <li class="active"><a href="abonnes.html">Abonn&eacute;s</a></li>
  44. <li><a href="inscription.jsp">Inscription</a></li>
  45. <li><a href="settings">Param&eacute;trage espace</a></li>
  46. </ul>
  47. <div class="mtop-5 hide-on-med-and-down"></div>
  48. <!-- Main -->
  49. <main class="container">
  50. <div class="row">
  51. <div class="col s12 center-align">
  52. <h3>Abonn&eacute;s</h3>
  53. </div>
  54. </div>
  55. <div class="row">
  56. <div id="abo" class="col s12 center-align"></div>
  57. </div>
  58. <div class="row">
  59. <div id="pagination-abo" class="col s12 center-align"></div>
  60. </div>
  61. </main>
  62. <!-- Footer -->
  63. <footer class="page-footer red">
  64. <div class="container">
  65. <div class="row">
  66. <div class="col l6 s12">
  67. <h5 class="white-text">Microfolie Lens</h5>
  68. <p class="grey-text text-lighten-4">Bla bla bla ...</p>
  69. </div>
  70. <div class="col l4 offset-l2 s12">
  71. <h5 class="white-text">Liens utiles</h5>
  72. <ul>
  73. <li><a class="grey-text text-lighten-3" href="./">Accueil</a></li>
  74. <li><a class="grey-text text-lighten-3" href="#apropos">Qui somme nous</a></li>
  75. <li><a class="grey-text text-lighten-3" href="#mention">Mentions l&eacute;gales</a></li>
  76. <li><a class="grey-text text-lighten-3" href="#contact">Contact</a></li>
  77. </ul>
  78. </div>
  79. </div>
  80. </div>
  81. <div class="footer-copyright">
  82. <div class="container">
  83. © 2019 Copyright Text
  84. <a class="grey-text text-lighten-4 right" href="https://villedelens.fr" target="_blank">Ville de
  85. Lens</a>
  86. </div>
  87. </div>
  88. </footer>
  89. <!-- Script -->
  90. <script type="text/javascript" src="js/jquery.min.js"></script>
  91. <script type="text/javascript" src="js/materialize.min.js"></script>
  92. <script type="text/javascript" src="js/script.js"></script>
  93. <!-- Script pour cette page-->
  94. <script type="text/javascript">
  95. var data = [
  96. [
  97. {
  98. 'nom': 'Mollin',
  99. 'prenom': 'Jean',
  100. 'ville': 'Lens',
  101. 'email': 'jmollin@email.fr'
  102. },
  103. {
  104. 'nom': 'Mollin',
  105. 'prenom': 'Emillie',
  106. 'ville': 'Lens',
  107. 'email': 'emollin@email.fr'
  108. },
  109. {
  110. 'nom': 'Reuli',
  111. 'prenom': 'Robert',
  112. 'ville': 'Lens',
  113. 'email': 'robert.reuli@mail.com'
  114. }
  115. ],
  116. [
  117. {
  118. 'nom': 'Dufour',
  119. 'prenom': 'George',
  120. 'ville': 'Lens',
  121. 'email': 'dufour-george@email.fr'
  122. },
  123. {
  124. 'nom': 'Ellestou',
  125. 'prenom': 'Jeanne',
  126. 'ville': 'Lens',
  127. 'email': 'j.ellestou@entreprise.net'
  128. },
  129. {
  130. 'nom': 'Pandragron',
  131. 'prenom': 'Artoria',
  132. 'ville': 'Lens',
  133. 'email': 'apandra@sab.er'
  134. }
  135. ],
  136. [
  137. {
  138. 'nom': 'Shepard',
  139. 'prenom': 'John',
  140. 'ville': 'Lens',
  141. 'email': 'j-shepard@sr2.normandy.fr'
  142. },
  143. {
  144. 'nom': 'Notece',
  145. 'prenom': 'Lea',
  146. 'ville': 'Lens',
  147. 'email': 'lea@notece.fr'
  148. }
  149. ]
  150. ]
  151. const idPagination = 'abo';
  152. $(document).ready(() => {
  153. pagination(idPagination, 1, 3, 8, $('#abo'), $('#pagination-abo'), data[0]);
  154. // Detection changement page
  155. $('main').on('click', `.pagination-${idPagination}-prev`, function () {
  156. console.log(idPagination, 'prev', $(this).attr('data-page'));
  157. pagination(idPagination, $(this).attr('data-page'), 4, 12, $('#abo'), $('#pagination-abo'), data[$(this).attr('data-page') - 1]);
  158. });
  159. $('main').on('click', `.pagination-${idPagination}-next`, function () {
  160. console.log('abo', 'next', $(this).attr('data-page'));
  161. pagination(idPagination, $(this).attr('data-page'), 4, 12, $('#abo'), $('#pagination-abo'), data[$(this).attr('data-page') - 1]);
  162. });
  163. $('main').on('click', `.pagination-${idPagination}-number`, function () {
  164. console.log('abo', 'num', $(this).attr('data-page'));
  165. pagination(idPagination, $(this).attr('data-page'), 4, 12, $('#abo'), $('#pagination-abo'), data[$(this).attr('data-page') - 1]);
  166. });
  167. });
  168. </script>
  169. </body>
  170. </html>