cdrom fix
This commit is contained in:
parent
49171a5dad
commit
5f8bb4be78
|
@ -64,6 +64,11 @@ while ($col = $res->fetchArray(SQLITE3_ASSOC)) {
|
|||
}
|
||||
for ($col=0; $col <count($arrColnames); $col++){
|
||||
if ($arrColnames[$col]!="id"){
|
||||
if (isset($e[$arrColnames[$col]])){
|
||||
$val = $e[$arrColnames[$col]];
|
||||
} else {
|
||||
$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>";
|
||||
echo "<div class=dropdown-menu aria-labelledby=bootoptionbutton>";
|
||||
|
@ -82,18 +87,13 @@ for ($col=0; $col <count($arrColnames); $col++){
|
|||
echo "<div class=dropdown-menu aria-labelledby=cdrombutton>";
|
||||
$files = array_diff(scandir($config['ISODIRECTORY']), array('.', '..'));
|
||||
$files = array_values(array_filter($files));
|
||||
for ($f=0; $f<=count($files); $f++){
|
||||
for ($f=0; $f<count($files); $f++){
|
||||
if ((preg_match('/iso/', $files[$f]))||(preg_match('/ISO/', $files[$f]))){
|
||||
echo "<a class=dropdown-item href=\"javascript:dropdown('cdrombutton','$files[$f]')\">$files[$f]</a>";
|
||||
}
|
||||
}
|
||||
echo "</div></div></div></div><input type=hidden id=cdrombuttonh name=arch value=$val>";
|
||||
echo "</div></div></div></div><input type=hidden id=cdrombuttonh name=cdrom value=$val>";
|
||||
} else {
|
||||
if (isset($e[$arrColnames[$col]])){
|
||||
$val = $e[$arrColnames[$col]];
|
||||
} else {
|
||||
$val = "";
|
||||
}
|
||||
echo "<div class=row><div class=col-md-1 style=text-align:right>$arrColnames[$col]</div><div class=col-md-2><input class=form-control type=text name=$arrColnames[$col] value=$val></div></div>";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue