We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6d6e19 commit d7f4bc4Copy full SHA for d7f4bc4
web/templates/admin/add_web.html
@@ -62,14 +62,10 @@
62
<td>
63
<select class="vst-list" name="v_ip">
64
<?php
65
- foreach ($ips as $key => $value) {
66
- $display_ip = $key;
67
- if (!empty($value['NAT'])) $display_ip = $value['NAT'];
68
- echo "\t\t\t\t<option value=\"".htmlentities($display_ip)."\"";
69
- if ((!empty($v_ip)) && ( $display_ip == $_POST['v_ip'])){
70
- echo ' selected';
71
- }
72
- echo ">".htmlentities($display_ip)."</option>\n";
+ foreach ($ips as $ip => $value) {
+ $display_ip = htmlentities(empty($value['NAT']) ? $ip : "{$ip} → {$value['NAT']}");
+ $ip_selected = (!empty($v_ip) && $ip == $_POST['v_ip']) ? 'selected' : '';
+ echo "\t\t\t\t<option value=\"{$ip}\" {$ip_selected}>{$display_ip}</option>\n";
73
}
74
?>
75
</select>
0 commit comments