<!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="less/page.less" rel="stylesheet/less">
<link href="css/main.css" rel="stylesheet">
<link href="css/page.css" rel="stylesheet">
<script src="/jquery/jquery-1.10.js"></script>
<!--tabs-->
<script src="/jquery/horizontalmenu/jquery.horizontalmenu.js"></script>
<script>
	if('<?# alertMsg ?>' != ''){
		alert('<?# alertMsg ?>');
		if('<?# goBack ?>' == 'Y') history.back();
	}
	if('<?# locationHref ?>' != '') location.href = '<?# locationHref ?>';
</script>
</head>
<body>
	<?# sidePage ?>
	<div class="pos_rel" id="content">
		<?# header ?>
		<form id="form1" name="form1" method="post">
            <input type="hidden" id="id" name="id" value="<?# id ?>" />
			<div class="row mt_10 mb_5 h3 page_title"><?# page_name ?></div>
			<div class="card">
				<div class="pos_rel bg_g_100 tabs_warp" id="tabs_warp">
					<div class="tabs_list">
						<a class="tabs_item" data-action="true" data-id="box1" href="javascript:void(0);">首頁設置</a>
						<a class="tabs_item" data-id="box2" href="javascript:void(0);">聯絡我們設置</a>
						<a class="tabs_item" data-id="box3" href="javascript:void(0);">購物車設置</a>
					</div>
				</div>
				<div id="tabs_box" class="card_body form_box">
					<div id="box1" class="d_md_flex flex_wrap tab_content" data-action="true">
						<div class="col_md_4 d_flex form_list"><label>評分最高值</label><input type="text" id="indexBestRating" name="indexBestRating" value="<?# indexBestRating ?>" placeholder="如果空白預設為5分。" /></div>
						<div class="col_md_4 d_flex form_list"><label>內容評分</label><input type="text" id="indexRatingValue" name="indexRatingValue" value="<?# indexRatingValue ?>" /></div>
						<div class="col_md_4 d_flex form_list"><label>總評分數</label><input type="text" id="indexRatingCount" name="indexRatingCount" value="<?# indexRatingCount ?>" /></div>
						<div class="col_md_4 d_flex form_list"><label>總評論數</label><input type="text" id="indexReviewCount" name="indexReviewCount" value="<?# indexReviewCount ?>" /></div>
						<div class="col_md_4 d_flex form_list"><label>結構化資料</label><p class="open"><font class="checkbox"><input type="checkbox" id="indexIsShowJason" name="indexIsShowJason" value="1"><span></span></font></p></div>
						<div class="col_md_4 d_flex form_list"><label>星級/評論</label><p class="IsIndex"><font class="checkbox"><input type="checkbox" id="indexIsShowStars" name="indexIsShowStars" value="1"><span></span></font></p></div>
						<div class="col_12 d_flex form_btn"><a class="ml_2 btn btn_tertiary" data-action="nextPage" href="javascript:void(0);">下一步</a></div>
					</div>
					<div id="box2" class="d_md_flex flex_wrap tab_content">
						<div class="col_md_4 d_flex form_list"><label>評分最高值</label><input type="text" id="contactBestRating" name="contactBestRating" value="<?# contactBestRating ?>" placeholder="如果空白預設為5分。" /></div>
						<div class="col_md_4 d_flex form_list"><label>內容評分</label><input type="text" id="contactRatingValue" name="contactRatingValue" value="<?# contactRatingValue ?>" /></div>
						<div class="col_md_4 d_flex form_list"><label>總評分數</label><input type="text" id="contactRatingCount" name="contactRatingCount" value="<?# contactRatingCount ?>" /></div>
						<div class="col_md_4 d_flex form_list"><label>總評論數</label><input type="text" id="contactReviewCount" name="contactReviewCount" value="<?# contactReviewCount ?>" /></div>
						<div class="col_md_4 d_flex form_list"><label>結構化資料</label><p class="open"><font class="checkbox"><input type="checkbox" id="contactIsShowJason" name="contactIsShowJason" value="1"><span></span></font></p></div>
						<div class="col_md_4 d_flex form_list"><label>星級/評論</label><p class="IsIndex"><font class="checkbox"><input type="checkbox" id="contactIsShowStars" name="contactIsShowStars" value="1"><span></span></font></p></div>
						<div class="col_12 d_flex form_btn">
							<a class="ml_2 btn btn_orange" data-action="upPage" href="javascript:void(0);">上一步</a>
							<a class="ml_2 btn btn_tertiary" data-action="nextPage" href="javascript:void(0);">下一步</a>
						</div>
					</div>
					<div id="box3" class="d_md_flex flex_wrap tab_content">
						<div class="col_md_4 d_flex form_list"><label>評分最高值</label><input type="text" id="orderBestRating" name="orderBestRating" value="<?# orderBestRating ?>" placeholder="如果空白預設為5分。" /></div>
						<div class="col_md_4 d_flex form_list"><label>內容評分</label><input type="text" id="orderRatingValue" name="orderRatingValue" value="<?# orderRatingValue ?>" /></div>
						<div class="col_md_4 d_flex form_list"><label>總評分數</label><input type="text" id="orderRatingCount" name="orderRatingCount" value="<?# orderRatingCount ?>" /></div>
						<div class="col_md_4 d_flex form_list"><label>總評論數</label><input type="text" id="orderReviewCount" name="orderReviewCount" value="<?# orderReviewCount ?>" /></div>
						<div class="col_md_4 d_flex form_list"><label>結構化資料</label><p class="open"><font class="checkbox"><input type="checkbox" id="orderIsShowJason" name="orderIsShowJason" value="1"><span></span></font></p></div>
						<div class="col_md_4 d_flex form_list"><label>星級/評論</label><p class="IsIndex"><font class="checkbox"><input type="checkbox" id="orderIsShowStars" name="orderIsShowStars" value="1"><span></span></font></p></div>
						<div class="col_12 d_flex form_btn"><a class="ml_2 btn btn_orange" data-action="upPage" href="javascript:void(0);">上一步</a></div>
					</div>
				</div>
			</div>
            <div class="row mt_5 d_flex start_box"><a class="mr_2 btn btn_info" id="btnOK" href="javascript:void(0);">送出</a></div>
		</form>
		<?# footer ?>
	</div>
</body>
</html>
<script>
	$(function(){
		$('#webSeoSearch').val('<?# webSeoSearch ?>');
		if('<?# indexIsShowJason ?>' == '1') $('#indexIsShowJason').prop('checked', true);
		if('<?# indexIsShowStars ?>' == '1') $('#indexIsShowStars').prop('checked', true);
		if('<?# contactIsShowJason ?>' == '1') $('#contactIsShowJason').prop('checked', true);
		if('<?# contactIsShowStars ?>' == '1') $('#contactIsShowStars').prop('checked', true);
		if('<?# orderIsShowJason ?>' == '1') $('#orderIsShowJason').prop('checked', true);
		if('<?# orderIsShowStars ?>' == '1') $('#orderIsShowStars').prop('checked', true);
		
		$('#tabs_warp').horizontalmenu({
			itemClick: function (item) {
				$('#tabs_box .tab_content').removeAttr('data-action');
				$('#tabs_box .tab_content:eq(' + $(item).index() + ')').attr('data-action', 'true');
				return false;
			}
		});
		
		$('#btnOK').click(function(){
			$('#form1').submit();
		});
	});
</script>