enterprise/conf/template/salary.html

67 lines
1.2 KiB
HTML
Raw Normal View History

2023-09-04 21:59:27 +08:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
body {
display: flex;
justify-content: center;
}
table {
border-collapse: collapse;
}
table, table tr th, table tr td {
border: 1px solid #000000;
}
p {
margin: 0
}
table th {
background-color: rgba(128, 128, 128, 0.5);
}
.title{
width: 100%;
text-align: center;
}
</style>
</head>
<body>
<div class="table-container">
<div class="title">{{.title}}</div>
2023-09-04 22:21:04 +08:00
{{range $i, $v := .link}}
<a href={{ $v.url }}>{{ $v.name }}</a>
{{end}}
2023-09-04 21:59:27 +08:00
<div id="table-body">
<table>
<thead>
<tr>
{{range $i, $v := .header}}
<th>{{ $v }}</th>
{{end}}
</tr>
</thead>
<tbody>
{{range $i, $arr := .data}}
<tr>
{{range $j, $v := $arr}}
<td>{{ $v }}</td>
{{end}}
</tr>
{{end}}
</tbody>
</table>
</div>
</div>
<script>
</script>
</body>
</html>