<!doctype html>
<!--[if IE 6]><html id="ie6" dir="ltr" lang="zh-TW"><![endif]-->
<!--[if IE 7]><html id="ie7" dir="ltr" lang="zh-TW"><![endif]-->
<!--[if IE 8]><html id="ie8" dir="ltr" lang="zh-TW"><![endif]-->
<!--[if !(IE 6) | !(IE 7) | !(IE 8)  ]><!-->
<html dir="ltr" lang="zh-TW">
<!--<![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="author" content="<?# webTitle ?>" />
<meta name="copyright" content="<?# webName ?>版權所有" />
<meta name="description" content="<?# webDescription ?>" />
<meta name="distribution" content="Taiwan" /> 
<meta name="keywords" content="<?# webKeyword ?>" />
<meta name="format-detection" content="telephone=no" />
<meta property="og:url" content="<?# RelLink ?><?# REQUESTURI ?>" />
<meta property="og:type" content="website" />
<meta property="og:title" content="<?# ogTitle ?>" />
<meta property="og:description" content="<?# ogDescription ?>" />
<meta property="og:image" content="<?# ogImage ?>" />
<link href="/css/<?# webTemplates ?>/main.css" rel="stylesheet">
<script src="/jquery/jquery-1.10.js"></script>
<script>
	if('<?# alertMsg ?>' != ''){
		alert('<?# alertMsg ?>');
		if('<?# goBack ?>' == 'Y'){
			history.back();
		}
	}
	if('<?# locationHref ?>' != ''){
		location.href = '<?# locationHref ?>';
	}
</script>
<?# headHTML ?>
</head>
<body<?# JumpBody ?>>
<?# bodyTopHTML ?>
<div class="webBox" style="margin: 0; padding: 0; border: 0; width: 100%;<?# JumpStyle ?>">
<?# JumpHTML ?>
<?# JumpScript ?>
<div class="wrapper" id="serchWarp">
    <?# header ?>
    <?# banner ?>
	<link href="/css/<?# webTemplates ?>/layout.css" rel="stylesheet">
	<div class="wrap">
		<div class="workframe">
			<h1><?# CategoryName ?></h1>
			<div class="waylink">
				<ol>
					<li><a title="首頁" href="/">首頁</a></li>
					<li><a href="<?# htLink5 ?>">相本</a></li>
					<php:repeater id="listR">
					<template>
					<li><a href="<?# Link ?>" title="<?# Name ?>"><?# Name ?></a></li>
					</template>
					</php:repeater>
				</ol>
			</div>
			<div id="sideNav" class="catBox">
				<a id="sideMenu" href="javascript:void(0);" title="分類選單"><font class="more">分類選單</font></a>
				<ul class="Cate">
					<li><h3><a href="<?# htLink5 ?>" title="全部相本">全部相本</a></h3></li>
					<php:repeater id="listC">
					<template>
					<li<?# className ?>>
						<h3><a href="<?# link ?>" title="<?# CategoryName ?>"><?# CategoryName ?></a><?# iLabel ?></h3>
						<?# SubList ?>
					</li>
					</template>
					</php:repeater>
				</ul>
			</div>
			<div id="productList">
				<ul>
                    <php:repeater id="list">
                    <template>
					<li>
						<a class="photo" href="<?# link ?>" title="<?# BookName ?>" style="background-image:url(<?# BookImage ?>);"><img src="/images/book-blank.png" alt="<?# BookName ?>"></a>
						<h3><a class="text-clamp" href="<?# link ?>" title="<?# BookName ?>"><?# BookName ?></a></h3>
					</li>
                    </template>
                    </php:repeater>
                </ul>
                <div id="pagenav"><?# pagtxt ?></div>
			</div>
		</div>
	</div>
    <?# sidePage ?>
    <?# footer ?>
</div>
</div>
</body>
</html>
<script src="/jquery/<?# webTemplates ?>/jquery-layout.js"></script>
<script>
	document.body.oncopy = event => {
		event.preventDefault();
		let textFont,
		copyFont = window.getSelection(0).toString();
		if(copyFont.length > 10){
			textFont = copyFont + '\n\n' + '原文網址: <?# webTitle ?> <?# RelLink ?><?# REQUESTURI ?>\n' + '著作權歸作者所有。商業轉載請聯絡作者獲得授權，非商業轉載請註明出處。';
		}else{
			textFont = copyFont;
		}
		if(event.clipboardData){
			return event.clipboardData.setData('text', textFont);
		}else{// 相容IE
			return window.clipboardData.setData('text', textFont);
		}
	};
</script>