コード例 #1
0
ファイル: tavlingsres.php プロジェクト: krillo/motiomera
            //get all the teams with median for the submitted company  Lagtoppen
            //print_r($foretagLagArray);
            $allaLag = array();
            //get all the teams with member data for the submitted company   Slutresultat inom lagen
            foreach ($foretagLagArray as $key => $lag) {
                $foretagMedlemArray = Tavling::getResultCompanyTeamMember($tid, $lag['lag_id']);
                array_push($allaLag, $foretagMedlemArray);
            }
            //print_r($allaLag);
            //get all members for the submitted company
            //Deltagartoppen  no limit - all members (-1)
            $allCompMembArray = Tavling::getResultAllMembers($tid, -1, $fid);
            //print_r($allCompMembArray);
            //get all members for the whole contest    Deltagartoppen
            //if the member ranks lower than DELTAGARTOPPEN_MAX then add her the the array
            $allMembArray = Tavling::getResultAllMembers($tid, DELTAGARTOPPEN_MAX);
            //print_r($allMembArray);
            $lagArray = Tavling::getResultTeam($tid);
            //get all the teams with median  Lagtoppen
            //print_r($foretagLagArray);
            $allForetagArray = Tavling::getResultCompany($tid, FORETAGSTOPPEN_MAX);
            //get all companys average   Foretagstoppen
            //print_r($allForetagArray);
            $foretag = Foretag::loadById($fid);
            break;
        default:
            throw new UserException('Något har gått fel', 'Prova igen senare eller rapportera felet till support@motiomera.se');
            break;
    }
}
$smarty->assign("foretagArray", $foretagArray);