bootoption fix
This commit is contained in:
parent
f4d6a616fb
commit
3048e4e9a2
|
@ -44,6 +44,7 @@ if ($config['DATABASETYPE']=="sqlite"){
|
|||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
if ((isset($_POST['deletevm']))&&(isset($_POST['deletename']))){
|
||||
$vmname = clean($_POST['deletename']);
|
||||
$vmid = clean($_POST['deletevm']);
|
||||
|
@ -113,7 +114,10 @@ for ($col=0; $col <count($arrColnames); $col++){
|
|||
$val = "";
|
||||
}
|
||||
if ($arrColnames[$col] == "bootoption"){
|
||||
echo "<div class=row><div class=col-md-1 style=text-align:right>bootoption</div><div class=col-md-2><div class=dropdown><button class=\"btn btn-secondary dropdown-toggle\" type=button id=bootoptionbutton data-toggle=dropdown aria-haspopup=true aria-expanded=false>C</button>";
|
||||
if($val=="") {
|
||||
$val="c";
|
||||
}
|
||||
echo "<div class=row><div class=col-md-1 style=text-align:right>bootoption</div><div class=col-md-2><div class=dropdown><button class=\"btn btn-secondary dropdown-toggle\" type=button id=bootoptionbutton data-toggle=dropdown aria-haspopup=true aria-expanded=false>$val</button>";
|
||||
echo "<div class=dropdown-menu aria-labelledby=bootoptionbutton>";
|
||||
echo "<a class=dropdown-item href=\"javascript:dropdown('bootoptionbutton','c')\">c</a>";
|
||||
echo "<a class=dropdown-item href=\"javascript:dropdown('bootoptionbutton','d')\">d</a>";
|
||||
|
@ -164,7 +168,6 @@ for ($col=0; $col <count($arrColnames); $col++){
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
echo "$editid<input type=hidden name=mode value=$formname><input class=\"btn btn-primary\" type=submit></form>";
|
||||
}
|
||||
|
||||
|
@ -231,7 +234,7 @@ while ($row = $res->fetchArray(SQLITE3_ASSOC)){
|
|||
$button = "stop";
|
||||
$buttonc = "btn-warning";
|
||||
}
|
||||
echo "<div class=col style=\"border:solid 1px;\">$row[vmname]</br><a class=\"btn btn-primary\" href=# onclick=\"post('?', {edit: '$row[id]'});\">edit</a> ";
|
||||
echo "<div class=col style=\"border:solid 1px;max-width:320px;\">$row[vmname]</br><a class=\"btn btn-primary\" href=# onclick=\"post('?', {edit: '$row[id]'});\">edit</a> ";
|
||||
echo "<a href=# onclick=\"post('?', {'$button': '$row[vmname]'});\"class=\"btn $buttonc\">$button</a> ";
|
||||
echo "<button class=\"btn btn-danger\" 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> ";
|
||||
$server = gethostname();
|
||||
|
|
Loading…
Reference in New Issue