} if ($retval) { $error = 'Successfully approved all of the items you chose...'; $output = ''; $ret = $ts->generateApprovalTimesheetRows($_USER['uid'], $postedemp); $output = $ret[1]; } else { $error = 'Error! Database Error thrown.'; $output = ''; } } break; case 'getrejectionreason': $id = COM_applyFilter($_REQUEST['id'], true); $ts = new nexTime(); $output = $ts->getRejectionReasonById($id); $error = ''; break; case 'clearreject': $id = COM_applyFilter($_REQUEST['id'], true); $userid = COM_applyFilter($_REQUEST['uid'], true); $ts = new nexTime(); $ts->unRejectSingleItem($id); $output = generateTimesheet($userid); $error = ''; break; case 'getproject': $id = COM_applyFilter($_REQUEST['id'], true); $row = COM_applyFilter($_REQUEST['row'], true); $ts = new nexTime(); $output = $ts->getProjectDropDownFromActivityID($id);