Fixed GET continuation after timeot and logout page access without authorization.
[fa-stable.git] / gl / manage / bank_accounts.php
index 20f492b73730aa18480eae05e789aca566004921..c70fc9e9aa14059b2eb01496ce2ccecb1da118f1 100644 (file)
@@ -9,8 +9,8 @@
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
     See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
 ***********************************************************************/
-$page_security = 10;
-$path_to_root="../..";
+$page_security = 'SA_BANKACCOUNT';
+$path_to_root = "../..";
 include($path_to_root . "/includes/session.inc");
 
 page(_("Bank Accounts"));
@@ -123,7 +123,7 @@ while ($myrow = db_fetch($result))
        alt_table_row_color($k);
 
     label_cell($myrow["bank_account_name"], "nowrap");
-       label_cell(bank_account_types::name($myrow["account_type"]), "nowrap");
+       label_cell($bank_account_types[$myrow["account_type"]], "nowrap");
     label_cell($myrow["bank_curr_code"], "nowrap");
     label_cell($myrow["account_code"] . " " . $myrow["account_name"], "nowrap");
     label_cell($myrow["bank_name"], "nowrap");
@@ -166,7 +166,7 @@ text_row(_("Bank Account Name:"), 'bank_account_name', null, 50, 100);
 
 if ($is_editing) 
 {
-       label_row(_("Account Type:"), bank_account_types::name($_POST['account_type']));
+       label_row(_("Account Type:"), $bank_account_types[$_POST['account_type']]);
 } 
 else 
 {