當前位置: 首頁>>代碼示例>>PHP>>正文


PHP string_display_line函數代碼示例

本文整理匯總了PHP中string_display_line函數的典型用法代碼示例。如果您正苦於以下問題:PHP string_display_line函數的具體用法?PHP string_display_line怎麽用?PHP string_display_line使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了string_display_line函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的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 '&nbsp;';
        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">&#160;' . string_display_line($t_option) . '&#160;&#160;';
        } else {
            echo ' value="' . string_attribute($t_option) . '">&#160;' . string_display_line($t_option) . '&#160;&#160;';
        }
    }
}
開發者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'], '" />&#160;';
        }
        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


注:本文中的string_display_line函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。