forked from hestiacp/hestiacp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathedit_ip.php
More file actions
72 lines (67 loc) · 3.05 KB
/
edit_ip.php
File metadata and controls
72 lines (67 loc) · 3.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<!-- Begin toolbar -->
<div class="toolbar">
<div class="toolbar-inner">
<div class="toolbar-buttons">
<a class="button button-secondary" id="btn-back" href="/list/ip/"><i class="fas fa-arrow-left status-icon blue"></i><?=_('Back');?></a>
</div>
<div class="toolbar-buttons">
<a href="#" class="button" data-action="submit" data-id="vstobjects"><i class="fas fa-floppy-disk status-icon purple"></i><?=_('Save');?></a>
</div>
</div>
</div>
<!-- End toolbar -->
<div class="l-center animate__animated animate__fadeIn">
<form id="vstobjects" name="v_edit_ip" method="post">
<input type="hidden" name="token" value="<?=$_SESSION['token']?>">
<input type="hidden" name="save" value="save">
<div class="form-container">
<h1 class="form-title"><?=_('Editing IP Address');?></h1>
<?php show_alert_message($_SESSION);?>
<div class="u-mb10">
<label for="v_ip" class="form-label"><?=_('IP address') ?></label>
<input type="text" class="form-control" name="v_ip" id="v_ip" value="<?=htmlentities(trim($v_ip, "'"))?>" disabled>
<input type="hidden" name="v_ip" value="<?=htmlentities(trim($v_ip, "'"))?>">
</div>
<div class="u-mb10">
<label for="v_netmask" class="form-label"><?=_('Netmask');?></label>
<input type="text" class="form-control" name="v_netmask" id="v_netmask" value="<?=htmlentities(trim($v_netmask, "'"))?>" disabled>
</div>
<div class="u-mb10">
<label for="v_interface" class="form-label"><?=_('Interface');?></label>
<input type="text" class="form-control" name="v_interface" id="v_interface" value="<?=htmlentities(trim($v_interface, "'"))?>" disabled>
</div>
<div class="form-check u-mb10">
<input class="form-check-input" type="checkbox" name="v_shared" id="v_shared" <?php if (empty($v_dedicated)) echo 'checked' ?> onclick="javascript:elementHideShow('usrtable');">
<label for="v_shared">
<?=_('Shared');?>
</label>
</div>
<div id="usrtable" style="display:<?php if (empty($v_dedicated)) { echo 'none';} else {echo 'block';}?> ;">
<div class="u-mb10">
<label for="v_owner" class="form-label"><?=_('Assigned user');?></label>
<select class="form-select" name="v_owner" id="v_owner">
<?php
foreach ($users as $key => $value) {
echo "\t\t\t\t<option value=\"".htmlentities($value)."\"";
if ((!empty($v_owner)) && ( $value == $v_owner )) echo ' selected';
echo ">".htmlentities($value)."</option>\n";
}
?>
</select>
</div>
</div>
<div class="u-mb10">
<label for="v_name" class="form-label">
<?=_('Assigned domain');?> <span class="optional">(<?=_('optional');?>)</span>
</label>
<input type="text" class="form-control" name="v_name" id="v_name" value="<?=htmlentities(trim($v_name, "'"))?>">
</div>
<div class="u-mb10">
<label for="v_nat" class="form-label">
<?=_('NAT IP association');?> <span class="optional">(<?=_('optional');?>)</span>
</label>
<input type="text" class="form-control" name="v_nat" id="v_nat" value="<?=htmlentities(trim($v_nat, "'"))?>">
</div>
</div>
</form>
</div>