<!DOCTYPE html>
<html lang="en" dir="ltr">
  <head>
    <meta charset="utf-8">
    <title>人臉辨識紀錄</title>
  </head>
  <body>
    {% block content %}
      <a href="{{ url_for('punch') }}">打卡紀錄</a>
      {% for row in page %}
        <a href="{{ url_for('influx', index=row) }}">{{ row }}</a>
        <a href="{{ url_for('influx', index=row) }}"></a>
      {% endfor %}
      <table border='1' width='720px'>
        <tr>
          <th>流水號</th>
          <th>辨識時間</th>
          <th>辨識ID</th>
          <th>辨識結果</th>
          <th>辨識照片</th>
          <th>修改人員</th>
        </tr>
      {% for row in data %}
        <tr>
          <th style='width:4%'>{{ row[0] }}</th>  
          <th style='width:26%'>{{ row[1] }}</th>
          <th style='width:30%'>{{ row[2] }}</th>
          <th style='width:12%'>{{ row[3] }}</th>
          <th style='width:16%'><img src="{{ row[5] }}" /></th>
          <th style='width:12%'><a href="{{ url_for('modify', image=row[4]) }}">編輯</a></th>
        </tr>
      {% endfor %}
      </table>
    {% endblock %}
  </body>
</html>