122 خطوط
2.4 KiB
HTML
122 خطوط
2.4 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="fa" dir="rtl">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>جستجوی اسناد</title>
|
|
|
|
<style>
|
|
body {
|
|
font-family: Tahoma, Arial, sans-serif;
|
|
margin: 30px;
|
|
background: #ffffff;
|
|
color: #222;
|
|
}
|
|
|
|
.container {
|
|
max-width: 1100px;
|
|
margin: auto;
|
|
}
|
|
|
|
h2 {
|
|
text-align: center;
|
|
margin-bottom: 25px;
|
|
}
|
|
|
|
#searchInput {
|
|
width: 100%;
|
|
padding: 12px;
|
|
margin-bottom: 20px;
|
|
box-sizing: border-box;
|
|
border: 1px solid #aaa;
|
|
border-radius: 5px;
|
|
font-size: 15px;
|
|
outline: none;
|
|
}
|
|
|
|
#searchInput:focus {
|
|
border-color: #555;
|
|
}
|
|
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
direction: rtl;
|
|
}
|
|
|
|
th, td {
|
|
border: 1px solid #bbb;
|
|
padding: 10px;
|
|
text-align: center;
|
|
}
|
|
|
|
th {
|
|
background: #f2f2f2;
|
|
font-weight: bold;
|
|
}
|
|
|
|
td:nth-child(2) {
|
|
text-align: left;
|
|
direction: ltr;
|
|
}
|
|
|
|
td:nth-child(3) {
|
|
direction: ltr;
|
|
}
|
|
|
|
tr:nth-child(even) {
|
|
background: #fafafa;
|
|
}
|
|
|
|
#status {
|
|
margin-top: 15px;
|
|
color: #555;
|
|
font-size: 13px;
|
|
}
|
|
|
|
@media (max-width: 600px) {
|
|
body {
|
|
margin: 12px;
|
|
}
|
|
|
|
th, td {
|
|
padding: 7px 4px;
|
|
font-size: 12px;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="container">
|
|
|
|
<h2>جستجوی اسناد</h2>
|
|
|
|
<input
|
|
type="text"
|
|
id="searchInput"
|
|
placeholder="جستجو بر اساس عنوان سند یا شناسه داخلی سند..."
|
|
>
|
|
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>ردیف</th>
|
|
<th>عنوان سند</th>
|
|
<th>شناسه داخلی سند</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody id="results">
|
|
</tbody>
|
|
</table>
|
|
|
|
<div id="status">در حال دریافت اطلاعات...</div>
|
|
|
|
</div>
|
|
|
|
<script src="./search.js"></script>
|
|
|
|
</body>
|
|
</html> |