1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <!DOCTYPE html>
- <html>
- <style>
- table, th, td {
- border:1px solid black;
- }
- </style>
- <body>
- <form>
- <table class="table table-bordered">
- <tr>
-
- {% for i1 in labels %}
- <th>{{i1}}</font></th>
- {% endfor %}
- </tr>
- {% for i in content %}
- <tr>
- <td>{{ i[0] }}</td>
- <td>{{ i[1] }}</td>
- <td>{{ i[2] }}</td>
- <td>{{ i[3] }}</td>
- <td>{{ i[4] }}</td>
- <td>{{ i[5] }}</td>
- <td>{{ i[6] }}</td>
- <td>{{ i[7] }}</td>
- <td>{{ i[8] }}</td>
- <td>{{ i[9] }}</td>
- </tr>
- {% endfor %}
- </table>
- </form>
- <br>
- <br>
- <form action="{{ url_for('del_data') }}" method="post">
- <input type="submit" name = "del" value="刪除這筆資料">
- </form>
- </body>
- </html>
|