Vikas01's picture
Update templates/data.html
4cdba86
<!DOCTYPE html>
<html lang="en">
<head>
<title> AIML </title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
</head>
<body>
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="#">AIML</a>
</div>
<ul class="nav navbar-nav">
<li class="active"><a href="/">Home</a></li>
<li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="#">Page 1 <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="boot1.html">Bootstrap </a></li>
<li><a href="box.html">Box</a></li>
</ul>
</li>
<li><a href="index1.html">Website1</a></li>
<li><a href="data.html">Data from OpenCV</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="#"><span class="glyphicon glyphicon-user"></span> Sign Up</a></li>
<li><a href="#"><span class="glyphicon glyphicon-log-in"></span> Login</a></li>
</ul>
</div>
</nav>
<div class="container">
<h2>
Data from User Table
</h2>
<div class="row">
<table class="table table-striped">
<thead>
<tr>
<th>ID </th>
<th>User Name</th>
<th>Matching %</th>
<th> Recording Time</th>
</tr>
</thead>
{% for rec in data %}
<tr>
<td> {{ rec['id']}} </td>
<td> {{ rec['username']}} </td>
<td> {{ rec['matching']}} </td>
<td> {{ rec['recordingtime']}} </td>
</tr>
{% endfor %}
</table>
</div>
</div>
</body>
</html>