📄 pppoe.html
字号:
<HTML><HEAD><TITLE>pppoecfg</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META http-equiv=pragma content=no-cache>
<style>
<!--
body { font-size: 75%; color: #003399; background-color: #FFFFFF; padding-top: 10px; padding-left: 10px; font-family: "宋体", "Times New Roman"; }
td { font-size: 12px; line-height: normal; text-decoration: none; }
input.button { font-size: 12px; font-style: normal; font-weight: normal; font-variant: normal; border: 1px solid #183ead; line-height: normal; background-color: #ddddff; color: #000000; height: 18px; }
input.text { font-size: 12px; font-style: normal; line-height: normal; font-weight: normal; font-variant: normal; height: 18px; border: 1px solid #183ead; color: #000000; padding-right: 3px; padding-left: 3px; }
td.title { font-size: 12px; color: #FFFFFF; background-color: #336D2B; height: 24px; }
td.tail { font-size: 12px; height: 25px; }
td.hline { background-color: #FF9933; height: 1px; color: #FF9933; }
td.vline { color: #FF9933; background-color: #FF9933; width: 1px; }
.space { margin-top: 10px; margin-bottom: 10px; }
table { background-color: #CCCCFF; }
select.list { font-size: 12px; font-style: normal; line-height: normal; font-weight: normal; font-variant: normal; height: 18px; color: #000000; border: 1px solid #183ead; }
input.buttonface { font-size: 12px; font-style: normal; font-weight: normal; font-variant: normal; border: 1px solid #183ead; line-height: normal; background-color: #ddddff; color: #000000; height: 18px; }
td.top { font-size: 12px; line-height: 18px; text-decoration: none; vertical-align: top; }
input.textspecial { font-size: 12px; font-style: normal; line-height: normal; font-weight: normal; font-variant: normal; height: 18px; border: 1px solid #183ead; color: #000000; }
#Layer1 {
position:absolute;
width:400px;
height:106px;
z-index:2;
left: 202px;
top: 188px;
}
-->
</style>
<script type="text/JavaScript">
<!--
function Click(){ window.event.returnValue=false;}
document.oncontextmenu=Click;
function doSubmit()
{
if(document.forms[0].linktype[0].checked)
{
if(!is_number(document.forms[0].waittime.value,0,99))
{
alert("时间输入错误,请重新输入(0-99)!");
var element =document.forms[0].waittime;
if(element)
{
element.focus();
element.select();
}
return false;
}
}
if(document.forms[0].linktype[3].checked)
{
if(!is_number(document.forms[0].waittime2.value,0,99))
{
alert("时间输入错误,请重新输入(0-99)!");
var element =document.forms[0].waittime2;
if(element)
{
element.focus();
element.select();
}
return false;
}
}
if(document.forms[0].linktype[2].checked)
{
if(document.forms[0].hour1.value != "")
{
if(!is_number(document.forms[0].hour1.value,0,24))
{
alert("时间输入错误,请重新输入 (0-24)!");
var element =document.forms[0].hour1;
if(element)
{
element.focus();
element.select();
}
return false;
}
}
else
{
if(document.forms[0].minute1.value != "" || document.forms[0].hour2.value != "" || document.forms[0].minute2.value != "")
{
alert("请输入时间!");
var element =document.forms[0].hour1;
if(element)
{
element.focus();
element.select();
}
return false;
}
}
if(document.forms[0].minute1.value != "")
{
if(!is_number(document.forms[0].minute1.value,0,60))
{
alert("时间输入错误,请重新输入(0-60)!");
var element =document.forms[0].minute1;
if(element)
{
element.focus();
element.select();
}
return false;
}
}
else
{
if(document.forms[0].hour1.value != "" || document.forms[0].hour2.value != "" || document.forms[0].minute2.value != "")
{
alert("请输入时间!");
var element =document.forms[0].minute1;
if(element)
{
element.focus();
element.select();
}
return false;
}
}
if(document.forms[0].hour2.value != "")
{
if(!is_number(document.forms[0].hour2.value,0,24))
{
alert("时间输入错误,请重新输入 (0-24)!");
var element =document.forms[0].hour2;
if(element)
{
element.focus();
element.select();
}
return false;
}
}
else
{
if(document.forms[0].minute2.value != "" || document.forms[0].hour1.value != "" || document.forms[0].minute1.value != "")
{
alert("请输入时间!");
var element =document.forms[0].hour2;
if(element)
{
element.focus();
element.select();
}
return false;
}
}
if(document.forms[0].minute2.value != "")
{
if(!is_number(document.forms[0].minute2.value,0,60))
{
alert("时间输入错误,请重新输入(0-60)!");
var element =document.forms[0].minute2;
if(element)
{
element.focus();
element.select();
}
return false;
}
}
else
{
if(document.forms[0].hour2.value != "" || document.forms[0].hour1.value != "" || document.forms[0].minute1.value != "")
{
alert("请输入时间!");
var element =document.forms[0].minute2;
if(element)
{
element.focus();
element.select();
}
return false;
}
}
}
return true;
}
function doSelect()
{
if(document.forms[0].linktype[0].checked)
document.forms[0].waittime.disabled = false;
else
{
document.forms[0].waittime.disabled = true;
}
if(document.forms[0].linktype[3].checked)
document.forms[0].waittime2.disabled = false;
else
{
document.forms[0].waittime2.disabled = true;
}
if(document.forms[0].linktype[2].checked)
{
document.forms[0].hour1.disabled = false;
document.forms[0].minute1.disabled = false;
document.forms[0].hour2.disabled = false;
document.forms[0].minute2.disabled = false;
}
else
{
document.forms[0].hour1.disabled = true;
document.forms[0].minute1.disabled = true;
document.forms[0].hour2.disabled = true;
document.forms[0].minute2.disabled = true;
}
return true;
}
function doLoad()
{
if(document.forms[0].linktype[0].checked)
document.forms[0].waittime.disabled = false;
else
{
document.forms[0].waittime.disabled = true;
}
if(document.forms[0].linktype[3].checked)
document.forms[0].waittime2.disabled = false;
else
{
document.forms[0].waittime2.disabled = true;
}
if(document.forms[0].linktype[2].checked)
{
document.forms[0].hour1.disabled = false;
document.forms[0].minute1.disabled = false;
document.forms[0].hour2.disabled = false;
document.forms[0].minute2.disabled = false;
}
else
{
document.forms[0].hour1.disabled = true;
document.forms[0].minute1.disabled = true;
document.forms[0].hour2.disabled = true;
document.forms[0].minute2.disabled = true;
}
return true;
}
//--></SCRIPT>
<SCRIPT language=JavaScript>
var pppoeInf = new Array(
1,
1,
1,
0,
2,
0,
0,
"gzdt62880219",
"Hello123World",
0,
"",
"",
0,
"",
0,
0,
"",
"",
0,
0,
1,
15,
0,
0,
23,
59,
1,
0,0 );
</SCRIPT>
<META content="MSHTML 6.00.3790.4237" name=GENERATOR></HEAD>
<BODY>
<CENTER>
<FORM onsubmit="return doSubmit();" action=SavePPPoE.cgi method=post
encType=multipart/form-data>
<TABLE cellSpacing=0 cellPadding=0 width=502 border=0>
<TBODY>
<TR>
<TD class=title width=7><img src="../images/arctab.jpg" width="30" height="31"></TD>
<TD class=title vAlign=center align=left width=495>WAN口设置</TD></TR>
<TR>
<TD colSpan=2>
<TABLE cellSpacing=0 cellPadding=0 width=502 border=0>
<TBODY>
<TR>
<TD class=vline rowSpan=15><BR></TD>
<TD width=500>
<TABLE class=space cellSpacing=0 cellPadding=0 width=460
align=center border=0>
<TBODY>
<TR>
<TD width=111>WAN口连接类型:</TD>
<TD width=285>
PPPoE</TD></TR>
<TR>
<TD>上网账号:</TD>
<TD><INPUT class=text maxLength=118 size=15 name=acc></TD></TR>
<TR>
<TD>上网口令:</TD>
<TD><INPUT class=text type=password maxLength=118 size=15
name=psw></TD></TR></TBODY></TABLE>
<TABLE width=460 align=center border=0>
<TBODY>
<TR>
<TD colSpan=2>根据您的需要,请选择对应的连接模式:</TD></TR>
<TR>
<TD><INPUT onclick=doSelect(); type=radio value=1
name=linktype></TD>
<TD>按需连接,在有访问时自动连接</TD></TR>
<TR>
<TD></TD>
<TD>自动断线等待时间:<INPUT class=text maxLength=2 size=2
name=waittime>分 (0 表示不自动断线)</TD></TR>
<TR>
<TD><INPUT onclick=doSelect(); type=radio value=2
name=linktype></TD>
<TD>自动连接,在开机和断线后自动连接</TD></TR>
<TR>
<TD><INPUT onclick=doSelect(); type=radio value=3
name=linktype></TD>
<TD>定时连接,在指定的时间段自动连接</TD></TR>
<TR>
<TD></TD>
<TD>注意:只有当您到“系统工具”菜单的“时间设置”项设置了当前时间后,“定时连接”功能才能生效。</TD></TR>
<TR>
<TD></TD>
<TD>连接时段:从<INPUT class=text maxLength=2 size=2 name=hour1>
时<INPUT class=text maxLength=2 size=2 name=minute1> 分到<INPUT
class=text maxLength=2 size=2 name=hour2>时<INPUT class=text
maxLength=2 size=2 name=minute2>分</TD></TR>
<TR>
<TD><INPUT onclick=doSelect(); type=radio value=4
name=linktype></TD>
<TD>手动连接,由用户手动连接</TD></TR>
<TR>
<TD></TD>
<TD>自动断线等待时间:<INPUT class=text maxLength=2 size=2
name=waittime2>分 (0 表示不自动断线)</TD></TR>
<TR>
<TD colSpan=2 height=10></TD></TR>
<TR>
<TD></TD>
<TD><INPUT class=button type=submit value="连 接" name=Connect>
<INPUT class=button type=submit value="断 线" name=Disconnect></TD></TR>
<TR>
<TD colSpan=2 height=10></TD></TR>
<TR>
<TD colSpan=2 height=10></TD></TR></TBODY></TABLE></TD>
<TD class=vline rowSpan=15><BR></TD></TR>
<TR>
<TD class=hline></TD></TR>
<TR>
<TD class=tail height=30> <INPUT class=button type=submit value="保 存" name=Save>
<INPUT class=button type=reset value="重 填" name=reset></TD></TR>
<TR>
<TD class=hline></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></FORM></CENTER>
<META http-equiv=pragma content=no-cache>
<SCRIPT language=JavaScript>
var tempB;
document.forms[0].acc.value = pppoeInf[7];
document.forms[0].psw.value = pppoeInf[8];
tempB=(pppoeInf[20]==1)?true:false;
document.forms[0].linktype[0].checked = tempB;
tempB=(pppoeInf[20]==1)?false:true;
document.forms[0].waittime.value = pppoeInf[21];
document.forms[0].waittime.disabled = tempB;
tempB=(pppoeInf[20]==2)?true:false;
document.forms[0].linktype[1].checked = tempB;
tempB=(pppoeInf[20]==3)?true:false;
document.forms[0].linktype[2].checked = tempB;
tempB=(pppoeInf[20]==3)?false:true;
document.forms[0].hour1.value = pppoeInf[22];
document.forms[0].hour1.disabled = tempB;
document.forms[0].minute1.value = pppoeInf[23];
document.forms[0].minute1.disabled = tempB;
document.forms[0].hour2.value = pppoeInf[24];
document.forms[0].hour2.disabled = tempB;
document.forms[0].minute2.value = pppoeInf[25];
document.forms[0].minute2.disabled = tempB;
tempB=(pppoeInf[20]==4)?true:false;
document.forms[0].linktype[3].checked = tempB;
tempB=(pppoeInf[20]==4)?false:true;
document.forms[0].waittime2.value = pppoeInf[21];
document.forms[0].waittime2.disabled = tempB;
tempB=(pppoeInf[26])?true:false;
document.forms[0].Connect.disabled = tempB;
tempB=(pppoeInf[26]&&(pppoeInf[4]==2))?false:true;
document.forms[0].Disconnect.disabled = tempB;
</SCRIPT>
</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -