<!doctype html>
|
<html class="no-js">
|
<head>
|
<meta charset="utf-8">
|
<title>增加/修改</title>
|
[#include "/business/pages/include/static.html" /]
|
</head>
|
<body class="edit_txt_body">
|
<script type="text/javascript">
|
$(function() {
|
$.formValidator.initConfig({formID:"myform",onError:function(msg){popupTips(msg)},onSuccess:function(){
|
if(!window.top.openConfirm("确定要提交吗?")) return false;
|
document.getElementById("myform").target = window.top.openDialog("tip","操作",
|
{},
|
{"width":40,"height":40},[{btnId:"tipBtnSure", btnName:"确定", btnStyle:"bluebtn"}]);
|
return true;
|
}});
|
|
|
$("#group_name").formValidator({empty:false,onShow:"请填写分组名称",onFocus:"分组名称不能为空!"})
|
.inputValidator({min:1,max:50,onError:"分组名称长度不能超过15个字符!"})
|
.ajaxValidator({
|
dataType : "html",
|
async : true,
|
data:"id=${RequestParameters.id}&linkId=${RequestParameters.linkId}",
|
url : "checkGroupName.html",
|
success : function(data){
|
if( data == 1 ) return false;
|
if( data == 0 ) return true;
|
return false;
|
},
|
buttons: $("#dosubmit"),
|
error: function(jqXHR, textStatus, errorThrown){alert("服务器没有返回数据,可能服务器忙,请重试"+errorThrown);},
|
onError : "该分组名称已存在,请更换",
|
onWait : "正在对分组名称进行校验,请稍候..."
|
});
|
|
$("#serial").formValidator({empty:false,onFocus:"请输入顺序号"}).inputValidator({min:1,max:5,onError:"顺序号必须为1到5位数字"})
|
.regexValidator({regExp:"intege", dataType:"enum", onError:"顺序号必须为1到5位数字"});
|
|
})
|
</script>
|
<div class="edit_txt">
|
<form action="editGroup.html" method="post" id="myform" name="myform">
|
<input type="hidden" name="id" id="id" value="${RequestParameters.id}"/>
|
<input type="hidden" name="linkId" id="linkId" value="${RequestParameters.linkId}"/>
|
<table class="edit_layout" width="99%">
|
<tr><th ><label class="required" >分组名称:</label></th>
|
<td><input class="general" type="text" value="${info.group_name}" name="group_name" id="group_name"/>
|
<div id="group_nameTip" style="display:inline-block;"></div>
|
</td>
|
</tr>
|
|
<tr><th ><label class="required" >显示顺序:</label></th>
|
<td><input class="general" type="text" value="${info.serial}" name="serial" id="serial"/>
|
<div id="serialTip" style="display:inline-block;width:200px;"></div>
|
</td>
|
</tr>
|
|
<tr><th><label>分组说明:</label></th>
|
<td ><textarea class="general" style="width:360px;" name="note" id="note"/>${info.note}</textarea>
|
</td>
|
</tr>
|
</table>
|
</form>
|
</div>
|
|
<script type="text/javascript">
|
function onDialogBtnClick(btnID, dialogID, config){
|
if(btnID == "btnSure"){
|
$("#myform").submit();
|
}
|
}
|
</script>
|
|
</body>
|
</html>
|