<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>法律规定列表 - 淮安市司法局</title>
    <meta name="keywords" content="法律规定,淮安市司法局">
    <meta name="description" content="淮安市司法局法律规定列表">
    <link rel="stylesheet" href="/css/bootstrap.min.css">
    <link rel="stylesheet" href="/css/common.css">
    <style>
        .page-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }
        .page-header {
            text-align: center;
            margin-bottom: 30px;
        }
        .page-section {
            margin-bottom: 40px;
        }
        .page-section h3 {
            border-bottom: 2px solid #28a745;
            padding-bottom: 10px;
            margin-bottom: 20px;
        }
        .page-list {
            list-style: none;
            padding: 0;
        }
        .page-list li {
            padding: 12px 0;
            border-bottom: 1px dashed #eee;
        }
        .page-list li .date {
            float: right;
            color: #999;
        }
        .page-list li a {
            color: #333;
            text-decoration: none;
        }
        .page-list li a:hover {
            color: #28a745;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="page-container">
            <div class="page-header">
                <h2>法律规定</h2>
            </div>
            
            <div class="page-section">
                <ul class="page-list">
                    <th:block th:if="${not #lists.isEmpty(lawList)}">
                        <li th:each="law : ${lawList}">
                            <span class="date" th:text="${#dates.format(law.createTime, 'yyyy-MM-dd')}">2025-05-28</span>
                            <a th:href="@{'/show.html?Id=' + ${law.formatId}}" th:text="${law.title}">法律规定标题</a>
                        </li>
                    </th:block>
                    <th:block th:if="${#lists.isEmpty(lawList)}">
                        <li>暂无相关法律规定</li>
                    </th:block>
                </ul>
            </div>
            
            <div class="text-center mt-4">
                <a href="/hasfj" class="btn btn-primary">返回首页</a>
            </div>
        </div>
    </div>

    <script src="/js/jquery.min.js"></script>
    <script src="/js/bootstrap.min.js"></script>
</body>
</html> 