本文整理汇总了PHP中print_tag_option_list函数的典型用法代码示例。如果您正苦于以下问题:PHP print_tag_option_list函数的具体用法?PHP print_tag_option_list怎么用?PHP print_tag_option_list使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了print_tag_option_list函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: print_filter_tag_string
/**
* print tag fields
* @return void
*/
function print_filter_tag_string()
{
if (!access_has_global_level(config_get('tag_view_threshold'))) {
return;
}
global $g_filter;
$t_tag_string = $g_filter[FILTER_PROPERTY_TAG_STRING];
if ($g_filter[FILTER_PROPERTY_TAG_SELECT] != 0 && tag_exists($g_filter[FILTER_PROPERTY_TAG_SELECT])) {
$t_tag_string .= is_blank($t_tag_string) ? '' : config_get('tag_separator');
$t_tag_string .= tag_get_field($g_filter[FILTER_PROPERTY_TAG_SELECT], 'name');
}
?>
<input type="hidden" id="tag_separator" value="<?php
echo config_get('tag_separator');
?>
" />
<input type="text" name="<?php
echo FILTER_PROPERTY_TAG_STRING;
?>
" id="<?php
echo FILTER_PROPERTY_TAG_STRING;
?>
" size="40" value="<?php
echo string_attribute($t_tag_string);
?>
" />
<select <?php
echo helper_get_tab_index();
?>
name="<?php
echo FILTER_PROPERTY_TAG_SELECT;
?>
" id="<?php
echo FILTER_PROPERTY_TAG_SELECT;
?>
">
<?php
print_tag_option_list();
?>
</select>
<?php
}
示例2: print_tag_input
/**
* Print the separator comment, input box, and existing tag dropdown menu.
* @param integer Bug ID
* @param string Default contents of the input box
*/
function print_tag_input($p_bug_id = 0, $p_string = '')
{
?>
<input type="hidden" id="tag_separator" value="<?php
echo config_get('tag_separator');
?>
" />
<input type="text" name="tag_string" id="tag_string" size="40" value="<?php
echo string_attribute($p_string);
?>
" />
<select <?php
echo helper_get_tab_index();
?>
name="tag_select" id="tag_select">
<?php
print_tag_option_list($p_bug_id);
?>
</select>
<?php
return true;
}
示例3: print_filter_tag_string
function print_filter_tag_string()
{
if (!access_has_global_level(config_get('tag_view_threshold'))) {
return;
}
global $t_filter;
$t_tag_string = $t_filter['tag_string'];
if ($t_filter['tag_select'] != 0) {
$t_tag_string .= is_blank($t_tag_string) ? '' : config_get('tag_separator');
$t_tag_string .= tag_get_field($t_filter['tag_select'], 'name');
}
?>
<input type="hidden" id="tag_separator" value="<?php
echo config_get('tag_separator');
?>
" />
<input type="text" name="tag_string" id="tag_string" size="40" value="<?php
echo $t_tag_string;
?>
" />
<select <?php
echo helper_get_tab_index();
?>
name="tag_select" id="tag_select">
<?php
print_tag_option_list();
?>
</select>
<?php
}