*** empty log message ***
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Sat, 31 May 2008 12:13:08 +0000 (12:13 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Sat, 31 May 2008 12:13:08 +0000 (12:13 +0000)
dimensions/includes/dimensions_ui.inc
dimensions/view/view_dimension.php

index 7683712af7fc3552dffb0a31f415d48c95196d85..bc56479fd88e946f7a1eb379fd4ed4a23f2df916 100644 (file)
@@ -14,19 +14,19 @@ function display_dimension_payments($id)
 
     if (db_num_rows($result) == 0)
     {
-       echo _("There are no transactions for this dimension.") . "<br>";
-    } 
-    else 
+       display_note(_("There are no transactions for this dimension."));
+    }
+    else
     {
                display_heading2(_("Transactions for this Dimension"));
                start_table($table_style);
                $th = array(_("Type"), _("#"), _("Reference"),
                        _("Date"), _("Debit"), _("Credit"));
-               table_header($th);      
+               table_header($th);
 
         $total = $k = 0;
 
-        while ($myrow = db_fetch($result)) 
+        while ($myrow = db_fetch($result))
         {
 
                        alt_table_row_color($k);
index ce56248426fbe459abc63d2653d62cc554804a46..5929432cbf86ef2be1fe58a3852e1fa326cd70a4 100644 (file)
@@ -5,7 +5,10 @@ $path_to_root="../..";
 
 include_once($path_to_root . "/includes/session.inc");
 
-page(_("View Dimension"), true);
+$js = "";
+if ($use_popup_windows)
+       $js .= get_js_open_window(800, 500);
+page(_("View Dimension"), true, false, "", $js);
 
 include_once($path_to_root . "/includes/date_functions.inc");
 include_once($path_to_root . "/includes/data_checks.inc");
@@ -15,7 +18,7 @@ include_once($path_to_root . "/dimensions/includes/dimensions_ui.inc");
 
 //-------------------------------------------------------------------------------------------------
 
-if ($_GET['trans_no'] != "") 
+if ($_GET['trans_no'] != "")
 {
        $id = $_GET['trans_no'];
 }
@@ -24,7 +27,7 @@ display_heading(systypes::name(systypes::dimension()) . " # " . $id);
 
 $myrow = get_dimension($id);
 
-if (strlen($myrow[0]) == 0) 
+if (strlen($myrow[0]) == 0)
 {
        echo _("The work order number sent is not valid.");
     exit;
@@ -48,9 +51,9 @@ comments_display_row(systypes::dimension(), $id);
 
 end_table();
 
-if ($myrow["closed"] == true) 
+if ($myrow["closed"] == true)
 {
-       echo "<br>" . _("This dimension is closed.") . "<br>";
+       display_note(_("This dimension is closed."));
 }
 
 display_dimension_payments($id);