mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-15 05:00:49 +08:00
fix bulk increment lack of Retiree
This commit is contained in:
@@ -13,6 +13,7 @@ $validTypeMap = [
|
||||
];
|
||||
$type = $_REQUEST['type'] ?? '';
|
||||
stdhead("Add Bonus/Attend card/Invite/upload", false);
|
||||
$classes = array_chunk(\App\Models\User::$classes, 4, true);
|
||||
?>
|
||||
<table class=main width=737 border=0 cellspacing=0 cellpadding=0><tr><td class=embedded>
|
||||
<div align=center>
|
||||
@@ -51,79 +52,15 @@ stdhead("Add Bonus/Attend card/Invite/upload", false);
|
||||
<tr>
|
||||
<td class="rowhead" valign="top">Add to</td><td class="rowfollow">
|
||||
<table style="border: 0" width="100%" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td style="border: 0" width="20"><input type="checkbox" name="clases[]" value="0">
|
||||
</td>
|
||||
<td style="border: 0">Peasant</td>
|
||||
|
||||
<td style="border: 0" width="20"><input type="checkbox" name="clases[]" value="1">
|
||||
</td>
|
||||
<td style="border: 0">User</td>
|
||||
|
||||
<td style="border: 0" width="20"><input type="checkbox" name="clases[]" value="2">
|
||||
</td>
|
||||
<td style="border: 0">Power User</td>
|
||||
|
||||
<td style="border: 0" width="20"><input type="checkbox" name="clases[]" value="3">
|
||||
</td>
|
||||
<td style="border: 0">Elite User</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="border: 0" width="20"><input type="checkbox" name="clases[]" value="4">
|
||||
</td>
|
||||
<td style="border: 0">Crazy User</td>
|
||||
|
||||
<td style="border: 0" width="20"><input type="checkbox" name="clases[]" value="5">
|
||||
</td>
|
||||
<td style="border: 0">Insane User</td>
|
||||
|
||||
<td style="border: 0" width="20"><input type="checkbox" name="clases[]" value="6">
|
||||
</td>
|
||||
<td style="border: 0">Veteran User</td>
|
||||
|
||||
<td style="border: 0" width="20"><input type="checkbox" name="clases[]" value="7">
|
||||
</td>
|
||||
<td style="border: 0">Extreme User</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style="border: 0" width="20"><input type="checkbox" name="clases[]" value="8">
|
||||
</td>
|
||||
<td style="border: 0">Ultimate User</td>
|
||||
|
||||
<td style="border: 0" width="20"><input type="checkbox" name="clases[]" value="9">
|
||||
</td>
|
||||
<td style="border: 0">Nexus Master</td>
|
||||
|
||||
<td style="border: 0" width="20"><input type="checkbox" name="clases[]" value="10">
|
||||
</td>
|
||||
<td style="border: 0">VIP</td>
|
||||
|
||||
<td style="border: 0" width="20"><input type="checkbox" name="clases[]" value="11">
|
||||
</td>
|
||||
<td style="border: 0">Uploader</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style="border: 0" width="20"><input type="checkbox" name="clases[]" value="12">
|
||||
</td>
|
||||
<td style="border: 0">Moderator</td>
|
||||
|
||||
<td style="border: 0" width="20"><input type="checkbox" name="clases[]" value="13">
|
||||
</td>
|
||||
<td style="border: 0">Administrator</td>
|
||||
|
||||
<td style="border: 0" width="20"><input type="checkbox" name="clases[]" value="14">
|
||||
</td>
|
||||
<td style="border: 0">SysOp</td>
|
||||
|
||||
<td style="border: 0" width="20"><input type="checkbox" name="clases[]" value="15">
|
||||
</td>
|
||||
<td style="border: 0">Staff Leader</td>
|
||||
|
||||
<td style="border: 0"> </td>
|
||||
<td style="border: 0"> </td>
|
||||
</tr>
|
||||
<?php
|
||||
foreach ($classes as $chunk) {
|
||||
printf('<tr>');
|
||||
foreach ($chunk as $class => $info) {
|
||||
printf('<td style="border: 0"><label><input type="checkbox" name="clases[]" value="%s" />%s</label></td>', $class, $info['text']);
|
||||
}
|
||||
printf('</tr>');
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user