<?php 

include 'ini.php';

include 'funciones.php';

session_start();

session_validation();



$strRandom = rand();

?>

<!DOCTYPE html>

<html lang="en">

<head>

  <meta charset="utf-8">

  <meta name="viewport" content="width=device-width, initial-scale=1">

  <meta name="mobile-web-app-capable" content="yes">

  <link rel="icon" sizes="192x192" href="images/icon192.png">

  <link rel="apple-touch-icon" sizes="72x72" href="images/icon72.png" /> 

  <link rel="apple-touch-icon" sizes="114x114" href="images/icon114.png" />

  

  <title><?php echo $sAppName;?> <?php echo $BRANCHNAME;?></title>

  

<!-- EXTJS -->

    <link rel="stylesheet" type="text/css" href="extjs/resources/css/ext-all.css" />

    <link rel="stylesheet" type="text/css" href="extjs/resources/css/xtheme-gray.css" />

	<link rel="stylesheet" type="text/css" href="extjs/gridsummary.css"/>

    <link rel="stylesheet" type="text/css" href="layout-browser.css">

    

    <script type="text/javascript" src="js/init.js"></script>

	<script type="text/javascript">

	

		var gbIntIdUsuario = <?php echo $_SESSION['user_id'];?>;

		if(gbIntIdUsuario=='' || gbIntIdUsuario==null){ document.location.href="index.php"; }

		

		var objUsuario = new Persona(<?php echo $_SESSION['user_id'];?>, '<?php echo $_SESSION['user_name'];?>', '', <?php echo $_SESSION['user_type'];?>, 0, <?php echo $_SESSION['intEmpresa'];?>);

		

    </script>

	

    <script type="text/javascript" src="extjs/adapter/ext/ext-base.js"></script>

    <script type="text/javascript" src="extjs/ext-all.js"></script>

    <script type="text/javascript" src="js/gridsummary.js"></script>

	

	<script type="text/javascript" src="extjs/examples/ux/RowExpander.js"></script>

	<script type="text/javascript" src="extjs/Ext.ux.GridPrinter.js"></script>

    

<!-- JQuery -->

    

    <link rel="stylesheet" href="css/jquery.mobile-1.3.2.css?<?php echo $strRandom; ?>">

    <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>

    <script src="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.js"></script>

    <script type="text/javascript" src="js/jquery.min.js"></script>

    <script type="text/javascript" src="js/jquery-ui.min.js"></script>

    

    <link rel="stylesheet" href="css/jquery-ui.css?<?php echo $strRandom; ?>">

    <script src="//code.jquery.com/jquery-1.9.1.js"></script>

	<script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"></script>



    <!-- PLUGINS-->

    <link rel="stylesheet" type="text/css" href="js/DatePicker/css/ui.daterangepicker.css"/>

	<script type="text/javascript" src="js/DatePicker/js/daterangepicker.jQuery.js"></script>

	

	<script type="text/javascript" src="js/accounting.js"></script>

     

<!-- GENERAL -->

    <link rel="stylesheet" type="text/css" href="styles.css?<?php echo $strRandom; ?>">

    <link rel="stylesheet" type="text/css" href="css/bootstrap.css?<?php echo $strRandom; ?>">

    <script type="text/javascript" src="js/core.js?<?php echo $strRandom; ?>" ></script>



    <script type="text/javascript" src="js/Funciones.js"></script>

    <!-- Uploader -->

    <script type="text/javascript" src="js/ajaxfileupload.js"></script>

    <script type="text/javascript" src="js/moment.js"></script>



<!-- SISTEMA -->    

	<script type="text/javascript" src="js/tabAgenda.js?<?php echo $strRandom; ?>"></script>

	<script type="text/javascript" src="js/tabExpediente.js?<?php echo $strRandom; ?>"></script>

	<script type="text/javascript" src="js/tabCatClientes.js?<?php echo $strRandom; ?>"></script>

	<script type="text/javascript" src="js/tabCatUsuarios.js?<?php echo $strRandom; ?>"></script>

	<script type="text/javascript" src="js/tabCatTipoUsuarios.js?<?php echo $strRandom; ?>"></script>



	<script type="text/javascript" src="js/tabCatMedicamentos.js?<?php echo $strRandom; ?>"></script>

	<script type="text/javascript" src="js/tabCatDiagnosticos.js?<?php echo $strRandom; ?>"></script>

	<script type="text/javascript" src="js/tabCatHospitales.js?<?php echo $strRandom; ?>"></script>



	<script type="text/javascript" src="js/tabReporteActividad.js?<?php echo $strRandom; ?>"></script>



    <link href='js/fullcalendar-2.2.2/fullcalendar.css' rel='stylesheet' />

    <link href='js/fullcalendar-2.2.2/fullcalendar.print.css' rel='stylesheet' media='print' />

    <script src='js/fullcalendar-2.2.2/lib/moment.min.js'></script>

    <script src='js/fullcalendar-2.2.2/fullcalendar.min.js'></script>

	<script src='js/fullcalendar-2.2.2/lang/es.js'></script>



  <style>

  .panel-content {

    padding: 0px;

    margin: 0px;

  }

  .ui-panel-content-wrap-closed{

  	background:#fff;

  }

  </style>

  

