• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP string_display函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中string_display函数的典型用法代码示例。如果您正苦于以下问题:PHP string_display函数的具体用法?PHP string_display怎么用?PHP string_display使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了string_display函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: summary_helper_print_row

function summary_helper_print_row($p_label, $p_open, $p_resolved, $p_closed, $p_total)
{
    printf('<tr %s>', helper_alternate_class());
    printf('<td width="50%%">%s</td>', string_display($p_label));
    printf('<td width="12%%" class="right">%s</td>', $p_open);
    printf('<td width="12%%" class="right">%s</td>', $p_resolved);
    printf('<td width="12%%" class="right">%s</td>', $p_closed);
    printf('<td width="12%%" class="right">%s</td>', $p_total);
    print '</tr>';
}
开发者ID:centaurustech,项目名称:BenFund,代码行数:10,代码来源:summary_api.php


示例2: print_version_header

function print_version_header($p_version_id)
{
    $t_project_id = version_get_field($p_version_id, 'project_id');
    $t_version_name = version_get_field($p_version_id, 'version');
    $t_project_name = project_get_field($t_project_id, 'name');
    $t_release_title = string_display($t_project_name) . ' - ' . string_display($t_version_name);
    echo $t_release_title, '<br />';
    echo str_pad('', strlen($t_release_title), '='), '<br />';
    $t_description = version_get_field($p_version_id, 'description');
    if ($t_description !== false && !is_blank($t_description)) {
        echo string_display("<br />{$t_description}<br /><br />");
    }
}
开发者ID:centaurustech,项目名称:BenFund,代码行数:13,代码来源:changelog_page.php


示例3: get_capability_row

/**
 * Return html for a row
 * @param string  $p_caption      Caption.
 * @param integer $p_access_level Access level.
 * @return string
 */
function get_capability_row($p_caption, $p_access_level)
{
    $t_access_levels = MantisEnum::getValues(config_get('access_levels_enum_string'));
    $t_output = '<tr><td>' . string_display($p_caption) . '</td>';
    foreach ($t_access_levels as $t_access_level) {
        if ($t_access_level >= (int) $p_access_level) {
            $t_value = '<img src="images/ok.gif" width="20" height="15" alt="X" title="X" />';
        } else {
            $t_value = '&#160;';
        }
        $t_output .= '<td class="center">' . $t_value . '</td>';
    }
    $t_output .= '</tr>' . "\n";
    return $t_output;
}
开发者ID:gtn,项目名称:mantisbt,代码行数:21,代码来源:adm_permissions_report.php


示例4: get_capability_row

function get_capability_row($p_caption, $p_access_level)
{
    $t_access_levels = explode_enum_string(config_get('access_levels_enum_string'));
    $t_output = '<tr ' . helper_alternate_class() . '><td>' . string_display($p_caption) . '</td>';
    foreach ($t_access_levels as $t_access_level) {
        $t_entry_array = explode_enum_arr($t_access_level);
        if ((int) $t_entry_array[0] >= (int) $p_access_level) {
            $t_value = '<img src="images/ok.gif" width="20" height="15" alt="X" title="X" />';
        } else {
            $t_value = '&nbsp;';
        }
        $t_output .= '<td class="center">' . $t_value . '</td>';
    }
    $t_output .= '</tr>' . "\n";
    return $t_output;
}
开发者ID:amjadtbssm,项目名称:website,代码行数:16,代码来源:adm_permissions_report.php


示例5: prepare_user_name

function prepare_user_name($p_user_id)
{
    # Catch a user_id of NO_USER (like when a handler hasn't been assigned)
    if (NO_USER == $p_user_id) {
        return '';
    }
    $t_username = user_get_name($p_user_id);
    if (user_exists($p_user_id) && user_get_field($p_user_id, 'enabled')) {
        $t_email = user_get_email($p_user_id);
        if (!is_blank($t_email)) {
            return prepare_email_link($t_email, $t_username);
        } else {
            return string_display($t_username);
        }
    } else {
        $t_result = '<font STYLE="text-decoration: line-through">';
        $t_result .= string_display($t_username);
        $t_result .= '</font>';
        return $t_result;
    }
}
开发者ID:amjadtbssm,项目名称:website,代码行数:21,代码来源:prepare_api.php


示例6: filter_get_bug_rows

$t_page_count = null;
$result = filter_get_bug_rows($f_page_number, $t_per_page, $t_page_count, $t_bug_count);
$row_count = count($result);
# pre-cache custom column data
columns_plugin_cache_issue_data($result);
# for export
$t_show_flag = gpc_get_int('show_flag', 0);
html_page_top1();
html_head_end();
html_body_begin();
?>

