コード例 #1
0
                        }
                    }
                }
            }
        }
    }
    // Start main content
    draw_title_bar(prepare_breadcrumbs(array(_MODULES => '', _BANNERS => '', _BANNERS_MANAGEMENT => '', ucfirst($action) => '')));
    //if($objSession->IsMessage('notice')) echo $objSession->GetMessage('notice');
    echo $msg;
    draw_content_start();
    if ($mode == 'view') {
        $objBanners->DrawViewMode();
    } else {
        if ($mode == 'add') {
            $objBanners->DrawAddMode();
        } else {
            if ($mode == 'edit') {
                $objBanners->DrawEditMode($rid);
            } else {
                if ($mode == 'details') {
                    $objBanners->DrawDetailsMode($rid);
                }
            }
        }
    }
    draw_content_end();
} else {
    draw_title_bar(_ADMIN);
    draw_important_message(_NOT_AUTHORIZED);
}