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


PHP string_get_bug_update_url函數代碼示例

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


在下文中一共展示了string_get_bug_update_url函數的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: print_column_edit

function print_column_edit($p_row, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE)
{
    if ($p_columns_target != COLUMNS_TARGET_CSV_PAGE) {
        global $t_icon_path, $t_update_bug_threshold;
        echo '<td>';
        if (!bug_is_readonly($p_row['id']) && access_has_bug_level($t_update_bug_threshold, $p_row['id'])) {
            echo '<a href="' . string_get_bug_update_url($p_row['id']) . '">';
            echo '<img border="0" width="16" height="16" src="' . $t_icon_path . 'update.png';
            echo '" alt="' . lang_get('update_bug_button') . '"';
            echo ' title="' . lang_get('update_bug_button') . '" /></a>';
        } else {
            echo '&nbsp;';
        }
        echo '</td>';
    }
}
開發者ID:centaurustech,項目名稱:BenFund,代碼行數:16,代碼來源:columns_api.php

示例2: print_column_edit

/**
 * Print column content for column edit
 *
 * @param BugData $p_bug bug object
 * @param int $p_columns_target see COLUMNS_TARGET_* in constant_inc.php
 * @return null
 * @access public
 */
function print_column_edit($p_bug, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE)
{
    global $t_icon_path, $t_update_bug_threshold;
    echo '<td class="column-edit">';
    if (!bug_is_readonly($p_bug->id) && access_has_bug_level(config_get('update_bug_threshold'), $p_bug->id)) {
        echo '<a href="' . string_get_bug_update_url($p_bug->id) . '">';
        echo '<img width="16" height="16" src="' . $t_icon_path . 'update.png';
        echo '" alt="' . lang_get('update_bug_button') . '"';
        echo ' title="' . lang_get('update_bug_button') . '" /></a>';
    } else {
        echo '&#160;';
    }
    echo '</td>';
}
開發者ID:N0ctrnl,項目名稱:mantisbt,代碼行數:22,代碼來源:columns_api.php

示例3: print_bug_link

    ?>

<tr bgcolor="<?php 
    echo $status_color;
    ?>
