<style>
    /* Custom styles for this template */
    .sub-header {
        text-align: center;
        font-size: 14px;
        margin-bottom: 20px;
    }

    th, td {
        font-size: 12px;
        padding: 8px;
        text-align: center;
        border: 1px solid #000;
    }

    th {
        background-color: #f2f2f2;
        font-weight: bold;
    }

    table {
        width: 100%;
        border-collapse: collapse;
    }

    img.signature {
        max-height: 40px;
        max-width: 100px;
    }
</style>

<div class="header">
    <h1>考核明细表</h1>
</div>
<div class="sub-header">打印时间：$!printTime</div>

<table>
    <thead>
    <tr>
        <th width="40">序号</th>
        <th>名称</th>
        <th>手机号</th>
        <th>人员类型</th>
        <th>完成时间</th>
        <th>签名</th>
        <th>是否补学</th>
        <th>是否完成</th>
    </tr>
    </thead>
    <tbody>
        #foreach($item in $list)
        <tr>
            <td>$foreach.count</td>
            <td>$!item.userName</td>
            <td>$!item.phone</td>
            <td>$!item.personTypeStr</td>
            <td>$!item.completeTime</td>
            <td>
                #if($!item.signatureUrl && $!item.signatureUrl != "")
                    <img src="$!item.signatureUrl" class="signature"/>
                #end
            </td>
            <td>$!item.isMakeUpStr</td>
            <td>$!item.isCompletedStr</td>
        </tr>
        #end
    </tbody>
</table>
