<!--<?php
include_once PrintEot('left');print <<<EOT
-->
<ul class="nav3">
<li><a href="$basename&action=config" $cls_config>基本設置</a></li>
<li><a href="$basename&action=report" $cls_report>數據報告</a></li>
<!--
EOT;
if($action=='config'){print <<<EOT
-->
</ul>
<div class="c"></div>
<h3>統計說明</h3>
<div class="tr5">
		雅虎統計是一款第三方免費網站流量統計分析系統<br />
		通過統計分析大量數據, 結合網絡營銷,為您提供運營, 廣告投放, 推廣等決策依據<br />
		用戶包括個人站長, 個人博主, 網站管理者, 第三方統計等<br />
<!--
EOT;
if($db_ystats_unit_id && empty($db_ystats_ymail)){print <<<EOT
-->
		綁定雅虎帳號可以登錄雅虎平台，查看更詳細的數據報告，你還沒有綁定雅虎帳號，<a href="$basename&action=bind" style="color:blue">現在綁定</a><br />
<!--
EOT;
}elseif($db_ystats_unit_id && $db_ystats_ymail){print <<<EOT
-->
		你已經綁定雅虎帳號,現在就可以登錄雅虎平台，查看更詳細的數據報告，<a href="http://v3.tongji.cn.yahoo.com" style="color: blue" target="_blank">現在登錄</a>
<!--
EOT;
}print <<<EOT
-->
		</div><br/>
<form name="FORM" action="$basename" method="post">
<input type="hidden" name="action" value="config" />
<input type="hidden" name="step" value="2" />
<h2>開啟雅虎統計</h2>
<table width="100%" cellspacing="0" cellpadding="0">
	<tr class="tr3">
		<td width="30%"><span class="xia2">是否開啟雅虎統計</span></td>
		<td><input name="config[ifopen]" type="radio" value="0" {$ifopen_N}> 開啟
		<input name="config[ifopen]" type="radio" value="1" {$ifopen_Y}> 關閉</td>
	</tr>
	<tr class="tr3">
		<td><span class="xia2">統計標識</span><br />選擇前台標識顯示的樣式，但可能會存在延時問題。</td>
		<td><input name="config[style]" type="radio" value="1" $style_1> <img src="$imgpath/admin/ystaticon.gif">&nbsp;&nbsp;&nbsp;
		<input name="config[style]" type="radio" value="2" $style_2> 雅虎統計&nbsp;&nbsp;&nbsp;
		<input name="config[style]" type="radio" value="4" $style_4> Yahoo! Stat.&nbsp;&nbsp;&nbsp;
		<input name="config[style]" type="radio" value="5" $style_5> 不顯示圖標或文字</td>
	</tr>
</table>
<br /><center><input type="submit" class="btn" value="提 交"></center>
</form>
<!--
EOT;
}elseif($action=='report'){print <<<EOT
-->
</ul>
<div class="c"></div>
<form name="FORM" action="$basename" method="post">
<input type="hidden" name="action" value="report" />
<h2>數據報告</h2>
<table width="100%" cellspacing="0" cellpadding="0">
	<tr class="tr3">
		<td>選擇時段:&nbsp;
		<input type="radio" name="view" onClick="javascript:document.FORM.submit();" value="colligate" $colligate /> 綜合報告
		<input type="radio" name="view" onClick="javascript:document.FORM.submit();" value="thisweek" $thisweek /> 本周
		<input type="radio" name="view" onClick="javascript:document.FORM.submit();" value="lastweek" $lastweek /> 上周
		<input type="radio" name="view" onClick="javascript:document.FORM.submit();" value="thismonth" $thismonth /> 本月
		<input type="radio" name="view" onClick="javascript:document.FORM.submit();" value="last30" $last30 /> 最近30天
		<input type="radio" name="view" value="other" id="other" $other /> 任意月
		<select name="year" onClick="javascript:getObj('other').checked = true;">
<!--
EOT;
for($i=2007;$i<=$pwDate[year];$i++){print <<<EOT
-->
			<option value="$i" ${'year_'.$i}>$i</option>
<!--
EOT;
}print <<<EOT
-->
		</select>
		<select name="month" onClick="javascript:getObj('other').checked=true;">
			<option value="01" $month_01>01</option>
			<option value="02" $month_02>02</option>
			<option value="03" $month_03>03</option>
			<option value="04" $month_04>04</option>
			<option value="05" $month_05>05</option>
			<option value="06" $month_06>06</option>
			<option value="07" $month_07>07</option>
			<option value="08" $month_08>08</option>
			<option value="09" $month_09>09</option>
			<option value="10" $month_10>10</option>
			<option value="11" $month_11>11</option>
			<option value="12" $month_12>12</option>
		</select>
		<input type="button" class="btn" value="查看" style="margin-bottom:4px;" onClick="javascript:getObj('other').checked=true;document.FORM.submit();">
	</td></tr>
</table>
</form>
<!--
EOT;
if($view=='colligate'){print <<<EOT
-->
<h2>綜合報告</h2>
<table width="100%" cellspacing="0" cellpadding="0">
	<tr class="tr3">
<!--
EOT;
if($ystats[date_list]){print <<<EOT
-->
		<td>
			<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="740" height="260">
			<param name="movie" value="$imgpath/admin/ystats.swf" />
			<param name="FlashVars" value="data=$basename" />
			<param name="quality" value="high" />
			<embed WMODE="transparent" src="$imgpath/admin/ystats.swf" FlashVars="data=$basename" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="740" height="260"></embed>
			</object>
		</td>
<!--
EOT;
}else{print <<<EOT
-->
		<td align=center><font color="red"><b>對不起，該時段內無數據</b></font></td>
<!--
EOT;
}print <<<EOT
-->
	</tr>
</table>
<br />
<h2>網站流量</h2>
<table width="100%" cellspacing="0" cellpadding="0">
	<tr class="tr3">
		<td></td>
		<td width="25%"><b>PV</b></td>
		<td width="25%"><b>UV</b></td>
		<td width="25%"><b>IP</b></td>
	</tr>
	<tr class="tr3">
		<td>今日︰</td>
		<td>{$ystats[today][pv]}</td>
		<td>{$ystats[today][uv]}</td>
		<td>{$ystats[today][ip]}</td>
	</tr>
	<tr class="tr3">
		<td>昨日此時︰</td>
		<td>{$ystats[yestoday_att][pv]}</td>
		<td>{$ystats[yestoday_att][uv]}</td>
		<td>{$ystats[yestoday_att][ip]}</td>
	</tr>
	<tr class="tr3">
		<td>昨日︰</td>
		<td>{$ystats[yestoday][pv]}</td>
		<td>{$ystats[yestoday][uv]}</td>
		<td>{$ystats[yestoday][ip]}</td>
	</tr>
	<tr class="tr3">
		<td>預計今日︰</td>
		<td>{$ystats[today_expect][pv]}</td>
		<td>{$ystats[today_expect][uv]}</td>
		<td>{$ystats[today_expect][ip]}</td>
	</tr>
	<tr class="tr3">
		<td>平均每日︰</td>
		<td>{$ystats[average_day][pv]}</td>
		<td>{$ystats[average_day][uv]}</td>
		<td>{$ystats[average_day][ip]}</td>
	</tr>
	<tr class="tr3">
		<td>本月合計︰</td>
		<td>{$ystats[sum_month][pv]}</td>
		<td>{$ystats[sum_month][uv]}</td>
		<td>{$ystats[sum_month][ip]}</td>
	</tr>
	<tr class="tr3">
		<td>總量︰</td>
		<td>{$ystats[sum_all][pv]}</td>
		<td>{$ystats[sum_all][uv]}</td>
		<td>{$ystats[sum_all][ip]}</td>
	</tr>
</table>
<!--
EOT;
}else{print <<<EOT
-->
<h2>時段︰$sdate - $edate</h2>
	<tr class="tr3">
<!--
EOT;
if($ystats[date_list]){print <<<EOT
-->
		<td>
			<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="740" height="260">
			<param name="movie" value="$imgpath/admin/ystats.swf" />
			<param name="FlashVars" value="data=$basename&action=draw" />
			<param name="quality" value="high" />
			<embed WMODE="transparent" src="$imgpath/admin/ystats.swf" FlashVars="data=$basename&action=draw" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="740" height="260"></embed>
			</object>
		</td>
<!--
EOT;
}else{print <<<EOT
-->
		<td align=center><font color=red><b>對不起，該時段內無數據</b></font></td>
<!--
EOT;
}print <<<EOT
-->
	</tr>
</table>
<br />
<h2>報表解讀</h2>
<table width="100%" cellspacing="0" cellpadding="0">
	<tr class="tr3">
		<td width='25%'><b>日期</b></td>
		<td width='25%'><b>PV(總訪問量)</b></td>
		<td width='25%'><b>UV(總訪客數)</b></td>
		<td width='25%'><b>IP</b></td>
	</tr>
	<tr class="tr3">
		<td>總計</td>
		<td>$sum_pv</td>
		<td>$sum_uv</td>
		<td>$sum_ip</td>
	</tr>
<!--
EOT;
foreach($ystats['date_list'] as $list){print <<<EOT
-->
	<tr class="tr3">
		<td>$list[value]</td>
		<td>$list[pv]</td>
		<td>$list[uv]</td>
		<td>$list[ip]</td>
	</tr>
<!--
EOT;
}print <<<EOT
-->
</table>
<!--
EOT;
}}elseif($action=='bind'){print <<<EOT
-->
<li><a href="$basename&action=bind" $cls_bind>綁定賬號</a></li>
</ul>
<div class="c"></div>
<form name="FORM" action="$basename" method="post">
<input type="hidden" name="action" value="bind" />
<input type="hidden" name="step" value="2" />
<h2>綁定雅虎帳號</h2>
<table width="100%" cellspacing="0" cellpadding="0">
	<tr class="tr3">
		<td width="30%"><span class="xia2">雅虎郵箱地址</span><br />請輸入 yahoo.com.cn或yahoo.cn 郵箱地址</td>
		<td><input name="ymail" class="input" size="35"></td>
	</tr>
</table>
<br /><center><input type="submit" class="btn" value=" 我要綁定 "></center>
</form>
<!--
EOT;
}include_once PrintEot('adminbottom');
?>-->