Clean up in function get_attachment_string() in attachments_db.inc
[fa-stable.git] / gl / view / bank_transfer_view.php
index 3ae52d961c102edf709e62a37100106d0192a026..32653a5f1b8f4fab35c294399b275e2f743256fa 100644 (file)
@@ -14,7 +14,7 @@ $path_to_root="../..";
 
 include($path_to_root . "/includes/session.inc");
 
-page(_("View Bank Transfer"), true);
+page(_($help_context = "View Bank Transfer"), true);
 
 include_once($path_to_root . "/includes/date_functions.inc");
 include_once($path_to_root . "/includes/ui.inc");
@@ -28,7 +28,7 @@ if (isset($_GET["trans_no"])){
 $result = get_bank_trans(ST_BANKTRANSFER, $trans_no);
 
 if (db_num_rows($result) != 2)
-       display_db_error("Bank transfer does not contain two records", $sql);
+       display_db_error("Bank transfer does not contain two records");
 
 $trans1 = db_fetch($result);
 $trans2 = db_fetch($result);
@@ -58,10 +58,13 @@ if ($from_trans['bank_curr_code'] != $to_trans['bank_curr_code'])
        $show_both_amounts = true;
 }
 
+if (!empty($SysPrefs->prefs['company_logo_on_views']))
+       company_logo_on_view();
+
 display_heading($systypes_array[ST_BANKTRANSFER] . " #$trans_no");
 
 echo "<br>";
-start_table("$table_style width=80%");
+start_table(TABLESTYLE, "width='80%'");
 
 start_row();
 label_cells(_("From Bank Account"), $from_trans['bank_account_name'], "class='tableheader2'");
@@ -91,5 +94,4 @@ end_table(1);
 
 is_voided_display(ST_BANKTRANSFER, $trans_no, _("This transfer has been voided."));
 
-end_page(true);
-?>
\ No newline at end of file
+end_page(true, false, false, ST_BANKTRANSFER, $trans_no);