<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head><title><!--{$UUDEV_PAGE_TITLE}--></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!--{include file=elements/header.css.html}-->
<!--{include file=elements/header.js.html type=common}-->
<!--{include file=elements/header.js.html type=valid}-->
</head>
<body>
<div id="outside">
	<!--{include file=frame/top.html}-->
	<div id="mainareaContent">
		<!--{include file=frame/left.html}-->
		<div id="rightContent">
			<div id="topContent">
				<div class="sitmap">
					<span class="r"><!--{include file="elements/uuadvad.html"}--></span>模块管理&nbsp;&gt;&nbsp;图片模块&nbsp;&gt;&nbsp;属性设置
				</div>
			</div>
			<div class="tabcontent">
				<a href="index.php?r=Picture.picturelist" class="link">内管管理</a>
				<a href="index.php?r=SiteSet.pictureset" class="nolink">属性设置</a>
				<a href="index.php?r=Layout.module&id=11" class="link">列表页布局</a>
				<a href="index.php?r=Layout.module&id=12" class="link">内容页布局</a>
			</div>
			<div id="secrightContent">
				<div class="tableContent">
				<form id="pictureSetForm" action="index.php?r=SiteSet.pictureset" method="post">
					<input type="hidden" name="action" value="do"/>
					<table class="tbl_edit" width="100%">
						<tr>
							<td class="td_name">是否显示登录注册</td>
							<td class="td_content"><input type="radio" name="PICTURE_LOGIN_STATUS" id="PICTURE_LOGIN_STATUS" value="1" <!--{if $PICTURE_LOGIN_STATUS == '1'}-->checked<!--{/if}-->/>&nbsp;是&nbsp;&nbsp;<input type="radio" name="PICTURE_LOGIN_STATUS" id="PICTURE_LOGIN_STATUS" value="0" <!--{if $PICTURE_LOGIN_STATUS == '0'}-->checked<!--{/if}-->/>&nbsp;否<img class="tiptip" title="图片模块频道顶部不显示“登录/注册”" src="images/quest.gif"/></td>
						</tr>
						<tr>
							<td class="td_name">列表页每页显示<span class="red">*</span></td>
							<td class="td_content"><input type="text" class="number" name="PICTURE_LIST_SHOW_COUNT" id="PICTURE_LIST_SHOW_COUNT" value="<!--{$PICTURE_LIST_SHOW_COUNT}-->"/>&nbsp;条<img class="tiptip" title="图片列表页每页显示条数，1到30之间的正整数" src="images/quest.gif"/><span id="span_PICTURE_LIST_SHOW_COUNT"></span></td>
						</tr>
						<tr>
							<td class="td_name">列表页标题显示<span class="red">*</span></td>
							<td class="td_content"><input type="text" class="number" name="PICTURE_LIST_TITLE_CHAR_COUNT" id="PICTURE_LIST_TITLE_CHAR_COUNT" value="<!--{$PICTURE_LIST_TITLE_CHAR_COUNT}-->"/>&nbsp;字<img class="tiptip" title="列表页标题显示的字数，大于此设置，显示“…”，设置0为标题默认字数，0到20之间的正整数" src="images/quest.gif"/><span id="span_PICTURE_LIST_TITLE_CHAR_COUNT"></span></td>
						</tr>
						<tr>
							<td class="td_name">列表显示<span class="red">*</span></td>
							<td class="td_content"><input type="radio" name="PICTURE_LIST_SHOW_WHITCH" id="PICTURE_LIST_SHOW_WHITCH" value="1" <!--{if $PICTURE_LIST_SHOW_WHITCH == '1'}-->checked<!--{/if}-->/>&nbsp;按标题&nbsp;&nbsp;<input type="radio" name="PICTURE_LIST_SHOW_WHITCH" id="PICTURE_LIST_SHOW_WHITCH" value="2" <!--{if $PICTURE_LIST_SHOW_WHITCH == '2'}-->checked<!--{/if}-->/>&nbsp;按标题+缩影图</td>
						</tr>
						<tr>
							<td class="td_name">小图宽高设置<span class="red">*</span></td>
							<td class="td_content">宽<input type="text" class="number" name="PICTURE_SMALL_WIDTH" id="PICTURE_SMALL_WIDTH" value="<!--{$PICTURE_SMALL_WIDTH}-->"/>&nbsp;px<img class="tiptip" title="控制小图宽度，1到600之间的正整数" src="images/quest.gif"/><span id="span_PICTURE_SMALL_WIDTH"></span></td>
						</tr>
						<tr>
							<td class="td_name"></td>
							<td class="td_content">高<input type="text" class="number" name="PICTURE_SMALL_HEIGHT" id="PICTURE_SMALL_HEIGHT" value="<!--{$PICTURE_SMALL_HEIGHT}-->"/>&nbsp;px<img class="tiptip" title="控制小图高度，1到600之间的正整数" src="images/quest.gif"/><span id="span_PICTURE_SMALL_HEIGHT"></span></td>
						</tr>
						<tr>
							<td class="td_name">中图宽高设置<span class="red">*</span></td>
							<td class="td_content">宽<input type="text" class="number" name="PICTURE_MIDDLE_WIDTH" id="PICTURE_MIDDLE_WIDTH" value="<!--{$PICTURE_MIDDLE_WIDTH}-->"/>&nbsp;px<img class="tiptip" title="控制中图宽度，1到600之间的正整数" src="images/quest.gif"/><span id="span_PICTURE_MIDDLE_WIDTH"></span></td>
						</tr>
						<tr>
							<td class="td_name"></td>
							<td class="td_content">高<input type="text" class="number" name="PICTURE_MIDDLE_HEIGHT" id="PICTURE_MIDDLE_HEIGHT" value="<!--{$PICTURE_MIDDLE_HEIGHT}-->"/>&nbsp;px<img class="tiptip" title="控制中图高度，1到600之间的正整数" src="images/quest.gif"/><span id="span_PICTURE_MIDDLE_HEIGHT"></span></td>
						</tr>
						<tr>
							<td class="td_name">大图宽高设置<span class="red">*</span></td>
							<td class="td_content">宽<input type="text" class="number" name="PICTURE_BIG_WIDTH" id="PICTURE_BIG_WIDTH" value="<!--{$PICTURE_BIG_WIDTH}-->"/>&nbsp;px<img class="tiptip" title="控制大图宽度，1到600之间的正整数" src="images/quest.gif"/><span id="span_PICTURE_BIG_WIDTH"></span></td>
						</tr>
						<tr>
							<td class="td_name"></td>
							<td class="td_content">高<input type="text" class="number" name="PICTURE_BIG_HEIGHT" id="PICTURE_BIG_HEIGHT" value="<!--{$PICTURE_BIG_HEIGHT}-->"/>&nbsp;px<img class="tiptip" title="控制大图高度，1到600之间的正整数" src="images/quest.gif"/><span id="span_PICTURE_BIG_HEIGHT"></span></td>
						</tr>
						<tr>
							<td class="td_name">列表页图片默认显示</td>
							<td class="td_content"><input type="radio" name="PICTURE_LIST_DEFAULT_SHOW_PICTURE" id="PICTURE_LIST_DEFAULT_SHOW_PICTURE" value="1" <!--{if $PICTURE_LIST_DEFAULT_SHOW_PICTURE == '1'}-->checked<!--{/if}-->/>&nbsp;小图&nbsp;&nbsp;<input type="radio" name="PICTURE_LIST_DEFAULT_SHOW_PICTURE" id="PICTURE_LIST_DEFAULT_SHOW_PICTURE" value="2" <!--{if $PICTURE_LIST_DEFAULT_SHOW_PICTURE == '2'}-->checked<!--{/if}-->/>&nbsp;中图&nbsp;&nbsp;<input type="radio" name="PICTURE_LIST_DEFAULT_SHOW_PICTURE" id="PICTURE_LIST_DEFAULT_SHOW_PICTURE" value="3" <!--{if $PICTURE_LIST_DEFAULT_SHOW_PICTURE == '3'}-->checked<!--{/if}-->/>&nbsp;大图</td>
						</tr>
						<tr>
							<td class="td_name">内容页图片默认显示</td>
							<td class="td_content"><input type="radio" name="PICTURE_INFO_DEFAULT_SHOW_PICTURE" id="PICTURE_INFO_DEFAULT_SHOW_PICTURE" value="1" <!--{if $PICTURE_INFO_DEFAULT_SHOW_PICTURE == '1'}-->checked<!--{/if}-->/>&nbsp;小图&nbsp;&nbsp;<input type="radio" name="PICTURE_INFO_DEFAULT_SHOW_PICTURE" id="PICTURE_INFO_DEFAULT_SHOW_PICTURE" value="2" <!--{if $PICTURE_INFO_DEFAULT_SHOW_PICTURE == '2'}-->checked<!--{/if}-->/>&nbsp;中图&nbsp;&nbsp;<input type="radio" name="PICTURE_INFO_DEFAULT_SHOW_PICTURE" id="PICTURE_INFO_DEFAULT_SHOW_PICTURE" value="3" <!--{if $PICTURE_INFO_DEFAULT_SHOW_PICTURE == '3'}-->checked<!--{/if}-->/>&nbsp;大图</td>
						</tr>
						<tr>
							<td class="td_name">内容页每页显示图片<span class="red">*</span></td>
							<td class="td_content"><input type="text" class="number" name="PICTURE_INFO_SHOW_PICTURE_COUNT" id="PICTURE_INFO_SHOW_PICTURE_COUNT" value="<!--{$PICTURE_INFO_SHOW_PICTURE_COUNT}-->"/>&nbsp;张<img class="tiptip" title="内容页图片显示条数，1到10之间的正整数" src="images/quest.gif"/><span id="span_PICTURE_INFO_SHOW_PICTURE_COUNT"></span></td>
						</tr>
						<tr>
							<td class="td_name">图片自动播放时间间隔<span class="red">*</span></td>
						  <td class="td_content"><input type="text" class="number" name="PICTURE_INFO_SHOW_PICTURE_INTERVAL" id="PICTURE_INFO_SHOW_PICTURE_INTERVAL" value="<!--{$PICTURE_INFO_SHOW_PICTURE_INTERVAL}-->"/>&nbsp;秒钟<img class="tiptip" title="WAP前台图片自动播放的时间间隔，设置0表图片自动播放不受时间限制，0到60之间的正整数" src="images/quest.gif"/><span id="span_PICTURE_INFO_SHOW_PICTURE_INTERVAL"></span></td>
						</tr>
						<tr>
							<td class="td_name">是否开启用户评论</td>
							<td class="td_content"><input type="radio" name="PICTURE_COMMENT_STATUS" id="PICTURE_COMMENT_STATUS" value="1" <!--{if $PICTURE_COMMENT_STATUS == '1'}-->checked<!--{/if}-->/>&nbsp;是&nbsp;&nbsp;<input type="radio" name="PICTURE_COMMENT_STATUS" id="PICTURE_COMMENT_STATUS" value="0" <!--{if $PICTURE_COMMENT_STATUS == '0'}-->checked<!--{/if}-->/>&nbsp;否<img class="tiptip" title="控制内容页面“用户评论”是否显示" src="images/quest.gif"/></td>
						</tr>
						<tr>
							<td class="td_name">是否开启评论审核</td>
							<td class="td_content"><input type="radio" name="PICTURE_COMMENT_CHECK_STATUS" id="PICTURE_COMMENT_CHECK_STATUS" value="1" <!--{if $PICTURE_COMMENT_CHECK_STATUS == '1'}-->checked<!--{/if}-->/>&nbsp;是&nbsp;&nbsp;<input type="radio" name="PICTURE_COMMENT_CHECK_STATUS" id="PICTURE_COMMENT_CHECK_STATUS" value="0" <!--{if $PICTURE_COMMENT_CHECK_STATUS == '0'}-->checked<!--{/if}-->/>&nbsp;否<img class="tiptip" title="控制内容页面“用户评论”是否需要经过审核后才显示" src="images/quest.gif"/></td>
						</tr>
						<tr>
							<td class="td_name">评论发布时间间隔<span class="red">*</span></td>
							<td class="td_content"><input type="text" class="number" name="PICTURE_MESSAGEBOARD_MSG_INTERVAL" id="PICTURE_MESSAGEBOARD_MSG_INTERVAL" value="<!--{$PICTURE_MESSAGEBOARD_MSG_INTERVAL}-->"/>&nbsp;分钟<img class="tiptip" title="WAP前台用户评论发布的时间间隔，设置0表示评论发布不受时间限制，0到60之间的正整数" src="images/quest.gif"/><span id="span_PICTURE_MESSAGEBOARD_MSG_INTERVAL"></span></td>
						</tr>
						<tr>
							<td class="td_name">内容页评论显示<span class="red">*</span></td>
							<td class="td_content"><input type="text" class="number" name="PICTURE_COMMENT_SHOW_COUNT" id="PICTURE_COMMENT_SHOW_COUNT" value="<!--{$PICTURE_COMMENT_SHOW_COUNT}-->"/>&nbsp;条<img class="tiptip" title="内容页评论显示条数，1到10之间的正整数" src="images/quest.gif"/><span id="span_PICTURE_COMMENT_SHOW_COUNT"></span></td>
						</tr>
						<tr>
							<td class="td_name">图片水印设置</td>
							<td class="td_content">
								<select name="PICTURE_WATERMARK_TYPE" id="PICTURE_WATERMARK_TYPE" onChange="changeWatermarkType()">
									<option value="1" <!--{if $PICTURE_WATERMARK_TYPE == '1'}-->selected="selected"<!--{/if}-->>开启</option>
									<option value="2" <!--{if $PICTURE_WATERMARK_TYPE == '2'}-->selected="selected"<!--{/if}-->>关闭</option>
								</select>
								<span id="picture_watermark_input">&nbsp;请输入水印文字：<input type="text" class="text" name="PICTURE_WATERMARK_TEXT" id="PICTURE_WATERMARK_TEXT" value="<!--{$PICTURE_WATERMARK_TEXT}-->"/></span>
							</td>
						</tr>
						<tr>
							<td class="noborder"></td>
							<td class="noborder"><button type="submit" class="butsubmit">提交</button></td>
						</tr>
					</table>
				</form>
				</div>
			</div>
		</div>
	</div>
</div>
</body>
<script type="text/javascript">
function changeWatermarkType(){
	var watermarkType = $("#PICTURE_WATERMARK_TYPE").val();
	if(watermarkType == 1){
		$("#picture_watermark_input").show();
	} else if(watermarkType == 2){
		$("#picture_watermark_input").hide();
	}
}
$(document).ready(function(){
	changeWatermarkType();
});
</script>
<script>
$(document).ready(function(){
	$("#pictureSetForm").validate({
		rules: {
			"PICTURE_LIST_SHOW_COUNT": {
				required: true,
				number: true,
				digits: true,
				range: [1, 30]
			},
			"PICTURE_LIST_TITLE_CHAR_COUNT": {
				required: true,
				number: true,
				digits: true,
				range: [0, 20]
			},
			"PICTURE_SMALL_WIDTH": {
				required: true,
				number: true,
				digits: true,
				range: [1, 600]
			},
			"PICTURE_SMALL_HEIGHT": {
				required: true,
				number: true,
				digits: true,
				range: [1, 600]
			},
			"PICTURE_MIDDLE_WIDTH": {
				required: true,
				number: true,
				digits: true,
				range: [1, 600]
			},
			"PICTURE_MIDDLE_HEIGHT": {
				required: true,
				number: true,
				digits: true,
				range: [1, 600]
			},
			"PICTURE_BIG_WIDTH": {
				required: true,
				number: true,
				digits: true,
				range: [1, 600]
			},
			"PICTURE_BIG_HEIGHT": {
				required: true,
				number: true,
				digits: true,
				range: [1, 600]
			},
			"PICTURE_INFO_SHOW_PICTURE_COUNT": {
				required: true,
				number: true,
				digits: true,
				range: [1, 10]
			},
			"PICTURE_INFO_SHOW_PICTURE_INTERVAL": {
				required: true,
				number: true,
				digits: true,
				range: [0, 60]
			},
			"PICTURE_MESSAGEBOARD_MSG_INTERVAL": {
				required: true,
				number: true,
				digits: true,
				range: [0, 60]
			},
			"PICTURE_COMMENT_SHOW_COUNT": {
				required: true,
				number: true,
				digits: true,
				range: [1, 10]
			}
		},
		messages: {
			"PICTURE_LIST_SHOW_COUNT": {
				required: "请输入列表页每页显示条数",
				number: "列表页每页显示条数必须为正整数",
				digits: "列表页每页显示条数必须为正整数",
				range: $.format("列表页每页显示条数必须在{0}到{1}之间")
			},
			"PICTURE_LIST_TITLE_CHAR_COUNT": {
				required: "请输入列表页标题显示字数",
				number: "列表页标题显示字数必须为正整数",
				digits: "列表页标题显示字数必须为正整数",
				range: $.format("列表页标题显示字数必须在{0}到{1}之间")
			},
			"PICTURE_SMALL_WIDTH": {
				required: "请输入小图宽度",
				number: "小图宽度必须为正整数",
				digits: "小图宽度必须为正整数",
				range: $.format("小图宽度必须在{0}到{1}之间")
			},
			"PICTURE_SMALL_HEIGHT": {
				required: "请输入小图高度",
				number: "小图高度必须为正整数",
				digits: "小图高度必须为正整数",
				range: $.format("小图高度必须在{0}到{1}之间")
			},
			"PICTURE_MIDDLE_WIDTH": {
				required: "请输入中图宽度",
				number: "中图宽度必须为正整数",
				digits: "中图宽度必须为正整数",
				range: $.format("中图宽度必须在{0}到{1}之间")
			},
			"PICTURE_MIDDLE_HEIGHT": {
				required: "请输入中图高度",
				number: "中图高度必须为正整数",
				digits: "中图高度必须为正整数",
				range: $.format("中图高度必须在{0}到{1}之间")
			},
			"PICTURE_BIG_WIDTH": {
				required: "请输入大图宽度",
				number: "大图宽度必须为正整数",
				digits: "大图宽度必须为正整数",
				range: $.format("大图宽度必须在{0}到{1}之间")
			},
			"PICTURE_BIG_HEIGHT": {
				required: "请输入大图高度",
				number: "大图高度必须为正整数",
				digits: "大图高度必须为正整数",
				range: $.format("大图高度必须在{0}到{1}之间")
			},
			"PICTURE_INFO_SHOW_PICTURE_COUNT": {
				required: "请输入内容页图片显示条数",
				number: "内容页图片显示条数必须为正整数",
				digits: "内容页图片显示条数必须为正整数",
				range: $.format("内容页图片显示条数必须在{0}到{1}之间")
			},
			"PICTURE_INFO_SHOW_PICTURE_INTERVAL": {
				required: "请输入图片自动播放时间间隔",
				number: "图片自动播放时间间隔必须为正整数",
				digits: "图片自动播放时间间隔必须为正整数",
				range: $.format("图片自动播放时间间隔必须在{0}到{1}之间")
			},
			"PICTURE_MESSAGEBOARD_MSG_INTERVAL": {
				required: "请输入评论发布时间间隔",
				number: "评论发布时间间隔必须为正整数",
				digits: "评论发布时间间隔必须为正整数",
				range: $.format("评论发布时间间隔必须在{0}到{1}之间")
			},
			"PICTURE_COMMENT_SHOW_COUNT": {
				required: "请输入内容页评论显示条数",
				number: "内容页评论显示条数必须为正整数",
				digits: "内容页评论显示条数必须为正整数",
				range: $.format("内容页评论显示条数必须在{0}到{1}之间")
			}
		},
		errorPlacement: function(error, element){
			$("#span_" + element.attr("id")).html(error).attr("class", "error");
		},
		submitHandler: function(form){
			form.submit();
		},
		errorClass: "invalid",
		success: function(label){
			label.parent().html("&nbsp;").attr("class", "valid");
		},
		onkeyup:false
	});
});
</script>
</html>