'; print_r($_SESSION); echo ''; } */ if (is_numeric($city)) { $onload=""; } elseif (is_numeric($komodita)) { $onload="window.open('akcie.php?state=$state&komodita=$komodita','work');"; } elseif (is_numeric($state)) { if ($state==CHORVATSKO) { $defaultName="default_hr.php"; $prihlasFile="prihlas_hr.php"; $prihlasStr="Prihlasovací formulár"; } elseif ($state==RAKUSKO) { $defaultName="default_at.php"; $prihlasFile="prihlas_at.php"; $prihlasStr="Prihlasovací formulár"; } else { $defaultName="default.php"; $prihlasFile="prihlas.php"; $prihlasStr="Prihlasovací formulár"; } $onload="window.open('$defaultName?state=$state','work');"; } elseif ($_SESSION["state"]) { $state=$_SESSION["state"]; } else { $state=1; $onload=""; } $_SESSION["state"]=$state; ?> Firmy

Štát
=Now() or tblCompanies.expires_date IS NULL) ORDER BY tblCountries.country_name"; $result_array=SQL_GetQueryResults($query); echo CreateSelectHTML ("state", $result_array, "country_id", "country_name", $state, "NO", "this.form.city.selectedIndex=0;this.form.komodita.selectedIndex=0;this.form.submit();"); ?>

Komodita
=Now() or tblCompanies.expires_date IS NULL) ORDER BY tblKomodity.komodita_name"; $result_array=SQL_GetQueryResults($query); echo CreateSelectHTML ("komodita", $result_array, "komodita_id", "komodita_name", $komodita, "empty", "this.form.city.selectedIndex=0;this.form.submit();") ; ?>

Mesto
=Now() or tblCompanies.expires_date IS NULL) AND tblKomodity.komodita_id='$komodita' ORDER BY tblCities.city_name"; $result_array=SQL_GetQueryResults($query); echo CreateSelectHTML ("city", $result_array, "city_id", "city_name", $city, "empty", "if (this.form.city.selectedIndex==0) { this.form.submit(); } else { this.form.target='work';this.form.action='mesto.php';this.form.submit();this.form.target='';this.form.action='left_menu.php';}"); ?>