<!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>
<!-- 下拉選單 -->
<link href="/jquery/select/nice-select.css" rel="stylesheet">
<script src="/jquery/select/jquery.nice-select.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">
			<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" href="index.php">控制台</a>
						<a class="tabs_item" data-action="true" href="javascript:void(0);"><?# page_name ?></a>
					</div>
				</div>
				<div class="d_md_flex flex_wrap card_body form_box">
					<div class="col_md_6 d_flex form_list">
						<label>跳轉類型</label>
						<select id="webJumpType" name="webJumpType">
							<option value="0">不跳轉</option>
							<option value="10">跳一(下面可以看到原網站)</option>
							<option value="20">跳二(javascript滑鼠滑跳)</option>
							<option value="30">跳三(沒有拉霸看不到原網站)</option>
							<option value="60">跳六(iframe鑲嵌網站)</option>
						</select>
					</div>
					<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="webJumpImage" name="webJumpImage" data-action="Image" value="<?# webJumpImage ?>" />
								<b class="group"><a class="btn btn_dark" href="javascript:void(0);" data-action="btnImg" data-type="Jump"><svg class="fa"><use xlink:href="svg/icons.svg#folder"></use></svg></a></b>
							</font>
						</p>
					</div>
					<div class="col_12 d_flex form_list"><label>跳轉連結</label><input type="text" id="webJumpLink" name="webJumpLink" value="<?# webJumpLink ?>" /></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(){
		$('#webJumpType').val('<?# webJumpType ?>');
		
		$('select').niceSelect();

		$('#btnOK').click(function(){
			$('#form1').submit();
		});
	});
</script>