Sindbad~EG File Manager
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css" />
<link rel="shortcut icon" href="static/images/favicon_2.png" />
<title>Food counter</title>
<style>
table {
width: 640px;
font-family: Arial;
background-color: white;
text-align: left;
padding: 10px;
border-collapse: collapse;
}
td,
th {
border: 1px solid;
border-color: #ccc;
}
</style>
</head>
<body id="body">
<table style="margin: 0px auto;">
<tr>
<th style="background-color: #c13728;">
<img style="float: right; max-height: 110px;" src="https://conference.numerotech.com/food_kit_scan_badges/core/static/images/food_counter_header.png" alt="logo" />
</th>
</tr>
<tr>
<td>
<div style="background-color: #0a1c46; min-height: 20px;"></div>
</td>
</tr>
<tr>
<td>
<div>{% if scanned_data : %}{{ scanned_data[0].session_name}} | {{scanned_data[0].start_time.strftime("%d-%m-%Y %H:%M:%S")}} | {{scanned_data[0].end_time.strftime("%d-%m-%Y %H:%M:%S")}}{% endif %}</div>
</td>
</tr>
<tr>
<table>
<thead>
<tr style="background-color: #0a1c46; color: white; padding: 5px;">
<th style="padding: 5px;">S NO</th>
<th style="padding: 5px;">ROLE</th>
<th style="padding: 5px;">SCANNED COUNT</th>
</tr>
</thead>
<tbody id="report_table" style="color: #036e;">
{% if scanned_data : %} {% for row in scanned_data : %}
<tr>
<td style="padding: 5px;">{{loop.index}}</td>
<td style="padding: 5px;">{{row.role or ''}}</td>
<td style="padding: 5px;">{{ row.scanned_count}}</td>
</tr>
{% endfor %}
<tr>
<td colspan="2" style="text-align: right;">
TOTAL COUNT
</td>
<td>{{total_count}}</td>
</tr>
{% else : %}
<tr>
<td colspan="4"><span style="color: red;">Record not exist.</span></td>
</tr>
{% endif %}
</tbody>
</table>
</tr>
</table>
</body>
</html>
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists