$list->AddBasic($v['SeriesName'], 'shows.php?ac=si&id=' . $v['idShow']); $column1++; } } $page->AddContent($list); $list = new jqmListviem(); $list->inset(true)->theme('a'); $list->addDivider('Shows', $XBMC->CountShows())->dividerTheme('a')->countTheme('b'); $Shows = $XBMC->RetrieveShowList(); $i = 0; foreach ($Shows as $k => $v) { if ($i == 7) { $list->AddBasic("More..", 'shows.php?ac=sl'); break; } $list->AddSplit($v['SeriesName'], 'shows.php?ac=si&id=' . $v['idShow'], 'episodes.php?ac=el&id=' . $v['idShow'], $XBMC->CountEpisodes($v['idShow'])); $i++; } $page->AddContent($list); $list2 = new jqmListviem(); $list2->inset(true)->theme('a'); $list2->addDivider('Channels', $XBMC->RetrieveStudioCount())->dividerTheme('a')->countTheme('b'); $Channels = $XBMC->RetrieveStudioList(); $i = 0; foreach ($Channels as $k => $v) { if ($i == 4) { $list2->AddBasic("More..", 'channels.php?ac=cl'); break; } $list2->AddIcon(" " . $v['strStudio'], 'shows.php?ac=csl&cn=' . $v['strStudio'], '../channel_images/' . $v['strStudio'] . ".png", $XBMC->CountShowsByChannel($v['strStudio'])); $i++;
$currentPage = basename(__FILE__); switch ($_GET['ac']) { case 'csl': $page->theme('b')->title('Shows'); $page->header()->theme('a'); $nav = $page->header()->add(new jqmNavbar(), true); // $page->AddContent('<div style="padding: 15px;">'); $nav->add(new jqmButton('', '', '', 'a', "index.php", 'Home', '', false)); $nav->add(new jqmButton('', '', '', 'a', '#', 'All Shows', '', false)); $nav->add(new jqmButton('', '', '', 'a', 'channels.php?ac=cl', 'Channels', '', true)); $list = new jqmListviem(); $list->inset(true)->theme('a'); $list->addDivider('Shows from ' . $_GET['cn'], $XBMC->CountShowsByChannel($_GET['cn']))->dividerTheme('a')->countTheme('b'); $Shows = $XBMC->SortShowsByChannel($_GET['cn']); foreach ($Shows as $k => $v) { $list->AddSplit($v['SeriesName'], 'shows.php?ac=si&id=' . $v['idShow'], '#episodes.php?ac=el&id=' . $v['idShow'], $XBMC->CountEpisodes($v['idShow'])); } $page->AddContent($list); // $page->AddContent("</div>"); $jqm->AddPage($page); echo $jqm; break; case 'sl': $page->theme('b')->title('All Shows'); $page->header()->theme('a'); $nav = $page->header()->add(new jqmNavbar(), true); $nav->add(new jqmButton('', '', '', 'a', "index.php", 'Home', '', false)); $nav->add(new jqmButton('', '', '', 'a', '#', 'All Shows', '', true)); $nav->add(new jqmButton('', '', '', 'a', 'channels.php?ac=cl', 'Channels', '', false)); $list = new jqmListviem(); $list->inset(true)->theme('a');