예제 #1
0
             $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);
     $output = '<select name="project_id' . $row . '" id="project_id' . $row . '" onchange="changeflag()" class="dropdown_menus">' . $output . '</select>';
     $error = '';
     break;
 case 'gettask':
     $id = COM_applyFilter($_REQUEST['id'], true);
     $row = COM_applyFilter($_REQUEST['row'], true);
     $ts = new nexTime();