Exemplo n.º 1
0
                        }
                    }
                }
            }
        }
    }
    // Start main content
    draw_title_bar(prepare_breadcrumbs(array(_GENERAL => '', _COUNTRIES_MANAGEMENT => '', ucfirst($action) => '')));
    //if($objSession->IsMessage('notice')) echo $objSession->GetMessage('notice');
    echo $msg;
    draw_content_start();
    if ($mode == 'view') {
        $objCountries->DrawViewMode();
    } else {
        if ($mode == 'add') {
            $objCountries->DrawAddMode();
        } else {
            if ($mode == 'edit') {
                $objCountries->DrawEditMode($rid);
            } else {
                if ($mode == 'details') {
                    $objCountries->DrawDetailsMode($rid);
                }
            }
        }
    }
    draw_content_end();
} else {
    draw_title_bar(_ADMIN);
    draw_important_message(_NOT_AUTHORIZED);
}