<table class="width100"><tr><td class="form-title">
	<div class="center">
		<?php 
echo string_display(config_get('window_title')) . ' - ' . string_display(project_get_name($t_project_id));
?>
	</div>
</td></tr></table>

<br />

<form method="post" action="view_all_set.php">
<?php 
# CSRF protection not required here - form does not result in modifications
?>
<input type="hidden" name="type" value="1" />
<input type="hidden" name="print" value="1" />
<input type="hidden" name="offset" value="0" />
<input type="hidden" name="<?php 
echo FILTER_PROPERTY_SORT_FIELD_NAME;
开发者ID:Tarendai,项目名称:spring-website,代码行数:31,代码来源:print_all_bug_page.php


示例7: count

</a>
			</td>
			<td><?php 
    echo count(custom_field_get_project_ids($t_field_id));
    ?>
</td>
			<td><?php 
    echo get_enum_element('custom_field_type', $t_desc['type']);
    ?>
</td>
			<td><?php 
    echo string_display($t_desc['possible_values']);
    ?>
</td>
			<td><?php 
    echo string_display($t_desc['default_value']);
    ?>
</td>
		</tr><?php 
}
# Create Form END
?>
	</table>
	<form method="post" action="manage_custom_field_create.php">
		<fieldset>
			<?php 
echo form_security_field('manage_custom_field_create');
?>
			<input type="text" name="name" size="32" maxlength="64" />
			<input type="submit" class="button" value="<?php 
echo lang_get('add_custom_field_button');
开发者ID:Kirill,项目名称:mantisbt,代码行数:31,代码来源:manage_custom_field_page.php


示例8: news_get_rows

