6 include_once($path_to_root . "/includes/session.inc");
8 page(_("View Dimension"), true);
10 include_once($path_to_root . "/includes/date_functions.inc");
11 include_once($path_to_root . "/includes/data_checks.inc");
13 include_once($path_to_root . "/dimensions/includes/dimensions_db.inc");
14 include_once($path_to_root . "/dimensions/includes/dimensions_ui.inc");
16 //-------------------------------------------------------------------------------------------------
18 if ($_GET['trans_no'] != "")
20 $id = $_GET['trans_no'];
23 display_heading(systypes::name(systypes::dimension()) . " # " . $id);
25 $myrow = get_dimension($id);
27 if (strlen($myrow[0]) == 0)
29 echo _("The work order number sent is not valid.");
33 start_table($table_style);
35 $th = array(_("#"), _("Reference"), _("Name"), _("Type"), _("Date"), _("Due Date"));
39 label_cell($myrow["id"]);
40 label_cell($myrow["reference"]);
41 label_cell($myrow["name"]);
42 label_cell($myrow["type_"]);
43 label_cell(sql2date($myrow["date_"]));
44 label_cell(sql2date($myrow["due_date"]));
47 comments_display_row(systypes::dimension(), $id);
51 if ($myrow["closed"] == true)
53 echo "<br>" . _("This dimension is closed.") . "<br>";
56 display_dimension_payments($id);