Please find a survey that you wish to edit.
SearchSurvey($searchString, $isActiveDb); if($matchingSurveys instanceof Admin_ErrorObject) { $message = 'Following error occured while searching for surveys: '.$matchingSurveys->errorDescription.''; } else if(count($matchingSurveys) == 0) { $message = 'No surveys that matched the search criteria were found.'; } } //do stuff only if Search button has been hit. if (array_key_exists('btnSearch', $_REQUEST)) { PerformSearch(); } else if(array_key_exists('btnUpdate', $_REQUEST)) { $surveysToHide = explode(',', trim($_REQUEST['surveysToHide'], ', ')); $surveysToUnhide = explode(',', trim($_REQUEST['surveysToUnhide'], ', ')); $retval = $biz->SetSurveyAvailability($surveysToHide, $surveysToUnhide); if($retval instanceof Admin_ErrorObject) { $message = 'Following error occured while saving to the database: '.$retval->errorDescription.''; } else if($retval === true) { $message = 'Changes were successfully saved to the database.'; } else { $message = 'Nothing to update.'; } PerformSearch(); } $biz->CloseDatabaseConnection(); ?>
Please find a survey that you wish to edit.