<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>MG POS</title>    
    <link href="<?php echo ROOT_HOST?>/public/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link href="<?php echo ROOT_HOST?>/public/css/select2/select2.css" rel="stylesheet">   
    <link href="<?php echo ROOT_HOST?>/public/css/select2/select2-bootstrap.css" rel="stylesheet">   
    <link href="<?php echo ROOT_HOST ?>/public/js/lib/bootstrap-fileinput/css/fileinput.css" rel="stylesheet" />    
    <link href="<?php echo ROOT_HOST?>/public/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
    <link href="<?php echo ROOT_HOST ?>/public/css/jquery-ui.theme.min.css" rel="stylesheet"/>      
    <link href="<?php echo ROOT_HOST ?>/public/js/lib/bootstrap-datepicker/bootstrap-datepicker.css" rel="stylesheet"/>      
    <link href="<?php echo ROOT_HOST ?>/public/js/lib/data-table/css/dataTables.bootstrap.css" rel="stylesheet" />        
    <link href="<?php echo ROOT_HOST ?>/public/js/lib/data-table/css/buttons.dataTables.min.css" rel="stylesheet"  />   
    <link href="<?php echo ROOT_HOST ?>/public/js/lib/jquery-confirm/jquery-confirm.min.css" rel="stylesheet"/> 
    <link href="<?php echo ROOT_HOST ?>/public/js/lib/numPad/jquery.numpad.css" rel="stylesheet"/>
    <link href="<?php echo ROOT_HOST?>/public/css/styles.css?v=<?php echo time() ?>" rel="stylesheet">     
    <link rel="stylesheet" href="<?php echo ROOT_HOST?>/public/bootstrap-datetimepicker/bootstrap-datetimepicker.css" />
    <link rel="stylesheet" href="<?php echo ROOT_HOST?>/public/bootstrap-daterangepicker/daterangepicker.css" />
    
    <script src="<?php echo ROOT_HOST?>/public/js/jquery-1.10.2.js" type="text/javascript"></script>    
    <script src="<?php echo ROOT_HOST ?>/public/js/lib/jquery-ui-1.10.3.js" type="text/javascript"></script>
    <script src="<?php echo ROOT_HOST?>/public/js/lib/moment/moment.js" type="text/javascript"></script>
    <script src="<?php echo ROOT_HOST?>/public/bootstrap-datetimepicker/bootstrap-datetimepicker.js"></script>
    <script src="<?php echo ROOT_HOST?>/public/bootstrap-daterangepicker/daterangepicker.js"></script>
    <script src="<?php echo ROOT_HOST?>/public/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
    <script src="<?php echo ROOT_HOST?>/public/js/lib/bootstrap-datepicker/bootstrap-datepicker.js" type="text/javascript"></script>
    <script src="<?php echo ROOT_HOST ?>/public/js/lib/data-table/js/jquery.dataTables.js" type="text/javascript"></script>    
    <script src="<?php echo ROOT_HOST ?>/public/js/lib/data-table/js/dataTables.bootstrap.js" type="text/javascript"></script> 
    <script src="<?php echo ROOT_HOST ?>/public/js/lib/data-table/js/dataTables.sum.js" type="text/javascript"></script>  
    <script src="<?php echo ROOT_HOST ?>/public/js/lib/data-table/js/dataTables.buttons.min.js" type="text/javascript"></script>
    <script src="<?php echo ROOT_HOST ?>/public/js/lib/data-table/js/buttons.flash.min.js" type="text/javascript"></script>
    <script src="<?php echo ROOT_HOST ?>/public/js/lib/data-table/js/jszip.min.js" type="text/javascript"></script>
    <script src="<?php echo ROOT_HOST ?>/public/js/lib/data-table/js/pdfmake.min.js" type="text/javascript"></script>
    <script src="<?php echo ROOT_HOST ?>/public/js/lib/data-table/js/vfs_fonts.js" type="text/javascript"></script>
    <script src="<?php echo ROOT_HOST ?>/public/js/lib/data-table/js/buttons.html5.min.js" type="text/javascript"></script>
    <script src="<?php echo ROOT_HOST ?>/public/js/lib/data-table/js/buttons.print.min.js" type="text/javascript"></script>   
    <script src="<?php echo ROOT_HOST?>/public/js/lib/data-table/plug-ins/sorting/datetime-moment.js"></script> 
    <script src="<?php echo ROOT_HOST ?>/public/js/lib/data-table/js/FixedColumns_3.2.2.js" type="text/javascript"></script>
    <script src="<?php echo ROOT_HOST?>/public/js/lib/bootstrap-fileinput/js/fileinput.js"></script>  
    <script src="<?php echo ROOT_HOST ?>/public/js/lib/jquery-confirm/jquery-confirm.min.js" type="text/javascript"></script>
    <script src="<?php echo ROOT_HOST ?>/public/js/lib/numPad/jquery.numpad.js" type="text/javascript" ></script>
    <script src="<?php echo ROOT_HOST?>/public/css/select2/select2.js"></script>
    <script src="<?php echo ROOT_HOST ?>/public/js/lib/jquery-blockUI.js" type="text/javascript"></script> 
    <script src="<?php echo ROOT_HOST?>/public/js/funciones.js?v=<?php echo time() ?>"></script>  
</head>
<body>
    <div id="wrapper">
         <?php
        $login = new Login();
        if($login->getRole() == '1'){
            include ROOT.'app/include/navegation.php';
        }else{
            include ROOT."app/include/navegation_rol_{$login->getRole()}.php";
        }
         ?>  
        <div id="page-wrapper">
            <div class="container-fluid">
                <iframe name="iframe" id="iframe" style="display:none;"></iframe>
                <?php include ROOT."/View/".$vista; ?>
                <?php include ROOT."/View/Modal/timeClock.php";?>
            </div>
        </div>
    </div>
</body>
</html>
