- 下拉链接;
- <tr>
- <td height="24" class="IptTdLeft">接入类型:</td>
- <td height="24" class="IptTdRight"><select name="nettype" onchange="goto(this)" class="sel">
- <option value="PPPoE" >PPPoE</option>
- <option value="DHCP">动态IP</option>
- <option value="StaticIP" selected>静态IP</option>
- <option value="PPP">PPP </option>
- </select></td>
- </tr>
- <script type="text/javascript" src="../js/check.js"></script>
- <script language="javascript">
- function goto(this_obj){
- var obj = this_obj;
- if(obj.options[obj.selectedIndex].value =="PPPoE")
- location.href="network_adsl.htm";
- if(obj.options[obj.selectedIndex].value =="DHCP")
- location.href="network_catablel.htm";
- if(obj.options[obj.selectedIndex].value =="StaticIP")
- location.href="network_ddn.htm";
- if(obj.options[obj.selectedIndex].value =="PPP")
- location.href="network_ppp.htm";
- }
- </script>
- 一,隐藏
- <script language="javascript">
- function chooseType(radioObj)
- {
- var obj = radioObj;
- if(radioObj.value== 1)
- {
- document.getElementById("point_ip").style.display = "none";
- }
- else
- {
- document.getElementById("point_ip").style.display = "";
- }
- }
- </script>
- <tr>
- <td height="20" align="left"><input type="radio" name="conf_Mode" value="1" <?if(chop($result["Mode"])=="1") print "checked";?> onclick="chooseType(this)"></td>
- <td height="20" align="left"> 主设备 </td>
- </tr>
- <tr>
- <td height="20" align="left"><input type="radio" name="conf_Mode" value="0" <?if(chop($result["Mode"])=="0") print "checked";?> onclick="chooseType(this)"></td>
- <td height="20" align="left"> 从设备 </td>
- </tr>
- <tr id="point_ip" style="display:none" class="IptTr">
- <td height="24" class="IptTdLeft"> 服务器IP地址: </td>
- <td height="24" class="IptTdRight"><input name="conf_Serverip" type="text" size="15" value="<?=$result["Serverip"]?>">
- </td>
- </tr>
- 二,下拉菜单
- <tr class="IptTr">
- <td height="24" class="IptTdLeft"> 数据位: </td>
- <td height="24" class="IptTdRight">
- <select name="conf_Sjw" class="sel" >
- <option value="5" <?=($result["Sjw"]=="5")?"selected":""?>>5 </option>
- <option value="6" <?=($result["Sjw"]=="6")?"selected":""?>>6 </option>
- <option value="7" <?=($result["Sjw"]=="7")?"selected":""?>>7 </option>
- <option value="8" <?=($result["Sjw"]=="8")?"selected":""?>>8 </option>
- </select>
- </td>
- </tr>