| | <!DOCTYPE html> |
| | <html lang="en"> |
| | <head> |
| | <meta charset="UTF-8"> |
| | <title>Data GC</title> |
| | <style> |
| | body { |
| | font-family: Arial, sans-serif; |
| | text-align: center; |
| | background-color: #f0f0f0; |
| | margin: 0; |
| | padding: 0; |
| | } |
| | h1 { |
| | background-color: #4CAF50; |
| | color: white; |
| | padding: 20px; |
| | margin: 0; |
| | border-bottom: 2px solid #388E3C; |
| | } |
| | .scroll-container { |
| | max-height: 400px; |
| | overflow-y: auto; |
| | width: 70%; |
| | margin: 20px auto; |
| | background-color: white; |
| | box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); |
| | } |
| | table { |
| | width: 100%; |
| | border-collapse: collapse; |
| | } |
| | th, td { |
| | border: 1px solid #ddd; |
| | padding: 12px; |
| | text-align: left; |
| | } |
| | th { |
| | background-color: #4CAF50; |
| | color: white; |
| | border-bottom: 2px solid #388E3C; |
| | position: sticky; |
| | top: 0; |
| | z-index: 1; |
| | } |
| | tr:nth-child(even) { |
| | background-color: #f2f2f2; |
| | } |
| | tr:hover { |
| | background-color: #e0e0e0; |
| | } |
| | .total-users { |
| | margin-top: 20px; |
| | font-size: 18px; |
| | color: #333; |
| | display: block; |
| | text-align: center; |
| | } |
| | </style> |
| | </head> |
| | <body> |
| | <h1>Data GC</h1> |
| | <p class="total-users">Total Users: {{ total_users }}</p> |
| | <div class="scroll-container"> |
| | <table> |
| | <thead> |
| | <tr> |
| | <th>Name</th> |
| | <th>Phone</th> |
| | <th>Email</th> |
| | </tr> |
| | </thead> |
| | <tbody> |
| | {% for contact in contacts %} |
| | <tr> |
| | <td>{{ contact[0] }}</td> |
| | <td>{{ contact[1] }}</td> |
| | <td>{{ contact[2] }}</td> |
| | </tr> |
| | {% endfor %} |
| | </tbody> |
| | </table> |
| | </div> |
| | </body> |
| | </html> |