当前位置: 首页>>代码示例>>PHP>>正文


PHP print_tag_option_list函数代码示例

本文整理汇总了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 
}
开发者ID:vipjaven,项目名称:mantisbt,代码行数:46,代码来源:filter_api.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;
}
开发者ID:nextgens,项目名称:mantisbt,代码行数:27,代码来源:print_api.php

示例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 
}
开发者ID:amjadtbssm,项目名称:website,代码行数:30,代码来源:filter_api.php


注:本文中的print_tag_option_list函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。