<!doctype html>
|
<html class="no-js">
|
<head>
|
<meta charset="utf-8">
|
<title>增加/修改服务等级</title>
|
|
[#include "/business/pages/include/static.html" /]
|
</head>
|
<body class="end_task_body widthauto" >
|
|
<script type="text/javascript">
|
$(function() {
|
$.formValidator.initConfig({formID:"myform",onError:function(msg){popupTips(msg)},onSuccess:function(){
|
document.getElementById("myform").target = window.top.openDialog("1","操作",
|
{},
|
{"width":40,"height":40},[{btnId:"tipBtnSure", btnName:"确定", btnStyle:"bluebtn"}]);
|
return true;
|
}});
|
|
|
var cateid = '${cate.ID}';
|
$("#level_name").formValidator({empty:false,onShow:"请填写服务等级名称",onFocus:"服务等级名称为1至10个字符"}).inputValidator({min:1,max:10,onError:"服务等级名称为1至10个字符"})
|
.ajaxValidator({
|
dataType : "html",
|
async : true,
|
url : "checkLevel_name.html",
|
data :{"level_name":$.util.encode($("#level_name").val()),"id":cateid},
|
success : function(data){
|
if( data == 0 ) return true;
|
if( data == 1 ) return false;
|
return false;
|
},
|
buttons: $("#dosubmit"),
|
error: function(jqXHR, textStatus, errorThrown){popupTips("服务器没有返回数据,可能服务器忙,请重试"+errorThrown);},
|
onError : "服务等级名称已存在,请重新输入",
|
onWait : "请稍候..."
|
});
|
$("#serial").formValidator({empty:false,onShow:"请输入顺序号!",onFocus:"请输入顺序号!"})
|
.inputValidator({min:1,max:10,onError:"顺序号为1~10位正整数"})
|
.regexValidator({regExp:"intege1", dataType:"enum", onError:"顺序号格式不正确"});
|
|
})
|
</script>
|
|
<div class="edit_txt">
|
<form action="" method="post" id="myform" name="myform">
|
<input type="hidden" name="id" id="id" value="${cate.ID}"/>
|
<table class="edit_layout2">
|
<tr><th ><label class="required" >级别名称:</label></th>
|
<td><input class="general" type="text" name="level_name" id="level_name" value="${cate.LEVEL_NAME}"/>
|
<div id="level_nameTip" style="display:inline-block;width:200px;"></div>
|
</td>
|
</tr>
|
<tr><th><label class="required">顺序号:</label></th>
|
<td ><input class="general" type="text" name="serial" id="serial" value="${cate.SERIAL}"/>
|
<div id="serialTip" style="display:inline-block;width:180px;"></div>
|
</td>
|
</tr>
|
</table>
|
</form>
|
</div>
|
|
|
|
<script type="text/javascript">
|
function onDialogBtnClick(btnID, dialogID, config){
|
if(btnID == "btnSure"){
|
$("#myform").submit();
|
}
|
}
|
|
</script>
|
|
|
</body>
|
</html>
|