<!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;流量明细
				</div>
			</div>
			<div class="tabcontent">
				<a href="index.php?r=Report.basic" class="link">流量概况</a>
				<a href="index.php?r=Report.channelmodule" class="nolink">流量明细</a>
				<a href="index.php?r=Report.channel" class="link">频道PV分析</a>
				<a href="index.php?r=Report.visitlog" class="link">访问记录</a>
				<a href="index.php?r=Report.flowcontrol" class="link">流量控制</a>
			</div>
			<div id="secrightContent">
				<div class="tableContent2">
					<form action="index.php" method="get" onSubmit="setDisabled('button', window.document);">
						<input type="hidden" name="r" value="Report.channelmodule"/>
						<div class="searchbar">
							报表类型&nbsp;<select name="query_type">
								<option value="1" <!--{if $query_type == 1}-->selected<!--{/if}-->>日报表</option>
								<option value="2" <!--{if $query_type == 2}-->selected<!--{/if}-->>月报表</option>
							</select>
							&nbsp;报表时间&nbsp;<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>
						</div>
					</form>
					<table class="tbl_list" width="100%" border="0" cellpadding="0" cellspacing="0">
						<tr class="thead">
							<td width="5%">序号</td>
							<td width="15%">日期</td>
							<td width="20%">网站总PV/UV</td>
							<td width="20%">软件模块PV/UV</td>
							<td width="20%">游戏模块PV/UV</td>
							<td width="20%">主题模块PV/UV</td>
						</tr>
						<!--{foreach from=$reportAllList item=item name=foo}-->
						<!--{assign var=softPv value=0}-->
						<!--{assign var=softUv value=0}-->
						<!--{assign var=gamePv value=0}-->
						<!--{assign var=gameUv value=0}-->
						<!--{assign var=themePv value=0}-->
						<!--{assign var=themeUv value=0}-->
						<!--{foreach from=$reportModuleList item=moduleReport}-->
							<!--{if $query_type == 1}-->
								<!--{if $item.report_day == $moduleReport.report_day}-->
									<!--{if $moduleReport.channel_module_id == 2}-->
										<!--{assign var=softPv value=$moduleReport.pv}-->
										<!--{assign var=softUv value=$moduleReport.uv}-->
									<!--{elseif $moduleReport.channel_module_id == 3}-->
										<!--{assign var=gamePv value=$moduleReport.pv}-->
										<!--{assign var=gameUv value=$moduleReport.uv}-->
									<!--{elseif $moduleReport.channel_module_id == 8}-->
										<!--{assign var=themePv value=$moduleReport.pv}-->
										<!--{assign var=themeUv value=$moduleReport.uv}-->
									<!--{/if}-->
								<!--{/if}-->
							<!--{else}-->
								<!--{if $item.report_month == $moduleReport.report_month}-->
									<!--{if $moduleReport.channel_module_id == 2}-->
										<!--{assign var=softPv value=$moduleReport.pv}-->
										<!--{assign var=softUv value=$moduleReport.uv}-->
									<!--{elseif $moduleReport.channel_module_id == 3}-->
										<!--{assign var=gamePv value=$moduleReport.pv}-->
										<!--{assign var=gameUv value=$moduleReport.uv}-->
									<!--{elseif $moduleReport.channel_module_id == 8}-->
										<!--{assign var=themePv value=$moduleReport.pv}-->
										<!--{assign var=themeUv value=$moduleReport.uv}-->
									<!--{/if}-->
								<!--{/if}-->
							<!--{/if}-->
						<!--{/foreach}-->
						<tr onMouseOver="chgTrColor(this)" onMouseOut="chgTrColor(this)">
							<td><!--{$smarty.foreach.foo.iteration}--></td>
							<td><!--{if $query_type == 1}--><!--{$item.report_day}--><!--{elseif $query_type == 2}--><!--{$item.report_month}--><!--{/if}--></td>
							<td><!--{$item.pv}-->/<!--{$item.uv}--></td>
							<td><!--{$softPv}-->/<!--{$softUv}--></td>
							<td><!--{$gamePv}-->/<!--{$gameUv}--></td>
							<td><!--{$themePv}-->/<!--{$themeUv}--></td>
						</tr>
						<!--{foreachelse}-->
						<tr><td colspan="6">没有对应数据</td></tr>
						<!--{/foreach}-->
					</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>