本文整理汇总了PHP中string_display_line函数的典型用法代码示例。如果您正苦于以下问题:PHP string_display_line函数的具体用法?PHP string_display_line怎么用?PHP string_display_line使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了string_display_line函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: displayResultsCore
function displayResultsCore($query, $fields)
{
$result = db_query_bound($query);
$nbRows = 0;
while ($row = db_fetch_array($result)) {
$nbRows++;
$t_bug = bug_get($row['id']);
print "<tr> \n";
print '<td><a href="' . string_get_bug_view_url($row['id']) . '">' . bug_format_id($row['id']) . '</a></td>';
//print "<td> ".string_get_bug_view_url( ))." </td>\n";
print "<td> " . string_display_line(get_enum_element('status', $t_bug->status)) . " </td>\n";
print "<td> " . category_get_row($t_bug->category_id)['name'] . " </td>\n";
print "<td> " . $t_bug->summary . " </td>\n";
print "<td> " . user_get_field($t_bug->reporter_id, 'username') . " </td>\n";
if ($t_bug->handler_id != null) {
print "<td> " . user_get_field($t_bug->handler_id, 'username') . " </td>\n";
}
if (sizeof($fields) > 0) {
for ($i = 0; $i < sizeof($fields); $i++) {
print "<td> " . $row[$fields[$i]] . " </td>\n";
}
}
print "</tr>\n";
}
return $nbRows;
}
开发者ID:bcramet,项目名称:CAMOSInternal,代码行数:26,代码来源:plugin_bug_util.php
示例2: prepare_user_name
/**
* prepares the name of the user given the id. also makes it an email link.
* @param int $p_user_id
* @return string
*/
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_username = string_display_line($t_username);
// WK/BFE: Original-Zeile auskommentiert: , LB/BFE 2015
// return '<a href="' . string_sanitize_url( 'view_user_page.php?id=' . $p_user_id, true ) . '">' . $t_username . '</a>';
// ersetzt durch: (Link auf view_user_page nur wenn globale Rolle mindestens $g_manage_user_threshold
if (user_is_administrator(auth_get_current_user_id())) {
return '<a href="' . string_sanitize_url('view_user_page.php?id=' . $p_user_id, true) . '">' . $t_username . '</a>';
} else {
return $t_username;
}
// WK/BFE: Ende der Modifikation
} else {
$t_result = '<font STYLE="text-decoration: line-through">';
$t_result .= string_display_line($t_username);
$t_result .= '</font>';
return $t_result;
}
}
开发者ID:bfekomsthoeft,项目名称:TTS_Praxisprojekt1,代码行数:30,代码来源:prepare_api.php
示例3: display
function display($p_filter_value)
{
plugin_push_current('CustomerManagement');
if (access_has_global_level(plugin_config_get('view_customer_fields_threshold'))) {
return string_display_line($p_filter_value == 1 ? lang_get('yes') : lang_get('no'));
}
plugin_pop_current();
}
开发者ID:WilfriedMartin,项目名称:customer-management,代码行数:8,代码来源:IsBillableFilter.php
示例4: display
function display($p_filter_value)
{
plugin_push_current('CustomerManagement');
if (access_has_global_level(plugin_config_get('view_customer_fields_threshold'))) {
if (is_numeric($p_filter_value)) {
$group = CustomerManagementDao::getGroup((int) $p_filter_value);
return string_display_line($group['name']);
}
}
plugin_pop_current();
}
开发者ID:WilfriedMartin,项目名称:customer-management,代码行数:11,代码来源:CustomerGroupFilter.php
示例5: display
public function display($p_bug, $p_columns_target)
{
plugin_push_current('CustomerManagement');
if (access_has_global_level(plugin_config_get('view_customer_fields_threshold'))) {
$bugData = CustomerManagementDao::getBugData($p_bug->id);
if (count($bugData) > 0) {
$isBillable = CustomerManagementDao::getService($bugData['is_billable']);
echo string_display_line($isBillable ? lang_get('yes') : lang_get('no'));
}
}
plugin_pop_current();
}
开发者ID:WilfriedMartin,项目名称:customer-management,代码行数:12,代码来源:IsBillableColumn.php
示例6: display
public function display($p_bug, $p_columns_target)
{
plugin_push_current('CustomerManagement');
if (access_has_global_level(plugin_config_get('view_customer_fields_threshold'))) {
$bugData = CustomerManagementDao::getBugData($p_bug->id);
if (count($bugData) > 0) {
$group = CustomerManagementDao::getGroupForCustomer($bugData['customer_id']);
echo string_display_line($group['name']);
}
}
plugin_pop_current();
}
开发者ID:WilfriedMartin,项目名称:customer-management,代码行数:12,代码来源:CustomerGroupColumn.php
示例7: prepare_user_name
/**
* prepares the name of the user given the id. also makes it an email link.
* @param int $p_user_id
* @return string
*/
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 );
$t_username = string_display_line( $t_username );
if( user_exists( $p_user_id ) && user_get_field( $p_user_id, 'enabled' ) ) {
return '<a class="user" href="' . string_sanitize_url( 'view_user_page.php?id=' . $p_user_id, true ) . '">' . $t_username . '</a>';
} else {
return '<del class="user">' . $t_username . '</del>';
}
}
开发者ID:rombert,项目名称:mantisbt,代码行数:19,代码来源:prepare_api.php
示例8: prepare_user_name
/**
* prepares the name of the user given the id. also makes it an email link.
* @param int $p_user_id
* @return string
*/
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_username = string_display_line($t_username);
return '<a href="' . string_sanitize_url('view_user_page.php?id=' . $p_user_id, true) . '">' . $t_username . '</a>';
} else {
$t_result = '<font STYLE="text-decoration: line-through">';
$t_result .= string_display_line($t_username);
$t_result .= '</font>';
return $t_result;
}
}
开发者ID:nourchene-benslimane,项目名称:mantisV0,代码行数:22,代码来源:prepare_api.php
示例9: print_version_header
function print_version_header($p_version_row)
{
$t_project_id = $p_version_row['project_id'];
$t_version_id = $p_version_row['id'];
$t_version_name = $p_version_row['version'];
$t_project_name = project_get_field($t_project_id, 'name');
$t_release_title = '<a href="roadmap_page.php?project_id=' . $t_project_id . '">' . string_display_line($t_project_name) . '</a> - <a href="roadmap_page.php?version_id=' . $t_version_id . '">' . string_display_line($t_version_name) . '</a>';
if (config_get('show_roadmap_dates')) {
$t_version_timestamp = $p_version_row['date_order'];
$t_scheduled_release_date = ' (' . lang_get('scheduled_release') . ' ' . string_display_line(date(config_get('short_date_format'), $t_version_timestamp)) . ')';
} else {
$t_scheduled_release_date = '';
}
echo '<tt>';
echo '<br />', $t_release_title, $t_scheduled_release_date, lang_get('word_separator'), print_bracket_link('view_all_set.php?type=1&temporary=y&' . FILTER_PROPERTY_PROJECT_ID . '=' . $t_project_id . '&' . filter_encode_field_and_value(FILTER_PROPERTY_TARGET_VERSION, $t_version_name), lang_get('view_bugs_link')), '<br />';
$t_release_title_without_hyperlinks = $t_project_name . ' - ' . $t_version_name . $t_scheduled_release_date;
echo utf8_str_pad('', utf8_strlen($t_release_title_without_hyperlinks), '='), '<br />';
}
开发者ID:nourchene-benslimane,项目名称:mantisV0,代码行数:18,代码来源:roadmap_page.php
示例10: print_tbody
/**
* Print table body
* @param $status_cols
*/
function print_tbody($status_cols)
{
$storyboard_db_api = new storyboard_db_api();
$project_spec_bug_ids = $storyboard_db_api->get_bugarray_by_project(helper_get_current_project());
$types = $storyboard_db_api->select_all_types();
echo '<tbody>';
foreach ($types as $type) {
echo '<tr>';
echo '<td class="category">' . $type[1] . '</td>';
foreach ($status_cols as $status_col) {
echo '<td class="story_baord">';
foreach ($project_spec_bug_ids as $project_spec_bug_id) {
$card = $storyboard_db_api->select_story_card($project_spec_bug_id);
if ($card[2] == $type[0]) {
$bug_status = bug_get_field($project_spec_bug_id, 'status');
if ($bug_status == $status_col) {
echo '<a href="' . string_get_bug_view_url($project_spec_bug_id) . '" class="rcv_tooltip">';
echo '<div class="story_card">';
echo string_display_line(bug_format_id($project_spec_bug_id));
echo '<span>';
print_story_card_title($project_spec_bug_id);
print_story_card_info('summary', bug_get_field($project_spec_bug_id, 'summary'), false);
print_story_card_info('description', bug_get_text_field($project_spec_bug_id, 'description'), false);
print_story_card_info('card_risk', $card[3], true);
print_story_card_info('card_story_pt', $card[4], true);
print_story_card_info('card_story_pt_post', $card[5], true);
print_story_card_info('card_acc_crit', $card[6], true);
echo '</span>';
echo '</div>';
echo '</a><br/><br/><br/>';
}
}
}
echo '</td>';
}
echo '</tr>';
}
echo '</tbody>';
}
开发者ID:Cre-ator,项目名称:Whiteboard.StoryBoard-Plugin,代码行数:43,代码来源:storyboard_index.php
示例11: renderLists
function renderLists()
{
$content = '';
$status_codes = config_get('status_enum_string');
$t_status_array = MantisEnum::getAssocArrayIndexedByValues($status_codes);
foreach ($t_status_array as $status => $statusCode) {
if ($statusCode != "backlog" && $statusCode != "closed") {
$issues = $this->renderIssues($status);
$statusName = string_display_line(get_enum_element('status', $status));
$content .= '<div class="column">
<div class="inside"
style="background-color: ' . get_status_color($status) . '"
id="' . $status . '">
<h5 title="' . $status . '">' . $statusName . ' (' . sizeof($issues) . ')</h5>';
$content .= implode("\n", $issues);
$content .= '</div>';
// inside
$content .= '</div>';
// column
}
}
return $content;
}
开发者ID:pedroresende,项目名称:MantisBTKanbanBoard,代码行数:23,代码来源:kanban.php
示例12: helper_alternate_class
$t_user_name = '';
}
?>
<!-- Repeated Info Row -->
<tr <?php
echo helper_alternate_class();
?>
>
<td>
<?php
echo string_display(category_full_name($t_category['id'], $t_inherited, $f_project_id));
?>
</td>
<td>
<?php
echo string_display_line($t_user_name);
?>
</td>
<td class="center">
<?php
if (!$t_inherited) {
$t_id = urlencode($t_id);
$t_project_id = urlencode($f_project_id);
print_button('manage_proj_cat_edit_page.php?id=' . $t_id . '&project_id=' . $t_project_id, lang_get('edit_link'));
echo ' ';
print_button('manage_proj_cat_delete.php?id=' . $t_id . '&project_id=' . $t_project_id, lang_get('delete_link'));
}
?>
</td>
</tr>
<?php
开发者ID:kaos,项目名称:mantisbt,代码行数:31,代码来源:manage_proj_edit_page.php
示例13: cfdef_input_radio
function cfdef_input_radio($p_field_def, $p_custom_field_value)
{
$t_values = explode('|', custom_field_prepare_possible_values($p_field_def['possible_values']));
$t_len = strlen($p_custom_field_value);
if ($t_len >= 2 && $p_custom_field_value[0] == '|' && $p_custom_field_value[$t_len - 1] == '|') {
$t_checked_value = substr($p_custom_field_value, 1, $t_len - 2);
} else {
$t_checked_value = $p_custom_field_value;
}
foreach ($t_values as $t_option) {
echo '<input ', helper_get_tab_index(), ' type="radio" name="custom_field_' . $p_field_def['id'] . '"';
if ($t_option == $t_checked_value) {
echo ' value="' . string_attribute($t_option) . '" checked="checked"> ' . string_display_line($t_option) . '  ';
} else {
echo ' value="' . string_attribute($t_option) . '"> ' . string_display_line($t_option) . '  ';
}
}
}
开发者ID:nourchene-benslimane,项目名称:mantisV0,代码行数:18,代码来源:cfdef_standard.php
示例14: helper_alternate_class
<!-- Email -->
<tr <?php
echo helper_alternate_class();
?>
>
<td class="category">
<?php
echo lang_get('email');
?>
</td>
<td>
<?php
// With LDAP
if ($t_ldap && ON == config_get('use_ldap_email')) {
echo string_display_line(user_get_email($t_user_id));
} else {
print_email_input('email', $t_user['email']);
}
?>
</td>
</tr>
<!-- Access Level -->
<tr <?php
echo helper_alternate_class();
?>
>
<td class="category">
<?php
echo lang_get('access_level');
开发者ID:fur81,项目名称:zofaxiopeu,代码行数:30,代码来源:manage_user_edit_page.php
示例15: lang_get
echo '<td class="print-category">' . lang_get('bug_relationships') . '</td>';
echo '<td class="print" colspan="5">' . relationship_get_summary_html_preview($f_bug_id) . '</td></tr>';
if ($t_show_attachments) {
echo '<tr class="print">';
echo '<th class="print-category">', lang_get('attached_files'), '</th>';
echo '<td class="print" colspan="5">';
$t_attachments = file_get_visible_attachments($f_bug_id);
$t_first_attachment = true;
$t_path = config_get_global('path');
foreach ($t_attachments as $t_attachment) {
if ($t_first_attachment) {
$t_first_attachment = false;
} else {
echo '<br />';
}
$c_filename = string_display_line($t_attachment['display_name']);
$c_download_url = $t_path . htmlspecialchars($t_attachment['download_url']);
$c_filesize = number_format($t_attachment['size']);
$c_date_added = date(config_get('normal_date_format'), $t_attachment['date_added']);
if (isset($t_attachment['icon'])) {
echo '<img src="', $t_attachment['icon']['url'], '" alt="', $t_attachment['icon']['alt'], '" /> ';
}
echo $c_filename . ' (' . $c_filesize . ') <span class="italic">' . $c_date_added . '</span><br />' . $c_download_url;
if ($t_attachment['preview'] && $t_attachment['type'] == 'image') {
echo '<br /><img src="', $t_attachment['download_url'], '" alt="', $t_attachment['alt'], '" /><br />';
}
}
echo '</td></tr>';
}
#
# Issue History
开发者ID:derrickweaver,项目名称:mantisbt,代码行数:31,代码来源:print_bug_page.php
示例16: cfdef_input_radio
function cfdef_input_radio($p_field_def, $p_custom_field_value)
{
$t_values = explode('|', custom_field_prepare_possible_values($p_field_def['possible_values']));
$t_len = strlen($p_custom_field_value);
if ($t_len >= 2 && $p_custom_field_value[0] == '|' && $p_custom_field_value[$t_len - 1] == '|') {
$t_checked_value = substr($p_custom_field_value, 1, $t_len - 2);
} else {
$t_checked_value = $p_custom_field_value;
}
for ($i = 0; $i < count($t_values); $i++) {
$t_input_id = 'custom_field_' . $p_field_def['id'] . '_value_' . $i;
$t_input_name = 'custom_field_' . $p_field_def['id'];
echo "<input id=\"{$t_input_id}\" " . helper_get_tab_index() . " type=\"radio\" name=\"{$t_input_name}\" value=\"" . string_attribute($t_values[$i]) . '"';
check_checked($t_checked_value, $t_values[$i]);
echo " />\n";
echo "<label for=\"{$t_input_id}\">" . string_display_line($t_values[$i]) . "</label>\n";
}
}
开发者ID:Kirill,项目名称:mantisbt,代码行数:18,代码来源:cfdef_standard.php
示例17: string_attribute
$t_resolution = string_attribute(get_enum_element('resolution', $t_bug->resolution, auth_get_current_user_id(), $t_bug->project_id));
$t_version_id = version_get_id($t_bug->fixed_in_version, $t_bug->project_id);
if (false !== $t_version_id && VERSION_RELEASED == version_get_field($t_version_id, 'released')) {
$t_released_label = '<a title="' . lang_get('released') . '">' . $t_bug->fixed_in_version . '</a>';
} else {
$t_released_label = $t_bug->fixed_in_version;
}
# choose color based on status
$t_status_label = html_get_status_css_class($t_bug->status, auth_get_current_user_id(), $t_bug->project_id);
echo '<tr class="' . $t_status_label . '">';
echo '<td><a href="' . string_get_bug_view_url($t_sponsor_row['bug']) . '">' . bug_format_id($t_sponsor_row['bug']) . '</a></td>';
echo '<td>' . string_display_line(project_get_field($t_bug->project_id, 'name')) . ' </td>';
echo '<td class="right">' . $t_released_label . ' </td>';
echo '<td><a title="' . $t_resolution . '"><span class="underline">' . $t_status . '</span> </a></td>';
# summary
echo '<td>' . string_display_line($t_bug->summary);
if (VS_PRIVATE == $t_bug->view_state) {
printf(' <img src="%s" alt="(%s)" title="%s" />', $t_icon_path . 'protected.gif', lang_get('private'), lang_get('private'));
}
echo '</td>';
# describe sponsorship amount
echo '<td>';
print_user($t_sponsor->user_id);
echo '</td>';
echo '<td class="right">' . sponsorship_format_amount($t_sponsor->amount) . '</td>';
echo '<td><select name="sponsor_' . $t_row['bug'] . '_' . $t_sponsor->id . '">';
print_enum_string_option_list('sponsorship', $t_sponsor->paid);
echo '</select></td>';
echo '</tr>';
if (SPONSORSHIP_PAID == $t_sponsor->paid) {
$t_total_paid += $t_sponsor->amount;
开发者ID:gtn,项目名称:mantisbt,代码行数:31,代码来源:account_sponsor_page.php
示例18: print_filter_plugin_field
/**
* Print plugin filter fields as defined by MantisFilter objects.
* @param string $p_field_name Field name.
* @param object $p_filter_object Filter object.
* @return void
*/
function print_filter_plugin_field($p_field_name, $p_filter_object)
{
global $g_select_modifier, $g_filter, $f_view_type;
$t_size = (int) $p_filter_object->size;
switch ($p_filter_object->type) {
case FILTER_TYPE_STRING:
echo '<input name="', string_attribute($p_field_name), '"', $t_size > 0 ? ' size="' . $t_size . '"' : '', ' value="', string_attribute($g_filter[$p_field_name]), '"/>';
break;
case FILTER_TYPE_INT:
echo '<input name="', string_attribute($p_field_name), '"', $t_size > 0 ? ' size="' . $t_size . '"' : '', ' value="', (int) $g_filter[$p_field_name], '"/>';
break;
case FILTER_TYPE_BOOLEAN:
echo '<input name="', string_attribute($p_field_name), '" type="checkbox"', $t_size > 0 ? ' size="' . $t_size . '"' : '', check_checked((bool) $g_filter[$p_field_name]), '"/>';
break;
case FILTER_TYPE_MULTI_STRING:
echo '<select', $g_select_modifier, $t_size > 0 ? ' size="' . $t_size . '"' : '', ' name="', string_attribute($p_field_name), '[]">', '<option value="', META_FILTER_ANY, '"', check_selected($g_filter[$p_field_name], META_FILTER_ANY), '>[', lang_get('any'), ']</option>';
foreach ($p_filter_object->options() as $t_option_value => $t_option_name) {
echo '<option value="', string_attribute($t_option_value), '" ', check_selected($g_filter[$p_field_name], $t_option_value), '>', string_display_line($t_option_name), '</option>';
}
echo '</select>';
break;
case FILTER_TYPE_MULTI_INT:
echo '<select', $g_select_modifier, $t_size > 0 ? ' size="' . $t_size . '"' : '', ' name="', string_attribute($p_field_name), '[]">', '<option value="', META_FILTER_ANY, '"', check_selected($g_filter[$p_field_name], META_FILTER_ANY), '>[', lang_get('any'), ']</option>';
foreach ($p_filter_object->options() as $t_option_value => $t_option_name) {
echo '<option value="', (int) $t_option_value, '" ', check_selected($g_filter[$p_field_name], (int) $t_option_value), '>', string_display_line($t_option_name), '</option>';
}
echo '</select>';
break;
}
}
开发者ID:vipjaven,项目名称:mantisbt,代码行数:36,代码来源:filter_api.php
示例19: Source_Changeset_Link_Callback
/**
* preg_replace_callback function for working with VCS links.
*/
function Source_Changeset_Link_Callback($p_matches)
{
$t_url_type = strtolower($p_matches[1]);
$t_repo_name = $p_matches[2];
$t_revision = $p_matches[3];
$t_repo_table = plugin_table('repository', 'Source');
$t_changeset_table = plugin_table('changeset', 'Source');
$t_file_table = plugin_table('file', 'Source');
$t_query = "SELECT c.* FROM {$t_changeset_table} AS c\n\t\t\t\tJOIN {$t_repo_table} AS r ON r.id=c.repo_id\n\t\t\t\tWHERE c.revision LIKE " . db_param() . '
AND r.name LIKE ' . db_param();
$t_result = db_query_bound($t_query, array($t_revision . '%', $t_repo_name . '%'), 1);
if (db_num_rows($t_result) > 0) {
$t_row = db_fetch_array($t_result);
$t_changeset = new SourceChangeset($t_row['repo_id'], $t_row['revision'], $t_row['branch'], $t_row['timestamp'], $t_row['author'], $t_row['message'], $t_row['user_id']);
$t_changeset->id = $t_row['id'];
$t_repo = SourceRepo::load($t_changeset->repo_id);
$t_vcs = SourceVCS::repo($t_repo);
if ($t_url_type == "v") {
$t_url = $t_vcs->url_changeset($t_repo, $t_changeset);
} else {
$t_url = plugin_page('view') . '&id=' . $t_changeset->id;
}
$t_name = string_display_line($t_repo->name . ' ' . $t_vcs->show_changeset($t_repo, $t_changeset));
if (!is_blank($t_url)) {
return '<a href="' . $t_url . '">' . $t_name . '</a>';
}
return $t_name;
}
return $p_matches[0];
}
开发者ID:Sansumaki,项目名称:source-integration,代码行数:33,代码来源:Source.API.php
示例20: prepare_user_name
name="name" value="<?php
echo $t_name;
?>
"/></td>
<td><?php
if (access_has_global_level(config_get('tag_edit_threshold'))) {
if (ON == config_get('use_javascript')) {
$t_username = prepare_user_name($t_tag_row['user_id']);
echo ajax_click_to_edit($t_username, 'user_id', 'entrypoint=user_combobox&user_id=' . $t_tag_row['user_id'] . '&access_level=' . config_get('tag_create_threshold'));
} else {
echo '<select ', helper_get_tab_index(), ' name="user_id">';
print_user_option_list($t_tag_row['user_id'], ALL_PROJECTS, config_get('tag_create_threshold'));
echo '</select>';
}
} else {
echo string_display_line(user_get_name($t_tag_row['user_id']));
}
?>
</td>
<td><?php
echo date(config_get('normal_date_format'), $t_tag_row['date_created']);
?>
</td>
<td><?php
echo date(config_get('normal_date_format'), $t_tag_row['date_updated']);
?>
</td>
</tr>
<!-- spacer -->
<tr class="spacer">
开发者ID:nourchene-benslimane,项目名称:mantisV0,代码行数:31,代码来源:tag_update_page.php
注:本文中的string_display_line函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论