本文整理匯總了PHP中UserForm::region_select方法的典型用法代碼示例。如果您正苦於以下問題:PHP UserForm::region_select方法的具體用法?PHP UserForm::region_select怎麽用?PHP UserForm::region_select使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類UserForm
的用法示例。
在下文中一共展示了UserForm::region_select方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: _e
<fieldset>
<legend><?php
_e('Country');
?>
</legend>
<?php
UserForm::country_select($countries, $user);
?>
</fieldset>
<fieldset>
<legend><?php
_e('Region');
?>
</legend>
<?php
UserForm::region_select($regions, $user);
?>
</fieldset>
<fieldset>
<legend><?php
_e('City');
?>
</legend>
<?php
UserForm::city_select($cities, $user);
?>
</fieldset>
<fieldset>
<legend><?php
_e('City Area');
?>
示例2: osc_user
</label>
<div class="controls">
<?php
UserForm::country_select(osc_get_countries(), osc_user());
?>
</div>
</div>
<div class="form-group">
<label class="control-label" for="region">
<?php
_e('University', OSCLASSWIZARDS_THEME_FOLDER);
?>
</label>
<div class="controls">
<?php
UserForm::region_select(osc_get_regions(), osc_user());
?>
</div>
</div>
<div class="form-group">
<label class="control-label" for="city">
<?php
_e('College', OSCLASSWIZARDS_THEME_FOLDER);
?>
</label>
<div class="controls">
<?php
UserForm::city_select(osc_get_cities(), osc_user());
?>
</div>
</div>
示例3: osc_get_countries
} else {
$aCountries = osc_get_countries();
$aRegions = osc_get_regions($aCountries[0]['pk_c_code']);
?>
<input type="hidden" id="countryId" name="countryId" value="<?php
echo osc_esc_html($aCountries[0]['pk_c_code']);
?>
"/>
<div class="control-group">
<label class="control-label" for="regionId"><?php
_e('Region', 'pop');
?>
</label>
<div class="controls">
<?php
UserForm::region_select($aRegions);
?>
</div>
</div>
<?php
}
?>
<div class="control-group">
<label class="control-label" for="cityId"><?php
_e('City', 'pop');
?>
</label>
<div class="controls">
<?php
UserForm::city_select(array());
?>