">
	<?php 
    # -- Bug ID and details link + Pencil shortcut --
    ?>
	<td class="center" valign="top" width ="0" nowrap>
		<span class="small">
		<?php 
    print_bug_link($v_id);
    echo '<br />';
    if (!bug_is_readonly($v_id) && access_has_bug_level($t_update_bug_threshold, $v_id)) {
        echo '<a href="' . string_get_bug_update_url($v_id) . '"><img border="0" src="' . $t_icon_path . 'update.png' . '" alt="' . lang_get('update_bug_button') . '" /></a>';
    }
    if (ON == config_get('show_priority_text')) {
        print_formatted_priority_string($v_status, $v_priority);
    } else {
        print_status_icon($v_priority);
    }
    if (0 < $t_attachment_count) {
        echo '<a href="' . string_get_bug_view_url($v_id) . '#attachments">';
        echo '<img border="0" src="' . $t_icon_path . 'attachment.png' . '"';
        echo ' alt="' . lang_get('attachment_alt') . '"';
        echo ' title="' . $t_attachment_count . ' ' . lang_get('attachments') . '"';
        echo ' />';
        echo '</a>';
    }
    if (VS_PRIVATE == $v_view_state) {
開發者ID:jin255ff,項目名稱:company_website,代碼行數:31,代碼來源:my_view_inc.php

示例4: string_get_bug_update_link

/**
 * return an href anchor that links to a bug UPDATE page for the given bug
 * account for the user preference and site override
 * @param integer $p_bug_id  A bug identifier.
 * @param integer $p_user_id A valid user identifier.
 * @return string
 */
function string_get_bug_update_link($p_bug_id, $p_user_id = null)
{
    $t_summary = string_attribute(bug_get_field($p_bug_id, 'summary'));
    return '<a href="' . helper_mantis_url(string_get_bug_update_url($p_bug_id, $p_user_id)) . '" title="' . $t_summary . '">' . bug_format_id($p_bug_id) . '</a>';
}
開發者ID:derrickweaver,項目名稱:mantisbt,代碼行數:12,代碼來源:string_api.php

示例5: print_bug_link

    echo $t_bug_class;
    ?>
 <?php 
    echo $status_label;
    ?>
">
	<?php 
    # -- Bug ID and details link + Pencil shortcut --
    ?>
	<td class="center nowrap my-buglist-id">
		<span class="small">
		<?php 
    print_bug_link($t_bug->id);
    echo '<br />';
    if (!bug_is_readonly($t_bug->id) && access_has_bug_level($t_update_bug_threshold, $t_bug->id)) {
        echo '<a class="edit" href="' . string_get_bug_update_url($t_bug->id) . '"><img src="' . $t_icon_path . 'update.png' . '" alt="' . lang_get('update_bug_button') . '" /></a>';
    }
    if (ON == config_get('show_priority_text')) {
        print_formatted_priority_string($t_bug);
    } else {
        print_status_icon($t_bug->priority);
    }
    if ($t_attachment_count > 0) {
        $t_href = string_get_bug_view_url($t_bug->id) . '#attachments';
        $t_href_title = sprintf(lang_get('view_attachments_for_issue'), $t_attachment_count, $t_bug->id);
        $t_alt_text = $t_attachment_count . lang_get('word_separator') . lang_get('attachments');
        echo "<a class=\"attachments\" href=\"{$t_href}\" title=\"{$t_href_title}\"><img src=\"{$t_icon_path}attachment.png\" alt=\"{$t_alt_text}\" title=\"{$t_alt_text}\" /></a>";
    }
    if (VS_PRIVATE == $t_bug->view_state) {
        echo '<img src="' . $t_icon_path . 'protected.gif" width="8" height="15" alt="' . lang_get('private') . '" />';
    }
開發者ID:N0ctrnl,項目名稱:mantisbt,代碼行數:31,代碼來源:my_view_inc.php

示例6: lang_get

    if ($t_show_reporter) {
        # Reporter
        echo '<th class="category"><label for="reporter_id">' . lang_get('reporter') . '</label></th>';
        echo '<td>';
        # Do not allow the bug's reporter to edit the Reporter field
        # when limit_reporters is ON
        if (ON == config_get('limit_reporters') && !access_has_project_level(access_threshold_min_level(config_get('report_bug_threshold', null, null, $t_bug->project_id)) + 1, $t_bug->project_id)) {
            echo string_attribute(user_get_name($t_bug->reporter_id));
        } else {
            if ($f_reporter_edit) {
                echo '<select ' . helper_get_tab_index() . ' id="reporter_id" name="reporter_id">';
                print_reporter_option_list($t_bug->reporter_id, $t_bug->project_id);
                echo '</select>';
            } else {
                echo string_attribute(user_get_name($t_bug->reporter_id));
                echo ' [<a href="#reporter_edit" class="click-url" url="' . string_get_bug_update_url($f_bug_id) . '&amp;reporter_edit=true">' . lang_get('edit_link') . '</a>]';
            }
        }
        echo '</td>';
    } else {
        $t_spacer += 2;
    }
    # spacer
    echo '<td colspan="', $t_spacer, '">&#160;</td>';
    echo '</tr>';
}
#
# Assigned To, Due Date
#
if ($t_show_handler || $t_show_due_date) {
    echo '<tr>';
開發者ID:spring,項目名稱:spring-website,代碼行數:31,代碼來源:bug_update_page.php

示例7: print_header_redirect_update

function print_header_redirect_update($p_bug_id)
{
    print_header_redirect(string_get_bug_update_url($p_bug_id));
}
開發者ID:jin255ff,項目名稱:company_website,代碼行數:4,代碼來源:print_api.php


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