<a href="live.php">Live ></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 foreach ($clist as $ct => $total) { ?> <option value="<?php
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>";