level editor functional

This commit is contained in:
Hash Borgir
2023-09-10 20:02:58 -06:00
parent 59c8e1ecfe
commit 974de24f6f
8 changed files with 144 additions and 163 deletions

View File

@@ -45,7 +45,7 @@ foreach ($res as $key => $item) {
$newItem = [];
$newItem['LevelName'] = $item['LevelName']; // Copy the LevelName to new item
foreach ($levelsAll[$key] as $levelsKey => $levelsValue) {
//$newItem[$levelsKey] = isset($monstats[$levelsValue]) ? $monstats[$levelsValue] : $levelsValue;
$newItem[$levelsKey] = isset($monstats[$levelsValue]) ? $monstats[$levelsValue] : $levelsValue;
}
@@ -97,7 +97,7 @@ ddump($output);
echo "<table id='myTable' class='table table-bordered table-striped'>";
// Display table headers with Bootstrap styling
$headers = ['Id', 'Name', 'LevelName', "", "", "", ""];
$headers = ['Id', 'Name', 'LevelName'];
for ($i = 0; $i < 8; $i++) {
$headers[] = "Vis" . $i;
}