<?php
session_start();
ob_start();
include "../config/define.php";
include "../config/conecta.php";
include "../config/classes.php";
include "../public/funcoes.php";
Usuario::verificaLogin();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pt-br" lang="pt-br">
    <head>
        <title>AdminRZ2 - Administração da Loja Virtual - <?= DOMINIO ?></title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="author" content="LH Web" />
        <meta name="language" content="pt-br" />

        <!--script type="text/javascript" src="<?= URLJS ?>jquery-1.3.2.min.js"></script-->

        <script type="text/javascript" src="<?= URLJS ?>jquery-ui/js/jquery-1.4.3.min.js"></script>
        <script type="text/javascript" src="<?= URLJS ?>jquery-ui/js/jquery-ui-1.8.6.custom.min.js"></script>
        <script type="text/javascript" src="<?= URLJS ?>funcoes.js"></script>
        <script type="text/javascript" src="<?= URLJS ?>admin/admin.js"></script>

        <?php
        // verifica se existe js da página
        $arrPhpSelf = explode('/', $_SERVER['PHP_SELF']);
        $scriptName = trim(strtolower(end($arrPhpSelf)));
        $auxName = explode('.', $scriptName);
        $scriptNameClear = $auxName[0];
        if (file_exists(PATHJS . 'admin/' . $scriptNameClear . '.js')) {
            echo '<script type="text/javascript" src="' . URLJS . 'admin/' . $scriptNameClear . '.js"></script>';
            echo "\n";
        }
        ?>

        <style type="text/css">
            <!--
            @import url("<?= URLCSS ?>reset.css");
            @import url("<?= URLCSS ?>admin.css");
            @import url("<?= URLJS ?>jquery-ui/css/blitzer/jquery-ui-1.8.6.custom.css");
            -->
        </style>

    </head>
    <body>

        <div id="topo">
            <div id="ola">
                Olá <?= $_SESSION['rz2']['admin']['usuario']['nome'] ?>
                &nbsp;
                <a href="<?= URLADMIN ?>logout.php" title="Sair">( SAIR )</a>
            </div>
        </div><!-- fecha topo -->
        <div id="central">
            <div id="menu">
                <?php include 'menu.php'; ?>
            </div><!-- fecha menu -->
            <div id="conteudo">