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