<!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="/less/<?# webTemplates ?>/main.less" rel="stylesheet/less">
<link href="/less/<?# webTemplates ?>/layout.less" rel="stylesheet/less">
<link href="/css/<?# webTemplates ?>/main.css" rel="stylesheet">
<link href="/css/<?# webTemplates ?>/layout.css" rel="stylesheet">
<script src="/jquery/jquery-1.10.js"></script>
<script src="/js/less.min.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="<?# JumpStyle ?>">
<?# JumpHTML ?>
<?# JumpScript ?>
<div class="wrapper">
    <?# header ?>
    <?# banner ?>
	<div class="pos_rel" id="wrap">
        <div class="workframe">
			<div id="top_title">
                <h1 class="pag_tit txt_white_5">搜尋 <?# searchkw ?></h1>
                <div class="waylink">
                    <ol>
                        <li class="d_inblock"><a class="d_inblock" title="首頁" href="/">首頁</a></li>
                        <li class="d_inblock">搜尋 <?# searchkw ?></li>
                    </ol>
                </div>
			</div>
			<div id="content_wrap">
				<ul class="nowrap_box list_box" id="article_list">
					<php:repeater id="list">
					<template>
					<li class="pos_rel row col_xl_offset_4 col_sm_offset_6 d_sm_inblock img_scale">
                        <div class="over_hid pos_rel"><img class="img_cover" src="<?# Image ?>" alt="<?# Title ?>" /></div>
                        <div class="bg_black_4 info_box"><h3 class="txt_clamp talign_center txt_white_5"><?# Title ?></h3></div>
                        <a class="pos_abs d_block atag_item" href="<?# link ?>" title="<?# Title ?>"></a>
					</li>
					</template>
					</php:repeater>
				</ul>
				<div class="talign_center" id="pagenav"><?# pagtxt ?></div>
			</div>
		</div>
        <?# sidePage ?>
	</div>
    <?# footer ?>
	<div class="pos_fix wrapper_lines"><div class="workframe center_box talign_center"><div class="col_md_4 d_inblock center_box"></div></div></div>
</div>
</div>
</body>
</html>
<script>
	$(function(){
		$('#pagenav a[data-action="gopage"]').click(function(){
			$('#pageid').val($(this).data('id'));
			$('form[name="hSearch"]').submit();
		});
	});
	
	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>