|
@@ -28,47 +28,59 @@
|
|
|
</div>
|
|
|
<div class="ts very narrow container">
|
|
|
<br>
|
|
|
- <form class="ts relaxed form">
|
|
|
+ <form class="ts relaxed form" action="wconfig.php" method="POST">
|
|
|
<div class="field">
|
|
|
<label>IP Settings</label>
|
|
|
<div class="ts center aligned compact horizontal checkboxes">
|
|
|
<div class="ts radio checkbox">
|
|
|
- <input type="radio" name="IP" id="DHCP" checked="checked">
|
|
|
+ <input type="radio" name="IP" id="DHCP" value="DHCP" checked="checked">
|
|
|
<label for="DHCP">Obtain IP address automatically (DHCP)</label>
|
|
|
</div>
|
|
|
<div class="ts radio checkbox">
|
|
|
- <input type="radio" name="IP" id="Static">
|
|
|
+ <input type="radio" name="IP" id="Static" value="STATIC" disabled>
|
|
|
<label for="Static">Use static IP address</label>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="field">
|
|
|
- <label>IP Address</label>
|
|
|
- <input type="name">
|
|
|
- <small>The format should be like 0.0.0.0</small>
|
|
|
+ <div id="staticf">
|
|
|
+ <div class="field">
|
|
|
+ <label>IP Address</label>
|
|
|
+ <input type="name" name="ipaddr">
|
|
|
+ <small>The format should be like 0.0.0.0</small>
|
|
|
+ </div>
|
|
|
+ <div class="field">
|
|
|
+ <label>Subnet mask</label>
|
|
|
+ <input type="name" name="subnet">
|
|
|
+ <small>The format should be like 0.0.0.0</small>
|
|
|
+ </div>
|
|
|
+ <div class="field">
|
|
|
+ <label>Default Gateway</label>
|
|
|
+ <input type="name" name="dgateway">
|
|
|
+ <small>The format should be like 0.0.0.0</small>
|
|
|
+ </div>
|
|
|
+ <div class="field">
|
|
|
+ <label>Primary Domain Name Services(DNS)</label>
|
|
|
+ <input type="name" name="pdns">
|
|
|
+ <small>The format should be like 0.0.0.0</small>
|
|
|
+ </div>
|
|
|
+ <div class="field">
|
|
|
+ <label>Secondary Domain Name Services(DNS)</label>
|
|
|
+ <input type="name" name="sdns">
|
|
|
+ <small>The format should be like 0.0.0.0</small>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- <div class="field">
|
|
|
- <label>Subnet mask</label>
|
|
|
- <input type="name">
|
|
|
- <small>The format should be like 0.0.0.0</small>
|
|
|
- </div>
|
|
|
- <div class="field">
|
|
|
- <label>Default Gateway</label>
|
|
|
- <input type="name">
|
|
|
- <small>The format should be like 0.0.0.0</small>
|
|
|
- </div>
|
|
|
- <div class="field">
|
|
|
- <label>Primary Domain Name Services(DNS)</label>
|
|
|
- <input type="password">
|
|
|
- <small>The format should be like 0.0.0.0</small>
|
|
|
- </div>
|
|
|
- <div class="field">
|
|
|
- <label>Secondary Domain Name Services(DNS)</label>
|
|
|
- <input type="password">
|
|
|
- <small>The format should be like 0.0.0.0</small>
|
|
|
- </div>
|
|
|
- <button class="ts fluid primary button" type="button" onclick="location.href = 'version.php';">Next</button>
|
|
|
+ <input type="hidden" name="step" value="2">
|
|
|
+ <button class="ts fluid primary button" type="submit">Next</button>
|
|
|
</form>
|
|
|
</div>
|
|
|
+<script>
|
|
|
+$("#staticf").attr("style","display:none");
|
|
|
+$('#DHCP').change(function () {
|
|
|
+ $("#staticf").attr("style","display:none");
|
|
|
+});
|
|
|
+$('#Static').change(function () {
|
|
|
+ $("#staticf").attr("style","");
|
|
|
+});
|
|
|
+</script>
|
|
|
</body>
|
|
|
</html>
|