예제 #1
0
    echo '<tr class="print">';
    echo '<th class="print-category">', lang_get('additional_information'), '</th>';
    echo '<td class="print" colspan="5">', $t_additional_information, '</td>';
    echo '</tr>';
}
# Tagging
if ($t_show_tags) {
    echo '<tr class="print">';
    echo '<th class="print-category">', lang_get('tags'), '</th>';
    echo '<td class="print" colspan="5">';
    tag_display_attached($f_bug_id);
    echo '</td></tr>';
}
echo '<tr class="print">';
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']);
예제 #2
0
    echo '<tr class="print">';
    echo '<th class="print-category">', lang_get('additional_information'), '</th>';
    echo '<td class="print" colspan="5">', $t_additional_information, '</td>';
    echo '</tr>';
}
# Tagging
if ($t_show_tags) {
    echo "<tr class=\"print\">";
    echo '<th class="print-category">', lang_get('tags'), '</th>';
    echo '<td class="print" colspan="5">';
    tag_display_attached($f_bug_id);
    echo '</td></tr>';
}
echo "<tr class=\"print\">";
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']);