<!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>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title><#if isAddAction><@s.text name='web.interface.devrange.imishssAdd'/><#else><@s.text name='web.interface.devrange.imishssEdit'/></#if></title><!--IMISHSS添加/IMISHSS修改-->
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<link href="css/base.css" rel="stylesheet" type="text/css" />
<link href="css/admin.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.tools.js"></script>
<script type="text/javascript" src="js/jquery.validate.js"></script>
<script type="text/javascript" src="js/jquery.validate.methods.js"></script>
<script type="text/javascript" src="js/base.js"></script>
<#include "/WEB-INF/template/admin/admin_js.ftl" />
<script type="text/javascript">
$().ready( function() {
var $validateErrorContainer = $("#validateErrorContainer");
var $validateErrorLabelContainer = $("#validateErrorContainer ul");
var $validateForm = $("#validateForm");
$validateForm.validate({
errorContainer: $validateErrorContainer,
errorLabelContainer: $validateErrorLabelContainer,
wrapper: "li",
errorClass: "validateError",
ignoreTitle: true,
rules: {
"devRangeList.rangeLabel": {
required:true,
bytemaxlength: 64
},
"devRangeList.rangeStart": {
required:true,
num:true,
maxlength: 15,
minlength: 15
},
"devRangeList.rangeEnd": {
required:true,
num:true,
maxlength: 15,
minlength: 15
},
"devRanges": {
required:true
}
},
messages: {
"devRangeList.rangeLabel": {
required:"<@s.text name='web.interface.sca.must.insert'/><@s.text name='web.interface.devrange.rangeLabel'/>!",
bytemaxlength: "<@s.text name='web.interface.devrange.rangeLabel'/><@s.text name='web.interface.msg02'/>"
},
"devRangeList.rangeStart": {
required:"<@s.text name='web.interface.sca.must.insert'/><@s.text name='web.interface.devrange.rangeStart'/>!",
num :"<@s.text name='web.interface.devrange.rangeStart'/><@s.text name='web.interface.msg04'/>",
maxlength: "<@s.text name='web.interface.devrange.rangeStart'/><@s.text name='web.interface.msg01'/>",
minlength: "<@s.text name='web.interface.devrange.rangeStart'/><@s.text name='web.interface.msg01'/>"
},
"devRangeList.rangeEnd": {
required:"<@s.text name='web.interface.sca.must.insert'/><@s.text name='web.interface.devrange.rangeEnd'/>!",
num : "<@s.text name='web.interface.devrange.rangeEnd'/><@s.text name='web.interface.msg04'/>",
maxlength: "<@s.text name='web.interface.devrange.rangeEnd'/><@s.text name='web.interface.msg01'/>",
minlength: "<@s.text name='web.interface.devrange.rangeEnd'/><@s.text name='web.interface.msg01'/>"
},
"devRanges": {
required:"<@s.text name='web.interface.devrange.errorMsg01'/>"
}
},
submitHandler: function(form) {
var rangeStart = $("#rangeStart").val();
var rangeEnd = $("#rangeEnd").val();
if(parseInt(rangeStart)>parseInt(rangeEnd)){
$.dialog({type: "warn", content: "<@s.text name='web.interface.devrange.errorMsg02'/>", closeButton:false, modal: true, autoCloseTime: 3000});
return;
}
$(form).find(":submit").attr("disabled", true);
form.submit();
}
});
});
function openDev() {
parent.$.dialogIframe.open({title: "<@s.text name='web.interface.devrange.selectdev'/>",okCallback: ok,iframeContent: //网元选择
'<iframe scrolling="no" frameborder="0" id="selectIFrame" src="ebs_device_management!selectDev.action?id=${(devRangeList.id)!}&isImsi=1" style="width:100%;"/>', width: 950,height:550});
}
function ok() {
$("#devRange").val(parent.$.dialogIframe.getReturnValue());
}
</script>
</head>
<body class="input admin">
<div class="bar">
<#if isAddAction><@s.text name='web.interface.devrange.imishssAdd'/><#else><@s.text name='web.interface.devrange.imishssEdit'/></#if><!--IMISHSS添加/IMISHSS修改-->
</div>
<div id="validateErrorContainer" class="validateErrorContainer">
<div class="validateErrorTitle"><@s.text name="web.interface.validateerrortitle"/></div>
<ul></ul>
</div>
<div class="body">
<form id="validateForm" action="<#if isAddAction>ebs_device_management!saveIMISHSS.action<#else>ebs_device_management!updateIMISHSS.action</#if>" method="post">
<input type="hidden" name="id" value="${(devRangeList.id)!}" />
<table class="inputTable tabContent">
<tr>
<th>
<@s.text name='web.interface.devrange.rangeLabel'/>(*): <!--名称-->
</th>
<td>
<input type="text" name="devRangeList.rangeLabel" class="formText" value="${(devRangeList.rangeLabel)!}" />
</td>
</tr>
<tr >
<th>
<@s.text name='web.interface.devrange.rangeStart'/>(*): <!--开始号段-->
</th>
<td>
<input type="text" id="rangeStart" name="devRangeList.rangeStart" maxlength="15" class="formText" value="${(devRangeList.rangeStart)!}" />
</td>
</tr>
<tr >
<th>
<@s.text name='web.interface.devrange.rangeEnd'/>(*):<!--结束号段-->
</th>
<td>
<input type="text" id="rangeEnd" name="devRangeList.rangeEnd" maxlength="15" class="formText" value="${(devRangeList.rangeEnd)!}"/>
</td>
</tr>
<tr >
<th>
<@s.text name='web.interface.devrange.relevance'/>(*):<!--号段关联设备-->
</th>
<td>
<input type="text" id="devRange" name="devRanges" class="formText" value="${(devs)!}" readonly/>
<input type="buttion" name = "" οnclick="openDev()" class="formButton" value="<@s.text name='web.interface.add'/>"><!--添加-->
</td>
</tr>
</table>
<div class="buttonArea">
<input type="submit" class="formButton" value="<@s.text name='web.interface.confirm'/>" hidefocus />
<input type="button" class="formButton" οnclick="window.history.back(); return false;" value="<@s.text name='web.interface.return'/>" hidefocus />
</div>
</form>
</div>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title><#if isAddAction><@s.text name='web.interface.devrange.imishssAdd'/><#else><@s.text name='web.interface.devrange.imishssEdit'/></#if></title><!--IMISHSS添加/IMISHSS修改-->
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<link href="css/base.css" rel="stylesheet" type="text/css" />
<link href="css/admin.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.tools.js"></script>
<script type="text/javascript" src="js/jquery.validate.js"></script>
<script type="text/javascript" src="js/jquery.validate.methods.js"></script>
<script type="text/javascript" src="js/base.js"></script>
<#include "/WEB-INF/template/admin/admin_js.ftl" />
<script type="text/javascript">
$().ready( function() {
var $validateErrorContainer = $("#validateErrorContainer");
var $validateErrorLabelContainer = $("#validateErrorContainer ul");
var $validateForm = $("#validateForm");
$validateForm.validate({
errorContainer: $validateErrorContainer,
errorLabelContainer: $validateErrorLabelContainer,
wrapper: "li",
errorClass: "validateError",
ignoreTitle: true,
rules: {
"devRangeList.rangeLabel": {
required:true,
bytemaxlength: 64
},
"devRangeList.rangeStart": {
required:true,
num:true,
maxlength: 15,
minlength: 15
},
"devRangeList.rangeEnd": {
required:true,
num:true,
maxlength: 15,
minlength: 15
},
"devRanges": {
required:true
}
},
messages: {
"devRangeList.rangeLabel": {
required:"<@s.text name='web.interface.sca.must.insert'/><@s.text name='web.interface.devrange.rangeLabel'/>!",
bytemaxlength: "<@s.text name='web.interface.devrange.rangeLabel'/><@s.text name='web.interface.msg02'/>"
},
"devRangeList.rangeStart": {
required:"<@s.text name='web.interface.sca.must.insert'/><@s.text name='web.interface.devrange.rangeStart'/>!",
num :"<@s.text name='web.interface.devrange.rangeStart'/><@s.text name='web.interface.msg04'/>",
maxlength: "<@s.text name='web.interface.devrange.rangeStart'/><@s.text name='web.interface.msg01'/>",
minlength: "<@s.text name='web.interface.devrange.rangeStart'/><@s.text name='web.interface.msg01'/>"
},
"devRangeList.rangeEnd": {
required:"<@s.text name='web.interface.sca.must.insert'/><@s.text name='web.interface.devrange.rangeEnd'/>!",
num : "<@s.text name='web.interface.devrange.rangeEnd'/><@s.text name='web.interface.msg04'/>",
maxlength: "<@s.text name='web.interface.devrange.rangeEnd'/><@s.text name='web.interface.msg01'/>",
minlength: "<@s.text name='web.interface.devrange.rangeEnd'/><@s.text name='web.interface.msg01'/>"
},
"devRanges": {
required:"<@s.text name='web.interface.devrange.errorMsg01'/>"
}
},
submitHandler: function(form) {
var rangeStart = $("#rangeStart").val();
var rangeEnd = $("#rangeEnd").val();
if(parseInt(rangeStart)>parseInt(rangeEnd)){
$.dialog({type: "warn", content: "<@s.text name='web.interface.devrange.errorMsg02'/>", closeButton:false, modal: true, autoCloseTime: 3000});
return;
}
$(form).find(":submit").attr("disabled", true);
form.submit();
}
});
});
function openDev() {
parent.$.dialogIframe.open({title: "<@s.text name='web.interface.devrange.selectdev'/>",okCallback: ok,iframeContent: //网元选择
'<iframe scrolling="no" frameborder="0" id="selectIFrame" src="ebs_device_management!selectDev.action?id=${(devRangeList.id)!}&isImsi=1" style="width:100%;"/>', width: 950,height:550});
}
function ok() {
$("#devRange").val(parent.$.dialogIframe.getReturnValue());
}
</script>
</head>
<body class="input admin">
<div class="bar">
<#if isAddAction><@s.text name='web.interface.devrange.imishssAdd'/><#else><@s.text name='web.interface.devrange.imishssEdit'/></#if><!--IMISHSS添加/IMISHSS修改-->
</div>
<div id="validateErrorContainer" class="validateErrorContainer">
<div class="validateErrorTitle"><@s.text name="web.interface.validateerrortitle"/></div>
<ul></ul>
</div>
<div class="body">
<form id="validateForm" action="<#if isAddAction>ebs_device_management!saveIMISHSS.action<#else>ebs_device_management!updateIMISHSS.action</#if>" method="post">
<input type="hidden" name="id" value="${(devRangeList.id)!}" />
<table class="inputTable tabContent">
<tr>
<th>
<@s.text name='web.interface.devrange.rangeLabel'/>(*): <!--名称-->
</th>
<td>
<input type="text" name="devRangeList.rangeLabel" class="formText" value="${(devRangeList.rangeLabel)!}" />
</td>
</tr>
<tr >
<th>
<@s.text name='web.interface.devrange.rangeStart'/>(*): <!--开始号段-->
</th>
<td>
<input type="text" id="rangeStart" name="devRangeList.rangeStart" maxlength="15" class="formText" value="${(devRangeList.rangeStart)!}" />
</td>
</tr>
<tr >
<th>
<@s.text name='web.interface.devrange.rangeEnd'/>(*):<!--结束号段-->
</th>
<td>
<input type="text" id="rangeEnd" name="devRangeList.rangeEnd" maxlength="15" class="formText" value="${(devRangeList.rangeEnd)!}"/>
</td>
</tr>
<tr >
<th>
<@s.text name='web.interface.devrange.relevance'/>(*):<!--号段关联设备-->
</th>
<td>
<input type="text" id="devRange" name="devRanges" class="formText" value="${(devs)!}" readonly/>
<input type="buttion" name = "" οnclick="openDev()" class="formButton" value="<@s.text name='web.interface.add'/>"><!--添加-->
</td>
</tr>
</table>
<div class="buttonArea">
<input type="submit" class="formButton" value="<@s.text name='web.interface.confirm'/>" hidefocus />
<input type="button" class="formButton" οnclick="window.history.back(); return false;" value="<@s.text name='web.interface.return'/>" hidefocus />
</div>
</form>
</div>
</body>
</html>