<!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(){
|
document.getElementById("myform").target = window.top.openDialog("1","操作",
|
{},
|
{"width":40,"height":40},[{btnId:"tipBtnSure", btnName:"确定", btnStyle:"bluebtn"}]);
|
return true;
|
}});
|
|
$("#itemvalue").formValidator({empty:false,onShow:"请输入选择值",onFocus:"选择值不等于空"}).inputValidator({min:1,max:50,onCorrect:"123",onError:"选择值不等于空"});
|
$("#serial").formValidator({empty:false,onShow:"请输入顺序号",onFocus:"请输入顺序号"}).inputValidator({min:1,max:5,onError:"顺序号必须为1到5位数字"})
|
.regexValidator({regExp:"intege", dataType:"enum", onError:"顺序号必须为1到5位数字"});
|
})
|
</script>
|
|
<form action="editPropSel.html" method="post" id="myform" name="myform" >
|
<input type="hidden" name="column_id" value="${RequestParameters.colId}"/>
|
<input type="hidden" name="type" value="${RequestParameters.type}"/>
|
<input type="hidden" name="id" value="${RequestParameters.id}"/>
|
<table class="edit_layout2" width="99%">
|
<tr><th ><label class="required" >选择值:</label></th>
|
<td><input class="general" type="text" value="${info.itemvalue}" name="itemvalue" id="itemvalue"/>
|
<div id="itemvalueTip" 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>
|
</table>
|
</form>
|
|
<script type="text/javascript">
|
function onDialogBtnClick(btnID, dialogID, config){
|
if(btnID == "btnSure"){
|
$("#myform").submit();
|
}
|
}
|
|
</script>
|
</body>
|
</html>
|