📄 wireless_advanced.asp.svn-base
字号:
<% do_pagehead(); %> <title><% nvram_get("router_name"); %> - Advanced Wireless Settings</title> <script type="text/javascript"> //<![CDATA[document.title = "<% nvram_get("router_name"); %>" + wl_adv.titl;var wl_net_mode = '<% nvram_get("wl_net_mode"); %>';function initWlTimer(radio_on_time){ var color_red='#FF0000'; var color_green='#00FF00'; for(var i = 0; i < radio_on_time.length; i++){ if(radio_on_time.charAt(i)==1){ bgcolor=color_green; val=1; }else{ bgcolor=color_red; val=0; } if(ie4 || op){ eval("document.all.td_" + i + ".style.backgroundColor = '" + bgcolor + "'"); eval("document.all.td_" + i + ".value = '" + val + "'"); } if(ns4) { eval("document.td_" + i + ".backgroundColor = '" + bgcolor + "'"); eval("document.td_" + i + ".value = '" + val + "'"); } if(ns6) { eval("document.getElementById('td_" + i + "').style.backgroundColor = '" + bgcolor + "'"); eval("document.getElementById('td_" + i + "').value = '" + val + "'"); } }}function setWlTimer(id, state){ var color_red='#FF0000'; var color_green='#00FF00'; if(id=='all'){ if(state){ bgcolor=color_green; val=1; }else{ bgcolor=color_red; val=0; } for(var i = 0; i < 24; i++) { if(ie4 || op){ eval("document.all.td_" + i + ".style.backgroundColor = '" + bgcolor + "'"); eval("document.all.td_" + i + ".value = '" + val + "'"); } if(ns4){ eval("document.td_" + i + ".backgroundColor = '" + bgcolor + "'"); eval("document.td_" + i + ".value = '" + val + "'"); } if(ns6){ eval("document.getElementById('td_" + i + "').style.backgroundColor = '" + bgcolor + "'"); eval("document.getElementById('td_" + i + "').value = '" + val + "'"); } } } else { if(ie4 || op){ if(eval("document.all." + id + ".value")=='1'){ eval("document.all." + id + ".style.backgroundColor = '" + color_red + "'"); eval("document.all." + id + ".value = '0'"); }else{ eval("document.all." + id + ".style.backgroundColor = '" + color_green + "'"); eval("document.all." + id + ".value = '1'"); } } if(ns4){ if(eval("document." + id + ".value")=='1'){ eval("document." + id + ".backgroundColor = '" + color_red + "'"); eval("document." + id + ".value = '0'"); }else{ eval("document." + id + ".backgroundColor = '" + color_green + "'"); eval("document." + id + ".value = '1'"); } } if(ns6){ if(eval("document.getElementById('" + id + "').value")=='1'){ eval("document.getElementById('" + id + "').style.backgroundColor = '" + color_red + "'"); eval("document.getElementById('" + id + "').value = '0'"); }else{ eval("document.getElementById('" + id + "').style.backgroundColor = '" + color_green + "'"); eval("document.getElementById('" + id + "').value = '1'"); } } }}function computeWlTimer(){ var radio_on_time=''; for(var i = 0; i < 24; i++){ if(ie4 || op){ radio_on_time+=eval("document.all.td_" + i + ".value"); } if(ns4) { radio_on_time+=eval("document.td_" + i + ".value"); } if(ns6) { radio_on_time+=eval("document.getElementById('td_" + i + "').value"); } } return radio_on_time;}function setRadioTable(){ var table = document.getElementById("radio_table"); cleanTable(table); var row1 = table.insertRow(-1); var row2 = table.insertRow(-1); row2.style.cursor = "pointer"; for(var i = 0; i < 24; i++){ var cell_label = row1.insertCell(-1); cell_label.innerHTML = i; var cell_timer = row2.insertCell(-1); cell_timer.style.width = "4%"; cell_timer.id = "td_" + i; cell_timer.title = i + "h - " + eval(i+1) + "h"; cell_timer.innerHTML = " "; cell_timer.onclick=function(){setWlTimer(this.id, true);}; }}function create_nrate(num,F){ var bw20 = new Array("6.5", "13", "19.5", "26", "39", "52", "58.5", "65", "13", "26", "39", "52", "78", "104", "117", "130"); var bw40 = new Array("13.5", "27", "40.5", "54", "81", "108", "121.5", "135", "27", "54", "81", "108", "162", "216", "243", "270"); var index = '<% nvram_get("wl0_nmcsidx"); %>'; F.wl0_nmcsidx[0] = new Option(share.auto); F.wl0_nmcsidx[0].value = "-1"; if(num == 0 || num == 20) { for(i=0;i<bw20.length;i++) { F.wl0_nmcsidx[i+1] = new Option(i+" - "+bw20[i]+" Mbps "); F.wl0_nmcsidx[i+1].value = i; } } else { for(i=0;i<bw40.length;i++) { F.wl0_nmcsidx[i+1] = new Option(i+" - "+bw40[i]+" Mbps"); F.wl0_nmcsidx[i+1].value = i; } } if(index == "-2" && (wl_net_mode == "g-only" || wl_net_mode == "b-only")) { F.wl0_nmcsidx[0].selected = true; choose_disable(F.wl0_nmcsidx); } else F.wl0_nmcsidx[parseInt(index)+1].selected = true;}function to_submit(F) { F.wl_nmode_protection.value = F.wl_gmode_protection.value; F.save_button.value = sbutton.saving; F.radio0_on_time.value = computeWlTimer(); apply(F);}function setWMM(val) { setElementsActive("wl_wme_no_ack", "_wl_wme_sta_vo5", val == "on");}addEvent(window, "load", function() { setRadioTable(); setWMM("<% nvram_get("wl_wme"); %>"); show_layer_ext(document.wireless.wl_wme, 'idwl_wme', <% nvram_else_match("wl_wme", "on", "1", "0"); %> == 1); show_layer_ext(document.wireless.radio_timer_enable, 'radio', <% nvram_else_match("radio_timer_enable", "1", "1", "0"); %> == 1); initWlTimer('<% nvram_get("radio0_on_time"); %>'); show_layer_ext(document.wireless.wl0_nmcsidx, 'idwl0_nmcsidx', <% nvram_else_match("wl0_phytype", "n", "1", "0"); %> == 1); setElementActive( "document.wireless.wl_rate", !(wl_net_mode=="n-only") ); if("<% nvram_get("wl0_phytype"); %>"=="n") create_nrate('<% nvram_get("wl0_nbw"); %>',document.wireless);}); //]]> </script> </head> <body class="gui"> <% showad(); %> <div id="wrapper"> <div id="content"> <div id="header"> <div id="logo"><h1><% show_control(); %></h1></div> <% do_menu("Wireless_Basic.asp","Wireless_Advanced.asp"); %> </div> <div id="main"> <div id="contents"> <form id="wireless" name="wireless" action="apply.cgi" method="<% get_http_method(); %>"> <input type="hidden" name="submit_button" value="Wireless_Advanced" /> <input type="hidden" name="action" value="Apply" /> <input type="hidden" name="change_action" /> <input type="hidden" name="submit_type" /> <input type="hidden" name="commit" value="1" /> <input type="hidden" name="radio0_on_time" /> <input type="hidden" name="wl_nmode_protection" />
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -