<!DOCTYPE html>
<!--[if IE 8 ]><html dir="ltr" lang="zh-TW" class="ie8"><![endif]-->
<!--[if IE 9 ]><html dir="ltr" lang="zh-TW" class="ie9"><![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<html dir="ltr" lang="zh-TW">
<!--<![endif]-->
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0">
<title>管理後臺</title>
<meta name="robots" content="noindex, nofollow" />
<link href="/css/font-awesome.min.css" rel="stylesheet">
<link href="css/main.css" rel="stylesheet" type="text/css" />
<script src="/jquery/jquery-1.8.2.min.js"></script>
<script>
	if('<?# alertMsg ?>' != ''){
		alert('<?# alertMsg ?>');
		if('<?# goBack ?>' == 'Y'){
			history.back();
		}
	}
	if('<?# locationHref ?>' != ''){
		location.href = '<?# locationHref ?>';
	}
</script>
</head>
<body>
	<div class="wrapper">
    	<?# header ?>
    	<div class="wrap">
        	<?# sidePage ?>
            <div class="contentMain">
            	<h3 class="pagTitle">搜尋引擎分析</h3>
                <div id="countBtn">
                    <a class="btn" href="countAnalyze.php">瀏覽人數分析</a>
                    <a class="btn sky" href="countLast100.php">最後一百位訪客</a>
                    <a class="btn green action" href="countSearchEngine.php">搜尋引擎分析</a>
                    <a class="btn yellow" href="countIP.php">IP點擊次數</a>
                </div>
                <div class="showBox">
                	<div class="showHeader">
                    	<p>搜尋</p>
                        <font><a href="javascript:void(0);" data-action="showBtn"><i class="fa fa-chevron-up"></i> 收合</a></font>
                    </div>
                    <div class="showInfo">
                        <form id="form1" name="form1" method="post" action="countSearchEngine.php">
                            <font>分析月份：</font>
                            <font>
                                <select id="ym" name="ym">
                                    <php:repeater id="listT">
                                    <template>
                                    <option value="<?# ym ?>"><?# ym ?></option>
                                    </template>
                                    </php:repeater>
                                </select>
                            </font>
                            <font><a id="btnOK" class="btn" href="javascript:void(0);">搜尋</a></font>
                        </form>
                    </div>
                </div>
                <div class="contEngine">
                    <php:repeater id="listC">
                    <template>
                    <div class="list">
                    	<b><?# type ?></b>
                    	<p><?# title ?></p>
                        <h4 id="myTarget<?# NO ?>"><?# count ?></h4>
                    </div>
                    </template>
                    </php:repeater>
                </div>
            </div>
        </div>
        <?# footer ?>
    </div>
<script type="text/javascript" src="/js/01/countUp.js"></script>
<script src="/jquery/admin-jquery.js"></script><!--後台所有jq控制-->
<script>
	var options = {
		useEasing : true, 
		useGrouping : true, 
		separator : ',', 
		decimal : '.' 
	}
	<php:repeater id="listC2">
	<template>
	var demo<?# NO ?> = new countUp("myTarget<?# NO ?>", 0, <?# count ?>, 0, 8.5, options);
	demo<?# NO ?>.start();
	</template>
	</php:repeater>
	$(function(){
		$('#ym').val('<?# ym ?>');
		$('#btnOK').click(function(){
			$('#form1').submit();
		});
	});
</script>
</body>
</html>