Subversion Repositories eFlore/Applications.cel

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2954 mathias 1
<!DOCTYPE html>
2
<html xmlns="http://www.w3.org/1999/xhtml">
3
  <head>
4
	<title>CeL - SAVAPA</title>
5
 
6
	<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
7
 
8
	<script type="text/javascript" src="http://resources.tela-botanica.org/jquery/1.9.1/jquery.min.js"></script>
9
	<script src="http://resources.tela-botanica.org/bootstrap/3.1.0/js/bootstrap.min.js"></script>
10
	<script type="text/javascript" src="<?= $url_base; ?>modules/savapa/squelettes/js/Chart.js"></script>
11
	<script type="text/javascript" src="<?= $url_base; ?>modules/savapa/squelettes/js/savapa.js"></script>
12
 
13
	<!-- Barre de navigation -->
14
	<?php if ($bar !== false): ?>
15
		<script src="<?=$url_script_navigation?>"></script>
16
	<?php endif; ?>
17
 
18
	<!-- CSS -->
19
	<link rel="stylesheet" type="text/css" href="http://resources.tela-botanica.org/bootstrap/3.1.0/css/bootstrap.min.css" />
20
	<link href="<?= $url_base; ?>modules/savapa/squelettes/css/savapa.css" rel="stylesheet" type="text/css" media="screen" />
21
 
22
  </head>
23
 
24
  <body>
25
	<?php if ($bar !== false): ?>
26
		<div id="tb-navigation" data-courant="widget-cel-savapa" data-squelette="bootstrap3" data-mode="prod">
27
		</div>
28
	coucou la barre
29
		<br/>
30
	<?php endif; ?>
31
 
32
	<h1>SAVAPA !</h1>
33
	<div class="sous-titre">
34
		Statistiques Amusantes & Visualisation Agréable des Problèmes d'A...
35
	</div>
36
 
37
	<?php $cpt = 0; ?>
38
	<?php foreach ($requetes as $r): ?>
39
	<div class="requete">
40
		<h4><?= $r['titre'] ?></h4>
41
		<div class="sql">
42
			<?= $r['sql'] ?>
43
		</div>
44
		<div class="graphique col-md-12 col-sm-12">
45
			<?php //var_dump($r['resultat']); ?>
46
			<canvas id="graphique_<?= $cpt ?>" class="canvas-graphique col-md-12 col-sm-12"></canvas>
47
			<script type="text/javascript">
48
				var donnees_<?= $cpt ?> = {
49
					labels: ["<?= implode('","', $r['resultat']['labels']) ?>"],
50
					datasets: [{
51
						data: [<?= implode(',', $r['resultat']['donnees']) ?>]
52
					}]
53
				};
54
			</script>
55
			<?php $cpt++; ?>
56
		</div>
57
	</div>
58
	<?php endforeach; ?>
59
  </body>
60
</html>