<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head><title><!--{$UUDEV_PAGE_TITLE}--></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!--{include file=elements/header.css.html}-->
<!--{include file=elements/header.js.html type=common}-->
<!--{include file=elements/header.js.html type=date}-->
</head>
<body>
<div id="outside">
	<!--{include file=frame/top.html}-->
	<div id="mainareaContent">
		<!--{include file=frame/left.html}-->
		<div id="rightContent">
			<div id="topContent">
				<div class="sitmap">
					<span class="r"><!--{include file="elements/uuadvad.html"}--></span>统计分析&nbsp;&gt;&nbsp;数据分析&nbsp;&gt;&nbsp;游戏数据分析报表&nbsp;&gt;&nbsp;<!--{$game.title}-->
				</div>
			</div>
			<div class="tabcontent">
				<a href="index.php?r=DownloadReport.soft" class="link">软件数据分析</a>
				<a href="index.php?r=DownloadReport.game" class="nolink">游戏数据分析</a>
				<a href="index.php?r=DownloadReport.theme" class="link">主题数据分析</a>
			</div>
			<div id="secrightContent">
				<div class="tableContent2">
					<form action="index.php" method="get">
						<input type="hidden" name="r" value="DownloadReport.gamedetail"/>
						<input type="hidden" name="id" value="<!--{$game.id}-->"/>
						<input type="hidden" name="returnParams" value="<!--{$returnParams}-->"/>
						<div class="searchbar">
							报表时间<input type="text" class="date" id="begin_date" name="begin_date" value="<!--{$begin_date}-->"/>-<input type="text" class="date" id="end_date" name="end_date" value="<!--{$end_date}-->"/>
							&nbsp;<button type="submit" class="but2font">查询</button>&nbsp;<button type="button" class="but2font" onClick="window.location.href='index.php?<!--{$returnParams}-->'">返回</button>
						</div>
					</form>
					<table class="tbl_list" width="100%" border="0" cellpadding="0" cellspacing="0">
						<tr class="thead">
							<td width="20%">时间</td>
							<td width="20%">点击量</td>
							<td width="20%">下载量</td>
							<td width="20%">转化率</td>
						</tr>
						<!--{if $data != null}-->
							<!--{foreach from=$data item=data}-->
							<tr onMouseOver="chgTrColor(this)" onMouseOut="chgTrColor(this)">
								<td><!--{$data.report_day}--></td>
								<td><!--{$data.click_count}--></td>
								<td><!--{$data.down_count}--></td>
								<td><!--{if $data.conversion == null || $data.conversion == 0}-->0%<!--{else}--><!--{$data.conversion}-->%<!--{/if}--></td>
							</tr>
							<!--{/foreach}-->
							<tr>
								<td><b>总量</b></td>
								<td><!--{if $total.click_count == null}-->0<!--{else}--><!--{$total.click_count}--><!--{/if}--></td>
								<td><!--{if $total.down_count == null}-->0<!--{else}--><!--{$total.down_count}--><!--{/if}--></td>
								<td><!--{if $total.conversion == null || $total.conversion == 0}-->0<!--{else}--><!--{$total.conversion}--><!--{/if}-->%</td>
							</tr>
							<tr>
								<td><b>日均量</b></td>
								<td><!--{if $avg_click_count == null}-->0<!--{else}--><!--{$avg_click_count}--><!--{/if}--></td>
								<td><!--{if $avg_down_count == null}-->0<!--{else}--><!--{$avg_down_count}--><!--{/if}--></td>
								<td><!--{if $total.conversion == null || $total.conversion == 0}-->0<!--{else}--><!--{$total.conversion}--><!--{/if}-->%</td>
							</tr>
						<!--{else}-->
						<tr><td colspan="4">暂无数据</td></tr>
						<!--{/if}-->
					</table>
				</div>
			</div>
		</div>
	</div>
</div>
</body>
<script>
function customRange(input){
	return {
		minDate : (input.id == "end_date" ? $("#begin_date").datepicker("getDate") : null),
		maxDate : (input.id == "begin_date" ? $("#end_date").datepicker("getDate") : null)
	}
}
$("#begin_date, #end_date").datepicker({
    beforeShow : customRange, buttonImageOnly : false
});
</script>
</html>