<?php
if(!isset($_SESSION)) {
    session_start();
}
date_default_timezone_set ( 'America/Santiago' );
require_once($_SERVER['DOCUMENT_ROOT'].'/varios/varios.php');

if(
    !isset($_SESSION[_SYSTEM_SESIONID.'userId'])
) {
     // Acceso no permitdo
    header("Location: http://"._SYSTEM_SUBDOMAIN.'.'._SYSTEM_URL."/login/");

} else {?>

<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <head><meta charset="UTF-8">
    <title><?php echo _SYSTEM_NAME; ?></title>
    <meta content="ie=edge" http-equiv="x-ua-compatible">
    <meta content="Gyms CRM" name="keywords">
    <meta content="Amo mi negocio" name="author">
    <meta content="Gym CRM Santiago Chile" name="description">
    <meta content="width=device-width, initial-scale=1" name="viewport">
    <link href="/favicon.png" rel="shortcut icon">
    <link href="/assets/css/perfect-scrollbar.min.css" rel="stylesheet">
    <link href="/assets/css/main.css" rel="stylesheet">
    <link href="/assets/css/picons-thin/style.css" rel="stylesheet">
    <link href="/assets/css/jquery-ui.css" rel="stylesheet">
    <link href="/assets/css/bootstrap-datetimepicker.css" rel="stylesheet">

    <script type="text/javascript" src="/js/varios/moment.js"></script>
    <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/jquery.dataTables.min.js"></script>
    <script type="text/javascript" src="/js/varios/daterangepicker.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/varios/perfect-scrollbar.jquery.min.js"></script>
    <script type="text/javascript" src="/js/varios/jfunciones_comunes.js"></script>
    <script type="text/javascript" src="/js/varios/main.js?version=3.3"></script><?php

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

</head>
<body>
    <div class="all-wrapper menu-side with-side-panel">
        <div class="layout-w"><?php 
            // require_once($_SERVER['DOCUMENT_ROOT'].'/varios/menu_mobile.php');
            require_once($_SERVER['DOCUMENT_ROOT'].'/varios/menu.php');?>
            <div class="content-w" style="background-color: #F3F8FB">
                <div class="content-i">
                    <div class="row">
                        <div class="col-sm-12">
                            <div class="element-box-tp">
                                <div class="content-i">
                                    <div class="user-profile">
                                        <div class="up-head-w" style="background-image:url(/assets/images/fondo02.jpg)">
                                            <div class="up-main-info">
                                                <h1 class="up-header"><?php
													echo $_SESSION[_SYSTEM_SESIONID.'nombre_completo'];?>
                                                </h1>
                                                <h5 class="up-sub-header"><?php
													echo $_SESSION[_SYSTEM_SESIONID.'perfil'];?>
                                                </h5>
                                            </div>
                                            <svg class="decor" width="842px" height="100px" viewBox="0 0 842 219"
                                                preserveAspectRatio="xMaxYMax meet" version="1.1"
                                                xmlns="http://www.w3.org/2000/svg"
                                                xmlns:xlink="http://www.w3.org/1999/xlink">
                                                <g transform="translate(-381.000000, -362.000000)" fill="#FFFFFF">
                                                    <path class="decor-path"
                                                        d="M1223,362 L1223,581 L381,581 C868.912802,575.666667 1149.57947,502.666667 1223,362 Z">
                                                    </path>
                                                </g>
                                            </svg>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="element-wrapper">
                    <div class="user-profile">
                        <div class="up-contents">
                            <h5 class="element-header">
                                <?php echo $tituloSubPagina; ?>
                            </h5>
                            <?php					

}?>