2022-01-24 10:43:35 +08:00

76 lines
1.7 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<html xmlns:x="urn:schemas-microsoft-com:office:excel">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>留言记录导出</title>
<style>
table,table tr th, table tr td{
border:1px solid #333;
}
table tr th, table tr td{
padding:2px 5px;
}
.text{
mso-number-format:\@;
}
table{
margin:10px 0;
border-collapse:collapse;
}
</style>
<!--[if gte mso 9]><xml>
<x:ExcelWorkbook>
<x:ExcelWorksheets>
<x:ExcelWorksheet>
<x:Name>Sheet1</x:Name>
<x:WorksheetOptions>
<x:Print>
<x:ValidPrinterInfo />
</x:Print>
</x:WorksheetOptions>
</x:ExcelWorksheet>
</x:ExcelWorksheets>
</x:ExcelWorkbook>
</xml>
<![endif]-->
</head>
<body>
<table class="layui-table">
<thead>
<tr>
<th>序号</th>
{foreach $fields(key1,value1,num1)}
<th class="text">[value1->description]</th>
{/foreach}
<th>时间</th>
<th>访客信息</th>
<th>回复内容</th>
</tr>
</thead>
<tbody>
{foreach $messages(key,value,num)}
<tr>
<td>[num]</td>
{foreach $fields(key2,value2,num2)}
{php} $field=$value2->name {/php}
<td>[value->$field]</td>
{/foreach}
<td>[value->create_time]</td>
<td>
IP:{fun=long2ip($value->user_ip)}
浏览器:[value->user_bs]
操作系统:[value->user_os]
</td>
<td>[value->recontent]</td>
</tr>
{/foreach}
</tbody>
</table>
</body>
</html>