}
/**
* Renders a complete page and table
*/
public function render_all ()
{
$this->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) :
?>
=display_str($this->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.
endif;
}
/**
* Formats data for use in row
*
*/
public function body ()
{
if ($this->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 : '';
$this->row($Sort, $GroupID, $Year, $DisplayName, $TorrentLink);
}
}
/**
* 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)
{
$CSS = $this->NumGroups % 2 === 0 ? 'rowa' : 'rowb';
?>