<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 $ct; ?> "<?php if ($_REQUEST['country'] == $ct || !$_REQUEST['country'] && $ct == $defaultCountry) {
$country = $_REQUEST['country'] ? $_REQUEST['country'] : $ve->getCountry(); $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>