예제 #1
0
 public static function defaultList()
 {
     $conditions = array('enabled' => 1);
     $settings = \Shop\Models\Settings::fetch();
     if ($settings->countries_sort == 'name') {
         $conditions['sort'] = array('name' => 1);
     }
     $result = \Shop\Models\Countries::find($conditions);
     return $result;
 }
예제 #2
0
        echo "selected";
    }
    ?>
><?php 
    echo $region->name;
    ?>
</option>
            <?php 
}
?>
            </select>                        
        </div>
        <div class="form-group col-xs-12 col-sm-12 col-md-6">
            <select class="form-control country" data-required="true" name="country" id="country" autocomplete="country">
            <?php 
foreach (\Shop\Models\Countries::find() as $country) {
    ?>
                <option value="<?php 
    echo $country->isocode_2;
    ?>
" <?php 
    if ($selected_country == $country->isocode_2) {
        echo "selected";
    }
    ?>
><?php 
    echo $country->name;
    ?>
</option>
            <?php 
}