2020-03-06 16:53:22 +01:00
|
|
|
<div class="tab-pane active" id="server-settings">
|
|
|
|
<h4 class="mt-3">DHCP server settings</h4>
|
|
|
|
<div class="row">
|
|
|
|
<div class="form-group col-md-6">
|
|
|
|
<label for="code">Interface</label>
|
2020-11-21 14:52:20 +01:00
|
|
|
<?php SelectorOptions('interface', $interfaces, $ap_iface, 'cbxdhcpiface', 'loadInterfaceDHCPSelect', $DHCPDisabled); ?>
|
2020-03-06 16:53:22 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-11-15 11:51:51 +01:00
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="form-group col-md-6">
|
|
|
|
<div class="input-group">
|
|
|
|
<input type="hidden" name="dhcp-iface" value="0">
|
|
|
|
<div class="custom-control custom-switch">
|
|
|
|
<input class="custom-control-input" id="dhcp-iface" type="checkbox" name="dhcp-iface" value="1" <?php echo $dhcp_iface_enable ? ' checked="checked"' : "" ?> aria-describedby="dhcp-iface-description">
|
|
|
|
<label class="custom-control-label" for="dhcp-iface"><?php echo _("Enable DHCP for this interface") ?></label>
|
|
|
|
</div>
|
2020-11-19 13:36:02 +01:00
|
|
|
<p class="mb-0" id="dhcp-iface-description">
|
2020-11-16 19:20:39 +01:00
|
|
|
<small><?php echo _("Enable this option if you want RaspAP to assign IP addresses on the selected interface.") ?></small>
|
2020-11-15 11:51:51 +01:00
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2020-03-06 16:53:22 +01:00
|
|
|
<div class="row">
|
|
|
|
<div class="form-group col-md-6">
|
|
|
|
<label for="code"><?php echo _("Starting IP Address"); ?></label>
|
2020-11-16 19:20:39 +01:00
|
|
|
<input type="text" class="form-control" id="txtrangestart" name="RangeStart" value="<?php echo htmlspecialchars($RangeStart, ENT_QUOTES); ?>" />
|
2020-03-06 16:53:22 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="form-group col-md-6">
|
|
|
|
<label for="code"><?php echo _("Ending IP Address"); ?></label>
|
2020-11-16 19:20:39 +01:00
|
|
|
<input type="text" class="form-control" id="txtrangeend" name="RangeEnd" value="<?php echo htmlspecialchars($RangeEnd, ENT_QUOTES); ?>" />
|
2020-03-06 16:53:22 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="form-group col-xs-3 col-sm-3">
|
|
|
|
<label for="code"><?php echo _("Lease Time"); ?></label>
|
2020-11-16 19:20:39 +01:00
|
|
|
<input type="text" class="form-control" id="txtrangeleasetime" name="RangeLeaseTime" value="<?php echo htmlspecialchars($arrRangeLeaseTime[1], ENT_QUOTES); ?>" />
|
2020-03-06 16:53:22 +01:00
|
|
|
</div>
|
|
|
|
<div class="col-xs-3 col-sm-3">
|
|
|
|
<label for="code"><?php echo _("Interval"); ?></label>
|
2020-11-16 19:20:39 +01:00
|
|
|
<select id="cbxrangeleasetimeunits" name="RangeLeaseTimeUnits" class="form-control" >
|
|
|
|
<option value="m"><?php echo _("Minute(s)"); ?></option>
|
|
|
|
<option value="h"><?php echo _("Hour(s)"); ?></option>
|
|
|
|
<option value="d"><?php echo _("Day(s)"); ?></option>
|
|
|
|
<option value="infinite"><?php echo _("Infinite"); ?></option>
|
2020-03-06 16:53:22 +01:00
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="form-group col-md-6">
|
|
|
|
<label for="code"><?php echo _("DNS Server"); ?> 1</label>
|
2020-11-16 19:20:39 +01:00
|
|
|
<input type="text" class="form-control" id="txtdns1" name="DNS1" value="<?php echo htmlspecialchars($DNS1, ENT_QUOTES); ?>" />
|
2020-03-06 16:53:22 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="form-group col-md-6">
|
|
|
|
<label for="code"><?php echo _("DNS Server"); ?> 2</label>
|
2020-11-16 19:20:39 +01:00
|
|
|
<input type="text" class="form-control" id="txtdns2" name="DNS2" value="<?php echo htmlspecialchars($DNS2, ENT_QUOTES); ?>" />
|
2020-03-06 16:53:22 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div><!-- /.tab-pane -->
|