Commit 399ddcca authored by José Luis  Gutiérrez's avatar José Luis Gutiérrez Committed by Alessandro Rubini

www: network.php when editing DHCP is not shown

When changing from DHCP to fix IP, the DHCP/IP selector is not shown
anymore.
parent 9b9a395d
......@@ -20,19 +20,7 @@
<?php session_is_started() ?>
<?php $_SESSION['advance']=""; ?>
<FORM method="POST">
<table id="daemon" border="0" align="center">
<tr>
<th align=left>eth0 Setup: </th>
<th><input type="radio" name="networkgroup" value="DHCP" <?php if(!strcmp(wrs_interface_setup(), "dhcp")) echo "checked" ?> > DHCP <br>
<input type="radio" name="networkgroup" value="Static" <?php if(!strcmp(wrs_interface_setup(), "static")) echo "checked" ?> > Static <br>
<th><INPUT type="submit" value="Change" class="btn"></th>
</tr>
</table>
</FORM>
<br>
<?php
/* This will be part of the code when using dotconfig for DHCP/FIX IP
......@@ -90,6 +78,20 @@
/* end of dotconfig version */
if((empty($_POST["networkgroup"]))){
echo '<FORM method="POST">
<table id="daemon" border="0" align="center">
<tr>
<th align=left>eth0 Setup: </th>
<th><input type="radio" name="networkgroup" value="DHCP"'; if(!strcmp(wrs_interface_setup(), "dhcp")) echo "checked";
echo ' > DHCP <br>
<input type="radio" name="networkgroup" value="Static"'; if(!strcmp(wrs_interface_setup(), "static")) echo "checked";
echo ' > Static <br>
<th><INPUT type="submit" value="Change" class="btn"></th>
</tr>
</table>
</FORM>
<br>';
$formatID = "alternatecolor";
$class = "altrowstable firstcol";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment