//print_array($user_info);
?>
<div class="block">
    <h4>Update User info</h4>

    <form class="form-horizontal" role="form">

        <div class="form-group">
            <label class="col-md-2 control-label">country</label>

            <div class="col-md-10">
                <select required="" id="country" style="width:100%" class="populate">

                    <optgroup label="Available country">
                        <?php
                        foreach (get_all_countries() as $country) {
                            ?>
                            <option value="<?= $country['id'] ?>"><?= $country['name'] ?></option>
                        <?php
                        }

                        ?>
                    </optgroup>

                </select>
            </div>
        </div>

        <div class="form-group">
            <label class="col-md-2 control-label">city</label>
Exemple #2
0
                              <span class="help-inline">&nbsp;</span>
                              <?php 
echo form_error('address');
?>
                          </div>
                      </div>

                      <div class="form-group">
                          <label class="col-sm-4 col-lg-3 control-label"><?php 
echo lang_key('country');
?>
:</label>
                          <div class="col-sm-7 col-lg-8 controls">
                              <select name="country" id="country" class="form-control">
                                  <?php 
foreach (get_all_countries()->result() as $row) {
    $v = set_value('country') != '' ? set_value('country') : $estate->country;
    $sel = $row->id == $v ? 'selected="selected"' : '';
    ?>
                                      <option value="<?php 
    echo $row->id;
    ?>
" <?php 
    echo $sel;
    ?>
><?php 
    echo $row->name;
    ?>
</option>
                                  <?php 
}
Exemple #3
0
 </td>
                    <td class="field" nowrap>
                      <?php 
if (!empty($isview)) {
    echo "<span class='viewtext'>" . $formdata['nationality'] . "</span>";
} else {
    ?>

                      <select name="nationality" id="nationality" class="selectfield">
                      <?php 
    if (!empty($formdata['nationality']) && $formdata['nationality'] != 'Others Not Listed Above') {
        $selected = $formdata['nationality'];
    } else {
        $selected = 'Uganda';
    }
    $allcountries = get_all_countries($this);
    $drop_list = array();
    foreach ($allcountries as $country) {
        array_push($drop_list, array('value' => $country['name'], 'display' => $country['name']));
    }
    echo get_select_options($drop_list, 'value', 'display', $selected);
    ?>
                     
                    </select>
                      <?php 
}
?>

                    </td>
                  </tr>
                  
Exemple #4
0
                      <label for="ignor_location"><?php 
echo lang_key('ignore_this_section');
?>
</label>

                      <span id="location_container">

                        <div class="info_list">  

                            <h5><?php 
echo lang_key('location_search');
?>
</h5>

                            <?php 
$countries = get_all_countries();
?>

                            <select name="country" id="country" class="form-control input-sm chzn-select">

                                <option value="">Select</option>

                                <?php 
$v = isset($data['country']) ? $data['country'] : '';
?>

                                <?php 
foreach ($countries->result() as $country) {
    $sel = $country->id == $v ? 'selected="selected"' : '';
    ?>
Exemple #5
0
} else {
    ?>
                      <select name="destinationcountry" id="destinationcountry" class="textfield"  value="<?php 
    if (isset($companycargodetails['destinationcountry'])) {
        echo $companycargodetails['destinationcountry'];
    }
    ?>
">
                      <?php 
    if (isset($companycargodetails)) {
        $selected = trim($companycargodetails['destinationcountry']);
    } else {
        $selected = '';
    }
    $countryarray = array();
    $originalarray = get_all_countries();
    foreach ($originalarray as $countries) {
        array_push($countryarray, array('country' => $countries));
    }
    echo get_select_options($countryarray, 'country', 'country', $selected);
    ?>
                                        </select>
                        <?php 
}
?>
</div>Country</td>
                    </tr>
                  </table></td></tr>
               <tr>
                  <td>&nbsp;</td>
                  <td colspan="4" align="left" nowrap="nowrap"><?php