diff --git a/web/header.php b/web/header.php index 65b1f19..60b66ab 100644 --- a/web/header.php +++ b/web/header.php @@ -30,3 +30,19 @@
usermanagement
"; } ?>logout
+ + + + + diff --git a/web/index.php b/web/index.php index 399bddd..524d5cb 100644 --- a/web/index.php +++ b/web/index.php @@ -254,6 +254,27 @@ if (isset($_SESSION['username'])){ } if (isset($formname)){ + $placehold['vmname']="Name of the VM"; + $placehold['server']="ip or name of host server"; + $placehold['cputype']="normally just 'host'"; + $placehold['cpus']="Number of core for the VM"; + $placehold['memory']="Amount of RAM for the VM im Mb"; + $placehold['usbdev']="Normally just 'tablet' to get a mouse"; + $placehold['kblang']="Qemu keyboard layout. Like 'de-ch'"; + $placehold['custom']="Customstring to add to the qemu command"; + $placehold['tapdev1']="tapname of first netinterface"; + $placehold['tapdev2']="tapname of second netinterface"; + $placehold['tapdev3']="tapname of third netinterface"; + $placehold['macaddr1']="macaddress of first netinterface"; + $placehold['macaddr2']="macaddress of second netinterface"; + $placehold['macaddr3']="macaddress of third netinterface"; + $placehold['brdev1']="bridge on host to add first netinterface"; + $placehold['brdev2']="bridge on host to add second netinterface"; + $placehold['brdev3']="bridge on host to add third netinterface"; + $placehold['vncport']="VNC displaynumber like '1'"; + $placehold['websocket']="port to bind the VNC websocket"; + $placehold['vncpasswort']="the password for VNC"; + echo "

$formname


"; echo "
"; $res = $db_handle->query('PRAGMA table_info(vms)'); @@ -267,6 +288,8 @@ if (isset($_SESSION['username'])){ } else { $val = ""; } + $colname=$arrColnames[$col]; + //$placeh=$placehold[$arrColnames[$col]]; if ($arrColnames[$col] == "bootoption"){ if($val=="") { $val="c"; @@ -295,6 +318,20 @@ if (isset($_SESSION['username'])){ echo "x86_64"; echo "
"; // echo "$arrColnames[$col]
"; + } elseif (preg_match('/format/', $arrColnames[$col])){ + echo "
$arrColnames[$col]
"; + } elseif ($arrColnames[$col] == "autostart"){ + $checked=""; + if ($val=="1"){ + $checked="checked"; + } + echo "
autostart
"; } elseif ($arrColnames[$col] == "cdrom"){ echo "
cdrom