示例#1
0
/**
 * Gets the sponsorship total for an issue
 * @param object $p_bug the bug
 * @return string
 * @access public
 */
function excel_format_sponsorship_total($p_bug)
{
    return excel_prepare_string($p_bug->sponsorship_total);
}
    echo excel_format_column_title(lang_get('username'));
}
echo excel_format_column_title(lang_get('timestamp'));
echo excel_format_column_title(lang_get('minutes'));
echo excel_format_column_title(lang_get('time_tracking_time_spent'));
if ($t_show_cost) {
    echo excel_format_column_title('cost');
}
echo excel_format_column_title('note');
echo '</Row>';
foreach ($t_billing_rows as $t_billing) {
    echo "\n<Row>\n";
    echo excel_prepare_number($t_billing['bug_id']);
    echo excel_prepare_string($t_billing['project_name']);
    echo excel_prepare_string($t_billing['bug_category']);
    echo excel_prepare_string($t_billing['bug_summary']);
    if ($t_show_realname) {
        echo excel_prepare_string($t_billing['reporter_realname']);
    } else {
        echo excel_prepare_string($t_billing['reporter_username']);
    }
    echo excel_prepare_string(date($t_date_format, $t_billing['date_submitted']));
    echo excel_prepare_number($t_billing['minutes']);
    echo excel_prepare_string($t_billing['duration']);
    if ($t_show_cost) {
        echo excel_prepare_string($t_billing['cost']);
    }
    echo excel_prepare_string($t_billing['note']);
    echo "</Row>\n";
}
echo excel_get_footer();
示例#3
0
/**
 * Gets the formatted due date.
 * @param $p_due_date The due date.
 * @returns The formatted due date.
 */
function excel_format_due_date($p_due_date)
{
    return excel_prepare_string(date(config_get('short_date_format'), $p_due_date));
}