<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>管理後臺</title>
<meta name="keywords" content="管理後臺" />
<meta name="description" content="管理後臺" />
<script src="/jquery/jquery-1.8.2.min.js"></script>
<!-- 瀏覽用燈箱片效果 -->
<link rel="stylesheet" href="/jquery/fancybox/source/jquery.fancybox.css?v=2.1.5" type="text/css" media="screen" />
<script type="text/javascript" src="/jquery/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>
</head>

<body>
	<div class="wrapper">
    	<?# header ?>
    	<div class="wrap">
        	<?# sidePage ?>
            <div class="contentMain">
		    	<h3>版型設定</h3>
                <div class="article">
                    <form id="form1" name="form1" action="templateSet.php" method="post">
                    	<fieldset>
                            <ul class="templateList" style="width: 100%;">
                                <php:repeater id="listC">
                                    <template>
                                        <li<?# className ?>><a href="templateSet.php?id=<?# CategoryID ?>"><?# CategoryName ?></a></li>
                                    </template>
                                </php:repeater>
                            </ul>                        
                            <ul class="templateList2">
                                <php:repeater id="list">
                                    <template>
                                        <li>
                                            <div class="photo"></div>
                                            <p>版型：<input type="radio" name="TemplateID" value="<?# PathName ?>" /><?# TemplateName ?></p>
                                            <p class="webSite"></p>
                                            <p>版型說明：<a href="templateDownload.php?id=<?# TemplateID ?>" target="_blank"<?# fileStyle ?>>下載</a></p>
                                            <p>版型備註：</p>
                                            <p><?# Description ?></p>
                                        </li>
                                    </template>
                                </php:repeater>
                            </ul>
                            <p>
                                <input type="button" id="btnOK" name="btnOK" value="確 定" />
                            </p>
                        </fieldset>
                    </form>
                </div>
            </div>
        </div>
        <?# footer ?>
    </div>
<script>
<!--
	$(function(){
		$(".fancybox").fancybox();
		$('input:radio[name="TemplateID"][value="<?# webTemplates ?>"]').attr('checked',true);
		$('#btnOK').click(function(){
			if($('input:radio[name="TemplateID"]:checked').size() == 0){
				alert('請選擇版型!');
				return false;
			}
			$('#form1').submit();
		});
	});
//-->
</script>
</body>
</html>