12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- <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>
-
|