<{include file="./admin/header.html"}>
<{include file="./admin/left.html"}>
<{include file="./admin/nav.html"}>
<{include file="get_kindeditor.html"}>

<div id="activity_container">

<div class="activity_center">
<{include file="./admin/activity/common_nav.html"}>


	<input name="events_id" type="hidden" value="<{$events_Data.events.id}>">
	
	查看:
	<{if $action == 'all'}>
	<span class="text-muted">全部</span> &nbsp;
	<{else}>
	<a href="<{$web_cfg.domain}>/?c=Admin_Activity_UserParticipateLog&a=PageList&events_id=<{$eventData.id}>&action=all">全部</a> &nbsp;
	<{/if}>
	<{if $action == 'member'}>
	<span class="text-muted">用户</span> &nbsp;
	<{else}>
	<a href="<{$web_cfg.domain}>/?c=Admin_Activity_UserParticipateLog&a=PageList&groupByUid=true&events_id=<{$eventData.id}>&action=member">用户</a> &nbsp;
	<{/if}>
	<{if $eventData.forms}>
	<{if $action == 'form'}>
	<span class="text-muted">表单</span> &nbsp;
	<{else}>
	<a href="<{$web_cfg.domain}>/?c=Admin_Activity_UserParticipateLog&a=PageEventFormData&events_id=<{$eventData.id}>&action=form">表单</a> &nbsp;
	<{/if}>
	<{/if}>
	<{if $isPrizes}>
	<{if $action == 'win'}>
	<span class="text-muted">中奖</span> &nbsp;
	<{else}>
	<a href="<{$web_cfg.domain}>/?c=Admin_Activity_UserParticipateLog&a=PageLotteryDataList&events_id=<{$eventData.id}>&action=win">中奖</a> &nbsp;
	<{/if}>
	<{/if}>

	<span class="text-muted">助力排行</span> &nbsp;
	
	<{if $download_url}>
	<a href="<{$download_url}>" target="_blank" class="" style="padding:0 10px;margin-left:10px;"><i class="fa fa-download"></i> 导出数据</a>
	<{/if}>
	
	<{if $eventData.type==11}>
	<a href="<{$web_cfg.domain}>/?c=Admin_Activity_UserParticipateLog&a=ShowResultSet&events_id=<{$eventData.id}>" target="_blank" class="" style="width:; float:right;padding-right: 10px" ><i class="fa fa-download"></i> 问卷报表 </a>
	<{/if}>
	
	<div class="block_10"></div>
	
	<div  class="panel panel-default">
		<div class="panel-body">	
			<div class="form-group">
				<div>
					<table class="table table-hover">
						<thead>
							<tr>
								<th>参与人</th>
								<th>UID</th>
								<th>时间</th>
								<th>邀请人次数量</th>
							</tr>
						</thead>
						<tbody>
							<{if $helpData}>
							<{foreach from=$helpData item=data}>
							<tr>
								<td>
								
									<{if $userData[$data.uid].headimgurl}>
									<img class="img-rounded" width="48" height="48" src="<{$userData[$data.uid].headimgurl}>" />
									<{else}>
									<img class="img-rounded" width="48" height="48" src="http://news.mydrivers.com/Img/20110518/04481549.png" />
									<{/if}>
									<{if $userData[$data.uid].nickname}><{$userData[$data.uid].nickname}><{else}>游客<{/if}></td>
								<td><{$data.uid}></td>
								<td><{"Y-m-d H:i:s"|date:$data.create_time}></td>
								<td><{$data.num}></td>
							</tr>
							<{/foreach}>
							<{else}>
							<tr>
								<td colspan="3" align="center" class="text-muted">无数据</td>
							</tr>
							<{/if}>
						</tbody>
					</table>

					<div class="page"><{$page_html}></div><p  style="float:right" >参与人数:<{$total_num}></p>

					
				</div>
			</div>
		</div>
	</div>
</div>

<{include file="./admin/activity/common_right.html"}>
<div style="clear:both;"></div>
</div>


<script>
KISSY.use('node, io, event', function (S, Node, IO, Event) {
	var $ = S.all;
	
});
</script>

<{include file="./admin/bottom.html"}>