<!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">
|
|
[#include "/component/newsel.html" /]
|
<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;
|
}});
|
|
|
$("#category_name").formValidator({empty: false, onShow: "不能为空", onFocus: "分类名称不能为空!"}).inputValidator({min: 1, onError: "分类名称不能为空!"});
|
$("#ordernum").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 id="myform" action="${base}/business/pages/health/saveOrUpdateCommons.html" method="post">
|
<input type="hidden" value="${RequestParameters.planId}" name="planId" />
|
<table class="edit_layout2">
|
<tr><th><label class="required">分类名称:</label></th>
|
<td style="width:400px;"><input class="general" type="text" name="category_name" id="category_name" style="width:200px;" />
|
<div id="category_nameTip" style="display:inline-block;"></div>
|
</td>
|
</tr>
|
|
|
<tr><th><label class="required">显示顺序:</label></th>
|
<td><input class="general" type="text" name="orderNum" id="ordernum" />
|
<div id="ordernumTip" style="display:inline-block;"></div>
|
</td>
|
</tr>
|
|
</table>
|
</form>
|
</div>
|
|
|
|
<script type="text/javascript">
|
function onDialogBtnClick(btnID, dialogID, config){
|
if(btnID == "btnSure"){
|
$("#myform").submit();
|
}
|
}
|
</script>
|
|
</body>
|
</html>
|