Exemplo n.º 1
0
                    $detail = new SectionTemplate();
                    $detail->file = "release_track_detail.php";
                    $detail->args['track'] = $tr;
                }
            }
        }
    }
    if (!$view) {
        $view = 'detail';
        $detail = new SectionTemplate();
        $detail->file = "release_detail.php";
        $detail->args['release'] = $r;
    }
}
$rl = new ReleaseList();
$releaseList = $rl->get_releases();
if (count($releaseList) > 1) {
    $releases = array();
    foreach ($releaseList as $r) {
        $releaseT = new SectionTemplate();
        $cov = $r->getCover();
        $releaseT->file = is_object($cov) ? "release_cover.php" : "release_name.php";
        $releaseT->args['release'] = $r;
        $releases[] = $releaseT;
    }
}
if (!$view) {
    $r = $rl->get_latest_release();
    if (!db::isError($r[0]) && is_object($r[0])) {
        $detail = new SectionTemplate();
        $detail->file = "release_detail.php";
Exemplo n.º 2
0
include_class('releases');
include_class('m2');
include 'layout/header.php';
?>

<div id="breadcrumb">
	<a href="index.php">Audition &#62;</a>
	Releases
</div>

	<h1>releases:</h1>
	<div class="inset">
	<p>
	<?php 
$rl = new ReleaseList();
$rli = $rl->get_releases();
?>
		<?php 
if (User::isAdmin()) {
    ?>
<a href="release_add.php">Add Release</a><?php 
}
?>
	</p>
	<p>
	<table border="0" cellspacing="0" cellpadding="0" width="450">
	<?php 
if (is_array($rli) && count($rli) > 0) {
    foreach ($rli as $r) {
        ?>
		<tr>