<!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><@s.text name="web.interface.page.index.title"/></title>
<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: {
"kdcport": {
maxlength: 5,
num:true
},
"kdcname": {
host:true
},
"kdcpwd": {
password:true
},
"ueport": {
maxlength: 5,
num:true
},
"mdcip": {
ipv4:true
},
"localip": {
ipv4:true
}
},
messages: {
"kdcport": {
maxlength: "<@s.text name='web.interface.admin.para.val.kdcport'/>"
},
"kdcname": {
host: "<@s.text name='web.interface.admin.para.val.kdcname'/>"
},
"kdcpwd": {
password: "<@s.text name='web.interface.admin.para.val.kdcpwd'/>"
},
"ueport": {
maxlength: "<@s.text name='web.interface.admin.para.val.ueport'/>"
},
"mdcip": {
ipv4: "<@s.text name='web.interface.admin.para.val.mdcip'/>"
},
"localip": {
ipv4: "<@s.text name='web.interface.admin.para.val.localip'/>"
}
},
submitHandler: function(form) {
$.dialog({type: "warn", content: "<@s.text name='web.interface.add.message'/>?", ok: "<@s.text name='web.interface.confirm'/>", cancel: "<@s.text name='web.interface.cancel'/>", modal: true, okCallback: ok});
function ok(){
$(form).find(":submit").attr("disabled", true);
form.submit();
}
}
});
});
function hrefurl(){
location.href='page!indexpara.action';
}
</script>
</head>
<body class="input admin">
<div class="bar">
<@s.text name="web.interface.page.index.welcome"/>
</div>
<div id="validateErrorContainer" class="validateErrorContainer">
<div class="validateErrorTitle"><@s.text name="web.interface.validateerrortitle"/></div>
<ul></ul>
</div>
<div class="body">
<form action="page!showxpara.action" method="post" id="validateForm" method="post">
<table class="listTable">
<tr>
<th>
<@s.text name="web.interface.admin.para.kdcport"/>
</th>
<td>
<input type="text" value="" name="kdcport"/>
</td>
</tr>
<tr>
<th width="110">
<@s.text name="web.interface.admin.para.kdcname"/>
</th>
<td>
<input type="text" value="${appVersion}" name="kdcname"/>
</td>
</tr>
<tr>
<th>
<@s.text name="web.interface.admin.para.kdcpwd"/>
</th>
<td>
<input type="text" value="${osName}" name="kdcpwd" />
</td>
</tr>
<tr>
<th>
<@s.text name="web.interface.admin.para.ueport"/>
</th>
<td>
<input type="text" value="${osArch}" name="ueport"/>
</td>
</tr>
<tr>
<th>
<@s.text name="web.interface.admin.para.mdcip"/>
</th>
<td>
<input type="text" value="" name="mdcip"/>
</td>
</tr>
<tr>
<th>
<@s.text name="web.interface.admin.para.localip"/>
</th>
<td>
<input type="text" value="" name="localip"/>
</td>
</tr>
<tr><td colspan="2"><input type="submit" value="save" /> <input type="button" value="refresh" οnclick="hrefurl()" /></td></tr>
</table>
</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><@s.text name="web.interface.page.index.title"/></title>
<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: {
"kdcport": {
maxlength: 5,
num:true
},
"kdcname": {
host:true
},
"kdcpwd": {
password:true
},
"ueport": {
maxlength: 5,
num:true
},
"mdcip": {
ipv4:true
},
"localip": {
ipv4:true
}
},
messages: {
"kdcport": {
maxlength: "<@s.text name='web.interface.admin.para.val.kdcport'/>"
},
"kdcname": {
host: "<@s.text name='web.interface.admin.para.val.kdcname'/>"
},
"kdcpwd": {
password: "<@s.text name='web.interface.admin.para.val.kdcpwd'/>"
},
"ueport": {
maxlength: "<@s.text name='web.interface.admin.para.val.ueport'/>"
},
"mdcip": {
ipv4: "<@s.text name='web.interface.admin.para.val.mdcip'/>"
},
"localip": {
ipv4: "<@s.text name='web.interface.admin.para.val.localip'/>"
}
},
submitHandler: function(form) {
$.dialog({type: "warn", content: "<@s.text name='web.interface.add.message'/>?", ok: "<@s.text name='web.interface.confirm'/>", cancel: "<@s.text name='web.interface.cancel'/>", modal: true, okCallback: ok});
function ok(){
$(form).find(":submit").attr("disabled", true);
form.submit();
}
}
});
});
function hrefurl(){
location.href='page!indexpara.action';
}
</script>
</head>
<body class="input admin">
<div class="bar">
<@s.text name="web.interface.page.index.welcome"/>
</div>
<div id="validateErrorContainer" class="validateErrorContainer">
<div class="validateErrorTitle"><@s.text name="web.interface.validateerrortitle"/></div>
<ul></ul>
</div>
<div class="body">
<form action="page!showxpara.action" method="post" id="validateForm" method="post">
<table class="listTable">
<tr>
<th>
<@s.text name="web.interface.admin.para.kdcport"/>
</th>
<td>
<input type="text" value="" name="kdcport"/>
</td>
</tr>
<tr>
<th width="110">
<@s.text name="web.interface.admin.para.kdcname"/>
</th>
<td>
<input type="text" value="${appVersion}" name="kdcname"/>
</td>
</tr>
<tr>
<th>
<@s.text name="web.interface.admin.para.kdcpwd"/>
</th>
<td>
<input type="text" value="${osName}" name="kdcpwd" />
</td>
</tr>
<tr>
<th>
<@s.text name="web.interface.admin.para.ueport"/>
</th>
<td>
<input type="text" value="${osArch}" name="ueport"/>
</td>
</tr>
<tr>
<th>
<@s.text name="web.interface.admin.para.mdcip"/>
</th>
<td>
<input type="text" value="" name="mdcip"/>
</td>
</tr>
<tr>
<th>
<@s.text name="web.interface.admin.para.localip"/>
</th>
<td>
<input type="text" value="" name="localip"/>
</td>
</tr>
<tr><td colspan="2"><input type="submit" value="save" /> <input type="button" value="refresh" οnclick="hrefurl()" /></td></tr>
</table>
</form>
</div>
</body>
</html>