mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
fix torrenttable() action render
This commit is contained in:
@@ -3827,10 +3827,12 @@ foreach ($rows as $row)
|
|||||||
|
|
||||||
if (user_can('torrentmanage'))
|
if (user_can('torrentmanage'))
|
||||||
{
|
{
|
||||||
|
$actions = [];
|
||||||
if (user_can('torrent-delete')) {
|
if (user_can('torrent-delete')) {
|
||||||
print("<td class=\"rowfollow\"><a href=\"".htmlspecialchars("fastdelete.php?id=".$row['id'])."\"><img class=\"staff_delete\" src=\"pic/trans.gif\" alt=\"D\" title=\"".$lang_functions['text_delete']."\" /></a></td>");
|
$actions[] = "<a href=\"".htmlspecialchars("fastdelete.php?id=".$row['id'])."\"><img class=\"staff_delete\" src=\"pic/trans.gif\" alt=\"D\" title=\"".$lang_functions['text_delete']."\" /></a>";
|
||||||
}
|
}
|
||||||
print("<br /><a href=\"edit.php?returnto=" . rawurlencode($_SERVER["REQUEST_URI"]) . "&id=" . $row["id"] . "\"><img class=\"staff_edit\" src=\"pic/trans.gif\" alt=\"E\" title=\"".$lang_functions['text_edit']."\" /></a></td>\n");
|
$actions[] = "<a href=\"edit.php?returnto=" . rawurlencode($_SERVER["REQUEST_URI"]) . "&id=" . $row["id"] . "\"><img class=\"staff_edit\" src=\"pic/trans.gif\" alt=\"E\" title=\"".$lang_functions['text_edit']."\" /></a>";
|
||||||
|
echo sprintf("<td class=\"rowfollow\">%s</td>", implode("<br />", $actions));
|
||||||
}
|
}
|
||||||
print("</tr>\n");
|
print("</tr>\n");
|
||||||
$counter++;
|
$counter++;
|
||||||
|
|||||||
Reference in New Issue
Block a user