6 include_once($path_to_root . "/includes/session.inc");
9 if ($use_popup_windows)
10 $js .= get_js_open_window(800, 500);
11 page(_("View Dimension"), true, false, "", $js);
13 include_once($path_to_root . "/includes/date_functions.inc");
14 include_once($path_to_root . "/includes/data_checks.inc");
16 include_once($path_to_root . "/dimensions/includes/dimensions_db.inc");
17 include_once($path_to_root . "/dimensions/includes/dimensions_ui.inc");
19 //-------------------------------------------------------------------------------------------------
21 if ($_GET['trans_no'] != "")
23 $id = $_GET['trans_no'];
26 display_heading(systypes::name(systypes::dimension()) . " # " . $id);
28 $myrow = get_dimension($id);
30 if (strlen($myrow[0]) == 0)
32 echo _("The work order number sent is not valid.");
36 start_table($table_style);
38 $th = array(_("#"), _("Reference"), _("Name"), _("Type"), _("Date"), _("Due Date"));
42 label_cell($myrow["id"]);
43 label_cell($myrow["reference"]);
44 label_cell($myrow["name"]);
45 label_cell($myrow["type_"]);
46 label_cell(sql2date($myrow["date_"]));
47 label_cell(sql2date($myrow["due_date"]));
50 comments_display_row(systypes::dimension(), $id);
54 if ($myrow["closed"] == true)
56 display_note(_("This dimension is closed."));
59 display_dimension_payments($id);