echo "\t";
        echo '<venue id="' . $vn->getID() . '">' . htmlentities($vn->getName()) . '</venue>';
        echo "\n";
    }
} else {
    if ($_GET['stateProvince']) {
        $limiter['country'] = $_GET['country'];
        $limiter['stateProvince'] = $_GET['stateProvince'];
        $sl = new VenueList();
        $citylist = $sl->getCityList($limiter);
        foreach ($citylist as $ci => $total) {
            echo "\t";
            echo '<city id="' . htmlentities($ci) . '">' . htmlentities($ci) . ' (' . $total . ')</city>';
            echo "\n";
        }
    } else {
        if ($_GET['country']) {
            $sl = new VenueList();
            $spl = new StateList();
            $statelist = $spl->getStates();
            $splist = $sl->getStateProvinceList($_GET['country']);
            foreach ($splist as $sp => $total) {
                $stateProvince = $statelist[$sp] ? $statelist[$sp] : $sp;
                echo "\t";
                echo '<sp id="' . htmlentities($sp) . '">' . htmlentities($stateProvince) . ' (' . $total . ')</sp>';
                echo "\n";
            }
        }
    }
}
echo "</xml>";
Exemple #2
0
<div id="breadcrumb">
	<a href="index.php">Audition &#62;</a>
	<a href="live.php">Live &#62;</a>
	Venues
</div>

	<h1>venues:</h1>
	<div class="inset">
	<?php 
$sl = new VenueList();
$limiter = array();
$limiter['stateProvince'] = $_REQUEST['stateProvince'] ? $_REQUEST['stateProvince'] : $defaultStateProvince;
$limiter['city'] = $_REQUEST['city'] ? $_REQUEST['city'] : $defaultCity;
$venuelist = $sl->get($limiter);
$splist = $sl->getStateProvinceList($defaultCountry);
$limiter['city'] = null;
$citylist = $sl->getCityList($limiter);
$spl = new StateList();
$ctl = new CountryList();
$stateList = $spl->getStates();
$countryList = $ctl->getCountries();
$clist = $sl->getCountryList();
?>
	
	<table border="0" cellspacing="1" cellpadding="0" class="edit-form">
	<tr>
		<td width="33%"><strong>Country</strong><br/>
			<select name="country" id="countries">
				<option value="">** Select Country</option>
			<?php 
            $state = $_REQUEST['stateProvince'] ? $_REQUEST['stateProvince'] : $ve->getStateProvince();
            $city = $_REQUEST['city'] ? $_REQUEST['city'] : $ve->getCity();
            $venueID = $ve->getID();
        } else {
            $country = $_REQUEST['country'];
            $state = $_REQUEST['stateProvince'];
            $city = $_REQUEST['city'];
            $venueID = 0;
        }
        $limiter['country'] = $country;
        $limiter['stateProvince'] = $state;
        $limiter['city'] = $city;
        $ctl = new CountryList();
        $countryList = $ctl->getCountries();
        $cotl = $sl->getCountryList();
        $stl = $sl->getStateProvinceList($country);
        $ctl = $sl->getCityList($limiter);
        $venuelist = $sl->get($limiter);
        $name = $_POST ? $_POST['name'] : $sh->getName();
        $date = $_POST ? $_POST['date'] : $sh->getDate();
        $time = $_POST ? $_POST['time'] : $sh->getTimeValue();
        $cost = $_POST ? $_POST['cost'] : $sh->getCostValue();
        $user_id = $_POST ? $_POST['user_id'] : $sh->getUserID();
        $isAllAges = $_POST ? $_POST['is_all_ages'] : $sh->isAllAges();
        $other_bands = $_POST ? $_POST['other_bands'] : $sh->getOtherBands();
        $notes = $_POST ? $_POST['notes'] : $sh->getNotes();
        ?>
	
	
		<tr>
			<td width="50%"><strong>Country</strong><br/>