assign_vars(array( 'L_SEASON' => _SEASON, 'L_BOWL' => _BOWL, 'L_OPP' => _OPP, 'L_RES' => _RES )); if (!Cache::array_load('history',$module_name)) { $result = $db->sql_query('SELECT season, bowl, oppontent, result FROM '.$prefix.'_sports_bowlrecord ORDER BY season ASC'); $history = $db->sql_fetchrowset($result); foreach($history as $bowl) { $cpgtpl->assign_block_vars('history',array( 'SEASON' => $bowl['season'], 'BOWL' => $bowl['bowl'], 'OPP' => $bowl['oppontent'], 'RES' => $bowl['result'] ) ); } Cache::array_save('history',$module_name,$history); unset($history); } else { foreach($history as $bowl) { $cpgtpl->assign_block_vars('history',array( 'SEASON' => $bowl['season'], 'BOWL' => $bowl['bowl'], 'OPP' => $bowl['oppontent'], 'RES' => $bowl['result'] ) ); } unset($bowl); } $cpgtpl->set_filenames(array('body' => 'bowl_history/index.html')); $cpgtpl->display('body');