</td> </tr> <tr> <td></td> <td style="vertical-align: top"><label for="institution" class="form-required">Institution</label></td> <td><input type="text" id="institution" name="institution" value="<?php echo html_encode($PROCESSED["institution"]); ?> " maxlength="255" style="width: 95%" /></td> </tr> <tr> <td></td> <td><label for="countries_id" class="form-required">Country</label></td> <td> <?php if (@count($countries = fetch_countries()) > 0) { echo "<select id=\"countries_id\" name=\"countries_id\" style=\"width: 90%\" onchange=\"provStateFunction(this.value);\">\n"; echo "<option value=\"0\"" . (!isset($PROCESSED["countries_id"]) ? " selected=\"selected\"" : "") . ">-- Country --</option>\n"; foreach ($countries as $value) { echo "<option value=\"" . (int) $value["countries_id"] . "\"" . ($PROCESSED["countries_id"] == $value["countries_id"] ? " selected=\"selected\"" : !isset($PROCESSED["countries_id"]) && $value["countries_id"] == DEFAULT_COUNTRY_ID ? " selected=\"selected\"" : "") . ">" . html_encode($value["country"]) . "</option>\n"; } echo "</select>\n"; } else { echo "<input type=\"hidden\" id=\"countries_id\" name=\"countries_id\" value=\"0\" />\n"; echo "Country Information Not Available\n"; } ?> </td> </tr> <tr> <td></td>
?> /admin/regionaled/apartments'" /> <input type="submit" class="btn btn-primary" value="Save" /> </td> </tr> </tfoot> <tbody> <tr> <td colspan="4"><h2>Apartment Information</h2></td> </tr> <tr> <td> </td> <td><label for="countries_id" class="form-required">Country</label></td> <td> <?php $countries = fetch_countries(); if (is_array($countries) && count($countries)) { echo "<select id=\"countries_id\" name=\"countries_id\" style=\"width: 256px\" onchange=\"provStateFunction(this.value); updateAptData();\">\n"; foreach ($countries as $country) { echo "<option value=\"" . (int) $country["countries_id"] . "\"" . ($PROCESSED["countries_id"] == $country["countries_id"] ? " selected=\"selected\"" : !isset($PROCESSED["countries_id"]) && $country["countries_id"] == DEFAULT_COUNTRY_ID ? " selected=\"selected\"" : "") . ">" . html_encode($country["country"]) . "</option>\n"; } echo "</select>\n"; } else { echo "<input type=\"hidden\" id=\"countries_id\" name=\"countries_id\" value=\"0\" />\n"; echo "Country information not currently available.\n"; } ?> </td> <td rowspan="10"> <div id="mapContainer" style="display: none"> <div id="mapData" style="width: 275px; height: 237px; border: 1px #CCCCCC solid"></div>