コード例 #1
0
ファイル: show.php プロジェクト: Alwnikrotikz/mytvondemand
		$show->updateShow(1);
?>
				<div class="seriesdetails">
					<div class="imagecontainer">
						<a href="show.php?showid=<?=$show->getID()?>"><img class="thumbnail" alt="<?=$show->getTitle()?>" src="cache/<?=$show->getID()?>-poster.jpg" /></a>
					</div>
					<?=addSubscribeText($show->isSubscribed(), $show->getID(), 1)?> <a href="show.php?showid=<?=$show->getID()?>&amp;update=1" class="updatethis">Force Update</a>
					<h2><a id="showtitle" href="show.php?showid=<?=$show->getID()?>"><?=$show->getTitle()?></a></h2>
					<div class="plot"><?=$show->getPlot()?></div>
				</div>
				<?php
				if (!isset($_GET['ajax'])) { ?>
					<div class="fullcontent">
						<div class="contentleft">
							<?php 
								$seasonSplit = $show->splitSeasons();
								foreach ($seasonSplit[0] as $season) { if (!isset($season[0])) break; // PHP BUG?!?!
							?>
							<div class="contentbox normalbox seasons">
								<h3>Season <?php printf("%02d", $season[0]->getSeason())?> <a href="show.php?showid=<?=$season[0]->getShowID()?>" class="subscribe dldmissingeps"><span>Download missing episodes</span></a></h3>
								<ul>
									<?php
									foreach($season as $episode) { ?><li><a href="episode.php?showid=<?=$episode->getShowID()?>&amp;season=<?=$episode->getSeason()?>&amp;id=<?=$episode->getEpisodeID()?>"><span><?php printf("%02d", $episode->getEpisodeID())?> - <?=$episode->getTitle()?></span></a><span><?php setStatus($episode) ?></span></li>
									<?php } ?>
								</ul>
							</div>
							<? } ?>
						</div>
						<div class="contentright">
							<?php 
								foreach ($seasonSplit[1] as $season) { if (!isset($season[0])) break; // PHP BUG?!?!