Beispiel #1
0
$user = new SI_User();
if ($user->get($user_id) === FALSE) {
    $error_msg .= "Error getting user information!\n";
    debug_message($user->getLastError());
}
$balance = $user->getBalance();
if ($balance === FALSE) {
    $error_msg .= "Error getting your outstanding balance!";
    debug_message($loggedin_user->getLastError());
}
$transactions = $user->getTransactions(NULL, $trans_per_page, $_REQUEST['page'] * $trans_per_page);
if ($transactions === FALSE) {
    $error_msg .= "Error getting your transactions!";
    debug_message($user->getLastError());
}
$total_transactions = $user->getTransactionCount();
if ($total_transactions === FALSE) {
    $error_msg .= "Error getting transaction count!";
    debug_message($user->getLastError());
}
$checks = $user->getChecks(NULL, 5);
if ($checks === FALSE) {
    $error_msg .= "Error getting your last 5 checks!";
    debug_message($user->getLastError());
}
$total_pages = ceil($total_transactions / $trans_per_page);
$title = "Home";
require 'header.php';
?>
<SCRIPT>
function reloadPage(selObj){