示例#1
0
  $page->error_page('TechCASH', 'techcash', $error_text);
  //require "$page->branch/not_supported.html";

} else {

  $fullname = get_fullname();
  $username = get_username();

  $account_id = $_REQUEST['id'];

  $techcash = new TechCash();
  $techcash->init();
  $account_name = $techcash->getAccountName($account_id);
  $mit_id = getMitID($techcash, $username);
  //$mit_id = "111010083";

  $transactions = $techcash->getLatestTransactions($mit_id, $account_id, 500);
  $current_cents =$techcash->getLatestBalance($mit_id, $account_id);
  $techcash->close();

  $current_balance = TechCash::dollar_string($current_cents);

  $transactions = TechCash::dollar_string_rows($transactions, array("APPRVALUEOFTRAN", "BALVALUEAFTERTRAN"));

  $previous_date = $transactions[count($transactions)-1]['UNIX_TRANDATE'];

  require "$page->branch/detail.html";
  $page->output();
}

?>