<?php if ($BILLEVEL < 5) { return; } $BILL = new CBilling($GV["dbhost"], $GV["dbname"], $GV["dblogin"], $GV["dbpassword"]); $countries = $BILL->GetAvailableCountries(); if ($_POST['country'] || $_GET['country']) { $country = $_POST['country'] ? $_POST['country'] : $_GET['country']; } ?> <b>Выберите страну:</b> <form action="<?php echo "?p={$p}&act={$act}"; ?> " method="post"> <select name="country"> <?php foreach ($countries as $ctry) { $sel = isset($country) && $country == $ctry['ctry'] ? "selected" : ""; ?> <option value="<?php echo $ctry['ctry']; ?> " <?php echo $sel; ?> ><?php echo $ctry['country'] . "(" . $ctry['ctry'] . ")"; ?> </option><?php