Reac front end for psicometric app

index.php 8.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  1. <?php include('sidebar.php') ?>
  2. <div id="content">
  3. <?php include('header.php') ?>
  4. <div class="content-section">
  5. <div class="main">
  6. <div class="row">
  7. <div class="col-md-4">
  8. <div class="panel">
  9. <h1>Reporte últimos 30 días</h1>
  10. <canvas id="myChart" width="400" height="400"></canvas>
  11. </div>
  12. </div>
  13. <div class="col-md-4">
  14. <div class="panel">
  15. <h1>Reporte última semana</h1>
  16. <canvas id="myChart1" width="400" height="400"></canvas>
  17. </div>
  18. </div>
  19. <div class="col-md-4">
  20. <div class="panel">
  21. <h1>Reporte diario</h1>
  22. <canvas id="myChart2" width="400" height="400"></canvas>
  23. </div>
  24. </div>
  25. </div>
  26. <div class="row">
  27. <div class="col-md-4">
  28. <div class="panel">
  29. <h1>Reporte últimos 30 días</h1>
  30. <canvas id="myChart3" width="400" height="400"></canvas>
  31. </div>
  32. </div>
  33. <div class="col-md-4">
  34. <div class="panel">
  35. <h1>Reporte última semana</h1>
  36. <canvas id="myChart4" width="400" height="400"></canvas>
  37. </div>
  38. </div>
  39. <div class="col-md-4">
  40. <div class="panel">
  41. <h1>Reporte diario</h1>
  42. <canvas id="myChart5" width="400" height="400"></canvas>
  43. </div>
  44. </div>
  45. </div>
  46. </div>
  47. <?php include('footer.php') ?>
  48. </div>
  49. </div>
  50. <script>
  51. var ctx = document.getElementById("myChart").getContext('2d');
  52. var myChart = new Chart(ctx, {
  53. type: 'bar',
  54. data: {
  55. labels: ["Red", "Blue", "Yellow", "Green", "Purple", "Orange"],
  56. datasets: [{
  57. label: '# of Votes',
  58. data: [12, 19, 3, 5, 2, 3],
  59. backgroundColor: [
  60. 'rgba(255, 99, 132, 0.2)',
  61. 'rgba(54, 162, 235, 0.2)',
  62. 'rgba(255, 206, 86, 0.2)',
  63. 'rgba(75, 192, 192, 0.2)',
  64. 'rgba(153, 102, 255, 0.2)',
  65. 'rgba(255, 159, 64, 0.2)'
  66. ],
  67. borderColor: [
  68. 'rgba(255,99,132,1)',
  69. 'rgba(54, 162, 235, 1)',
  70. 'rgba(255, 206, 86, 1)',
  71. 'rgba(75, 192, 192, 1)',
  72. 'rgba(153, 102, 255, 1)',
  73. 'rgba(255, 159, 64, 1)'
  74. ],
  75. borderWidth: 1
  76. }]
  77. },
  78. options: {
  79. scales: {
  80. yAxes: [{
  81. ticks: {
  82. beginAtZero:true
  83. }
  84. }]
  85. }
  86. }
  87. });
  88. </script>
  89. <script>
  90. var ctx = document.getElementById("myChart1").getContext('2d');
  91. var myChart = new Chart(ctx, {
  92. type: 'bar',
  93. data: {
  94. labels: ["Red", "Blue", "Yellow", "Green", "Purple", "Orange"],
  95. datasets: [{
  96. label: '# of Votes',
  97. data: [12, 19, 3, 5, 2, 3],
  98. backgroundColor: [
  99. 'rgba(255, 99, 132, 0.2)',
  100. 'rgba(54, 162, 235, 0.2)',
  101. 'rgba(255, 206, 86, 0.2)',
  102. 'rgba(75, 192, 192, 0.2)',
  103. 'rgba(153, 102, 255, 0.2)',
  104. 'rgba(255, 159, 64, 0.2)'
  105. ],
  106. borderColor: [
  107. 'rgba(255,99,132,1)',
  108. 'rgba(54, 162, 235, 1)',
  109. 'rgba(255, 206, 86, 1)',
  110. 'rgba(75, 192, 192, 1)',
  111. 'rgba(153, 102, 255, 1)',
  112. 'rgba(255, 159, 64, 1)'
  113. ],
  114. borderWidth: 1
  115. }]
  116. },
  117. options: {
  118. scales: {
  119. yAxes: [{
  120. ticks: {
  121. beginAtZero:true
  122. }
  123. }]
  124. }
  125. }
  126. });
  127. </script>
  128. <script>
  129. var ctx = document.getElementById("myChart2").getContext('2d');
  130. var myChart = new Chart(ctx, {
  131. type: 'bar',
  132. data: {
  133. labels: ["Red", "Blue", "Yellow", "Green", "Purple", "Orange"],
  134. datasets: [{
  135. label: '# of Votes',
  136. data: [12, 19, 3, 5, 2, 3],
  137. backgroundColor: [
  138. 'rgba(255, 99, 132, 0.2)',
  139. 'rgba(54, 162, 235, 0.2)',
  140. 'rgba(255, 206, 86, 0.2)',
  141. 'rgba(75, 192, 192, 0.2)',
  142. 'rgba(153, 102, 255, 0.2)',
  143. 'rgba(255, 159, 64, 0.2)'
  144. ],
  145. borderColor: [
  146. 'rgba(255,99,132,1)',
  147. 'rgba(54, 162, 235, 1)',
  148. 'rgba(255, 206, 86, 1)',
  149. 'rgba(75, 192, 192, 1)',
  150. 'rgba(153, 102, 255, 1)',
  151. 'rgba(255, 159, 64, 1)'
  152. ],
  153. borderWidth: 1
  154. }]
  155. },
  156. options: {
  157. scales: {
  158. yAxes: [{
  159. ticks: {
  160. beginAtZero:true
  161. }
  162. }]
  163. }
  164. }
  165. });
  166. </script>
  167. <script>
  168. var ctx = document.getElementById("myChart3").getContext('2d');
  169. var myChart = new Chart(ctx, {
  170. type: 'bar',
  171. data: {
  172. labels: ["Red", "Blue", "Yellow", "Green", "Purple", "Orange"],
  173. datasets: [{
  174. label: '# of Votes',
  175. data: [12, 19, 3, 5, 2, 3],
  176. backgroundColor: [
  177. 'rgba(255, 99, 132, 0.2)',
  178. 'rgba(54, 162, 235, 0.2)',
  179. 'rgba(255, 206, 86, 0.2)',
  180. 'rgba(75, 192, 192, 0.2)',
  181. 'rgba(153, 102, 255, 0.2)',
  182. 'rgba(255, 159, 64, 0.2)'
  183. ],
  184. borderColor: [
  185. 'rgba(255,99,132,1)',
  186. 'rgba(54, 162, 235, 1)',
  187. 'rgba(255, 206, 86, 1)',
  188. 'rgba(75, 192, 192, 1)',
  189. 'rgba(153, 102, 255, 1)',
  190. 'rgba(255, 159, 64, 1)'
  191. ],
  192. borderWidth: 1
  193. }]
  194. },
  195. options: {
  196. scales: {
  197. yAxes: [{
  198. ticks: {
  199. beginAtZero:true
  200. }
  201. }]
  202. }
  203. }
  204. });
  205. </script>
  206. <script>
  207. var ctx = document.getElementById("myChart4").getContext('2d');
  208. var myChart = new Chart(ctx, {
  209. type: 'bar',
  210. data: {
  211. labels: ["Red", "Blue", "Yellow", "Green", "Purple", "Orange"],
  212. datasets: [{
  213. label: '# of Votes',
  214. data: [12, 19, 3, 5, 2, 3],
  215. backgroundColor: [
  216. 'rgba(255, 99, 132, 0.2)',
  217. 'rgba(54, 162, 235, 0.2)',
  218. 'rgba(255, 206, 86, 0.2)',
  219. 'rgba(75, 192, 192, 0.2)',
  220. 'rgba(153, 102, 255, 0.2)',
  221. 'rgba(255, 159, 64, 0.2)'
  222. ],
  223. borderColor: [
  224. 'rgba(255,99,132,1)',
  225. 'rgba(54, 162, 235, 1)',
  226. 'rgba(255, 206, 86, 1)',
  227. 'rgba(75, 192, 192, 1)',
  228. 'rgba(153, 102, 255, 1)',
  229. 'rgba(255, 159, 64, 1)'
  230. ],
  231. borderWidth: 1
  232. }]
  233. },
  234. options: {
  235. scales: {
  236. yAxes: [{
  237. ticks: {
  238. beginAtZero:true
  239. }
  240. }]
  241. }
  242. }
  243. });
  244. </script>
  245. <script>
  246. var ctx = document.getElementById("myChart5").getContext('2d');
  247. var myChart = new Chart(ctx, {
  248. type: 'bar',
  249. data: {
  250. labels: ["Red", "Blue", "Yellow", "Green", "Purple", "Orange"],
  251. datasets: [{
  252. label: '# of Votes',
  253. data: [12, 19, 3, 5, 2, 3],
  254. backgroundColor: [
  255. 'rgba(255, 99, 132, 0.2)',
  256. 'rgba(54, 162, 235, 0.2)',
  257. 'rgba(255, 206, 86, 0.2)',
  258. 'rgba(75, 192, 192, 0.2)',
  259. 'rgba(153, 102, 255, 0.2)',
  260. 'rgba(255, 159, 64, 0.2)'
  261. ],
  262. borderColor: [
  263. 'rgba(255,99,132,1)',
  264. 'rgba(54, 162, 235, 1)',
  265. 'rgba(255, 206, 86, 1)',
  266. 'rgba(75, 192, 192, 1)',
  267. 'rgba(153, 102, 255, 1)',
  268. 'rgba(255, 159, 64, 1)'
  269. ],
  270. borderWidth: 1
  271. }]
  272. },
  273. options: {
  274. scales: {
  275. yAxes: [{
  276. ticks: {
  277. beginAtZero:true
  278. }
  279. }]
  280. }
  281. }
  282. });
  283. </script>