<?php
if(!isset($_SESSION)) {
    session_start();
}

require_once($_SERVER['DOCUMENT_ROOT'].'/varios/varios.php');
require_once($_SERVER['DOCUMENT_ROOT'].'/clases/Varios.Class.php');

$contenidoHTML  = isset($contenidoHTML)? $contenidoHTML : '';
$JavaScript    = isset($JavaScript)? $JavaScript : '';

if( Varios::isActiveSession() ) {?>
  <!DOCTYPE html>
  <html>
    <head>
		<meta http-equiv="Content-Type" content="text/html; charset=gb18030">
      	<title><?php echo _SYSTEM_NAME; ?></title>

      	<meta content="ie=edge" http-equiv="x-ua-compatible">
      	<meta content="Gestión de Agendamiento" name="keywords">
      	<meta content="Amo mi negocio" name="author">
      	<meta content="Sils Santiago Chile" name="description">
      	<meta content="width=device-width, initial-scale=1" name="viewport">
      	<link href="/favicon.png" rel="shortcut icon">
      	<link href="/includes/bower_components/toastr/toastr.min.css" rel="stylesheet">
	  	<link href="/includes/bower_components/select2/dist/css/select2.min.css" rel="stylesheet">
	  	<link href="/dist/css/main.css" rel="stylesheet">
      	<link href="/dist/css/picons-thin/style.css" rel="stylesheet">
	  	<link href="/dist/css/batch-icons/style.css" rel="stylesheet">
	  	<link href="/dist/css/jquery-ui.css" rel="stylesheet">
	  	<link href="/dist/css/bootstrap-datetimepicker.css" rel="stylesheet">
	  	<script type="text/javascript" src="/js/varios/jquery.js"></script>
	  	<script type="text/javascript" src="/js/varios/jquery-ui.js"></script>
      	<script type="text/javascript" src="/js/varios/jquery.validate.js"></script>
      	<script type="text/javascript" src="/js/varios/jquery.blockUI.js"></script>
	  	<script type="text/javascript" src="/js/varios/jbootstrap.min.js"></script>
	  	<script type="text/javascript" src="/js/varios/bootstrap-datetimepicker.js"></script>
	  	<script type="text/javascript" src="/js/varios/bootstrap-datetimepicker.es.js"></script>
	  	<script type="text/javascript" src="/js/usuarios/usuarioClave.js"></script>
		<script type="text/javascript" src="/js/varios/jfunciones_comunes.js"></script>

		
	</head>
    <body>
      <div class="all-wrapper menu-side with-side-panel">
        <div class="layout-w">		  
          <?php include('menuMobile.php');?>
          <?php include('menu.php');?>
          <div class="content-w"  style="background-color: #F3F8FB">
            <ul class="breadcrumb">
              <li class="breadcrumb-item">
                <h3><?php echo $tituloSubPagina; ?></h3>
              </li>
            </ul>
            <div class="content-panel-toggler">
              <i class="os-icon os-icon-grid-squares-22"></i><span>Sidebar</span>
            </div>
            <div class="content-i">
              <div class="content-box">
								<div class="row">
								<div class="col-sm-12">
                    <div class="element-wrapper">
												<div class="element-box-tp" id="div_filtro">
												</div>
										</div>
								</div>
                </div>
								<div class="row">
                  <div class="col-sm-12">
                    <div class="element-wrapper">
                      <div class="element-box-tp">
                        <div id="tableContent" name="tableContent">
                        </div>
                        <?php echo $contenidoHTML;?>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <div class="display-type"></div>
      </div>
      <?php echo $JavaScript; ?>

      <script src="/includes/bower_components/moment/moment.js"></script>
      <script src="/includes/bower_components/chart.js/dist/Chart.min.js"></script>
      <script src="/includes/bower_components/select2/dist/js/select2.full.min.js"></script>
      <!-- <script src="/includes/bower_components/ckeditor/ckeditor.js"></script> -->
      <script src="/includes/bower_components/bootstrap-validator/dist/validator.min.js"></script>
      <script src="/includes/bower_components/bootstrap-daterangepicker/daterangepicker.js"></script>
      <script src="/includes/bower_components/dropzone/dist/dropzone.js"></script>
      <script src="/includes/bower_components/editable-table/mindmup-editabletable.js"></script>
      <script src="/includes/bower_components/datatables.net/js/jquery.dataTables.js"></script>
      <script src="/includes/bower_components/datatables.net-bs/js/dataTables.bootstrap.min.js"></script>
      <script src="/includes/bower_components/fullcalendar/dist/fullcalendar.min.js"></script>
      <script src="/includes/bower_components/perfect-scrollbar/js/perfect-scrollbar.jquery.min.js"></script>
      <script src="/includes/bower_components/tether/dist/js/tether.min.js"></script>
      <script src="/includes/bower_components/bootstrap/js/dist/util.js"></script>
      <script src="/includes/bower_components/bootstrap/js/dist/alert.js"></script>
      <script src="/includes/bower_components/bootstrap/js/dist/button.js"></script>
      <script src="/includes/bower_components/bootstrap/js/dist/carousel.js"></script>
      <script src="/includes/bower_components/bootstrap/js/dist/collapse.js"></script>
      <script src="/includes/bower_components/bootstrap/js/dist/dropdown.js"></script>
      <script src="/includes/bower_components/bootstrap/js/dist/modal.js"></script>
      <script src="/includes/bower_components/bootstrap/js/dist/tab.js"></script>
      <script src="/includes/bower_components/bootstrap/js/dist/tooltip.js"></script>
      <script src="/includes/bower_components/bootstrap/js/dist/popover.js"></script>
      <script src="/includes/bower_components/toastr/toastr.min.js"></script>
      <script src="/dist/js/main.js?version=3.3"></script>
      <script src="/includes/bower_components/numeral/numeral.js"></script>
    </body>
  </html><?php

	require_once($_SERVER['DOCUMENT_ROOT'].'/varios/modal/modal_confirmar.php');
	require_once($_SERVER['DOCUMENT_ROOT'].'/varios/modal/modal_mensaje.php');
	require_once($_SERVER['DOCUMENT_ROOT'].'/varios/modal/modal_clave.php');

} else {
	Varios::closeSession();
}

?>
