<?php  session_start();    ?>
<?php include "build/logout_form.inc.php"; ?>
<?php include "build/login_form.inc.php"; ?>
<?php include "build/phpself.inc.php"; ?>
<?php include "build/checksetform.inc.php"; ?>
<?php if  (($_SESSION['LOGIN']==TRUE) and ($_SESSION['PERMISION']==Administrator) )
{ ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=windows-1250">
    <meta name="generator" content="PSPad editor, www.pspad.com">
    <title>Administration site</title>
    <link rel="stylesheet" type="text/css" href="files/adminstylesheet.css">
    <?php require "build/calender_setup.inc.php"; ?>
    
  <body>
  <?php
   if(!IsSet($_GET['NEWWIN']) && !IsSet($_POST['NEWWIN']))
{ ?>


  <center>
  <?php echo($_SESSION['ACTUALFORM']);?>
        <div id="global">
          <div id="top">
          <a class="logout" href="index.php<?php  echo("?logout=1" );?>"> <?php echo("Odhlásit uživatele ".$_SESSION["USER"]);?></a>
          </div>
          <div id="head">
            <div class="head">
              <table class="head" style="width:1020px">
                <tr>
                    <td style="text-align:center;width:510px;">
                        <a href="index.php?NEXTFORM=4">Uživatel</a>
                    </td>
                    <td style="text-align:center;width:510px;">
            <?php if ($_SESSION['PERMISION']=="Administrator") 
                       echo (" <a href=\"admin_page.php?NEXTFORM=3\">Administrátor</a>");
   
             ?>  
                    </td>
                </tr>  
            </table> 
             </div>        
          </div>
          <div id="leftmenu">
         
          
          
         
              <?php include "build/left_menu.inc.php"; ?>
          </div>
          <div id="content">
          <?php include "build/contentswitch.inc.php"; ?>
        
          </div>
      
        </div>
         </center>
  <?php
   }else{
    require "build/contentswitch.inc.php";
   }
  ?>       
  
  </body>
</html>
<?php

 } ?>