<?php
include_once 'src/inc/db/function.php';
?>
<!DOCTYPE html>


<head>
    <meta charset="utf-8">
    <meta content="width=device-width, initial-scale=1.0" name="viewport">

    <?php include_once "template_css.php"; ?>
    <!-- <title>資料服務-內頁</title> -->

    <style>
        /*  .underline {
        text-decoration: underline;
    } */
        .data-title {
            font-family: Microsoft JhengHei;
            font-size: 20px;
            font-weight: 700;
        }

        .data-info {
            margin-bottom: 15px;
        }

        .data-table {
            border-collapse: separate;
            /* 保持分離邊框以啟用圓角 */
            border-spacing: 0 2px;
            /* 移除單元格之間的間距 */
            border: 2px solid #CECECE;
            border-radius: 10px;
            /* 四周圓角 */
        }

        .data-table th {
            text-align: right;
            background-color: #EAF3FF;
            color: #333;
            width: 180px;
            border-bottom: 1px solid #FFFFFF;
        }

        .data-table1 {
            border-collapse: separate;
            /* 保持分離邊框以啟用圓角 */
            border-spacing: 0 2px;
            /* 移除單元格之間的間距 */
            border: 2px solid #EEEEEE;
            border-radius: 0 0 10px 10px;
            /* 四周圓角 */
        }

        .data-table1 th {
            text-align: center;
            background-color: #ACE5FE;
            color: #333;
            border-right: 1px solid #FFFFFF;
        }

        .icon-download {
            text-align: center;
            color: #173480;
            /* #007bff; */
            font-size: 1.5rem;
        }

        .icon-download:hover {
            color: #03a9f4;
        }

        .table-section-title {
            display: flex;
            align-items: center;
            font-size: 1.2rem;
            font-weight: bold;
            padding: 10px;
            background-color: #D5F0FF;
            border-radius: 8px 8px 0 0;
        }

        .table-section-title i {
            margin-right: 10px;
        }
    </style>
</head>

