} if($_REQUEST['filter'] == "all"){ $projects = $project->getMyProjects($user_id, FALSE); }else{ $_REQUEST['filter'] = "pending"; $projects = $project->getMyProjects($user_id, TRUE); } if($projects === FALSE){ $error_msg .= "Could not retrieve your project list!\n"; debug_message($project->getLastError()); } $task = new SI_Task(); $tasks = $task->getUpcoming($user_id); if($tasks === FALSE){ $error_msg .= "Could not retrieve Upcoming Tasks!\n"; debug_message($task->getLastError()); } $company = new SI_Company(); $companies = $company->getCompanysWithBalance(); if($companies === FALSE){ $error_msg .= "Could not retrieve Outstanding Hours list!\n"; debug_message($company->getLastError()); } $user = new SI_User(); $users = $user->getUnpaidUsers(); if($users === FALSE){
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, 5); if ($transactions === FALSE) { $error_msg .= "Error getting your last 5 transactions!"; debug_message($user->getLastError()); } $task = new SI_Task(); $tasks = $task->getUpcoming($user->id, 0, 0, 10); if ($tasks === FALSE) { $error_msg .= "Could not retrieve Upcoming Tasks!\n"; debug_message($task->getLastError()); } $title = "Home"; require 'header.php'; ?> <script> function reloadPage(selObj){ var user_id = selObj.options[selObj.selectedIndex].value; window.location.href = "<?php echo $_SERVER['PHP_SELF']; ?> ?filter=<?php echo $_REQUEST['filter'];