public function executeAction(){ $app = Wow_Application::getInstance(); $criteria = new Wow_Criteria_Model; $userId = Wow_Utility::getGPValue('selectedRows'); $teamId = Wow_Utility::getGPValue('teamId'); $month = Wow_Utility::getGPValue('month'); $year = Wow_Utility::getGPValue('year'); if(isset($_POST['selectedRows'])){ $rows = $_POST['selectedRows']; foreach($rows as $key => $val){ $criteria = new Wow_Criteria_Model; $criteria->load($val); $criteria->userId = $userId; $criteria->teamId = $teamId; $criteria->month = $month; $criteria->year = $year; $criteria->metCriteria = 1; $criteria->save(); } } $results = Wow_Criteria_Model::getCriteriaMembers(); //$html = Wow_Nomination_View_Admin::CriteriaMembers($results); $html = Wow_Nomination_View_Site::CriteriaMembers($results); $app->document->addHtmlToId('content', $html); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)