Пример #1
0
" />
				<?php 
echo form_error("city");
?>
			    </div>
			</div>
			
			<div class="control-group">
			    <label for="province" class="control-label"><?php 
echo lang('Province/State');
?>
<span class="mandatory">*</span></label>
			    <div class="controls">
				<select name="province" id="province">
				    <?php 
echo province_options(isset($_POST) ? $_POST['province'] : '');
?>
				</select>
			    <?php 
echo form_error("province");
?>
			    </div>
			</div>
		       <div class="control-group">
			    <label for="country_id" class="control-label"><?php 
echo lang('Country');
?>
<span class="mandatory">*</span></label>
			    <div class="controls"><select name="country_id" id="country_id" style="width: 150px;">
				<?php 
echo country_options(isset($_POST) ? $_POST['country_id'] : '');
Пример #2
0
if ($_POST) {
    if ($_POST['province'] == '') {
        echo 'selected="selected"';
    }
} else {
    if (isset($billing) && $billing->province == '') {
        echo 'selected="selected"';
    }
}
?>
><?php 
echo lang('Please select');
?>
</option>
                                <?php 
echo province_options($_POST ? $_POST['province'] : (isset($billing) ? $billing->province : ''));
?>
                            </select>
                        </div>
                    </div> 
                    <div class="control-group <?php 
highlightclass(form_error("country_id"));
?>
">
                        <label for="country_id" class="control-label"><?php 
echo lang('Country');
?>
<span class="mandatory">*</span></label>
                        <div class="controls">
                            <select name="country_id" id="country_id" style="width: 200px;">
                                    <option value="" <?php 
Пример #3
0
?>
" />
                            <?php 
echo form_error("city");
?>
                        </div>
                    </div>
                    <div class="form-control">
                        <label for="province" class="form-label"><?php 
echo 'Province/State';
?>
</label>
                        <div class="form-field">
                            <select name="province" id="province">
                                <?php 
echo province_options($_POST ? $_POST['province'] : (isset($user) ? $user->user_province : ''));
?>
                            </select>
                            <?php 
echo form_error("province");
?>
                        </div>
                    </div>
                    <div class="form-control">
                        <label for="country_id" class="form-label"><?php 
echo 'Country';
?>
</label>
                        <div class="form-field">
                            <select name="country_id" id="country_id" class="countryselect">
                                <?php