📄 clip.js
字号:
<? setvariable var:contype clip ?>
<? include ../html/wizard/wst.js ?>
<? include ../html/setup/clip.js ?>
<script language="JavaScript">
//aids 050721 disallow doubleclick of buttons
function uiWizButton()
{
jslDisable("uiButtonNext");
if (uiWizDoSave() == false)
{
jslEnable("uiButtonNext");
}
}
//aids 050721 disallow doubleclick of buttons
function uiWizDoSave()
{
var val;
// aids 050720 changed max connections allowed to 7
if (((7 <= <? multiquerycount manager:command/connection/list ?>)&&("<? echo $var:conid ?>" == "<? echo $var:conidwiz ?>")) || ("<? echo $var:conid ?>" == ""))
{
alert("Maximum of 7 connections only.");
return false;
}
jslEnable("uiPostDeleteWiz");
pvcDoSave();
<? if eq `1` `$var:HasVlan` `vlanDoSave();` ` ` ?>
wstDoSave();
jslSetValue("uiPostConDesc","uiViewConDesc");
jslViewToPostCheckBox("uiPostNatControl","uiViewNatControl");
jslViewToPostCheckBox("uiPostFirewallControl","uiViewFirewallControl");
jslSetValue("uiPostIpAddress","uiViewIpAddress");
jslSetValue("uiPostMask","uiViewNetMask");
jslSetValue("uiPostStaticIpAddress","uiViewIpAddress");
jslSetValue("uiPostStaticMask","uiViewNetMask");
jslSetValue("uiPostATMARPGateway","uiViewATMARPGateway");
jslSetValue("uiPostDefaultGateway","uiViewDefaultGateway");
jslSetValue("uiPostStaticDns1","uiViewDns1");
jslSetValue("uiPostStaticDns2","uiViewDns2");
jslSetValue("uiPostStaticDns3","uiViewDns3");
if(pvcDoSaveWiz() != true)
return false;
val=document.getElementById("uiPostIpAddress").value;
if(valDoValidateIp(val) != null)
{
alert("Invalid IP Address.");
return false;
}
val=document.getElementById("uiPostMask").value;
if(valDoValidateMask(val) != null)
{
alert("Invalid Mask.");
return false;
}
val=document.getElementById("uiPostATMARPGateway").value;
if(valDoValidateIp(val) != null)
{
alert("Invalid ARP Server.");
return false;
}
val=document.getElementById("uiPostDefaultGateway").value;
if(val.length != 0 && valDoValidateIp(val) != null)
{
alert("Invalid Default Gateway.");
return false;
}
val=document.getElementById("uiPostStaticDns1").value;
if(val.length != 0 && valDoValidateIp(val) != null)
{
alert("Invalid DNS1.");
return false;
}
val=document.getElementById("uiPostStaticDns2").value;
if(val.length != 0 && valDoValidateIp(val) != null)
{
alert("Invalid DNS2.");
return false;
}
<? if eq `1` `$var:HasWireless`
`
if(WLANDoSave() != true)
return false;
` ` ` ?>
if(uiDoValidate()==true)
{
document.getElementById("uiPostMenu").value="wizard";
document.getElementById("uiPostPageName").value="commands";
document.getElementById("uiPostForm").submit();
}
else
{
return false;
}
}
function uiWizDoOnLoad()
{
<? if eq `1` `$var:HasWireless` `uiWLANOnLoad();` ` `?>
// aids 050725 disable all inputs when connection is already > 7
if (((7 <= <? multiquerycount manager:command/connection/list ?>)&&("<? echo $var:conid ?>" == "<? echo $var:conidwiz ?>"))||("<? echo $var:conid ?>"==""))
{
jslDisable("uiButtonNext");
jslDisable("uiViewWanType");
jslDisable("uiViewPvcVpi");
jslDisable("uiViewPvcVci");
jslDisable("uiViewUserName");
jslDisable("uiViewPassword");
jslDisable("uiViewOnDemand");
jslDisable("uiViewIdleTime");
<? if eq `1` `$var:HasWireless`
`
jslDisable("uiViewSSID");
jslDisable("uiViewChannelBG");
` ` `?>
}
}
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -