<style>
    .outline-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
        margin-bottom: 20px;
    }

    .outline-table th, .outline-table td {
        border: 1px solid #000;
        padding: 5px;
        text-align: center;
        vertical-align: middle;
    }

    .outline-table th {
        background-color: #f2f2f2;
        font-weight: bold;
        height: 40px;
    }

    .page-break {
        page-break-after: always;
    }
</style>

#foreach($outline in $list)
<div style="text-align:center;font-size:24px;font-weight:bold;margin-bottom:20px;margin-top:20px;">
    $!{outline.outlineYear}年度安全教育培训计划大纲
</div>

<table class="outline-table">
    <thead>
    <tr>
        <th style="width: 8%;">月份</th>
        <th style="width: 20%;">培训主题</th>
        <th style="width: 25%;">课程名称</th>
        <th style="width: 10%;">课时(分钟)</th>
        <th style="width: 37%;">培训内容摘要</th>
    </tr>
    </thead>
    <tbody>
        #if($outline.rows && $outline.rows.size() > 0)
            #foreach($row in $outline.rows)
            <tr>
                #if($row.monthRowSpan > 0)
                    <td rowspan="$!{row.monthRowSpan}">$!{row.planMonth}</td>
                    <td rowspan="$!{row.monthRowSpan}">$!{row.topic}</td>
                #end
                <td style="text-align: left;">$!{row.courseName}</td>
                <td>$!{row.durationMinute}</td>
                <td style="text-align: left;">$!{row.courseDesc}</td>
            </tr>
            #end
        #else
        <tr>
            <td colspan="5">暂无培训计划数据</td>
        </tr>
        #end
    </tbody>
</table>

<div style="margin-top: 10px; font-size: 12px; text-align: right;">
    打印时间：$!{printTime}
</div>

    #if($foreach.hasNext)
    <div class="page-break"></div>
    #end
#end
