<!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>
</head>
<body>
	<div class="wrapper">
    	<?# header ?>
    	<div class="wrap">
        	<?# sidePage ?>
            <div class="contentMain">
            	<h3>基本模組設置</h3>
                <div class="article" style="width: 100%;">
                    <form id="form1" name="form1" action="websiteSet.php" method="post">
                        <fieldset>
                            <div style="overflow: hidden;">
                            	<div class="titleTyp"><p>每頁數量設置</p></div>
                                <div style=" background: rgba(75, 141, 248, 0.07); padding: 10px 0;">
                                    <p>
                                        <label>產品資訊</label>
                                        <input type="text" id="productPageSize" name="productPageSize" value="<?# productPageSize ?>" style="width: 300px;" />
                                    </p>
                                    <p>
                                        <label>最新消息</label>
                                        <input type="text" id="newsPageSize" name="newsPageSize" value="<?# newsPageSize ?>" style="width: 300px;" />
                                    </p>
                                    <p>
                                        <label>問與答</label>
                                        <input type="text" id="faqPageSize" name="faqPageSize" value="<?# faqPageSize ?>" style="width: 300px;" />
                                    </p>
                                    <p>
                                        <label>影音相本</label>
                                        <input type="text" id="bookPageSize" name="bookPageSize" value="<?# bookPageSize ?>" style="width: 300px;" />
                                    </p>
                                </div>
                            </div>
                            <div style="overflow: hidden;">
                            	<div class="titleTyp"><p>產品分類顯示設定</p></div>
                                <div style=" background: rgba(75, 141, 248, 0.07); padding: 10px 0;">
                                    <p>
                                        <label>內頁顯示</label>
                                        <input type="checkbox" name="categorySidePageShow[]" value="40" />文章
                                        <input type="checkbox" name="categorySidePageShow[]" value="60" />最新消息
                                        <input type="checkbox" name="categorySidePageShow[]" value="70" />問與答
                                        <input type="checkbox" name="categorySidePageShow[]" value="80" />相本
                                        <input type="checkbox" name="categorySidePageShow[]" value="90" />聯絡表單
                                        <input type="checkbox" name="categorySidePageShow[]" value="100" />訂單
                                    </p>
                                </div>
                            </div>
                            <p>
	                            <input type="button" id="btnOK" name="btnOK" value="確 定" />
							</p>
                        </fieldset>
                    </form>
                </div>
            </div>
        </div>
        <?# footer ?>
    </div>
<script>
<!--
	$(function(){
		<php:repeater id="listCSPS">
			<template>
				$('input:checkbox[name="categorySidePageShow[]"][value="<?# Value ?>"]').attr('checked',true);
			</template>
		</php:repeater>
		
		$('#btnOK').click(function(){
			if($('#productPageSize').val() == ''){
				alert('請設定產品資訊列表每頁數量!');
				$('#productPageSize').focus();
				return false;
			}
			if($('#newsPageSize').val() == ''){
				alert('請設定最新消息列表每頁數量!');
				$('#newsPageSize').focus();
				return false;
			}
			if($('#faqPageSize').val() == ''){
				alert('請設定問與答列表每頁數量!');
				$('#faqPageSize').focus();
				return false;
			}
			if($('#bookPageSize').val() == ''){
				alert('請設定影音相本列表每頁數量!');
				$('#bookPageSize').focus();
				return false;
			}
			$('#form1').submit();
		});
	});
//-->
</script>
</body>
</html>