rendered paste body<?php
/*********************************************
Bowl History for Dragonfly CMS
********************************************
Copyright © 2006 by Jonathan Steele
http://www.xfsunoles.com
This module is released under the terms and conditions
of the GNU GPL version 2 or any later version
**********************************************/
if (!defined('CPG_NUKE')) { die; }
$pagetitle .='Florida States Football Bowl History';
require_once('header.php');
$cpgtpl->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');