mirror of
https://gitlab.com/hashborgir/d2tools.git
synced 2024-11-30 04:26:03 +00:00
Fix warp columns at end
This commit is contained in:
parent
d5b69ba317
commit
d794031fd8
@ -127,14 +127,21 @@ unset($output[0]);
|
||||
<?php for ($i = 0; $i <= 7; $i++): ?>
|
||||
<td class="warp">
|
||||
<select name="Warp<?php echo $i; ?>" data-id="<?php echo $level['Id']; ?>">
|
||||
<?php
|
||||
// Check if the Warp value is -1 and add the custom option for it
|
||||
if (isset($level["Warp$i"]) && $level["Warp$i"] == -1) {
|
||||
echo '<option value="-1" selected>-1</option>';
|
||||
}
|
||||
?>
|
||||
<?php foreach ($lvlwarp as $key => $value): ?>
|
||||
<option value="<?php echo $key; ?>">
|
||||
<option value="<?php echo $key; ?>" <?php if (isset($level["Warp$i"]) && $level["Warp$i"] == $key) echo 'selected'; ?>>
|
||||
<?php echo "$key - $value"; ?>
|
||||
</option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</td>
|
||||
<?php endfor; ?>
|
||||
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
|
Loading…
Reference in New Issue
Block a user