<!DOCTYPE html>
<html>
<head>
    <meta HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE, NO-STORE, must-revalidate">
    <meta HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
    <meta HTTP-EQUIV="EXPIRES" CONTENT=0>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <?php
    if(isset($css_files)){
        foreach($css_files as $file): ?>
            <link type="text/css" rel="stylesheet" href="<?php echo $file; ?>" />
        <?php endforeach; }?>
    <?php
    if(isset($js_files)){
        foreach($js_files as $file): ?>
            <script src="<?php echo $file; ?>"></script>
        <?php endforeach; } ?>
    <?php
    if(!isset($output)){ ?>
    <script src="<?php echo base_url();?>assets/grocery_crud/js/jquery-1.11.1.min.js"></script>
    <script src="<?php echo base_url();?>assets/grocery_crud/js/jquery_plugins/jquery.noty.js"></script>
    <script src="<?php echo base_url();?>assets/grocery_crud/js/jquery_plugins/config/jquery.noty.config.js"></script>
    <?php } ?>
    <link type="text/css" rel="stylesheet" href="<?php echo base_url(); ?>css/myh.css" />
    <!-- rmlMenu -->
    <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>js/service.rmlmenu.jquery-master/src/service.rmlmenu.jquery.css" />
    <script src="<?= base_url(); ?>js/service.rmlmenu.jquery-master/src/service.rmlmenu.jquery.min.js"></script>
    <script src="<?= base_url(); ?>js/service.ontouchclick.jquery-master/src/service.ontouchclick.jquery.js"></script>
    <script src="<?= base_url(); ?>js/jquery.maskedinput.min.js"></script>

    <style type='text/css'>
        body
        {
            font-family: Arial;
            font-size: 14px;
        }
        a {
            color: blue;
            text-decoration: none;
            font-size: 14px;
        }
        a:hover
        {
            text-decoration: underline;
        }

        .ftitle{
            min-width: 1000px;
        }
    </style>
</head>
<body>

<div style="width:90%">
    <div id="popupMenuBttn" class="rmlpopupmenuButtonText">Menu</div>
    <div id="navMenu" class="navMenu" style="background-color: #ccffcc;">
        <ul id="main-menu" class="sm sm-blue">
            <li><a href="<?php echo base_url(); ?>index.php/welcome/clientes">Clientes</a></li>
            <li><a href="<?php echo base_url(); ?>index.php/welcome/telefonos">Telefonos</a></li>
            <li><a href="<?php echo base_url(); ?>index.php/welcome/procedimientos">Procedimientos</a></li>
            <li><a href="<?php echo base_url(); ?>index.php/welcome/tips">Tips</a></li>
            <li><a href="<?php echo base_url(); ?>index.php/welcome/usuarios">Usuarios</a></li>
            <li><a href="<?php echo base_url(); ?>index.php/login/logout_ci">logout</a></li>
        </ul>
    </div>
</div>
<script>
    $(document).ready(function () {
        <?php if($this->session->flashdata('div_aviso'))
        {
        ?>
        noty({
            layout: 'top',
            type: 'success',
            text: '<?php $this->session->flashdata('div_aviso')?>',
            dismissQueue: true,
            animation: {
                open: {height: 'toggle'},
                close: {height: 'toggle'},
                easing: 'swing',
                speed: 500
            },
            timeout: 1000
        });
        <?php
        }
        ?>
        $('#navMenu').rmlmenu({
            // Menu options here:
            pMenuBttn: '#popupMenuBttn',
            pMenuBackText: 'Back',
            onLinkClick: function (el, ev) {
                var anchor = $(el).find('a:first');
                $('#prompt').html("Clicked/touched: " + anchor.text());
                return (anchor.attr('href').length == 0) ? true : false;
            }
        });
        $("#field-telefono").mask("(99) 9999-9999",{placeholder:"(__)) ____-____"});

        //imagenes
        $('#imagen_field_box').append('(Imagen de 500x500px)');
        $('#ayudanteImagen_field_box').append('(Imagen de 500x500px)');
    });
</script>
<div style='height:20px;'></div>
<div>
    <br>
    <?php
      if ( isset($output) ) {
          echo $output;
      }
    ?>
</div>
</body>
</html>
