{: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_prize'}">导出中奖信息</a>
    <a class="btn btn-default" target="_blank" href="{:url controller='user/report/export_photo'}">导出用户照片</a>
</div>
<table class="table" class="table table-striped">
    <tr>
        <td style="width: 100px;">电影票剩余: <span style="color: red">{:$count_1}</span></td>
        <td style="width: 100px">牙膏剩余: <span style="color: red">{:$count_2}</span></td>
        <td style="width: 100px">手机剩余: <span style="color: red">{:$count_3}</span></td>
        <td style="width: 100px">吹风机剩余: <span style="color: red">{:$count_4}</span></td>


    </tr>
</table>
<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}