<!doctype html>
<!--[if IE 8 ]><html dir="ltr" lang="vi-VN" class="ie8"><![endif]-->
<!--[if IE 9 ]><html dir="ltr" lang="zh-TW" class="ie9"><![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<html dir="ltr" lang="vi-VN">
<!--<![endif]-->
<head>
<!--[if lt IE 9]>
<script src="/js/html5.js"></script>
<![endif]-->
<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><?# webTitle ?></title>
<meta name="keywords" content="<?# webKeyword ?>" />
<meta name="description" content="<?# webDescription ?>" />
<meta property="og:title" content="<?# webTitle ?>"/>
<meta property="og:type" content="<?# webDescription ?>"/>
<meta property="og:url" content="<?# HTTPHOST ?><?# REQUESTURI ?>"/>
<meta property="og:image" content="<?# HTTPHOST ?><?# logoImage ?>"/>
<meta name="robots" content="all" />
<meta name="robots" content="INDEX, FOLLOW" />
<link rel="index" title="<?# webTitle ?>" href="<?# RelLink ?>/index.html" />
<link rel="sitemap" type="htm" title="<?# webTitle ?>" href="<?# RelLink ?>/sitemap.xml" />
<link rel="alternate" type="application/rss+xml" href="<?# RelLink ?>/rss.xml" title="<?# webKeyword ?>" />
<link href="/css/animate.css" rel="stylesheet">
<link href="/css/font-awesome.css" rel="stylesheet">
<link href="/css/<?# webTemplates ?>/main.css" rel="stylesheet">
<link href="/css/<?# webTemplates ?>/sub-main.css" rel="stylesheet">
<link href="/css/<?# webTemplates ?>/product.css" rel="stylesheet">
<link href="/css/<?# webTemplates ?>/fontawesome-stars.css" rel="stylesheet">
<link href="/jquery/slick/slick.css" rel="stylesheet">
<link href="/jquery/slick/slick-theme.css" rel="stylesheet">
<script src="jquery/jquery-1.8.2.min.js"></script>
<script src="/jquery/jquery.scrollTo.min.js"></script>
<script src="/jquery/jquery.scrollTo-1.4.3.1.js"></script>
<script src="/jquery/jquery.SuperSlide.2.1.1.js"></script>
<script src="jquery/slick/slick.min.js"></script>
<script src="/jquery/jquery.barrating.js"></script>
<script src='/jquery/autosize.js'></script>
<script src="/js/05/wow.js"></script>
<script src="/Scripts/tw_cn.js"></script>
</head>
<script type='application/ld+json'>
{
  "@context": "http://www.schema.org",
  "@type": "WebSite",
  "name": "<?# webTitle ?>",
  "url": "<?# RelLink ?><?# REQUESTURI ?>",
  "aggregateRating": {
            "@type": "AggregateRating",
            "ratingValue": "<?# averageStar ?>",
            "reviewCount": "<?# totalNO ?>"
        }
  
}
</script>

<body<?# JumpBody ?>>
<?# headHTML ?>
<?# bodyTopHTML ?>
<?# JumpHTML ?>
<?# JumpScript ?>
	<div id="fb-root"></div>
    <script>
		(function(d, s, id) {
			var js, fjs = d.getElementsByTagName(s)[0];
			if (d.getElementById(id)) return;
			js = d.createElement(s); js.id = id;
			js.src = "//connect.facebook.net/zh_TW/all.js#xfbml=1";
			fjs.parentNode.insertBefore(js, fjs);
		}(document, 'script', 'facebook-jssdk'));
	
		window.___gcfg = {lang: 'zh-TW'};
		(function() {
			var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
			po.src = 'https://apis.google.com/js/plusone.js';
			var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
		})();
	</script>
    <div class="wrapper">
        <?# header ?>
        <div id="newBox"><?# sidePage ?></div>
        <section class="wrap">
        	<div id="topBar">
        		<h1 class="title"><?# ProductName ?><b>Game</b></h1>
                <div class="waylink">
                    
                    <ol itemscope itemtype="http://schema.org/BreadcrumbList">
                        <li itemprop="itemListElement" itemscope
                            itemtype="http://schema.org/ListItem">
                            <a itemprop="item" href="/" title="HOME">
                            <p itemprop="name"><i class="fa fa-home"></i> HOME </p></a>
                            <meta itemprop="position" content="1" />
                        </li>
                        <li itemprop="itemListElement" itemscope
                            itemtype="http://schema.org/ListItem">
                            <a itemprop="item" href="<?# htLink ?><?# CategoryID ?>.html" title="<?# CategoryName ?>">
                            <p itemprop="name"><?# CategoryName ?></p></a>
                            <meta itemprop="position" content="2" />
                        </li>
                        <li itemprop="itemListElement" itemscope
                            itemtype="http://schema.org/ListItem">
                            <a itemprop="item" href="<?# htLink ?>-<?# ProductID ?>.html" title="<?# ProductName ?>">
                            <p itemprop="name"><?# ProductName ?></p></a>
                            <meta itemprop="position" content="3" />
                        </li>
                    </ol>                      
                </div>
            </div>
            <aside>
                <ul>
                	<li<?# className ?>><a href="<?# htLink ?>.html">熱門遊戲</a></li>
                    <php:repeater id="listC">
                        <template>
                            <li<?# className ?>><a href="<?# htLink ?><?# CategoryID ?>.html"><?# CategoryName ?></a></li>
                        </template>
                    </php:repeater>
                </ul>
            </aside>
            <div id="article">
            	<div id="productInfo">
                	<div class="productdetail">
						<script>
                        <!-- <![CDATA[
                        $(function() {
                            $('.leftBox').slick({
                                slidesToShow: 1,
                                slidesToScroll: 1,
                                arrows: false,
                                autoplay: true,
                                autoplaySpeed: 3000,
                            });
                        });
                        // ]]> -->
                        </script>
                        <div class="leftBox">
                            <php:repeater id="listI">
                            <template>
                            <div><a class="photo" href="<?# ProductNO ?>" style="background-image:url(<?# Image ?>);" target="_blank"><img alt="<?# Image ?>" src="/images/32/main/img-gamesPhoto.png"/></a></div>
                            </template>
                            </php:repeater>
                        </div>
                        <div class="rightBox">
                            <h4><?# ProductName ?></h4>
                            <article>
                                <p><?# averageStar ?></p>
                                <?# averageStarIcon ?>
                                <font><?# totalNO ?> 篇評論</font>
                            </article>
                            <article class="Int"><?# Introduction ?></article>
                            <p class="webLink"><a href="<?# ProductNO ?>" target="_blank">前往官網</a></p>
                        </div>
                    </div>
                    <div class="content">
                    	<h5><img src="/images/32/main/icon-pencil.png" /> 詳細介紹</h5>
                        <article><?# Description1 ?></article>
                    </div>
                    <div class="comment">
                    	<h5><img src="/images/32/main/icon-ribbon.png" /> 評論</h5>
                        <?# commentText ?>
                        <ul<?# commentC ?>>
                            <php:repeater id="listM">
                            <template>
                        	<li>
                            	<p><b><?# CustomerName ?></b> <span><?# CreatedTime ?></span></p>
                                <p class="star"><?# StarsIcon ?></p>
								<?# Image ?>
                                <article><?# Content ?></article>
                            </li>
                            </template>
                            </php:repeater>
                        </ul>
                    </div>
                    <div class="score">
                    	<h5><img src="/images/32/main/icon-chat.png" /> 評分和評論</h5>
                        <h6><?# CustomerName ?></h6>
                        <font>留下您寶貴的評論與評分。</font>
                        <form id="comment" name="comment" method="post">
                            <div class="stars stars-example-fontawesome">
                                <select id="Stars" name="Stars">
                                    <option value="1">1</option>
                                    <option value="2">2</option>
                                    <option value="3">3</option>
                                    <option value="4">4</option>
                                    <option value="5">5</option>
                                </select>
                            </div>
                            <p><textarea class="auto-height" id="Content" name="Content" placeholder="詳細評論"></textarea></p>
                            <p class="send">
                                <input type="text" id="Checknum" name="Checknum" onKeyUp="this.value=this.value.toUpperCase();" maxlength="4" placeholder="驗證碼" />
                                <img src="vdimgck.php" id="rand-img" alt="看不清楚？ 點圖更換新圖片" align="absmiddle" style="cursor:pointer; border:none;" onClick="this.src=this.src+'?'">
                                <a id="btnOK" href="javascript:void(0);" title="送出">送出</a>
                            </p>
                        </form>
                    </div>
                </div>
                <div id="otherProduct">
                	<h2>類似內容 <a href="<?# htLink ?>.html">更多</a></h2>
                    <ul>
                        <php:repeater id="listP">
                        <template>
                        <li>
                            <div class="productPhoto"><a class="photo" href="<?# htLink ?>-<?# ProductID ?>.html" title="<?# ProductName ?>" style="background-image:url(<?# IconImage ?>);"><img src="/images/32/main/img-gamesPhoto.png"></a></div>
                            <div class="info">
	                            <h3><a class="text-clamp" href="<?# htLink ?>-<?# ProductID?>.html" title="<?# ProductName ?>"><?# ProductName ?></a></h3>
                                <p class="star"><?# averageStarIcon ?> <font><?# Star ?> 分</font></p>
                                <article class="text-clamp"><?# Introduction ?></article>
                            </div>
                        </li>
                        </template>
                        </php:repeater>
                    </ul>
                </div>
            </div>
        </section>
        <?# footer ?>
	</div>
</body>
</html>
<link href="/jquery/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet">
<script src="/jquery/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>
<script>
<!--
	autosize(document.querySelectorAll('textarea'));
	
	$(function() {
		$(".fancybox").fancybox();
		
		$('#Stars').barrating({
			theme: 'fontawesome-stars',
			showSelectedRating: false
		});
		
		$('#btnOK').click(function(){
			if($('#Stars').val() == ""){
				alert('請選擇星級');
				$('#Stars').focus();
				return false;
			}
			if($('#Content').val() == ""){
				alert('請輸入評論內容');
				$('#Content').focus();
				return false;
			}
			if($('#Checknum').val() == ""){
				alert('請輸入驗證碼');
				$('#Checknum').focus();
				return false;
			}else{
				$.ajax({
					'url': 'ajax/comment.php',
					'async': false,
					'type': 'POST',
					'data': {'do':'com','id':<?# ProductID ?>,'stars':$('#Stars').val(),'cont':$('#Content').val(),'check':$('#Checknum').val()},
					'dataType': 'json',
					'success': function(Jdata){
						alert(Jdata.Message);
						if(Jdata.Status == '0'){
							location.href = location.href;
						}else if(Jdata.Status == '2'){
							location.href = "/memberlogin.html";
						}else{
							document.execCommand('Refresh');
						}
					},
					'error': function(){
						alert('系統異常!請重新整理頁面再試一次!');
						location.href = location.href;
					}
				});
			}
		});
		
		$("#Checknum").keypress(function(e){
			code = (e.keyCode ? e.keyCode : e.which);
			if (code == 13){
				if($('#Stars').val() == ""){
					alert('請選擇星級');
					$('#Stars').focus();
					return false;
				}
				if($('#Content').val() == ""){
					alert('請輸入評論內容');
					$('#Content').focus();
					return false;
				}
				if($('#Checknum').val() == ""){
					alert('請輸入驗證碼');
					$('#Checknum').focus();
					return false;
				}else{
					$.ajax({
						'url': 'ajax/comment.php',
						'async': false,
						'type': 'POST',
						'data': {'do':'com','id':<?# ProductID ?>,'stars':$('#Stars').val(),'cont':$('#Content').val(),'check':$('#Checknum').val()},
						'dataType': 'json',
						'success': function(Jdata){
							alert(Jdata.Message);
							if(Jdata.Status == '0'){
								location.href = location.href;
							}else if(Jdata.Status == '2'){
								location.href = "/memberlogin.html";
							}else{
								document.execCommand('Refresh');
							}
						},
						'error': function(){
							alert('系統異常!請重新整理頁面再試一次!');
							location.href = location.href;
						}
					});
				}
			}
		});
	});
//-->
</script>