} } ?> </select> </td> </tr> <tr> <td> <!-- spacer --> </td> <td> <div class="zoneInformation"> <?php if ($mapping->zoneId) { # return the zone details $Zones->get_zone_detail($mapping->id); } ?> </div> </td> </tr> <tr> <!-- zone indicator --> <td> <?php print _('Firewall to map'); ?> </td> <td> <select name="deviceId" class="form-control input-sm input-w-auto input-max-200" <?php print $readonly;
if ($_POST['operation'] == 'fetchSectionSubnets') { if ($_POST['sectionId']) { if (preg_match('/^[0-9]+$/i', $_POST['sectionId'])) { $sectionId = $_POST['sectionId']; print $Subnets->print_mastersubnet_dropdown_menu($sectionId); } else { $Result->show('danger', _('Invalid ID.'), true); } } } # deliver zone details if ($_POST['operation'] == 'deliverZoneDetail') { if ($_POST['zoneId']) { if (preg_match('/^[0-9]+$/i', $_POST['zoneId'])) { # return the zone details $Zones->get_zone_detail($_POST['zoneId']); } else { $Result->show('danger', _('Invalid zone ID.'), true); } } } # deliver networkinformations about a specific zone if ($_POST['netZoneId']) { if (preg_match('/^[0-9]+$/i', $_POST['netZoneId'])) { # return the zone details $Zones->get_zone_network($_POST['netZoneId']); } else { $Result->show('danger', _('Invalid netZone ID.'), true); } } # deliver networkinformations about a specific zone