$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;
* * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ ?> <div id="tray"> <div id="mydroplinemenu" class="droplinebar"> <ul> <li><a href="index.php">Main</a></li> <li><a href="#">Channels</a> <ul> <?php require_once 'libs/XBMCHelper.class.php'; $XBMC = new XBMCHelper(); $studioArray = $XBMC->RetrieveStudioList(); foreach ($studioArray as $k => $v) { echo "<li><a href='index.php?p=shows&c=" . $v['strStudio'] . "'/>" . $v['strStudio'] . "</a></li>"; } ?> </ul> </li> <li><a href="index.php?p=shows">Shows</a> <ul> <?php $showsArray = $XBMC->RetrieveShowList(); foreach ($showsArray as $k => $v) { echo "<li><a href='index.php?p=episodes&s=" . $v['idShow'] . "'/>" . $v['SeriesName'] . "</a></li>"; } ?>