<body>
    <!--BEGIN HEADER-->
    <?php include_once "template_header.php"; ?>
    <!--END HEADER-->

    <!--BEGIN SIDEBAR-->
    <?php include_once "template_sidebar.php"; ?>
    <!--END SIDEBAR-->

    <main id="main" class="main">
        <div class="pagetitle d-flex  justify-content-between align-items-center">
            <nav>
                <ol class="breadcrumb">
                    <li class="breadcrumb-item "><a href="index.php"><i class="bi bi-house-door-fill"></i> 首頁</a></li>
                    <li class="breadcrumb-item"><a href="DataList.php">資料服務</a></li>
                    <li class="breadcrumb-item active">資料名稱(資料內頁)</li>
                </ol>
            </nav>
            <span class="float: right;">
                <a href="#" onclick="window.history.back();" class="btn btn-sm  btn-outline-primary"><i class="bi bi-arrow-90deg-left"></i> 回上一頁</a>
            </span>
        </div>
        <section class="section">
            <div class="data-title">資料標題資料標題</div>
            <p class="data-info">摘要摘要摘要摘要摘要摘要摘要摘要摘要摘要摘要摘要摘要摘要摘要摘要摘要摘要摘要摘要摘要摘要摘要摘要摘要摘要摘要摘要</p>
            <table class="table table-responsive table-bordered data-table mt-3 mb-4">
                <tr>
                    <th>資料編號</th>
                    <td>WD-20240401365</td>
                </tr>
                <tr>
                    <th>資料來源單位</th>
                    <td>OOOO研究中心</td>
                </tr>
                <tr>
                    <th>資料時間</th>
                    <td>2020-12 11:00 至 2021-05 09:00</td>
                </tr>
                <tr>
                    <th>資料類別</th>
                    <td>風力</td>
                </tr>
                <tr>
                    <th>授權模式</th>
                    <td>依政府資料開放平臺使用規範</td>
                </tr>
                <tr>
                    <th>資料來源</th>
                    <td>www.abcdefg.tw</td>
                </tr>
                <tr>
                    <th>檔案格式</th>
                    <td>CSV, WRF</td>
                </tr>
                <tr>
                    <th>更新時間</th>
                    <td>2024-04-01 11:00</td>
                </tr>
            </table>

            <div class="data-title">下載專區</div>
            <div class="table-section-title">
                <i class="bi bi-plus-circle-fill" style="color:#173480;"></i> 原始資料
            </div>
            <table class="table table-responsive table-bordered data-table1  mb-4">
                <thead>
                    <tr>
                        <th style="width:27%;">檔案名稱</th>
                        <th style="width:47%;">說明</th>
                        <th style="width:13%;">檔案格式</th>
                        <th>下載檔案</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td class=" align-middle">檔案名稱</td>
                        <td>檔案說明檔案說明檔案說明檔案說明檔案說明檔案說明檔案說明檔案說明</td>
                        <td class=" text-center">CSV</td>
                        <td class=" text-center">
                            <a href="#" class="icon-download"><i class="bi bi-file-earmark-arrow-down"></i></a>
                        </td>
                    </tr>
                    <tr>
                        <td class=" align-middle">檔案名稱</td>
                        <td>檔案說明檔案說明檔案說明檔案說明檔案說明</td>
                        <td class=" text-center align-middle">CSV</td>
                        <td class=" text-center">
                            <a href="#" class="icon-download"><i class="bi bi-file-earmark-arrow-down"></i></a>
                        </td>
                    </tr>
                    <tr>
                        <td class=" align-middle">檔案名稱檔案名稱檔案名稱</td>
                        <td>檔案說明檔案說明檔案說明檔案說明檔案說明檔案說明檔案說明檔案說明</td>
                        <td class=" text-center align-middle">CSV</td>
                        <td class=" text-center">
                            <a href="#" class="icon-download"><i class="bi bi-file-earmark-arrow-down"></i></a>
                        </td>
                    </tr>
                </tbody>
            </table>

            <div class="table-section-title">
                <i class="bi bi-plus-circle-fill" style="color:#173480;"></i> 處理後資料
            </div>
            <table class="table table-responsive table-bordered data-table1  mb-4">
                <thead>
                    <tr>
                        <th style="width:27%;">檔案名稱</th>
                        <th style="width:47%;">說明</th>
                        <th style="width:13%;">檔案格式</th>
                        <th>下載檔案</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td  class=" align-middle">檔案名稱</td>
                        <td>檔案說明檔案說明檔案說明檔案說明檔案說明檔案說明檔案說明檔案說明</td>
                        <td class=" text-center align-middle">CSV</td>
                        <td class=" text-center">
                            <a href="#" class="icon-download"><i class="bi bi-file-earmark-arrow-down"></i></a>
                        </td>
                    </tr>                    
                </tbody>
            </table>

            <div class="table-section-title">
                <i class="bi bi-plus-circle-fill" style="color:#173480;"></i> 模擬成果
            </div>
            <table class="table table-responsive table-bordered data-table1  mb-4">
                <thead>
                    <tr>
                        <th style="width:27%;">檔案名稱</th>
                        <th style="width:47%;">說明</th>
                        <th style="width:13%;">檔案格式</th>
                        <th>下載檔案</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td class=" align-middle">檔案名稱</td>
                        <td>檔案說明檔案說明檔案說明檔案說明檔案說明檔案說明檔案說明檔案說明</td>
                        <td class=" text-center align-middle">WRF</td>
                        <td class=" text-center">
                            <a href="#" class="icon-download"><i class="bi bi-file-earmark-arrow-down"></i></a>
                        </td>
                    </tr>                    
                </tbody>
            </table>
            <div class="table-section-title">
                <i class="bi bi-plus-circle-fill" style="color:#173480;"></i> 資料使用 / 模擬教材
            </div>
            <table class="table table-responsive table-bordered data-table1  mb-4">
                <thead>
                    <tr>
                        <th style="width:27%;">檔案名稱</th>
                        <th style="width:47%;">說明</th>
                        <th style="width:13%;">檔案格式</th>
                        <th>下載檔案</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td class=" align-middle">檔案名稱</td>
                        <td>檔案說明檔案說明檔案說明檔案說明檔案說明檔案說明檔案說明檔案說明</td>
                        <td class=" text-center align-middle ">WRF</td>
                        <td class=" text-center">
                            <a href="#" class="icon-download"><i class="bi bi-file-earmark-arrow-down"></i></a>
                        </td>
                    </tr>                    
                </tbody>
            </table>

        </section>
    </main>


    <!-- <a href="#" class="back-to-top d-flex align-items-center justify-content-center"><i class="bi bi-arrow-up-short"></i></a> -->

    <?php include_once "template_footer.php"; ?>
    <script>
        showSidebar("sidebar", "DataList");
    </script>
</body>


</html>