{:extends file="groupuser_layout.tpl"}
{:block name=header_css append}
{:/block}
{:block name="content_title"}
{:/block}
{:block name="content_breadcrumb"}
{:/block}
{:block name="content_body"}
<div>
    <a class="btn btn-default" target="_blank" href="{:url controller='user/report/export_pvuv'}">导出统计数据</a>
    <a class="btn btn-default" target="_blank" href="{:url controller='user/report/export_photo'}">导出照片</a>
</div>

<br>
<br>
<table class="table" class="table table-striped">
    <thead>
    <tr>
        <th>日期</th>
        {:foreach from=$event_meta_list item=event_config}
        <th>{:$event_config['screen_name']|escape}</th>
        {:/foreach}
    </tr>
    </thead>
    <tbody>
    {:foreach from=$data_list item=data}
    <tr>
        <td>{:$data['date']}</td>
        {:foreach from=$event_meta_list item=event_config}
        <td>
            {:$data[$event_config['item_name']]|default:0}
        </td>
        {:/foreach}
    </tr>
    {:/foreach}
    </tbody>
</table>
{:/block}
{:block name="body_js" append}
{:/block}