query(" SELECT Name, UserID, CategoryID FROM collages WHERE ID = '$CollageID'"); list($Name, $UserID, $CategoryID) = $DB->next_record(); if ($CategoryID == 0 && $UserID != $LoggedUser['ID'] && !check_perms('site_collages_delete')) { error(403); } if ($CategoryID == array_search(ARTIST_COLLAGE, $CollageCats)) { error(404); } $DB->query(" SELECT ct.GroupID, um.ID, um.Username, ct.Sort, tg.CatalogueNumber FROM collages_torrents AS ct JOIN torrents_group AS tg ON tg.ID = ct.GroupID LEFT JOIN users_main AS um ON um.ID = ct.UserID WHERE ct.CollageID = '$CollageID' ORDER BY ct.Sort"); $GroupIDs = $DB->collect('GroupID'); $CollageDataList = $DB->to_array('GroupID', MYSQLI_ASSOC); if (count($GroupIDs) > 0) { $TorrentList = Torrents::get_groups($GroupIDs); $TorrentList = $TorrentList['matches']; } else { $TorrentList = array(); } View::show_header("Manage collage: $Name", 'jquery-ui,jquery.tablesorter.min,sort'); ?>

Manage collage

Sorting
  • Click on the headings to organize columns automatically.
  • Sort multiple columns simultaneously by holding down the shift key and clicking other column headers.
  • Click and drag any row to change its order.
  • Press "Save All Changes" when you are finished sorting.
  • Press "Edit" or "Remove" to simply modify one entry.
$Group) { extract(Torrents::array_group($Group)); list(, $UserID, $Username, $Sort, $CatNum) = array_values($CollageDataList[$GroupID]); $Number++; $DisplayName = ''; if (!empty($ExtendedArtists[1]) || !empty($ExtendedArtists[4]) || !empty($ExtendedArtists[5]) || !empty($ExtendedArtists[6])) { unset($ExtendedArtists[2]); unset($ExtendedArtists[3]); $DisplayName .= Artists::display_artists($ExtendedArtists, true, false); } elseif (count($Artists) > 0) { $DisplayName .= Artists::display_artists(array('1' => $Artists), true, false); } $TorrentLink = "$GroupName"; $GroupYear = $GroupYear > 0 ? $GroupYear : ''; if ($GroupVanityHouse) { $DisplayName .= ' [VH]'; } $AltCSS = ($Number % 2 === 0) ? 'rowa' : 'rowb'; ?>
Order # Cat. # Year Artist Torrent group User Tweak