Exemplo n.º 1
0
 * Licensed under the terms of the GNU General Public License:
 * 		http://www.gnu.org/copyleft/gpl.html
 * 
 * For further information visit:
 * 		http://www.auditionrocks.com/
 * 
 * File Authors:
 * 		Andrew Embler (andrew@electricstate.com)
 */
require_once 'audition/base.php';
include_class('band_news');
include_class('band_members');
include_class('shows');
include_class('band_information');
$bi = BandInformation::get();
$bn = new BandNewsList();
$bn_result = $bn->get_band_news(1, 0, 1);
$sl = new ShowList();
$sl->includeAll();
$sl->toSearch = 'upcoming';
$showlist = $sl->get(1);
$bs = $showlist[0];
$pt = new PageTemplate();
$pt->file = "index.php";
$pt->args['bandInformation'] = $bi;
if (is_object($bn_result[0]) && !db::isError($bn_result[0])) {
    $pt->args['news'] = $bn_result[0];
}
if (is_object($showlist[0]) && !db::isError($showlist[0])) {
    $pt->args['show'] = $showlist[0];
}
Exemplo n.º 2
0
<?php

$header = new SectionTemplate();
$header->file = "header.php";
$footer = new SectionTemplate();
$footer->file = "footer.php";
include_class('band_news');
include_class('band_members');
include_class('shows');
include_class('band_information');
$bn = new BandNewsList();
$view = 'overview';
$linkBrowse = "news.php?browse=1";
$linkLatest = "news.php";
$paging = new SectionTemplate();
$paging->file = "paging.php";
$paging->args['perPage'] = is_numeric($_GET['e']) ? $_GET['e'] : 10;
$paging->args['start'] = is_numeric($_GET['s']) ? $_GET['s'] : ($paging->args['start'] = 1);
if ($_GET['id']) {
    $view = 'detail';
    $bnd = BandNews::get($_GET['id']);
    $st = new SectionTemplate();
    $st->file = "news_detail.php";
    $st->args['news'] = $bnd;
} else {
    if ($_GET['browse']) {
        $view = 'browse';
        $news = array();
        $result = $bn->get_band_news($_GET['e'], $_GET['s'], 1);
        $paging->args['total'] = $bn->get_total(1);
        $paging->args['url'] = USE_MOD_REWRITE ? SITE_WEB_DIRECTORY . 'news/browse/' : 'news.php';
Exemplo n.º 3
0
<?php

include 'base.php';
User::protect();
$section = 'band_news';
include_class('band_members');
include_class('band_news');
$page_title = 'Add/Edit Band News';
$nl = new BandNewsList();
$newslist = $nl->get_band_news($_GET['entries_per_page'], $_GET['start']);
$news_total = $nl->get_total();
include 'layout/header.php';
?>

<div id="breadcrumb">
	<a href="index.php">Audition&nbsp;&#62;</a>&nbsp;<a href="band.php">Manage&nbsp;Band&nbsp;&#62;</a>&nbsp;Band News
</div>

	<?php 
if (db::isError($newslist)) {
    $newslist->outputList();
}
?>
	
	<h1>band news:</h1>
	<div class="inset">
	<p>
	<form id="amount_form" action="<?php 
echo $PHP_SELF;
?>
" method="get">