<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
<head>
|
<title>addAddress.html</title>
|
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3"/>
|
<meta http-equiv="description" content="this is my page"/>
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
|
[@formui /]
|
<script type="text/javascript">
|
$(document).ready(function() {
|
$.formValidator.initConfig({formID:"myform",onError:function(msg){alert(msg)},onSuccess:function(){
|
document.getElementById("myform").target = window.top.openDialog(1,30,30,'操作提示:');
|
return true;
|
}});
|
$("#industry_name").formValidator({empty:false,onFocus:"请输入行业名称"}).inputValidator({min:1,max:50,onError:"行业名称最多50个汉字"});
|
$("#sn").formValidator({empty:false,onFocus:"请输入顺序号"})
|
.inputValidator({min:1,max:5,onError:"顺序号必须为1到5位数字"})
|
.regexValidator({regExp:"^[0-9]*$",onError:"顺序号必须为1到5位数字"});
|
});
|
|
function _onFormSubmit(){
|
document.getElementById("btnOK").click();
|
}
|
|
function closeWin(){
|
window.top.closeDialog(0);
|
}
|
|
|
</script>
|
</head>
|
<body>
|
<div class="pad_10" style="margin-top: 10px;">
|
<div class="col-tab">
|
<div id="div_setting_1" class="contentList pad_10">
|
<form action="addIndustrySubmit.html" method="post" id="myform" name="myform" >
|
<input type="hidden" name="id" value="${RequestParameters.id}" />
|
<input type="hidden" name="up_id" id="up_id" value="${info.up_id}" />
|
<input type="hidden" name="level" id="level" value="${info.level}" />
|
<table align="center" width="98%" class="table_form contentWrap">
|
<tr>
|
<th width="15%" align="right">行业名称:</th>
|
<td>
|
<input type="text" class="input-text" name="industry_name" id="industry_name" onblur="check();" value="${info.industry_name}"/>
|
<font color="red">*</font>
|
<div id="industry_nameTip" style="width:250px;"></div>
|
</td>
|
</tr>
|
<tr>
|
<th align="right">顺序号:</th>
|
<td>
|
<input type="text" class="input-text" name="sn" id="sn" style="width:50px;" value="${info.sn}"/>
|
<font color="red">*</font>
|
<div id="snTip" style="width:250px;"></div>
|
</td>
|
</tr>
|
</table>
|
<input type="submit" id="btnOK" value="提交" style="display:none;" />
|
</form>
|
</div>
|
</div>
|
</div>
|
</body>
|
</html>
|