$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++; } $page->AddContent($list2); $jqm->AddPage($page); echo $jqm;