<br />
<?php 
# Select the news posts
$rows = news_get_rows(helper_get_current_project());
$t_count = count($rows);
if ($t_count > 0) {
    ?>
	<ul><?php 
    # Loop through results
    for ($i = 0; $i < $t_count; $i++) {
        extract($rows[$i], EXTR_PREFIX_ALL, 'v');
        if (VS_PRIVATE == $v_view_state && !access_has_project_level(config_get('private_news_threshold'), $v_project_id)) {
            continue;
        }
        $v_headline = string_display($v_headline);
        $v_date_posted = date(config_get('complete_date_format'), $v_date_posted);
        ?>
		<li>
			<span class="news-date-posted"><?php 
        echo $v_date_posted;
        ?>
</span>
			<span class="news-headline"><a href="news_view_page.php?news_id=<?php 
        echo $v_id;
        ?>
"><?php 
        echo $v_headline;
        ?>
</a></span>
			<span class="news-author"><?php 
开发者ID:N0ctrnl,项目名称:mantisbt,代码行数:30,代码来源:news_list_page.php


示例9: print_multivalue_field

/**
 * Prints a multi-value filter field.
 * @param string $p_field_name  Field name.
 * @param mixed  $p_field_value Field value.
 * @return void
 */
function print_multivalue_field($p_field_name, $p_field_value)
{
    $t_output = '';
    $t_any_found = false;
    if (count($p_field_value) == 0) {
        echo lang_get('any');
    } else {
        $t_first_flag = true;
        $t_field_value = is_array($p_field_value) ? $p_field_value : array($p_field_value);
        foreach ($t_field_value as $t_current) {
            $t_current = stripslashes($t_current);
            ?>
				<input type="hidden" name="<?php 
            echo string_attribute($p_field_name);
            ?>
[]" value="<?php 
            echo string_attribute($t_current);
            ?>
" />
				<?php 
            $t_this_string = '';
            if ($t_current == META_FILTER_ANY && is_numeric($t_current) || is_blank($t_current)) {
                $t_any_found = true;
            } else {
                $t_this_string = string_display($t_current);
            }
            if ($t_first_flag != true) {
                $t_output .= '<br />';
            } else {
                $t_first_flag = false;
            }
            $t_output .= $t_this_string;
        }
        if (true == $t_any_found) {
            echo lang_get('any');
        } else {
            echo $t_output;
        }
    }
}
开发者ID:vipjaven,项目名称:mantisbt,代码行数:46,代码来源:filter_api.php


示例10: print_column_category

function print_column_category($p_row, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE)
{
    global $t_sort, $t_dir;
    # grab the project name
    $t_project_name = project_get_field($p_row['project_id'], 'name');
    echo '<td class="center">';
    # type project name if viewing 'all projects' or if issue is in a subproject
    if (ON == config_get('show_bug_project_links') && helper_get_current_project() != $p_row['project_id']) {
        echo '<small>[';
        print_view_bug_sort_link($t_project_name, 'project_id', $t_sort, $t_dir, $p_columns_target);
        echo ']</small><br />';
    }
    echo string_display($p_row['category']);
    echo '</td>';
}
开发者ID:centaurustech,项目名称:BenFund,代码行数:15,代码来源:columns_api.php


示例11: compress_enable

 * MantisBT Core API's
 */
require_once 'core.php';
/**
 * requires ajax_api
 */
require_once 'ajax_api.php';
/**
 * requires tag_api
 */
require_once 'tag_api.php';
compress_enable();
$f_tag_id = gpc_get_int('tag_id');
$t_tag_row = tag_get($f_tag_id);
$t_name = string_display_line($t_tag_row['name']);
$t_description = string_display($t_tag_row['description']);
if (!(access_has_global_level(config_get('tag_edit_threshold')) || auth_get_current_user_id() == $t_tag_row['user_id'] && access_has_global_level(config_get('tag_edit_own_threshold')))) {
    access_denied();
}
html_page_top(sprintf(lang_get('tag_update'), $t_name));
?>

<br />
<form method="post" action="tag_update.php">
<?php 
echo form_security_field('tag_update');
?>
<table class="width100" cellspacing="1">

<!-- Title -->
<tr>
开发者ID:nourchene-benslimane,项目名称:mantisV0,代码行数:31,代码来源:tag_update_page.php


示例12: helper_alternate_class

    ?>
<tr <?php 
    echo helper_alternate_class($i);
    ?>
>
	<td>
		<a href="manage_user_edit_page.php?user_id=<?php 
    echo $u_id;
    ?>
"><?php 
    echo string_display($u_username);
    ?>
</a>
	</td>
	<td><?php 
    echo string_display($u_realname);
    ?>
</td>
	<td><?php 
    print_email_link($u_email, $u_email);
    ?>
</td>
	<td><?php 
    echo get_enum_element('access_levels', $u_access_level);
    ?>
</td>
	<td><?php 
    echo trans_bool($u_enabled);
    ?>
</td>
	<td class="center">
开发者ID:jin255ff,项目名称:company_website,代码行数:31,代码来源:manage_user_page.php


示例13: extract

    extract($result[$i], EXTR_PREFIX_ALL, 'v');
    if (in_array($v_id, $f_bug_arr) || $f_show_flag == 0) {
        $t_last_updated = date($g_short_date_format, $v_last_updated);
        # grab the bugnote count
        $bugnote_count = bug_get_bugnote_count($v_id);
        # grab the project name
        $project_name = project_get_field($v_project_id, 'name');
        $t_bug_text_table = config_get('mantis_bug_text_table');
        $query4 = "SELECT *\r\n                FROM {$t_bug_text_table}\r\n                WHERE id='{$v_bug_text_id}'";
        $result4 = db_query($query4);
        $row = db_fetch_array($result4);
        extract($row, EXTR_PREFIX_ALL, 'v2');
        $v_os = string_display($v_os);
        $v_os_build = string_display($v_os_build);
        $v_platform = string_display($v_platform);
        $v_version = string_display($v_version);
        $v_summary = string_display_links($v_summary);
        # line feeds are desactivated in case of excel export, to avoid multiple lines
        if ($f_type_page != 'html') {
            $v2_description = stripslashes(htmlspecialchars(str_replace('\\n', ' ', $v2_description)));
            $v2_steps_to_reproduce = stripslashes(htmlspecialchars(str_replace('\\n', ' ', $v2_steps_to_reproduce)));
            $v2_additional_information = stripslashes(htmlspecialchars(str_replace('\\n', ' ', $v2_additional_information)));
        } else {
            $v2_description = string_display_links($v2_description);
            $v2_steps_to_reproduce = string_display_links($v2_steps_to_reproduce);
            $v2_additional_information = string_display_links($v2_additional_information);
        }
        # an index for incrementing the array position
        $name_index = 0;
        ?>
<tr>
开发者ID:amjadtbssm,项目名称:website,代码行数:31,代码来源:print_all_bug_page_excel.php


示例14: gpc_get_int

$f_file_id = gpc_get_int( 'file_id' );

$t_project_id = file_get_field( $f_file_id, 'project_id', 'project' );

access_ensure_project_level( config_get( 'upload_project_file_threshold' ), $t_project_id );

$t_project_file_table = db_get_table( 'project_file' );
$query = "SELECT title FROM $t_project_file_table
			WHERE id=" . db_param();
$result = db_query_bound( $query, Array( $f_file_id ) );
$t_title = db_result( $result );

# Confirm with the user
helper_ensure_confirmed( lang_get( 'confirm_file_delete_msg' ) .
	'<br/>' . lang_get( 'filename_label' ) . lang_get( 'word_separator' ) . string_display( $t_title ),
	lang_get( 'file_delete_button' ) );

file_delete( $f_file_id, 'project' );

form_security_purge( 'proj_doc_delete' );

$t_redirect_url = 'proj_doc_page.php';

html_page_top( null, $t_redirect_url );
?>
<br />
<div>
<?php
echo lang_get( 'operation_successful' ).'<br />';
print_bracket_link( $t_redirect_url, lang_get( 'proceed' ) );
开发者ID:rombert,项目名称:mantisbt,代码行数:30,代码来源:proj_doc_delete.php


示例15: require_api

require_api('access_api.php');
require_api('config_api.php');
require_api('database_api.php');
require_api('file_api.php');
require_api('form_api.php');
require_api('gpc_api.php');
require_api('helper_api.php');
require_api('html_api.php');
require_api('lang_api.php');
require_api('print_api.php');
require_api('string_api.php');
form_security_validate('proj_doc_delete');
# Check if project documentation feature is enabled.
if (OFF == config_get('enable_project_documentation')) {
    access_denied();
}
$f_file_id = gpc_get_int('file_id');
$t_project_id = file_get_field($f_file_id, 'project_id', 'project');
access_ensure_project_level(config_get('upload_project_file_threshold'), $t_project_id);
$t_project_file_table = db_get_table('project_file');
$query = "SELECT title FROM {$t_project_file_table}\n\t\t\tWHERE id=" . db_param();
$result = db_query_bound($query, array($f_file_id));
$t_title = db_result($result);
# Confirm with the user
helper_ensure_confirmed(lang_get('confirm_file_delete_msg') . '<br/>' . lang_get('filename_label') . lang_get('word_separator') . string_display($t_title), lang_get('file_delete_button'));
file_delete($f_file_id, 'project');
form_security_purge('proj_doc_delete');
$t_redirect_url = 'proj_doc_page.php';
html_page_top(null, $t_redirect_url);
html_operation_successful($t_redirect_url);
html_page_bottom();
开发者ID:Kirill,项目名称:mantisbt,代码行数:31,代码来源:proj_doc_delete.php


示例16: lang_get

        echo lang_get('actions');
        ?>
				</td>
			</tr>
	<?php 
        $t_index = 0;
        foreach ($t_custom_fields as $t_field_id) {
            $t_desc = custom_field_get_definition($t_field_id);
            ?>
			<tr <?php 
            echo helper_alternate_class();
            ?>
>
				<td>
					<?php 
            echo string_display($t_desc['name']);
            ?>
				</td>
				<td>
<form method="post" action="manage_proj_custom_field_update.php">
	<?php 
            echo form_security_field('manage_proj_custom_field_update');
            ?>
	<input type="hidden" name="project_id" value="<?php 
            echo $f_project_id;
            ?>
" />
	<input type="hidden" name="field_id" value="<?php 
            echo $t_field_id;
            ?>
" />
开发者ID:kaos,项目名称:mantisbt,代码行数:31,代码来源:manage_proj_edit_page.php


示例17: get_email_link_with_subject

/**
 * return the mailto: href string link instead of printing it
 * add subject line
 *
 * @param string $p_email   Email Address.
 * @param string $p_text    Link text to display to user.
 * @param string $p_subject Email subject line.
 * @return string
 */
function get_email_link_with_subject($p_email, $p_text, $p_subject)
{
    # If we apply string_url() to the whole mailto: link then the @
    # gets turned into a %40 and you can't right click in browsers to
    # do Copy Email Address.  If we don't apply string_url() to the
    # subject text then an ampersand (for example) will truncate the text
    $t_subject = string_url($p_subject);
    $t_email = string_url($p_email);
    $t_mailto = string_attribute('mailto:' . $t_email . '?subject=' . $t_subject);
    $t_text = string_display($p_text);
    return '<a class="user" href="' . $t_mailto . '">' . $t_text . '</a>';
}
开发者ID:gtn,项目名称:mantisbt,代码行数:21,代码来源:print_api.php


示例18: print_subproject_menu_bar

function print_subproject_menu_bar($p_project_id, $p_parents = '')
{
    $t_subprojects = current_user_get_accessible_subprojects($p_project_id);
    $t_char = ':';
    foreach ($t_subprojects as $t_subproject) {
        print "{$t_char} <a href=\"set_project.php?project_id={$p_parents}{$t_subproject}\">" . string_display(project_get_field($t_subproject, 'name')) . '</a>';
        print_subproject_menu_bar($t_subproject, $p_parents . $t_subproject . ';');
        $t_char = ',';
    }
}
开发者ID:amjadtbssm,项目名称:website,代码行数:10,代码来源:html_api.php


示例19: get_capability_enum

function get_capability_enum($p_caption, $p_threshold, $p_enum, $p_all_projects_only = false)
{
    global $t_user, $t_project_id, $t_show_submit, $t_access_levels, $t_colour_project, $t_colour_global;
    $t_file = config_get_global($p_threshold);
    $t_global = config_get($p_threshold, null, null, ALL_PROJECTS);
    $t_project = config_get($p_threshold);
    $t_can_change = access_has_project_level(config_get_access($p_threshold), $t_project_id, $t_user) && (ALL_PROJECTS == $t_project_id || !$p_all_projects_only);
    $t_colour = '';
    if ($t_global != $t_file) {
        $t_colour = ' bgcolor="' . $t_colour_global . '" ';
        # all projects override
        if ($t_can_change) {
            set_overrides($p_threshold);
        }
    }
    if ($t_project != $t_global) {
        $t_colour = ' bgcolor="' . $t_colour_project . '" ';
        # project overrides
        if ($t_can_change) {
            set_overrides($p_threshold);
        }
    }
    echo '<tr ' . helper_alternate_class() . '><td>' . string_display($p_caption) . '</td>';
    if ($t_can_change) {
        echo '<td class="left" colspan="3"' . $t_colour . '><select name="flag_' . $p_threshold . '">';
        print_enum_string_option_list($p_enum, config_get($p_threshold));
        echo '</select></td><td colspan="' . (count($t_access_levels) - 3) . '"></td>';
        $t_show_submit = true;
    } else {
        $t_value = MantisEnum::getLabel(lang_get($p_enum . '_enum_string'), config_get($p_threshold)) . '&nbsp;';
        echo '<td class="left" colspan="3"' . $t_colour . '>' . $t_value . '</td><td colspan="' . (count($t_access_levels) - 3) . '"></td>';
    }
    if ($t_can_change) {
        echo '<td><select name="access_' . $p_threshold . '">';
        print_enum_string_option_list('access_levels', config_get_access($p_threshold));
        echo '</select> </td>';
    } else {
        echo '<td>' . MantisEnum::getLabel(lang_get('access_levels_enum_string'), config_get_access($p_threshold)) . '&nbsp;</td>';
    }
    echo '</tr>' . "\n";
}
开发者ID:kaos,项目名称:mantisbt,代码行数:41,代码来源:manage_config_work_threshold_page.php


示例20: foreach

    }
}
# check for exit == 0 and entry == 0, isolated state
foreach ($t_status_arr as $t_status => $t_status_label) {
    if (0 == count($g_project_workflow['exit'][$t_status]) && 0 == count($g_project_workflow['entry'][$t_status])) {
        $t_validation_result .= '<tr><td>' . MantisEnum::getLabel($t_lang_enum_status, $t_status) . '</td><td bgcolor="#FF0088">' . lang_get('unreachable') . '<br />' . lang_get('no_exit') . '</td></tr>';
    }
}
echo '<form id="workflow_config_action" method="post" action="manage_config_workflow_set.php">' . "\n";
echo '<fieldset>';
echo form_security_field('manage_config_workflow_set');
echo '</fieldset>';
if (ALL_PROJECTS == $t_project) {
    $t_project_title = lang_get('config_all_projects');
} else {
    $t_project_title = sprintf(lang_get('config_project'), string_display(project_get_name($t_project)));
}
echo '<p class="bold">' . $t_project_title . '</p>' . "\n";
echo '<p>' . lang_get('colour_coding') . '<br />';
if (ALL_PROJECTS != $t_project) {
    echo '<span class="' . COLOR_PROJECT . '">' . lang_get('colour_project') . '</span><br />';
}
echo '<span class="' . COLOR_GLOBAL . '">' . lang_get('colour_global') . '</span></p>';
# show the settings used to derive the table
threshold_begin(lang_get('workflow_thresholds'));
if (!is_array(config_get('bug_submit_status'))) {
    threshold_row('bug_submit_status');
}
threshold_row('bug_resolved_status_threshold');
threshold_row('bug_reopen_status');
threshold_end();
开发者ID:gtn,项目名称:mantisbt,代码行数:31,代码来源:manage_config_workflow_page.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP string_display_line函数代码示例发布时间:2022-05-23
下一篇:
PHP string_custom_field_value_for_email函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap