set_heading($Heading); $this->set_edit_type($EditType); $this->UserID = (int) $UserID; $this->LoggedUser = &$LoggedUser; $this->TorrentList = $TorrentList; $this->CollageDataList = $CollageDataList; $this->HasTorrents = !empty($TorrentList); if(!$this->HasTorrents) $this->no_torrents(); } private function no_torrents () { ?>

No torrents found.

Add some torrents and come back later.

header(); $this->body(); $this->footer(); } /** * Renders a comptele page/table header: div#thin, h2, scripts, notes, * form, table, etc. */ public function header () { if ($this->HasTorrents) : ?>

Heading)?>

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.
  • Double-click on a row to check it.
buttons(); ?> HasTorrents) : ?>
Order # Year Artist Torrent Bookmarked Remove
buttons(); ?>
HasTorrents) foreach ($this->TorrentList as $GroupID => $Group) { $Artists = array(); extract($Group); extract($this->CollageDataList[$GroupID]); $this->NumGroups++; $DisplayName = self::display_name($ExtendedArtists, $Artists, $VanityHouse); $TorrentLink = ''.$Name.''; $Year = $Year > 0 ? $Year : ''; $DateAdded = date($Time); $this->row($Sort, $GroupID, $Year, $DisplayName, $TorrentLink, $DateAdded); } } /** * Outputs a single row * * @param string|int $Sort * @param string|int $GroupID * @param string|int $GroupYear * @param string $DisplayName * @param string $TorrentLink */ public function row ($Sort, $GroupID, $GroupYear, $DisplayName, $TorrentLink, $DateAdded) { $CSS = $this->NumGroups % 2 === 0 ? 'rowa' : 'rowb'; ?> NumGroups?> 0) { $DisplayName = Artists::display_artists(array('1'=>$Artists), true, false); } if ($VanityHouse) $DisplayName .= ' [VH]'; return $DisplayName; } /** * Renders buttons used at the top and bottom of the table */ public function buttons () { ?>
EditType = $EditType; } /** * Set's the current page's heading * @param string $Heading */ public function set_heading ($Heading) { $this->Heading = $Heading; } }