本文整理汇总了PHP中string_get_bug_view_url函数的典型用法代码示例。如果您正苦于以下问题:PHP string_get_bug_view_url函数的具体用法?PHP string_get_bug_view_url怎么用?PHP string_get_bug_view_url使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了string_get_bug_view_url函数的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: 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
示例3: display_commit_message
function display_commit_message($event, $bugid)
{
if (!$bugid) {
return;
}
$t_fields = config_get('bug_view_page_fields');
$t_fields = columns_filter_disabled($t_fields);
$tpl_show_id = in_array('id', $t_fields);
$tpl_show_description = in_array('description', $t_fields);
$tpl_show_status = in_array('status', $t_fields);
if ($tpl_show_id && $tpl_show_description && $tpl_show_status) {
bug_ensure_exists($bugid);
$bug = bug_get($bugid, true);
access_ensure_bug_level(VIEWER, $bugid);
$tpl_description = string_display_links($bug->summary);
$tpl_status = get_enum_element('status', $bug->status);
$tpl_link = config_get('path') . string_get_bug_view_url($bugid, null);
$message = sprintf('%s - #JJ%d: %s<br/>%s', strtoupper($tpl_status), $bugid, $tpl_description, $tpl_link);
echo '<tr ', helper_alternate_class(), '>';
echo '<td class="category">', plugin_lang_get('commit_message'), '</td>';
echo '<td colspan="5">' . $message . '</td>';
echo '</tr>';
}
}
开发者ID:jon48,项目名称:webtrees-tools,代码行数:24,代码来源:PersoDevTools.php
示例4: string_get_bug_view_url_with_fqdn
/**
* return the name and GET parameters of a bug VIEW page for the given bug
* account for the user preference and site override
* The returned url includes the fully qualified domain, hence it is suitable to be included in emails.
* @param integer $p_bug_id A bug identifier.
* @param integer $p_user_id A valid user identifier.
* @return string
*/
function string_get_bug_view_url_with_fqdn($p_bug_id, $p_user_id = null)
{
return config_get('path') . string_get_bug_view_url($p_bug_id, $p_user_id);
}
开发者ID:derrickweaver,项目名称:mantisbt,代码行数:12,代码来源:string_api.php
示例5: GetBugSmybols
/**
* checks relationships for a bug and assign relevant symbols
*
* @author Rainer Dierck
* @param $bugId
*/
public static function GetBugSmybols($bugId, $p_newline = false)
{
$t_text = '';
$bugStatus = bug_get_field($bugId, 'status');
$allRelationships = relationship_get_all($bugId, $t_show_project);
$allRelationshipsCount = count($allRelationships);
$stopFlag = false;
$forbiddenFlag = false;
$warningFlag = false;
$bugEta = bug_get_field($bugId, 'eta');
$useEta = $bugEta != ETA_NONE && config_get('enable_eta');
$stopAltText = "";
$forbiddenAltText = "";
$warningAltText = "";
$href = string_get_bug_view_url($bugId) . '#relationships_open';
for ($index = 0; $index < $allRelationshipsCount; $index++) {
$relationShip = $allRelationships[$index];
if ($bugId == $relationShip->src_bug_id) {
# root bug is in the src side, related bug in the dest side
$destinationBugId = $relationShip->dest_bug_id;
$relationshipDescription = relationship_get_description_src_side($relationShip->type);
} else {
# root bug is in the dest side, related bug in the src side
$destinationBugId = $relationShip->src_bug_id;
$relationshipDescription = relationship_get_description_dest_side($relationShip->type);
}
# get the information from the related bug and prepare the link
$destinationBugStatus = bug_get_field($destinationBugId, 'status');
if ($bugStatus < CLOSED && $destinationBugStatus < CLOSED && $relationShip->type != BUG_REL_NONE) {
if ($relationShip->type == BUG_DEPENDANT) {
if ($bugId == $relationShip->src_bug_id) {
// Stop or Forbidden
if ($bugStatus == $destinationBugStatus) {
// Stop
if ($stopAltText != "") {
$stopAltText .= ", ";
}
if (!$stopFlag) {
$stopAltText .= trim(utf8_str_pad($relationshipDescription, 20)) . ' ';
}
$stopAltText .= string_display_line(bug_format_id($destinationBugId));
$stopFlag = true;
}
if ($bugStatus > $destinationBugStatus) {
// Forbidden
if ($forbiddenAltText != "") {
$forbiddenAltText .= ", ";
}
if (!$forbiddenFlag) {
$forbiddenAltText .= trim(utf8_str_pad($relationshipDescription, 20)) . ' ';
}
$forbiddenAltText .= string_display_line(bug_format_id($destinationBugId));
$forbiddenFlag = true;
}
} else {
// Warning
if ($bugStatus < $destinationBugStatus) {
// Warning
if ($warningAltText != "") {
$warningAltText .= ", ";
}
if (!$warningFlag) {
$warningAltText .= trim(utf8_str_pad($relationshipDescription, 20)) . ' ';
}
$warningAltText .= string_display_line(bug_format_id($destinationBugId));
$warningFlag = true;
}
}
}
}
}
//if ( $useEta )
//{ // RELATIONSHIPS_UTILS_PLUGIN_URL
// $t_text .= '<img border="0" width="16" height="16" src="' . RELATIONSHIPS_UTILS_PLUGIN_URL . 'clock.png' . '" alt="clock" />';
//}
if ($forbiddenFlag) {
if ($p_newline && !is_blank($t_text)) {
$t_text .= '<br/>' . "\n";
}
$t_text .= '<a href="' . $href . '"><img border="0" width="16" height="16" src="' . RELATIONSHIPS_UTILS_PLUGIN_URL . 'sign_forbidden.png" alt="' . $forbiddenAltText . '" title="' . $forbiddenAltText . '" /></a>';
}
if ($stopFlag) {
if ($p_newline && !is_blank($t_text)) {
$t_text .= '<br/>' . "\n";
}
$t_text .= '<a href="' . $href . '"><img border="0" width="16" height="16" src="' . RELATIONSHIPS_UTILS_PLUGIN_URL . 'sign_stop.png" alt="' . $stopAltText . '" title="' . $stopAltText . '" /></a>';
}
if ($warningFlag) {
if ($p_newline && !is_blank($t_text)) {
$t_text .= '<br/>' . "\n";
}
$t_text .= '<a href="' . $href . '"><img border="0" width="16" height="16" src="' . RELATIONSHIPS_UTILS_PLUGIN_URL . 'sign_warning.png" alt="' . $warningAltText . '" title="' . $warningAltText . '" /></a>';
}
return $t_text;
//.........这里部分代码省略.........
开发者ID:QuestorX,项目名称:MantisBT-Plugin.RelationshipColumnView,代码行数:101,代码来源:RelationshipsUtils.php
示例6: print_successful_redirect_to_bug
function print_successful_redirect_to_bug($p_bug_id)
{
$t_url = string_get_bug_view_url($p_bug_id, auth_get_current_user_id());
print_successful_redirect($t_url);
}
开发者ID:nextgens,项目名称:mantisbt,代码行数:5,代码来源:print_api.php
示例7: relationship_get_details
/**
* return formatted string with all the details on the requested relationship
* @param integer $p_bug_id A bug identifier.
* @param BugRelationshipData $p_relationship A bug relationship object.
* @param boolean $p_html Whether to return html or text output.
* @param boolean $p_html_preview Whether to include style/hyperlinks - if preview is false, we prettify the output.
* @param boolean $p_show_project Show Project details.
* @return string
*/
function relationship_get_details($p_bug_id, BugRelationshipData $p_relationship, $p_html = false, $p_html_preview = false, $p_show_project = false)
{
$t_summary_wrap_at = utf8_strlen(config_get('email_separator2')) - 28;
$t_icon_path = config_get('icon_path');
if ($p_bug_id == $p_relationship->src_bug_id) {
# root bug is in the source side, related bug in the destination side
$t_related_bug_id = $p_relationship->dest_bug_id;
$t_related_project_name = project_get_name($p_relationship->dest_project_id);
$t_relationship_descr = relationship_get_description_src_side($p_relationship->type);
} else {
# root bug is in the dest side, related bug in the source side
$t_related_bug_id = $p_relationship->src_bug_id;
$t_related_project_name = project_get_name($p_relationship->src_project_id);
$t_relationship_descr = relationship_get_description_dest_side($p_relationship->type);
}
# related bug not existing...
if (!bug_exists($t_related_bug_id)) {
return '';
}
# user can access to the related bug at least as a viewer
if (!access_has_bug_level(VIEWER, $t_related_bug_id)) {
return '';
}
if ($p_html_preview == false) {
$t_td = '<td>';
} else {
$t_td = '<td class="print">';
}
# get the information from the related bug and prepare the link
$t_bug = bug_get($t_related_bug_id, false);
$t_status_string = get_enum_element('status', $t_bug->status, auth_get_current_user_id(), $t_bug->project_id);
$t_resolution_string = get_enum_element('resolution', $t_bug->resolution, auth_get_current_user_id(), $t_bug->project_id);
$t_relationship_info_html = $t_td . string_no_break($t_relationship_descr) . ' </td>';
if ($p_html_preview == false) {
$t_relationship_info_html .= '<td><a href="' . string_get_bug_view_url($t_related_bug_id) . '">' . string_display_line(bug_format_id($t_related_bug_id)) . '</a></td>';
$t_relationship_info_html .= '<td><span class="issue-status" title="' . string_attribute($t_resolution_string) . '">' . string_display_line($t_status_string) . '</span></td>';
} else {
$t_relationship_info_html .= $t_td . string_display_line(bug_format_id($t_related_bug_id)) . '</td>';
$t_relationship_info_html .= $t_td . string_display_line($t_status_string) . ' </td>';
}
$t_relationship_info_text = utf8_str_pad($t_relationship_descr, 20);
$t_relationship_info_text .= utf8_str_pad(bug_format_id($t_related_bug_id), 8);
# get the handler name of the related bug
$t_relationship_info_html .= $t_td;
if ($t_bug->handler_id > 0) {
$t_relationship_info_html .= string_no_break(prepare_user_name($t_bug->handler_id));
}
$t_relationship_info_html .= ' </td>';
# add project name
if ($p_show_project) {
$t_relationship_info_html .= $t_td . string_display_line($t_related_project_name) . ' </td>';
}
# add summary
if ($p_html == true) {
$t_relationship_info_html .= $t_td . string_display_line_links($t_bug->summary);
if (VS_PRIVATE == $t_bug->view_state) {
$t_relationship_info_html .= sprintf(' <img src="%s" alt="(%s)" title="%s" />', $t_icon_path . 'protected.gif', lang_get('private'), lang_get('private'));
}
} else {
if (utf8_strlen($t_bug->summary) <= $t_summary_wrap_at) {
$t_relationship_info_text .= string_email_links($t_bug->summary);
} else {
$t_relationship_info_text .= utf8_substr(string_email_links($t_bug->summary), 0, $t_summary_wrap_at - 3) . '...';
}
}
# add delete link if bug not read only and user has access level
if (!bug_is_readonly($p_bug_id) && !current_user_is_anonymous() && $p_html_preview == false) {
if (access_has_bug_level(config_get('update_bug_threshold'), $p_bug_id)) {
$t_relationship_info_html .= ' [<a class="small" href="bug_relationship_delete.php?bug_id=' . $p_bug_id . '&rel_id=' . $p_relationship->id . htmlspecialchars(form_security_param('bug_relationship_delete')) . '">' . lang_get('delete_link') . '</a>]';
}
}
$t_relationship_info_html .= ' </td>';
$t_relationship_info_text .= "\n";
if ($p_html_preview == false) {
# 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);
$t_relationship_info_html = '<tr class="' . $t_status_label . '">' . $t_relationship_info_html . '</tr>' . "\n";
} else {
$t_relationship_info_html = '<tr>' . $t_relationship_info_html . '</tr>';
}
if ($p_html == true) {
return $t_relationship_info_html;
} else {
return $t_relationship_info_text;
}
}
开发者ID:derrickweaver,项目名称:mantisbt,代码行数:95,代码来源:relationship_api.php
示例8: print_successful_redirect_to_bug
/**
* Get a view URL for the bug id based on the user's preference and
* call print_successful_redirect() with that URL
*
* @param integer $p_bug_id A bug identifier.
* @return void
*/
function print_successful_redirect_to_bug($p_bug_id)
{
$t_url = string_get_bug_view_url($p_bug_id);
print_successful_redirect($t_url);
}
开发者ID:gtn,项目名称:mantisbt,代码行数:12,代码来源:print_api.php
示例9: history_log_event
}
if ($t_bug_data->resolution != config_get('default_bug_resolution')) {
history_log_event($t_bug_id, 'resolution', config_get('default_bug_resolution'));
}
form_security_purge('bug_report');
html_page_top1();
if (!$f_report_stay) {
html_meta_redirect('view_all_bug_page.php');
}
html_page_top2();
?>
<br />
<div align="center">
<?php
echo lang_get('operation_successful') . '<br />';
print_bracket_link(string_get_bug_view_url($t_bug_id), sprintf(lang_get('view_submitted_bug_link'), $t_bug_id));
print_bracket_link('view_all_bug_page.php', lang_get('view_bugs_link'));
if ($f_report_stay) {
?>
<p>
<form method="post" action="<?php
echo string_get_bug_report_url();
?>
">
<?php
# CSRF protection not required here - form does not result in modifications
?>
<input type="hidden" name="category_id" value="<?php
echo string_attribute($t_bug_data->category_id);
?>
" />
开发者ID:fur81,项目名称:zofaxiopeu,代码行数:31,代码来源:bug_report.php
示例10: print_bug_link
?>
<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) {
echo '<img src="' . $t_icon_path . 'protected.gif" width="8" height="15" alt="' . lang_get('private') . '" />';
}
?>
</span>
</td>
<?php
# -- Summary --
开发者ID:jin255ff,项目名称:company_website,代码行数:31,代码来源:my_view_inc.php
示例11: print_column_attachment_count
/**
*
* @param BugData $p_bug bug obect
* @param int $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
* @return null
* @access public
*/
function print_column_attachment_count($p_bug, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE)
{
global $t_icon_path;
# Check for attachments
$t_attachment_count = 0;
if (file_can_view_bug_attachments($p_bug->id)) {
$t_attachment_count = file_bug_attachment_count($p_bug->id);
}
echo '<td class="center column-attachments">';
if ($t_attachment_count > 0) {
$t_href = string_get_bug_view_url($p_bug->id) . '#attachments';
$t_href_title = sprintf(lang_get('view_attachments_for_issue'), $t_attachment_count, $p_bug->id);
if (config_get('show_attachment_indicator')) {
$t_alt_text = $t_attachment_count . lang_get('word_separator') . lang_get('attachments');
echo "<a href=\"{$t_href}\" title=\"{$t_href_title}\"><img src=\"{$t_icon_path}attachment.png\" alt=\"{$t_alt_text}\" title=\"{$t_alt_text}\" /></a>";
} else {
echo "<a href=\"{$t_href}\" title=\"{$t_href_title}\">{$t_attachment_count}</a>";
}
} else {
echo ' ';
}
echo "</td>\n";
}
开发者ID:kaos,项目名称:mantisbt,代码行数:30,代码来源:columns_api.php
示例12: print_bug_link
?>
<td class="center" valign="top" width ="0" nowrap="nowrap">
<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 href="' . string_get_bug_update_url($t_bug->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($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 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') . '" />';
}
?>
</span>
</td>
<?php
# -- Summary --
?>
<td class="left" valign="top" width="100%">
开发者ID:Tarendai,项目名称:spring-website,代码行数:31,代码来源:my_view_inc.php
示例13: relationship_get_details
function relationship_get_details($p_bug_id, $p_relationship, $p_html = false, $p_html_preview = false, $p_show_project = false)
{
$t_summary_wrap_at = strlen(config_get('email_separator2')) - 28;
$t_icon_path = config_get('icon_path');
$p_user_id = auth_get_current_user_id();
if ($p_bug_id == $p_relationship->src_bug_id) {
# root bug is in the src side, related bug in the dest side
$t_related_bug_id = $p_relationship->dest_bug_id;
$t_related_project_name = project_get_name($p_relationship->dest_project_id);
$t_relationship_descr = relationship_get_description_src_side($p_relationship->type);
} else {
# root bug is in the dest side, related bug in the src side
$t_related_bug_id = $p_relationship->src_bug_id;
$t_related_project_name = project_get_name($p_relationship->src_project_id);
$t_relationship_descr = relationship_get_description_dest_side($p_relationship->type);
}
# related bug not existing...
if (!bug_exists($t_related_bug_id)) {
return '';
}
# user can access to the related bug at least as a viewer
if (!access_has_bug_level(VIEWER, $t_related_bug_id)) {
return '';
}
if ($p_html_preview == false) {
$t_td = '<td>';
} else {
$t_td = '<td class="print">';
}
# get the information from the related bug and prepare the link
$t_bug = bug_prepare_display(bug_get($t_related_bug_id, true));
$t_status = string_attribute(get_enum_element('status', $t_bug->status));
$t_resolution = string_attribute(get_enum_element('resolution', $t_bug->resolution));
$t_relationship_info_html = $t_td . '<nobr>' . $t_relationship_descr . '</nobr> </td>';
if ($p_html_preview == false) {
$t_relationship_info_html .= '<td><a href="' . string_get_bug_view_url($t_related_bug_id) . '">' . bug_format_id($t_related_bug_id) . '</a></td>';
$t_relationship_info_html .= '<td><a title="' . $t_resolution . '"><u>' . $t_status . '</u> </a></td>';
} else {
$t_relationship_info_html .= $t_td . bug_format_id($t_related_bug_id) . '</td>';
$t_relationship_info_html .= $t_td . $t_status . ' </td>';
}
$t_relationship_info_text = str_pad($t_relationship_descr, 20);
$t_relationship_info_text .= str_pad(bug_format_id($t_related_bug_id), 8);
# get the handler name of the related bug
$t_relationship_info_html .= $t_td;
if ($t_bug->handler_id > 0) {
$t_relationship_info_html .= '<nobr>' . prepare_user_name($t_bug->handler_id) . '</nobr>';
}
$t_relationship_info_html .= ' </td>';
# add project name
if ($p_show_project) {
$t_relationship_info_html .= $t_td . $t_related_project_name . ' </td>';
}
# add summary
$t_relationship_info_html .= $t_td . $t_bug->summary;
if (VS_PRIVATE == $t_bug->view_state) {
$t_relationship_info_html .= sprintf(' <img src="%s" alt="(%s)" title="%s" />', $t_icon_path . 'protected.gif', lang_get('private'), lang_get('private'));
}
if (strlen($t_bug->summary) <= $t_summary_wrap_at) {
$t_relationship_info_text .= $t_bug->summary;
} else {
$t_relationship_info_text .= substr($t_bug->summary, 0, $t_summary_wrap_at - 3) . '...';
}
# add delete link if bug not read only and user has access level
if (!bug_is_readonly($p_bug_id) && !current_user_is_anonymous() && $p_html_preview == false) {
if (access_has_bug_level(config_get('update_bug_threshold'), $p_bug_id)) {
$t_relationship_info_html .= " [<a class=\"small\" href=\"bug_relationship_delete.php?bug_id={$p_bug_id}&rel_id={$p_relationship->id}\">" . lang_get('delete_link') . '</a>]';
}
}
$t_relationship_info_html .= ' </td>';
$t_relationship_info_text .= "\n";
if ($p_html_preview == false) {
$t_relationship_info_html = '<tr bgcolor="' . get_status_color($t_bug->status) . '">' . $t_relationship_info_html . '</tr>' . "\n";
} else {
$t_relationship_info_html = '<tr>' . $t_relationship_info_html . '</tr>';
}
if ($p_html == true) {
return $t_relationship_info_html;
} else {
return $t_relationship_info_text;
}
}
开发者ID:centaurustech,项目名称:BenFund,代码行数:82,代码来源:relationship_api.php
示例14: foreach
?>
"><?php
echo '<h2 style="background-color:' . $column['color'] . '">' . $title . ' (' . $t_bug_count . ')';
if ($column['wip_limit'] > 0) {
echo " Limit: " . $column['wip_limit'];
}
echo ' </h2>';
if (!empty($rows)) {
$i = 0;
foreach ($rows as $row) {
if ($i < 150) {
$t_bug = $row;
echo '<div data-userid="' . $t_current_user_id . '" data-ticketid="' . $t_bug->id . '" data-projectid="' . $t_bug->project_id . '" class="card ' . ($i % 2 == 1 ? 'cardOdd' : 'cardEven') . ' card' . category_full_name($t_bug->category_id, false) . '">';
echo icon_get_status_icon($t_bug->priority);
echo ' <a href="' . string_get_bug_view_url($t_bug->id) . '" class="bugLink">' . string_display_line_links($t_bug->summary) . '</a>';
echo ' <a href="' . string_get_bug_view_url($t_bug->id) . '" class="bugLink right"> #' . $t_bug->id . '</a>';
$priority = get_enum_element('priority', $t_bug->priority);
/*
echo '<div class="info">';
echo '<img src="images/plus.png" alt="'.$bug_desc_title.'" title="'.$bug_desc_title.'" border="0"/>';
echo bug_get_text_field($t_bug->id, 'description');
echo string_display_line_links( $t_bug->summary );
echo project_get_name( $t_bug->project_id );
if( !bug_is_readonly( $t_bug->id ) && access_has_bug_level( $t_update_bug_threshold, $t_bug->id ) ) {
echo '<a href="' . string_get_bug_update_url( $t_bug->id ) . '"><img border="0" src="plugins/MantisKanban/files/pencil.png' . '" alt="' . lang_get( 'update_bug_button' ) . '" /></a>';
echo '<br>' . kanban_ajax_button_bug_change_status( $t_bug->id, $t_bug->project_id, $t_current_user_id );
}
// Check for attachments
$t_attachment_count = 0;
if(( file_can_view_bug_attachments( $t_bug->id ) ) ) {
开发者ID:aberad,项目名称:MantisKanban,代码行数:31,代码来源:kanban_page.php
示例15: access_denied
}
if (!file_allow_bug_upload($f_bug_id)) {
access_denied();
}
access_ensure_bug_level(config_get('upload_bug_file_threshold'), $f_bug_id);
// Process array of files to upload
for ($i = 0; $i < count($f_files); $i++) {
if (!empty($f_files[$i]['name'])) {
$t_file['name'] = $f_files[$i]['name'];
$t_file['tmp_name'] = $f_files[$i]['tmp_name'];
$t_file['type'] = $f_files[$i]['type'];
$t_file['error'] = $f_files[$i]['error'];
$t_file['size'] = $f_files[$i]['size'];
file_add($f_bug_id, $t_file, 'bug');
}
}
form_security_purge('bug_file_add');
# Determine which view page to redirect back to.
$t_redirect_url = string_get_bug_view_url($f_bug_id);
html_page_top(null, $t_redirect_url);
?>
<br />
<div align="center">
<?php
echo lang_get('operation_successful') . '<br />';
print_bracket_link($t_redirect_url, lang_get('proceed'));
?>
</div>
<?php
html_page_bottom();
开发者ID:danzasphere,项目名称:PastePicture,代码行数:31,代码来源:bug_file_add.php
示例16: lang_get
if (VS_PRIVATE == $t_bug->view_state) {
echo '<img src="' . $t_icon_path . 'protected.gif" width="8" height="15" alt="' . lang_get('private') . '" />';
}
?>
</span>
</td>
<?php
# -- Summary --
?>
<td class="left my-buglist-description">
<?php
if (ON == config_get('show_bug_project_links') && helper_get_current_project() != $t_bug->project_id) {
echo '<span class="small project">[', string_display_line(project_get_name($t_bug->project_id)), '] </span>';
}
$t_bug_url = string_get_bug_view_url($t_bug->id, null);
$t_bug_url_title = string_html_specialchars(sprintf(lang_get('label'), lang_get('issue_id') . $t_bug->id) . lang_get('word_separator') . $t_bug->summary);
echo "<span class=\"small summary\"><a href=\"{$t_bug_url}\" title=\"{$t_bug_url_title}\">{$t_summary}</a></span><br />";
?>
<?php
# type project name if viewing 'all projects' or bug is in subproject
echo '<span class="small category">', string_display_line(category_full_name($t_bug->category_id, true, $t_bug->project_id)), '</span>';
echo '<span class="small last-modified"> - ';
if ($t_bug->last_updated > strtotime('-' . $t_filter[FILTER_PROPERTY_HIGHLIGHT_CHANGED] . ' hours')) {
echo '<strong>' . $t_last_updated . '</strong>';
} else {
echo $t_last_updated;
}
echo '</span>';
?>
</td>
开发者ID:N0ctrnl,项目名称:mantisbt,代码行数:31,代码来源:my_view_inc.php
示例17: email_bug_reminder
}
$result = email_bug_reminder( $f_to, $f_bug_id, $f_body );
# Add reminder as bugnote if store reminders option is ON.
if ( ON == config_get( 'store_reminders' ) ) {
if ( count( $f_to ) > 50 ) { # too many recipients to log, truncate the list
$t_to = array();
for ( $i=0; $i<50; $i++ ) {
$t_to[] = $f_to[$i];
}
$f_to = $t_to;
}
$t_attr = '|' . implode( '|', $f_to ) . '|';
bugnote_add( $f_bug_id, $f_body, 0, config_get( 'default_reminder_view_status' ) == VS_PRIVATE, REMINDER, $t_attr, NULL, FALSE );
}
form_security_purge( 'bug_reminder' );
html_page_top( null, string_get_bug_view_url( $f_bug_id ) );
?>
<br />
<div>
<?php
echo lang_get( 'operation_successful' ).'<br />';
print_bracket_link( string_get_bug_view_url( $f_bug_id ), lang_get( 'proceed' ) );
?>
</div>
<?php
html_page_bottom();
开发者ID:rombert,项目名称:mantisbt,代码行数:30,代码来源:bug_reminder.php
示例18: form_security_validate
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Notes: Based on the Time Tracking plugin by Elmar:
2005 by Elmar Schumacher - GAMBIT Consulting GmbH
http://www.mantisbt.org/forums/viewtopic.php?f=4&t=589
*/
form_security_validate('plugin_TimeTracking_delete_record');
$f_bug_id = gpc_get_int('bug_id');
$f_delete_id = gpc_get_int('delete_id');
$table = plugin_table('data', 'TimeTracking');
$query_pull_timerecords = "SELECT * FROM {$table} WHERE id = {$f_delete_id} ORDER BY timestamp DESC";
$result_pull_timerecords = db_query($query_pull_timerecords);
$row = db_fetch_array($result_pull_timerecords);
$t_user_id = auth_get_current_user_id();
if ($row[user] == $t_user_id) {
access_ensure_bug_level(plugin_config_get('admin_own_threshold'), $f_bug_id);
} else {
access_ensure_bug_level(plugin_config_get('admin_threshold'), $f_bug_id);
}
$query_delete = "DELETE FROM {$table} WHERE id = {$f_delete_id}";
db_query($query_delete);
history_log_event_direct($f_bug_id, plugin_lang_get('history') . " " . plugin_lang_get('deleted'), date(config_get("short_date_format"), strtotime($row["expenditure_date"])) . ": " . number_format($row["hours"], 2, ',', '.') . " h.", "deleted", $user);
form_security_purge('plugin_TimeTracking_delete_record');
$t_url = string_get_bug_view_url($f_bug_id, auth_get_current_user_id());
print_successful_redirect($t_url . "#timerecord");
开发者ID:Hacho25,项目名称:timetracking,代码行数:31,代码来源:delete_record.php
示例19: lang_get
?>
<table>
<thead>
<tr>
<td class="form-title" colspan="3">
<input type="hidden" name="bug_id" value="<?php
echo $t_bug_id;
?>
" />
<?php
echo lang_get('updating_bug_advanced_title');
?>
</td>
<td class="right" colspan="3">
<?php
print_bracket_link(string_get_bug_view_url($t_bug_id), lang_get('back_to_bug_link'));
?>
</td>
</tr>
<?php
# Submit Button
if ($t_top_buttons_enabled) {
?>
<tr>
<td class="center" colspan="6">
<input ', helper_get_tab_index(), '
type="submit" class="button"
value="', lang_get( 'update_information_button' ), '" />
</td>
</tr>
开发者ID:N0ctrnl,项目名称:mantisbt,代码行数:31,代码来源:bug_update_page.php
示例20: GetRelationshipContent
function GetRelationshipContent($p_bug_id, $p_html = false, $p_html_preview = false, $p_summary = false, $p_icons = false)
{
$t_summary = '';
$t_icons = '';
$t_show_project = false;
$t_summary_wrap_at = utf8_strlen(config_get('email_separator2')) - 10;
$t_relationship_all = relationship_get_all($p_bug_id, $t_show_project);
$t_relationship_all_count = count($t_relati
|
请发表评论