<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="css/admin.css" rel="stylesheet" type="text/css"/>
<script src="js/jquery/jquery.min.js"></script>
<script src="js/resize.js"></script>
<script src="js/common.js"></script>
<script src="js/jquery/datepicker/ui.datepicker.min.js"></script>
<script src="js/jquery/datepicker/ui.datepicker-zh-CN.js"></script>
<link href="js/jquery/datepicker/ui.datepicker.css" rel="stylesheet"/>
</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>互动社区&gt;&gt;开心农场 &gt;&gt;<span class="secfont"><b>农场数据分析</b></span>
				</div>
			</div>
			<div class="tabcontent">
				<a href="index.php?r=farm&plugin=farm" class="nolink">农场数据分析</a>
			</div>
			<div id="secrightContent">
				<div class="tableContent3">
					<form name="searchForm" action="index.php">
						<input type="hidden" name="r" value="farm"/>
						<input type="hidden" name="plugin" value="farm"/>
						<input type="hidden" name="returnParams" value="<!--{$returnParams}-->"/>
						<table class="ttop" width="100%" border="0" cellpadding="0" cellspacing="0">
						<tr><td>
							<span class="but2font l" onClick="window.location.href='index.php?<!--{$returnParams}-->'">返回</span>
							<span class="r">报表时间：从&nbsp;<input class="input_date" id="begin_date" name="begin_date" value="<!--{$begin_date}-->"/>&nbsp;到&nbsp;<input class="input_date" id="end_date" name="end_date" value="<!--{$end_date}-->"/><button type="submit" class="but2font">查询</button></span>
						</td></tr>
						</table>
					</form>
					<table class="tbl_list" width="100%" border="0" cellpadding="0" cellspacing="0">
						<tr class="thead">
							<td width="20%">时间</td>
							<td width="20%">农场PV</td>
							<td width="20%">农场UV</td>
							<td width="20%">激活会员</td>
						</tr>
						<!--{if $data != null}-->
							<!--{foreach from=$data item=data name=foo}-->
							<tr onMouseOver="chgTrColor(this)" onMouseOut="chgTrColor(this)">
								<td><!--{$data.report_day}--></td>
								<td><!--{$data.pv}--></td>
								<td><!--{$data.uv}--></td>
								<td><!--{$data.add_user}--></td>
							</tr>
							<!--{/foreach}-->
							<tr class="page"><td colspan="4"><!--{$pager}--></td></tr>
							<tr onMouseOver="chgTrColor(this)" onMouseOut="chgTrColor(this)">
								<td><!--{$begin_date}-->到<!--{$end_date}-->总量</td>
								<td><!--{$total.pv}--></td>
								<td><!--{$total.uv}--></td>
								<td><!--{$total.total_user}--></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>