<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=gb18030" />
        <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 name="viewport" content="width=device-width, initial-scale=1.0" />
        
        <?php
            foreach($css_files as $file): ?>
        <link type="text/css" rel="stylesheet" href="<?php echo $file; ?>" />
        <?php endforeach; ?>
        <?php foreach($js_files as $file): ?>
        <script src="<?php echo $file; ?>"></script>
        <?php endforeach; ?>
        
        <!-- rmlMenu -->
        <link rel="stylesheet" type="text/css" href="<?=base_url()?>css/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>
        
        <!-- chat -->
        <!--
         <script src="<?=base_url()?>js/chat.js"></script>
         <link type="text/css" rel="stylesheet" media="all" href="<?=base_url()?>application/css/chat.css" />
         <link type="text/css" rel="stylesheet" media="all" href="<?=base_url()?>application/css/screen.css" />
         -->
        <!-- fin chat -->
        
        <!--[if lte IE 7]>
         <link type="text/css" rel="stylesheet" media="all" href="<?=base_url()?>application/css/screen_ie.css" />
         <![endif]-->
    </head>
    
    <script>
        $(document).ready(function () {
                          $('.shadow').shadow({type:'sides',radius:'0',sides:'hz-1'});
                          $('.report-div.success').addClass( "notySuccess" );
                          $('.report-div.error').addClass( "notyError" );
                          $('.notySuccess').each(function( index, value )
                                                 {
                                                 if ($(value).html() != '')
                                                 {
                                                 noty({
                                                      layout: 'top',
                                                      type: 'success',
                                                      text: $(value).html(),
                                                      dismissQueue: true,
                                                      animation: {
                                                      open: {height: 'toggle'},
                                                      close: {height: 'toggle'},
                                                      easing: 'swing',
                                                      speed: 500
                                                      },
                                                      timeout: 3000
                                                      });
                                                 $(value).css('display', 'none');
                                                 $(value).html('');
                                                 }
                                                 }
                                                 );
                          $('.notyError').each(function( index, value )
                                               {
                                               if ($(value).html() != '')
                                               {
                                               noty({
                                                    layout: 'top',
                                                    type: 'error',
                                                    text: $(value).html(),
                                                    dismissQueue: true,
                                                    animation: {
                                                    open: {height: 'toggle'},
                                                    close: {height: 'toggle'},
                                                    easing: 'swing',
                                                    speed: 500
                                                    },
                                                    timeout: 3000
                                                    });
                                               $(value).css('display', 'none');
                                               $(value).html('');
                                               }
                                               }
                                               );
                          
                          $('#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;
                                                }
                                                });
                          $('#navMenu2').rmlmenu({
                                                 // Menu options here:
                                                 pMenuBttn: '#popupMenuBttn2',
                                                 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;
                                                 }
                                                 });
                          originalTitle = document.title;
                          /*
                           try
                           {
                           startChatSession();
                           }
                           catch (erro)
                           {
                           
                           }
                           */
                          
                          jQuery([window, document]).blur(function(){
                                                          windowFocus = false;
                                                          }).focus(function(){
                                                                   windowFocus = true;
                                                                   document.title = originalTitle;
                                                                   });
                          });
                          
                          var url="<?php echo base_url();?>";
                          function confirmaURL(url,texto)
                          {
                              var r=confirm(texto);
                              if (r==true)
                              window.location = url;
                              else
                              return false;
                          }
    </script>
    
    <body>
        <div class="chatFooter" id="chatContainer" name="chatContainer">
        </div>
        <div class="tituloAplicacion">SECCEM Verificación en sitio</div>
        <div class="barraSuperior"></div>
        <div style="margin: 10px 200px;float: right;">
            <div id="popupMenuBttn2" class="rmlpopupmenuButtonText">Menu</div>
            <div id="navMenu2" class="navMenu">
                <ul id="main-menu" class="sm sm-blue">
                    <li><a href="<?php echo site_url('login/logout_ci')?>">logout</a></li>
                </ul>
            </div>
        </div>
        <div style="margin: 10px 0px 10px 400px;float: left;">
            <div id="popupMenuBttn" class="rmlpopupmenuButtonText">Menu</div>
            <div id="navMenu" class="navMenu">
                <ul id="main-menu" class="sm sm-blue">
                    <li>
                        <a href="#" class="sub-menu">Encuestas</a>
                        <ul>
                            <li><a href="<?php echo site_url('main/administraVerificadores')?>">Verificadores</a></li>
                            <li><a href="<?php echo site_url('main/administraEncuestasTodas')?>">Encuestas</a></li>
                        </ul>
                    </li>
                    <li>
                        <a href="#" class="sub-menu">Configurar</a>
                        <ul>
                            <li><a href="<?php echo site_url('main/administraUsuarios')?>">Administrar usuarios</a></li>
                            <li><a href="<?php echo site_url('main/cambiaContrasena')?>">Cambiar contraseña</a></li>
                            <li>
                                <a href="#" class="sub-menu">Catálogos</a>
                                <ul>
                                    <li><a href="<?php echo site_url('main/administraSeccion')?>">Verificación</a></li>
                                    <li><a href="<?php echo site_url('main/administraCatalogo/vecino/Referencia vecinal')?>">Referencia vecinal</a></li>
                                </ul>
                            </li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
        <img class="imagenLogo" />
        <div style="height:70px"></div>
        <?php if ($tituloForma != '')
            {
                echo "<div class=\"tituloGrande\">" . $tituloForma . "</div>";
            } ?>
        <div style="margin: 0px 40px;">
            <?php echo $output; ?>
            <div class="copyRight">
                <div style="text-align:center;width:100%;">
                    CopyRight hazTuApp.
                </div>
            </div>
            <?php
                if($this->session->flashdata('notyError'))
                {
                ?>
            <div class="notyError"><?=$this->session->flashdata('notyError')?></div>
            <?php
                }
                ?>
            <?php
                if($this->session->flashdata('notySuccess'))
                {
                ?>
            <div class="notySuccess"><?=$this->session->flashdata('notySuccess')?></div>
            <?php
                }
                ?>
            </body>
</html>
