Demo entry 6343473

pph

   

Submitted by anonymous on Jan 09, 2017 at 14:34
Language: HTML+PHP. Code size: 2.6 kB.

<!DOCTYPE HTML>
<?php include 'correlaties.php'; ?>

<html>
	
<head>
	<title>
		SD-Insights
	</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
  <link rel="stylesheet" href="https://cdn.datatables.net/1.10.13/css/dataTables.bootstrap.min.css">
  <script src="https://cdn.datatables.net/1.10.13/js/jquery.dataTables.min.js"></script>
  <script src="https://cdn.datatables.net/1.10.13/js/dataTables.bootstrap.min.js"></script>
  <script src="http://code.jquery.com/jquery-1.12.4.js"></script>
  <link rel='shortcut icon' type='image/x-icon' href='http://nexious.net/favicon.ico' />
	
</head>

<body>
	<div class='container-fluid'>
		<div class="well">Hier hebben we een pagina waarop de ontwikkeling te zien is	
			<a href="http://www.nexious.net/correlaties/werkbestand.php" class="btn btn-info" role="button">Werkbestand</a>
		</div>
		<div class="well">Dit zijn de resultaten van de analysen van de gegevens uit de SD-Insights database	
		</div>
		<div class='breed'>
			<h1></h1>
			<div class='mobileShow'>
				<br><br>
			</div>
			<div class='table-responsive'>
				<table id="correlatie_tabel" class='table table-striped table-bordered'>
				<thead>	
					<tr>
					<th> Categorie 1 </th>
					<th> Categorie 2  </th>
					<th> Correlatie coƫfficient linair </th>
					<th> Correlatie coƫfficient exponentieel </th>
					</tr>
				</thead>
				<tbody>
				<?php
				
					//geautomatiseerd, hier wordt je toch blij van
					$categorie = array(time_driven, distance, average, speed, headway, swerving, signaling, anticipation);
					$i = 0;
					foreach ($categorie AS $value1) {
						foreach ($categorie AS $value2) {
							if ($value1 != $value2) {
								$query1 = 'SELECT ' . $value1  . ' FROM sd_insights WHERE speed IS NOT NULL AND NOT time_driven = 0 AND NOT distance = 0';
								$query2 = 'SELECT ' . $value2 . ' FROM sd_insights WHERE speed IS NOT NULL AND NOT time_driven = 0 AND NOT distance = 0';
								$r_waardes = correlatie_compleet($query1, $query2);
									
								echo '<tr>';
								echo '<td>' . $value1 . '</td>';
								echo '<td>' . $value2 . '</td>';
								echo '<td>' . round($r_waardes[lin], 4) . '</td>';
								echo '<td>' . round($r_waardes[exp], 4) . '</td>';
								echo '</tr>';
							}	
						}
					
					}
				?>
				</tbody>
				</table>
			</div>
		</div>
	</div>
</body>
</html> 

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).