Example #1
0
                                    </tr>
                                    <tr>
                                      <td>Country</td>
                                      <td><?php 
echo fill_dropdown('postal_country', 'job_country', 'country_name', "country_id", $postal_country, "Country", "", "onchange=getStates('states','" . $rec_state . "');");
?>
                                      <img src="../../images/star.gif"></td>
                                    </tr>
                                    <tr>
                                      <td>Region</td>
                                      <td><input type="hidden"  name="rec_state" value="<?php 
echo $rec_state;
?>
">
                                          <?php 
if (showByName("job_state", "state_name", "state_id", $postal_region)) {
    ?>
                                          <span id="states">
                                          <?php 
    echo fill_dropdown('postal_region', 'job_state', 'state_name', "state_id", $postal_region, "Region", "where country_id=" . $postal_country, "onchange=setHiddenValue(this.value);");
    ?>
<span id="span_other_region" <?php 
    if (!isset($_POST['other_region']) or $postal_region != 16) {
        ?>
style="display:none"<?php 
    }
    ?>
 >&nbsp;&nbsp;&nbsp;&nbsp;Please specify other region :
                                                    <input name="other_region" type="text" value="<?php 
    if (isset($_POST['other_region'])) {
        echo stripslashes($_POST['other_region']);
                                      <tr>
                                        <td>Country</td>
                                        <td><?php 
        echo getFieldValue("job_country", "country_name", "country_id", $rstemp->postal_country);
        ?>
</td>
                                      </tr>
                                      <?php 
    }
    if ($rstemp->postal_region != "") {
        ?>
                                      <tr>
                                        <td>Region</td>
                                        <td><?php 
        if (showByName("job_state", "state_name", "state_id", $rstemp->postal_region)) {
            echo showByName("job_state", "state_name", "state_id", $rstemp->postal_region);
        } else {
            echo $rstemp->postal_region;
        }
        ?>
</td>
                                      </tr>
                                      <?php 
    }
    ?>
                                      <?php 
}
?>
                                  </table></td>
                                </tr>
                                <tr>