<?php
/**********************************************************************
***********************************************************************/
$page_security = 'SA_PROJECT_TRANSVIEW';
$path_to_root = "../..";

include($path_to_root . "/includes/session.inc");



include_once($path_to_root . "/includes/date_functions.inc");
include_once($path_to_root . "/includes/ui.inc");
include_once($path_to_root . "/gl/includes/gl_db.inc");
include_once($path_to_root . "/projects/includes/db/view_document_task_status_db.inc");
include_once($path_to_root . "/projects/includes/ui/view_document_task_status_ui.inc");
include_once($path_to_root . "/projects/includes/db/work_done_entry_details_db.inc");

include_once($path_to_root . "/petty_cash/includes/db/i_owe_you_db.inc");


$js = '';
if ($SysPrefs->use_popup_windows) {
	$js .= get_js_open_window(900, 500);
}

if (user_use_date_picker()) {
	$js .= get_js_date_picker();
}

page(_($help_context = "View Document Budget Status"), true, false, "", $js);


if (isset($_GET["trans_no"]))
{
	$trans_no = $_GET["trans_no"];
}
function display_row($name, $value)
{
    start_row();        
    label_cells($name, $value, "width=70px class='tableheader2'", "width=60px");
    end_row();
    
}



if (isset($_GET["type_id"]))
{
    $type_id = $_GET["type_id"];
}

if (isset($_GET["source_type_id"]))
{
    $source_type_id = $_GET["source_type_id"];
}
global $approval_statuses;


$task_costs_array = array();

build_task_cost_details_array($source_type_id, $trans_no, $task_costs_array);

display_document_task_status($task_costs_array);

br();

end_page(true, false, false, ST_MATERIAL_REQ, $trans_no);
?>