The New Desing

This commit is contained in:
Serghey Rodin 2015-05-29 02:07:55 +03:00
commit 067a2c862a
305 changed files with 22231 additions and 7576 deletions

View file

@ -1,30 +1,36 @@
<div class="l-center edit">
<div class="l-sort clearfix">
<div class="l-sort-toolbar clearfix float-left">
<span class="title edit"><b><?=__('Editing IP Address')?></b></span>
<?php
$back = $_SESSION['back'];
if (empty($back)) {
$back = "location.href='/list/ip/'";
} else {
$back = "location.href='".$back."'";
if (!empty($_SESSION['error_msg'])) {
echo "<span class=\"vst-error\"> → ".$_SESSION['error_msg']."</span>";
} else {
if (!empty($_SESSION['ok_msg'])) {
echo "<span class=\"vst-ok\"> → ".$_SESSION['ok_msg']."</span>";
}
?>
<table class="submenu">
<tr>
<td style="padding: 20px 10px;" ><a class="name"><b><?php print __('Editing IP Address');?></b></a>
<?php
if (!empty($_SESSION['error_msg'])) {
echo "<span class=\"vst-error\"> → ".$_SESSION['error_msg']."</span>";
} else {
if (!empty($_SESSION['ok_msg'])) {
echo "<span class=\"vst-ok\"> → ".$_SESSION['ok_msg']."</span>";
}
}
?>
</td>
</tr>
</table>
}
?>
</div>
<form id="vstobjects" name="v_edit_ip" method="post">
</div>
<? display_error_block() ?>
</div>
<div class="l-separator"></div>
<!-- /.l-separator -->
<div class="l-center">
<?php
$back = $_SESSION['back'];
if (empty($back)) {
$back = "location.href='/list/ip/'";
} else {
$back = "location.href='".$back."'";
}
?>
<form id="vstobjects" name="v_edit_ip" method="post" class="<?=__($v_status)?>">
<input type="hidden" name="token" value="<?=$_SESSION['token']?>" />
<script type="text/javascript">
function elementHideShow(elementToHideOrShow) {
var el = document.getElementById(elementToHideOrShow);
@ -58,7 +64,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_ip" <?php if (!empty($v_ip)) echo "value=".$v_ip; ?> disabled> <input type="hidden" name="v_ip" <?php if (!empty($v_ip)) echo "value=".$v_ip; ?>>
<input type="text" size="20" class="vst-input" name="v_ip" <?php if (!empty($v_ip)) echo "value=".htmlentities($v_ip); ?> disabled> <input type="hidden" name="v_ip" <?php if (!empty($v_ip)) echo "value=".htmlentities($v_ip); ?>>
</td>
</tr>
<tr>
@ -68,7 +74,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_netmask" <?php if (!empty($v_netmask)) echo "value=".$v_netmask; ?> disabled>
<input type="text" size="20" class="vst-input" name="v_netmask" <?php if (!empty($v_netmask)) echo "value=".htmlentities($v_netmask); ?> disabled>
</td>
</tr>
<tr>
@ -78,7 +84,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_netmask" <?php if (!empty($v_interace)) echo "value=".$v_interace; ?> disabled>
<input type="text" size="20" class="vst-input" name="v_netmask" <?php if (!empty($v_interace)) echo "value=".htmlentities($v_interace); ?> disabled>
</td>
</tr>
<tr>
@ -99,9 +105,9 @@
<select class="vst-list" name="v_owner">
<?php
foreach ($users as $key => $value) {
echo "\t\t\t\t<option value=\"".$value."\"";
echo "\t\t\t\t<option value=\"".htmlentities($value)."\"";
if ((!empty($v_owner)) && ( $value == $v_owner )) echo ' selected';
echo ">".$value."</option>\n";
echo ">".htmlentities($value)."</option>\n";
}
?>
</select>
@ -117,7 +123,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_name" <?php if (!empty($v_name)) echo "value=".$v_name; ?>>
<input type="text" size="20" class="vst-input" name="v_name" <?php if (!empty($v_name)) echo "value=".htmlentities($v_name); ?>>
</td>
</tr>
<tr>
@ -127,7 +133,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_nat" <?php if (!empty($v_nat)) echo "value=".$v_nat; ?>>
<input type="text" size="20" class="vst-input" name="v_nat" <?php if (!empty($v_nat)) echo "value=".htmlentities($v_nat); ?>>
</td>
</tr>
@ -138,11 +144,12 @@
<input type="submit" class="button" name="save" value="<?php print __('Save');?>">
</td>
<td class="step-top">
<input type="button" class="button" value="<?php print __('Back');?>" onclick="<?php echo $back ?>">
<input type="button" class="button cancel" value="<?php print __('Back');?>" onclick="<?php echo $back ?>">
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</form>
</div>