<!-- CSS CAMERA WEBCAM-->

<link rel="stylesheet" type="text/css" href="assets/css/styles.css" />

<link rel="stylesheet" type="text/css" href="assets/fancybox/jquery.fancybox-1.3.4.css" />



</head>

<body>

 

<div data-role="page" id="page1">



  <div data-role="header" class="ui-header ui-bar-b">

    <table style="width:100%">

        <tr>

            <td align="left" width="90"><a href="#menupanel" data-role="button" data-inline="true" >Menu</a></td>

            <td align="left" style="padding-top:8px; padding-bottom:4px; padding-left:5px; font-family:Arial, Helvetica, sans-serif; font-size:11px; ">Bienvenido (a): <?php echo $_SESSION['user_name']; ?></td>

            <!--<td align="center" width="70" style="padding-right:0px; font-family:Arial, Helvetica, sans-serif; font-size:11px; ">< ?php echo $sAppName;?> </td>-->

        </tr>

    </table>

  </div>

  

  <div role="main" class="ui-content" style=" background:#fff; height: 100%; ">

   

    <div id="divAgenda" style="height: 100%;"></div>

    <div id="divCatClientes" style="height: 100%;"></div>

    <div id="divCatUsuarios" style="height: 100%;"></div>

    <div id="divCatMedicamentos" style=""></div>

    <div id="divCatDiagnosticos" style=""></div>

    <div id="divCatHospitales" style=""></div>

    

    <div id="divExpediente" style=""></div>

    <!--<div id="divCatCuenta" style=""></div>-->

    <div id="divRepActividad" style=""></div>



  </div>

 

  <div id="menupanel" data-role="panel" data-theme="b">



    <div class="panel-content">

        <ul id="ulLateralMenu">                    

            <li id="litabProcesos" class="liSubMenu"><img src="images/arrow_down.png" align="absmiddle">Procesos</li>

            <li id="litabAgenda" class="liSubMenuChild"><a href="javascript: showPage('tabAgenda')">Agenda</a></li>

            <li id="litabCatalogos" class="liSubMenu"><img src="images/arrow_down.png" align="absmiddle">Catalogos</li>

            <li id="litabCatClientes" class="liSubMenuChild"><a href="javascript: showPage('tabCatClientes')">Pacientes</a></li>

            <!--<li id="litabCatCuenta" class="liSubMenuChild"><a href="javascript: showPage('tabCatCuenta')">Cuenta</a></li>-->

            <li id="litabCatUsuarios" class="liSubMenuChild"><a href="javascript: showPage('tabCatUsuarios')">Usuarios</a></li>

            <li id="litabCatMedicamentos" class="liSubMenuChild"><a href="javascript: showPage('tabCatMedicamentos')">Medicamentos</a></li>

            <li id="litabCatDiagnosticos" class="liSubMenuChild"><a href="javascript: showPage('tabCatDiagnosticos')">Diagnosticos</a></li>

            <li id="litabCatHospitales" class="liSubMenuChild"><a href="javascript: showPage('tabCatHospitales')">Hospitales</a></li>

            

            <li id="litabReportes" class="liSubMenu"><img src="images/arrow_down.png" align="absmiddle">Reportes</li>

            <li id="litabReporteActividad" class="liSubMenuChild"><a href="javascript: showPage('tabReporteActividad')">Por Actividad</a></li>

            <li id="litabEspBlanco" class="liSubMenu"><img src="images/arrow_down.png" align="absmiddle"></li>

            <li id="litabSalir" class="liSubMenuChild"><a href="javascript: salir();">Salir</a></li>

        </ul>

    </div>

  </div><!-- /menu panel -->

  

  <div id="divLoading" class="divLoader">

  	<div class="divLoaderChild "><img src="images/cargando2.gif"/></div>

  </div>

  

</div>

 

<!-- WINDOW WEBCAM-->

<!--

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>

-->

<script src="assets/fancybox/jquery.easing-1.3.pack.js"></script>

<script src="assets/fancybox/jquery.fancybox-1.3.4.pack.js"></script>

<script src="assets/webcam/webcam.js"></script>

<script src="assets/js/script.js"></script>



</body>

</html>