📄 ddnsinfo.js
字号:
<script language="JavaScript">
<? include ../html/js/jsl.js ?>
<? include ..html/js/error.js ?>
var result=new Array();
var ConnectionDatabase = new Array();
var CurrentConnectionSelection = 0;
<? multiquery manager:command/connection/list `<? setvariableonce var:ddnsconid $00 ?>` ?>
<? multiquery manager:command/connection/list `<? setvariableonce var:ddnsconn $01 ?>` ?>
<? setvariableonce var:sind `0` ?>
<? setvariableonce var:sname `dyndns` ?>
function uiDoOnLoad()
{
var i = 0;
var currConn;
<? multiquery manager:command/connection/list "ConnectionDatabase[i++]='$01';" ?>
uiStatusShowConnection(document.getElementById("uiPostStatDDNSConId").value);
<? setvariable var:count `0` ?>
<? multiquery manager:command/connection/list_group
` <? if neq `bridge` `<? query $01:settings/type ?>` `<? setvariable var:count `2` ?>`
` ` ?>
` ?>
<? if neq `2` `<? echo $var:count ?>` ``
`uiShowServer(document.getElementById("uiPostSind").value);` ?>
}
function uiStatusShowConnection(connection)
{
var i;
var selector = document.getElementById("uiStatusViewWanCombo");
if(selector==null) return;
for(i=0; i < selector.length; i++)
{
if(selector.options[i].value == connection)
{
selector.selectedIndex = i;
return(connection);
}
}
}
function uiStatusChangeConnection (arg)
{
jslFormSetGet("uiPostFormTemp");
var server=document.getElementById("uiViewServerCombo").value;
CurrentConnectionSelection = arg;
document.getElementById("uiPostSind").value = "0";
document.getElementById("uiPostSname").value = "dyndns";
document.getElementById("uiPostStatDDNSConId").value = CurrentConnectionSelection;
document.getElementById("uiPostStatDDNSConn").value = ConnectionDatabase[CurrentConnectionSelection];
document.getElementById("uiPostStatDDNSConnection").value = ConnectionDatabase[CurrentConnectionSelection];
document.getElementById("uiPostDDNSServer").value = document.getElementById("uiViewServerCombo").options[document.getElementById("uiPostSind").value].value;
document.getElementById("uiPostDDNSUpdatestat").name = "ddns:status/"+ConnectionDatabase[CurrentConnectionSelection]+"/"+server+"/updatestatus";
document.getElementById("uiPostDDNSErrmsg").name = "ddns:status/"+ConnectionDatabase[CurrentConnectionSelection]+"/"+server+"/errmsg";
jslFormSubmit("uiPostFormTemp");
}
function uiShowServer(arg)
{
document.getElementById("uiViewServerCombo").selectedIndex=arg;
}
function uiChangeServer()
{
var server=document.getElementById("uiViewServerCombo").value;
jslFormSetGet("uiPostFormTemp");
var con=ConnectionDatabase[document.getElementById("uiPostStatDDNSConId").value];
document.getElementById("uiPostSind").value = document.getElementById("uiViewServerCombo").selectedIndex;
document.getElementById("uiPostSname").value = document.getElementById("uiViewServerCombo").value;
document.getElementById("uiPostStatDDNSConn").value = con;
document.getElementById("uiPostDDNSServer").value = document.getElementById("uiViewServerCombo").options[document.getElementById("uiPostSind").value].value;
document.getElementById("uiPostDDNSUpdatestat").name = "ddns:status/"+con+"/"+document.getElementById("uiPostSname").value+"/updatestatus";
document.getElementById("uiPostDDNSErrmsg").name = "ddns:status/"+con+"/"+document.getElementById("uiPostSname").value+"/errmsg";
jslFormSubmit("uiPostFormTemp");
}
function uiDoRefresh()
{
var server=document.getElementById("uiViewServerCombo").value;
jslFormSetGet("uiPostFormTemp");
var con=ConnectionDatabase[document.getElementById("uiPostStatDDNSConId").value];
document.getElementById("uiPostSind").value = document.getElementById("uiViewServerCombo").selectedIndex;
document.getElementById("uiPostSname").value = document.getElementById("uiViewServerCombo").value;
document.getElementById("uiPostStatDDNSConn").value = con;
document.getElementById("uiPostDDNSServer").value = document.getElementById("uiViewServerCombo").options[document.getElementById("uiPostSind").value].value;
document.getElementById("uiPostDDNSUpdatestat").name = "ddns:status/"+con+"/"+document.getElementById("uiPostSname").value+"/updatestatus";
document.getElementById("uiPostDDNSErrmsg").name = "ddns:status/"+con+"/"+document.getElementById("uiPostSname").value+"/errmsg";
jslFormSubmit("uiPostFormTemp");
}
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -