mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
fix myhr action
This commit is contained in:
+3
-2
@@ -82,11 +82,12 @@ if ($rescount) {
|
|||||||
$list = $query->get();
|
$list = $query->get();
|
||||||
$hasActionRemove = false;
|
$hasActionRemove = false;
|
||||||
foreach($list as $row) {
|
foreach($list as $row) {
|
||||||
$columnAction = '';
|
$columnAction = '<td class="rowfollow nowrap" align="center">';
|
||||||
if ($row->uid == $CURUSER['id'] && $row->status == \App\Models\HitAndRun::STATUS_INSPECTING) {
|
if ($row->uid == $CURUSER['id'] && $row->status == \App\Models\HitAndRun::STATUS_INSPECTING) {
|
||||||
$hasActionRemove = true;
|
$hasActionRemove = true;
|
||||||
$columnAction = sprintf('<td class="rowfollow nowrap" align="center"><input class="remove-hr" type="button" value="%s" data-id="%s"></td>', $lang_myhr['action_remove'], $row->id);
|
$columnAction .= sprintf('<input class="remove-hr" type="button" value="%s" data-id="%s">', $lang_myhr['action_remove'], $row->id);
|
||||||
}
|
}
|
||||||
|
$columnAction .= '</td>';
|
||||||
print("<tr>
|
print("<tr>
|
||||||
<td class='rowfollow nowrap' align='center'>" . $row->id . "</td>
|
<td class='rowfollow nowrap' align='center'>" . $row->id . "</td>
|
||||||
<td class='rowfollow' align='left'><a href='details.php?id=" . $row->torrent_id . "'>" . optional($row->torrent)->name . "</a></td>
|
<td class='rowfollow' align='left'><a href='details.php?id=" . $row->torrent_id . "'>" . optional($row->torrent)->name . "</a></td>
|
||||||
|
|||||||
Reference in New Issue
Block a user