Пример #1
0
<?php

include 'base.php';
User::protect();
include_class('venues');
include_class('locations');
include_class('band_members');
include_class('band_information');
$section = 'venues';
if ($_POST['submit']) {
    // add news entry
    $ve = Venue::add($_POST);
    if (!db::isError($ve)) {
        header('Location: venue_edit.php?id=' . $ve->getID());
    }
}
$bi = BandInformation::get();
//$defaultStateProvince = ($bi->getDefaultStateProvince()) ? $bi->getStateProvince() : VENUE_DEFAULT_STATEPROVINCE;
//$defaultCity = ($bi->getDefaultCity()) ? $bi->getDefaultCity() : VENUE_DEFAULT_CITY;
$defaultStateProvince = $bi->getDefaultStateProvince();
$defaultCity = $bi->getDefaultCity();
$editors = array('directions');
$page_title = 'Add Venue';
include 'layout/header.php';
?>

<div id="breadcrumb">
	<a href="index.php">Audition &#62;</a>
	<a href="live.php">Live &#62;</a>
	<a href="venues.php">Venues &#62;</a>
	Add Venue