本文整理匯總了PHP中print_os_option_list函數的典型用法代碼示例。如果您正苦於以下問題:PHP print_os_option_list函數的具體用法?PHP print_os_option_list怎麽用?PHP print_os_option_list使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了print_os_option_list函數的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: lang_get
</tr>
<tr>
<th class="category">
<label for="os"><?php
echo lang_get('os');
?>
</label>
</th>
<td>
<?php
if (config_get('allow_freetext_in_profile_fields') == OFF) {
?>
<select id="os" name="os">
<option value=""></option>
<?php
print_os_option_list($f_os);
?>
</select>
<?php
} else {
echo '<input type="text" id="os" name="os" class="autocomplete" size="32" maxlength="32" tabindex="' . helper_get_tab_index_value() . '" value="' . string_attribute($f_os) . '" />';
}
?>
</td>
</tr>
<tr>
<th class="category">
<label for="os_build"><?php
echo lang_get('os_version');
?>
</label>
示例2: print_filter_os
/**
* print the os field
* @return void
*/
function print_filter_os()
{
global $g_select_modifier, $g_filter;
?>
<!-- OS -->
<select<?php
echo $g_select_modifier;
?>
name="<?php
echo FILTER_PROPERTY_OS;
?>
[]">
<option value="<?php
echo META_FILTER_ANY;
?>
"<?php
check_selected($g_filter[FILTER_PROPERTY_OS], (string) META_FILTER_ANY);
?>
>[<?php
echo lang_get('any');
?>
]</option>
<?php
print_os_option_list($g_filter[FILTER_PROPERTY_OS]);
?>
</select>
<?php
}
示例3: print_filter_os
function print_filter_os()
{
global $t_select_modifier, $t_filter;
?>
<!-- OS -->
<select <?php
echo $t_select_modifier;
?>
name="os[]">
<option value="<?php
echo META_FILTER_ANY;
?>
" <?php
check_selected($t_filter['os'], META_FILTER_ANY);
?>
>[<?php
echo lang_get('any');
?>
]</option>
<?php
print_os_option_list($t_filter['os']);
?>
</select>
<?php
}
示例4: print_platform_option_list
print_platform_option_list($t_bug->platform);
echo '</select>';
} else {
echo '<input type="text" id="platform" name="platform" class="autocomplete" size="16" maxlength="32" tabindex="' . helper_get_tab_index_value() . '" value="' . string_attribute($t_bug->platform) . '" />';
}
echo '</td>';
} else {
$t_spacer += 2;
}
if ($t_show_os) {
# Operating System
echo '<th class="category"><label for="os">' . lang_get('os') . '</label></th>';
echo '<td>';
if (config_get('allow_freetext_in_profile_fields') == OFF) {
echo '<select ' . helper_get_tab_index() . ' id="os" name="os"><option value=""></option>';
print_os_option_list($t_bug->os);
echo '</select>';
} else {
echo '<input type="text" id="os" name="os" class="autocomplete" size="16" maxlength="32" tabindex="' . helper_get_tab_index_value() . '" value="' . string_attribute($t_bug->os) . '" />';
}
echo '</td>';
} else {
$t_spacer += 2;
}
if ($t_show_os_version) {
# OS Version
echo '<th class="category"><label for="os_build">' . lang_get('os_version') . '</label></th>';
echo '<td>';
if (config_get('allow_freetext_in_profile_fields') == OFF) {
echo '<select ' . helper_get_tab_index() . ' id="os_build" name="os_build"><option value=""></option>';
print_os_build_option_list($t_bug->os_build);
示例5: helper_get_tab_index_value
</select>
<?php
} else {
echo '<input type="text" id="platform" name="platform" class="autocomplete" size="32" maxlength="32" tabindex="' . helper_get_tab_index_value() . '" value="' . string_attribute( $f_platform ) . '" />';
}
?>
</span>
<span class="label-style"></span>
</div>
<div class="field-container">
<label><span><?php echo lang_get( 'os' ) ?></span></label>
<span class="input">
<?php if( config_get( 'allow_freetext_in_profile_fields' ) == OFF ) { ?>
<select id="os" name="os">
<option value=""></option>
<?php print_os_option_list( $f_os ); ?>
</select>
<?php
} else {
echo '<input type="text" id="os" name="os" class="autocomplete" size="32" maxlength="32" tabindex="' . helper_get_tab_index_value() . '" value="' . string_attribute( $f_os ) . '" />';
}
?>
</span>
<span class="label-style"></span>
</div>
<div class="field-container">
<label><span><?php echo lang_get( 'os_version' ) ?></span></label>
<span class="input">
<?php
if( config_get( 'allow_freetext_in_profile_fields' ) == OFF ) {
?>