hostname in header

This commit is contained in:
mad 2018-08-13 17:10:05 +02:00
parent 918d6b561b
commit 6b3c8cc71b
2 changed files with 4 additions and 2 deletions

View File

@ -27,4 +27,4 @@
</div>
</div>
<script src="nlvmi.js"></script>
<div class=container-fluid><div class="row" style="background-color:lightgreen;"><div class="col"><h1><a href="?" style=color:white;>nlvmi</a></h1></div></div>
<div class=container-fluid><div class="row" style="background-color:lightgreen;"><div class="col"><h1><a href="?" style=color:white;>nlvmi</a><a href="?" style="color:black;font-size:10px;">@<?php echo gethostname();?></a></h1></div></div>

View File

@ -221,7 +221,9 @@ while ($row = $res->fetchArray(SQLITE3_ASSOC)){
} else {
$button = "stop";
}
echo "<div class=col style=\"border:solid 1px;\">$row[vmname]</br><a class=\"btn btn-primary\" href=?edit=$row[id]>edit</a> <a href=?$button=$row[vmname] class=\"btn btn-primary\">$button</a> <button class=\"btn btn-default\" data-delete-text=\"Delete VM $row[vmname]!\" data-delete-vm=\"$row[id]\" data-delete-name=\"$row[vmname]\" data-toggle=\"modal\" data-target=\"#confirm-delete\">Delete VM</button></div>";
echo "<div class=col style=\"border:solid 1px;\">$row[vmname]</br><a class=\"btn btn-primary\" href=?edit=$row[id]>edit</a> ";
echo "<a href=?$button=$row[vmname] class=\"btn btn-primary\">$button</a> ";
echo "<button class=\"btn btn-default\" data-delete-text=\"Delete VM $row[vmname]!\" data-delete-vm=\"$row[id]\" data-delete-name=\"$row[vmname]\" data-toggle=\"modal\" data-target=\"#confirm-delete\">Delete VM</button></div>";
}
echo "</div></div></body></html>";
?>