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


PHP string_display函数代码示例

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


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


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