<!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=Software.softwarelist" class="link">内管管理</a>
				<a href="index.php?r=SiteSet.softwareset" class="nolink">属性设置</a>
				<a href="index.php?r=Layout.module&id=3" class="link">列表页布局</a>
				<a href="index.php?r=Layout.module&id=4" class="link">内容页布局</a>
			</div>
			<div id="secrightContent">
				<div class="tableContent">
					<form id="softwareSetForm" action="index.php?r=SiteSet.softwareset" 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="SOFTWARE_LOGIN_STATUS" id="SOFTWARE_LOGIN_STATUS" value="1" <!--{if $SOFTWARE_LOGIN_STATUS == '1'}-->checked<!--{/if}-->/>&nbsp;是&nbsp;&nbsp;<input type="radio" name="SOFTWARE_LOGIN_STATUS" id="SOFTWARE_LOGIN_STATUS" value="0" <!--{if $SOFTWARE_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="SOFTWARE_LIST_SHOW_COUNT" id="SOFTWARE_LIST_SHOW_COUNT" value="<!--{$SOFTWARE_LIST_SHOW_COUNT}-->"/>&nbsp;条<img class="tiptip" title="软件列表页每页显示条数，1到30之间的正整数" src="images/quest.gif"/><span id="span_SOFTWARE_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="SOFTWARE_LIST_TITLE_CHAR_COUNT" id="SOFTWARE_LIST_TITLE_CHAR_COUNT" value="<!--{$SOFTWARE_LIST_TITLE_CHAR_COUNT}-->"/>&nbsp;字<img class="tiptip" title="列表页标题显示的字数，大于此设置，显示“…”，设置0为标题默认字数，0到20之间的正整数" src="images/quest.gif"/><span id="span_SOFTWARE_LIST_TITLE_CHAR_COUNT"></span></td>
							</tr>
							<tr>
								<td class="td_name">内容页软件介绍信息显示<span class="red">*</span></td>
								<td class="td_content"><input type="text" class="number" name="SOFTWARE_INFO_CHAR_COUNT" id="SOFTWARE_INFO_CHAR_COUNT" value="<!--{$SOFTWARE_INFO_CHAR_COUNT}-->"/>&nbsp;字<img class="tiptip" title="内容页软件介绍信息每页显示字数，大于此设置，则自动分页" src="images/quest.gif"/><span id="span_SOFTWARE_INFO_CHAR_COUNT"></span></td>
							</tr>
							<tr>
								<td class="td_name">是否开启用户评论</td>
								<td class="td_content"><input type="radio" name="SOFTWARE_COMMENT_STATUS" id="SOFTWARE_COMMENT_STATUS" value="1" <!--{if $SOFTWARE_COMMENT_STATUS == '1'}-->checked<!--{/if}-->/>&nbsp;是&nbsp;&nbsp;<input type="radio" name="SOFTWARE_COMMENT_STATUS" id="SOFTWARE_COMMENT_STATUS" value="0" <!--{if $SOFTWARE_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="SOFTWARE_COMMENT_CHECK_STATUS" id="SOFTWARE_COMMENT_CHECK_STATUS" value="1" <!--{if $SOFTWARE_COMMENT_CHECK_STATUS == '1'}-->checked<!--{/if}-->/>&nbsp;是&nbsp;&nbsp;<input type="radio" name="SOFTWARE_COMMENT_CHECK_STATUS" id="SOFTWARE_COMMENT_CHECK_STATUS" value="0" <!--{if $SOFTWARE_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="SOFTWARE_MESSAGEBOARD_MSG_INTERVAL" id="SOFTWARE_MESSAGEBOARD_MSG_INTERVAL" value="<!--{$SOFTWARE_MESSAGEBOARD_MSG_INTERVAL}-->"/>&nbsp;分钟<img class="tiptip" title="WAP前台用户评论发布的时间间隔，设置0表示评论发布不受时间限制，0到60之间的正整数" src="images/quest.gif"/><span id="span_SOFTWARE_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="SOFTWARE_COMMENT_SHOW_COUNT" id="SOFTWARE_COMMENT_SHOW_COUNT" value="<!--{$SOFTWARE_COMMENT_SHOW_COUNT}-->"/>&nbsp;条<img class="tiptip" title="内容页评论显示条数，1到10之间的正整数" src="images/quest.gif"/><span id="span_SOFTWARE_COMMENT_SHOW_COUNT"></span></td>
							</tr>
							<tr>
								<td class="td_name">内容页是否显示用户评分</td>
								<td class="td_content"><input type="radio" name="SOFTWARE_SCORE_STATUS" id="SOFTWARE_SCORE_STATUS" value="1" <!--{if $SOFTWARE_SCORE_STATUS == '1'}-->checked<!--{/if}-->/>&nbsp;是&nbsp;&nbsp;<input type="radio" name="SOFTWARE_SCORE_STATUS" id="SOFTWARE_SCORE_STATUS" value="0" <!--{if $SOFTWARE_SCORE_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="SOFTWARE_MOBILE_SET_STATUS" id="SOFTWARE_MOBILE_SET_STATUS" value="1" <!--{if $SOFTWARE_MOBILE_SET_STATUS == '1'}-->checked<!--{/if}-->/>&nbsp;是&nbsp;&nbsp;<input type="radio" name="SOFTWARE_MOBILE_SET_STATUS" id="SOFTWARE_MOBILE_SET_STATUS" value="0" <!--{if $SOFTWARE_MOBILE_SET_STATUS == '0'}-->checked<!--{/if}-->/>&nbsp;否</td>
							</tr>
							<tr>
								<td class="td_name">是否显示设置机型</td>
								<td class="td_content"><input type="radio" name="SOFTWARE_MOBILE_SET_SHOW" id="SOFTWARE_MOBILE_SET_SHOW" value="1" <!--{if $SOFTWARE_MOBILE_SET_SHOW == '1'}-->checked<!--{/if}-->/>&nbsp;是&nbsp;&nbsp;<input type="radio" name="SOFTWARE_MOBILE_SET_SHOW" id="SOFTWARE_MOBILE_SET_SHOW" value="0" <!--{if $SOFTWARE_MOBILE_SET_SHOW == '0'}-->checked<!--{/if}-->/>&nbsp;否</td>
							</tr>
							<tr>
								<td class="td_name">列表显示</td>
								<td class="td_content"><input type="radio" name="SOFTWARE_LIST_IMG_SHOW_TYPE" id="SOFTWARE_LIST_IMG_SHOW_TYPE" value="1" <!--{if $SOFTWARE_LIST_IMG_SHOW_TYPE == '1'}-->checked<!--{/if}-->/>&nbsp;按时间查看&nbsp;&nbsp;<input type="radio" name="SOFTWARE_LIST_IMG_SHOW_TYPE" id="SOFTWARE_LIST_IMG_SHOW_TYPE" value="2" <!--{if $SOFTWARE_LIST_IMG_SHOW_TYPE == '2'}-->checked<!--{/if}-->/>&nbsp;按人气查看&nbsp;&nbsp;<input type="radio" name="SOFTWARE_LIST_IMG_SHOW_TYPE" id="SOFTWARE_LIST_IMG_SHOW_TYPE" value="3" <!--{if $SOFTWARE_LIST_IMG_SHOW_TYPE == '3'}-->checked<!--{/if}-->/>&nbsp;按标题+索引图查看</td>
							</tr>
							<tr>
								<td class="td_name" valign="top">列表索引图显示:</td>
								<td class="td_content">
								<input type="text" class="number" name="SOFTWARE_LIST_IMG_COMPRESS_WIDTH" id="SOFTWARE_LIST_IMG_COMPRESS_WIDTH" value="<!--{$SOFTWARE_LIST_IMG_COMPRESS_WIDTH}-->"/>&nbsp;px<img class="tiptip" title="列表索引图压缩宽度，1到600之间的正整数" src="images/quest.gif"/><span id="span_SOFTWARE_LIST_IMG_COMPRESS_WIDTH"></span></br></br>
								<input type="text" class="number" name="SOFTWARE_LIST_IMG_COMPRESS_HEIGHT" id="SOFTWARE_LIST_IMG_COMPRESS_HEIGHT" value="<!--{$SOFTWARE_LIST_IMG_COMPRESS_HEIGHT}-->"/>&nbsp;px<img class="tiptip" title="列表索引图压缩宽度，1到600之间的正整数" src="images/quest.gif"/><span id="span_SOFTWARE_LIST_IMG_COMPRESS_HEIGHT"></span>
								</td>
							</tr>
							<tr>
								<td class="td_name">图片显示</td>
								<td class="td_content"><input type="radio" name="SOFTWARE_IMG_SHOW_TYPE" id="SOFTWARE_IMG_SHOW_TYPE" value="1" <!--{if $SOFTWARE_IMG_SHOW_TYPE == '1'}-->checked<!--{/if}-->/>&nbsp;显示原图&nbsp;&nbsp;<input type="radio" name="SOFTWARE_IMG_SHOW_TYPE" id="SOFTWARE_IMG_SHOW_TYPE" value="2" <!--{if $SOFTWARE_IMG_SHOW_TYPE == '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="SOFTWARE_IMG_COMPRESS_WIDTH" id="SOFTWARE_IMG_COMPRESS_WIDTH" value="<!--{$SOFTWARE_IMG_COMPRESS_WIDTH}-->"/>&nbsp;px<img class="tiptip" title="图片压缩宽度，1到600之间的正整数" src="images/quest.gif"/><span id="span_SOFTWARE_IMG_COMPRESS_WIDTH"></span></td>
							</tr>
							<tr>
								<td class="td_name">图片水印设置</td>
								<td class="td_content">
									<select name="SOFTWARE_IMG_WATERMARK_TYPE" id="SOFTWARE_IMG_WATERMARK_TYPE" onChange="changeWatermarkType()">
										<option value="1" <!--{if $SOFTWARE_IMG_WATERMARK_TYPE == '1'}-->selected<!--{/if}-->>开启</option>
										<option value="2" <!--{if $SOFTWARE_IMG_WATERMARK_TYPE == '2'}-->selected<!--{/if}-->>关闭</option>
									</select>
									<span id="soft_img_watermark_input">请输入水印文字：<input type="text" class="text" name="SOFTWARE_IMG_WATERMARK_TEXT" id="SOFTWARE_IMG_WATERMARK_TEXT" value="<!--{$SOFTWARE_IMG_WATERMARK_TEXT}-->"/></span>
								</td>
							</tr>
							<tr>
								<td class="td_name">是否允许游客提交报错信息</td>
								<td class="td_content"><input type="radio" name="SOFTWARE_GUEST_ERROR_REPORT" id="SOFTWARE_GUEST_ERROR_REPORT" value="1" <!--{if $SOFTWARE_GUEST_ERROR_REPORT == '1'}-->checked<!--{/if}-->/>&nbsp;是&nbsp;&nbsp;<input type="radio" name="SOFTWARE_GUEST_ERROR_REPORT" id="SOFTWARE_GUEST_ERROR_REPORT" value="0" <!--{if $SOFTWARE_GUEST_ERROR_REPORT == '0'}-->checked<!--{/if}-->/>&nbsp;否</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>
function changeWatermarkType(){
	var watermarkType = $("#SOFTWARE_IMG_WATERMARK_TYPE").val();
	if(watermarkType == 1){
		$("#soft_img_watermark_input").show();
	} else if(watermarkType == 2){
		$("#soft_img_watermark_input").hide();
	}
}
$(document).ready(function(){
	changeWatermarkType();
});
</script>
<script>
$(document).ready(function(){
	$("#softwareSetForm").validate({
		rules: {
			"SOFTWARE_LIST_SHOW_COUNT": {
				required: true,
				number: true,
				digits: true,
				range: [1, 30]
			},
			"SOFTWARE_LIST_TITLE_CHAR_COUNT": {
				required: true,
				number: true,
				digits: true,
				range: [0, 20]
			},
			"SOFTWARE_INFO_CHAR_COUNT": {
				required: true,
				number: true,
				digits: true,
				min: 1
			},
			"SOFTWARE_MESSAGEBOARD_MSG_INTERVAL": {
				required: true,
				number: true,
				digits: true,
				range: [0, 60]
			},
			"SOFTWARE_COMMENT_SHOW_COUNT": {
				required: true,
				number: true,
				digits: true,
				range: [1, 10]
			},
			"SOFTWARE_IMG_COMPRESS_WIDTH": {
				required: true,
				number: true,
				digits: true,
				range: [1, 600]
			},
			"SOFTWARE_LIST_IMG_COMPRESS_WIDTH": {
				required: true,
				number: true,
				digits: true,
				range: [1, 600]
			},
			"SOFTWARE_LIST_IMG_COMPRESS_HEIGHT": {
				required: true,
				number: true,
				digits: true,
				range: [1, 600]
			}
		},
		messages: {
			"SOFTWARE_LIST_SHOW_COUNT": {
				required: "请输入列表页每页显示条数",
				number: "列表页每页显示条数必须为正整数",
				digits: "列表页每页显示条数必须为正整数",
				range: $.format("列表页每页显示条数必须在{0}到{1}之间")
			},
			"SOFTWARE_LIST_TITLE_CHAR_COUNT": {
				required: "请输入列表页标题显示字数",
				number: "列表页标题显示字数必须为正整数",
				digits: "列表页标题显示字数必须为正整数",
				range: $.format("列表页标题显示字数必须在{0}到{1}之间")
			},
			"SOFTWARE_INFO_CHAR_COUNT": {
				required: "请输入内容页每页显示字数",
				number: "内容页每页显示字数必须为正整数",
				digits: "内容页每页显示字数必须为正整数",
				min: $.format("内容页每页显示字数必须大于等于{0}")
			},
			"SOFTWARE_MESSAGEBOARD_MSG_INTERVAL": {
				required: "请输入评论发布时间间隔",
				number: "评论发布时间间隔必须为正整数",
				digits: "评论发布时间间隔必须为正整数",
				range: $.format("评论发布时间间隔必须在{0}到{1}之间")
			},
			"SOFTWARE_COMMENT_SHOW_COUNT": {
				required: "请输入内容页评论显示条数",
				number: "内容页评论显示条数必须为正整数",
				digits: "内容页评论显示条数必须为正整数",
				range: $.format("内容页评论显示条数必须在{0}到{1}之间")
			},
			"SOFTWARE_IMG_COMPRESS_WIDTH": {
				required: "请输入图片压缩宽度",
				number: "图片压缩宽度必须为正整数",
				digits: "图片压缩宽度必须为正整数",
				range: $.format("图片压缩宽度必须在{0}到{1}之间")
			},
			"SOFTWARE_LIST_IMG_COMPRESS_WIDTH": {
				required: "请输入图片压缩宽度",
				number: "图片压缩宽度必须为正整数",
				digits: "图片压缩宽度必须为正整数",
				range: $.format("图片压缩宽度必须在{0}到{1}之间")
			},
			"SOFTWARE_LIST_IMG_COMPRESS_HEIGHT": {
				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>