2025-09-18 11:33:28 +05:30
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html>
|
2025-11-30 16:24:49 +05:30
|
|
|
|
2025-09-18 11:33:28 +05:30
|
|
|
<head>
|
|
|
|
|
<title>View Documents</title>
|
|
|
|
|
<style>
|
|
|
|
|
body {
|
|
|
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
|
|
|
background-color: #f4f7f9;
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.container {
|
|
|
|
|
max-width: 1200px;
|
|
|
|
|
margin: 40px auto;
|
|
|
|
|
background: #fff;
|
|
|
|
|
padding: 30px 40px;
|
|
|
|
|
border-radius: 10px;
|
|
|
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
h2 {
|
|
|
|
|
text-align: center;
|
|
|
|
|
color: #2c3e50;
|
|
|
|
|
margin-bottom: 30px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
form {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
gap: 20px;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
margin-bottom: 30px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
label {
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
color: #34495e;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
select {
|
|
|
|
|
padding: 8px 12px;
|
|
|
|
|
border: 1px solid #ccc;
|
|
|
|
|
border-radius: 5px;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
button {
|
|
|
|
|
padding: 10px 20px;
|
|
|
|
|
background-color: #3498db;
|
|
|
|
|
color: white;
|
|
|
|
|
border: none;
|
|
|
|
|
border-radius: 5px;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
transition: background-color 0.3s ease;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
button:hover {
|
|
|
|
|
background-color: #2980b9;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
table {
|
|
|
|
|
width: 100%;
|
|
|
|
|
border-collapse: collapse;
|
|
|
|
|
margin-top: 10px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
thead {
|
|
|
|
|
background-color: #2c3e50;
|
|
|
|
|
color: white;
|
|
|
|
|
}
|
|
|
|
|
|
2025-11-30 16:24:49 +05:30
|
|
|
th,
|
|
|
|
|
td {
|
2025-09-18 11:33:28 +05:30
|
|
|
padding: 12px 15px;
|
|
|
|
|
border: 1px solid #ddd;
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
tbody tr:nth-child(even) {
|
|
|
|
|
background-color: #f9f9f9;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
tbody tr:hover {
|
|
|
|
|
background-color: #f1f1f1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
a {
|
|
|
|
|
color: #2980b9;
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
a:hover {
|
|
|
|
|
text-decoration: underline;
|
|
|
|
|
}
|
|
|
|
|
|
2025-12-04 17:31:12 +05:30
|
|
|
/* Back button styling */
|
|
|
|
|
.back-btn {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
margin-bottom: 20px;
|
|
|
|
|
padding: 10px 18px;
|
|
|
|
|
background: #6c757d;
|
|
|
|
|
color: white;
|
|
|
|
|
font-size: 15px;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
transition: background 0.3s ease;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.back-btn:hover {
|
|
|
|
|
background: #5a6268;
|
|
|
|
|
}
|
|
|
|
|
|
2025-09-18 11:33:28 +05:30
|
|
|
@media (max-width: 768px) {
|
|
|
|
|
form {
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
align-items: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.container {
|
|
|
|
|
padding: 20px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
</head>
|
2025-11-30 16:24:49 +05:30
|
|
|
|
2025-09-18 11:33:28 +05:30
|
|
|
<body>
|
|
|
|
|
<div class="container">
|
2025-12-04 17:31:12 +05:30
|
|
|
|
|
|
|
|
<!-- Back to Dashboard Button -->
|
|
|
|
|
<a href="{{ url_for('index') }}" class="back-btn">← Back to Dashboard</a>
|
|
|
|
|
|
2025-09-18 11:33:28 +05:30
|
|
|
<h2>Document Records</h2>
|
|
|
|
|
|
|
|
|
|
<form method="GET">
|
|
|
|
|
<label for="year">Filter by Year:</label>
|
|
|
|
|
<select name="year">
|
|
|
|
|
<option value="">All</option>
|
|
|
|
|
{% for y in years %}
|
|
|
|
|
<option value="{{ y }}">{{ y }}</option>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<label for="stage">Filter by Stage:</label>
|
|
|
|
|
<select name="stage">
|
|
|
|
|
<option value="">All</option>
|
|
|
|
|
<option value="ITR">ITR</option>
|
|
|
|
|
<option value="AO">AO</option>
|
|
|
|
|
<option value="CIT">CIT</option>
|
|
|
|
|
<option value="ITAT">ITAT</option>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<button type="submit">Apply</button>
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
<table>
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>File</th>
|
|
|
|
|
<th>Type</th>
|
|
|
|
|
<th>Stage</th>
|
|
|
|
|
<th>Year</th>
|
|
|
|
|
<th>Uploaded At</th>
|
|
|
|
|
<th>Download</th>
|
|
|
|
|
<th>View</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
{% for doc in documents %}
|
|
|
|
|
<tr>
|
|
|
|
|
<td>{{ doc.filename }}</td>
|
|
|
|
|
<td>{{ doc.filetype }}</td>
|
|
|
|
|
<td>{{ doc.stage }}</td>
|
|
|
|
|
<td>{{ doc.year }}</td>
|
|
|
|
|
<td>{{ doc.uploaded_at }}</td>
|
|
|
|
|
<td><a href="{{ url_for('uploaded_file', filename=doc.filename) }}?mode=download">Download</a></td>
|
2025-11-30 16:24:49 +05:30
|
|
|
<td><a href="{{ url_for('uploaded_file', filename=doc.filename) }}?mode=view"
|
|
|
|
|
target="_blank">View</a></td>
|
2025-09-18 11:33:28 +05:30
|
|
|
</tr>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
</body>
|
2025-11-30 16:24:49 +05:30
|
|
|
|
|
|
|
|
</html>
|