Exemplo n.º 1
0
* 
* @since 2004-06-05
* @author Christian Ehret <*****@*****.**> 
*/
$smartyType = "www";
include_once "../includes/default.inc.php";
$auth->is_authenticated();
include_once 'seasonclass.inc.php';
$season = new Season();
$smarty->assign("tpl_title", "Saisonzeitr&auml;ume verwalten");
$smarty->assign('tpl_nav', 'settings');
$smarty->assign('tpl_subnav', 'syssettings');
$smarty->assign('tpl_subnav2', 'season');
$smarty->assign('tpl_type', 'season');
if ($request->GetVar('frm_seasonid', 'post') !== $request->undefined) {
    if ($request->GetVar('frm_action', 'post') == 'edit') {
        $smarty->assign('tpl_editid', $request->GetVar('frm_seasonid', 'post'));
    } else {
        if ($request->GetVar('frm_action', 'post') == 'addnew') {
            $smarty->assign('tpl_addnew', 'true');
        } else {
            if ($request->GetVar('frm_action', 'post') == 'del') {
                $season->del($request->GetVar('frm_seasonid', 'post'));
            } else {
                $check = $season->saveupdate();
            }
        }
    }
}
$smarty->assign('tpl_season', $season->get());
$smarty->display('season.tpl');