<!DOCTYPE html>
<html dir="ltr" lang="zh-TW">
<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>
<script src="ckfinder/ckfinder.js"></script>
<!--tabs-->
<script src="/jquery/horizontalmenu/jquery.horizontalmenu.js"></script>
<!-- 瀏覽用燈箱片效果 -->
<link href="/jquery/fancybox-3.0/dist/jquery.fancybox.css" rel="stylesheet">
<script src="/jquery/fancybox-3.0/dist/jquery.fancybox.min.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">
			<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);">頁首LOGO</a>
						<a class="tabs_item" data-id="box2" href="javascript:void(0);">頁腳LOGO</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_6 d_flex form_list">
							<label>圖片</label>
							<p class="d_flex upBox">
								<a class="img_box"></a>
								<font class="col_12 in_group">
									<input type="text" id="Image1" name="Image1" data-action="Image" value="<?# Image1 ?>" />
									<b class="group"><a class="btn btn_dark" href="javascript:void(0);" data-action="btnImg" data-type="Images"><svg class="fa"><use xlink:href="svg/icons.svg#folder"></use></svg></a></b>
								</font>
							</p>
						</div>
						<div class="col_md_6 d_flex form_list"><label>標題</label><input type="text" id="Title1" name="Title1" value="<?# Title1 ?>" /></div>
						<div class="col_12 d_flex form_list"><label>超連結</label><input type="text" id="Link1" name="Link1" value="<?# Link1 ?>" /></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_6 d_flex form_list">
							<label>圖片</label>
							<p class="d_flex upBox">
								<a class="img_box"></a>
								<font class="col_12 in_group">
									<input type="text" id="Image2" name="Image2" data-action="Image" value="<?# Image2 ?>" />
									<b class="group"><a class="btn btn_dark" href="javascript:void(0);" data-action="btnImg" data-type="Images"><svg class="fa"><use xlink:href="svg/icons.svg#folder"></use></svg></a></b>
								</font>
							</p>
						</div>
						<div class="col_md_6 d_flex form_list"><label>標題</label><input type="text" id="Title2" name="Title2" value="<?# Title2 ?>" /></div>
						<div class="col_12 d_flex form_list"><label>超連結</label><input type="text" id="Link2" name="Link2" value="<?# Link2 ?>" /></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_6 d_flex form_list">
							<label>圖片</label>
							<p class="d_flex upBox">
								<a class="img_box"></a>
								<font class="col_12 in_group">
									<input type="text" id="Image3" name="Image3" data-action="Image" value="<?# Image3 ?>" />
									<b class="group"><a class="btn btn_dark" href="javascript:void(0);" data-action="btnImg" data-type="Images"><svg class="fa"><use xlink:href="svg/icons.svg#folder"></use></svg></a></b>
								</font>
							</p>
						</div>
						<div class="col_md_6 d_flex form_list"><label>標題</label><input type="text" id="Title3" name="Title3" value="<?# Title3 ?>" /></div>
						<div class="col_12 d_flex form_list"><label>超連結</label><input type="text" id="Link3" name="Link3" value="<?# Link3 ?>" /></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(){
		$('#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>