本文整理汇总了PHP中print_platform_option_list函数的典型用法代码示例。如果您正苦于以下问题:PHP print_platform_option_list函数的具体用法?PHP print_platform_option_list怎么用?PHP print_platform_option_list使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了print_platform_option_list函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: lang_get
?>
<tr>
<th class="category">
<label for="platform"><?php
echo lang_get('platform');
?>
</label>
</th>
<td>
<?php
if (config_get('allow_freetext_in_profile_fields') == OFF) {
?>
<select id="platform" name="platform">
<option value=""></option>
<?php
print_platform_option_list($f_platform);
?>
</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) . '" />';
}
?>
</td>
</tr>
<tr>
<th class="category">
<label for="os"><?php
echo lang_get('os');
?>
</label>
示例2: lang_get
echo '<td colspan="', $t_spacer, '"> </td>';
echo '</tr>';
}
#
# Platform, OS, OS Version
#
if ($t_show_platform || $t_show_os || $t_show_os_version) {
echo '<tr>';
$t_spacer = 0;
if ($t_show_platform) {
# Platform
echo '<th class="category"><label for="platform">' . lang_get('platform') . '</label></th>';
echo '<td>';
if (config_get('allow_freetext_in_profile_fields') == OFF) {
echo '<select ' . helper_get_tab_index() . ' id="platform" name="platform"><option value=""></option>';
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);
示例3: print_filter_platform
/**
* print the platform field
* @return void
*/
function print_filter_platform()
{
global $g_select_modifier, $g_filter;
?>
<!-- Platform -->
<select<?php
echo $g_select_modifier;
?>
name="<?php
echo FILTER_PROPERTY_PLATFORM;
?>
[]">
<option value="<?php
echo META_FILTER_ANY;
?>
"<?php
check_selected($g_filter[FILTER_PROPERTY_PLATFORM], (string) META_FILTER_ANY);
?>
>[<?php
echo lang_get('any');
?>
]</option>
<?php
log_event(LOG_FILTERING, 'Platform = ' . var_export($g_filter[FILTER_PROPERTY_PLATFORM], true));
print_platform_option_list($g_filter[FILTER_PROPERTY_PLATFORM]);
?>
</select>
<?php
}
示例4: print_filter_platform
function print_filter_platform()
{
global $t_select_modifier, $t_filter;
?>
<!-- Platform -->
<select <?php
echo $t_select_modifier;
?>
name="platform[]">
<option value="<?php
echo META_FILTER_ANY;
?>
" <?php
check_selected($t_filter['platform'], META_FILTER_ANY);
?>
>[<?php
echo lang_get('any');
?>
]</option>
<?php
log_event(LOG_FILTERING, 'Platform = ' . var_export($t_filter['platform'], true));
print_platform_option_list($t_filter['platform']);
?>
</select>
<?php
}