<?php
foreach($_GET  as $key => $value){${$key}=trim($value);} 
foreach($_POST as $key => $value){${$key}=trim($value);} 
include_once('lib_main.php');

$_SESSION['platform']=getPlatform();

$_SESSION['tkn_escala']='qFAuBlFFI8FBisNK7rNihviC6j8L5ZqPSi7EbQxWeqXvSGQt7kkSx1_laK8OM0mikFKMT8xqlEueeJuZulnZiQ';
putenv('TOKEN='.$_SESSION['tkn_escala']);

if(substr($scri,0,4)=='regi')
{
     if(!empty($ptoe)){setcookie('ptoe',$ptoe,time()+(60*60*24*365));}
     if(!empty($ptov)){setcookie('ptov',$ptov,time()+(60*60*24*365));}
     if(!empty($bode)){setcookie('bode',$bode,time()+(60*60*24*365));}
     if(!empty($caja)){setcookie('caja',$caja,time()+(60*60*24*365));}
     if(!empty($ctab)){setcookie('ctab',$ctab,time()+(60*60*24*365));}
     if(!empty($csub)){setcookie('csub',$csub,time()+(60*60*24*365));}
}


//////////////////////////////////////////

if($cfg_empr!='demo')
{
//      $linkerX='../demo/.htaccess';
//      $linkerY='../'.$cfg_empr.'/.htaccess';
//      @copy($linkerX,$linkerY);

     $linkerX='../demo/error.php';
     $linkerY='../'.$cfg_empr.'/error.php';
     @copy($linkerX,$linkerY);

     $linkerX='../demo/_cfg/_linker.php';
     $linkerY='../'.$cfg_empr.'/_cfg/_linker.php';
     @copy($linkerX,$linkerY);

     // $linkerX='../demo/index3.php';
     // $linkerY='../'.$cfg_empr.'/index3.php';
     // copy($linkerX,$linkerY);

}

// $link_data=msql_connect('','','',$cfg_empr);



// if(date('Y-m-d')<="2025-01-15")
// {
//      $sql_updt='update user0 set user_caduca="2025-12-31" where user_email like "%javico%"';
//      $res_updt=msql_query($sql_updt,$link_data);
  
//   if($cfg_empr!='hfre')
//   {
//      $sql_updt='update user0 set user_caduca="2025-12-31" where user_login >= "'.date('Y-m-01',strtotime('-1 month')).'"';
//      $res_updt=msql_query($sql_updt,$link_data);
//   }
  
// }


     
     $sql_updt='update empr0 set empr_ruc="'.$cfg_ruc.'" where left(ifnull(empr_ruc,""),2)*1=0 ';
     $res_updt=msql_query($sql_updt,$link_data);


// / eliminar
// msql_query('alter table enti0 add column enti_rimpe varchar(1)',$link_data);

// $config=set_config($cfg_empr);

//////////////////////////////////////////
//// ESPECIALES
//////////////////////////////////////////

// auto.farma.veter.taxi

// if(mb_stristr('demo.hg01.anml',$cfg_empr))
// {$_SESSION['ptovta']=1; msql_query('update empr0 set empr_ptovta=1',$link_data);}

// if(mb_stristr('demo.tgck.sawo',$cfg_empr))
// {$_SESSION['automotriz']=1; msql_query('update empr0 set empr_automotriz=1',$link_data);}

// if(mb_stristr('demo.hg01',$cfg_empr))
// {$_SESSION['farmacia']=1; msql_query('update empr0 set empr_farmacia=1',$link_data);}

// if(mb_stristr('demo.anml',$cfg_empr))
// {$_SESSION['veterinaria']=1; msql_query('update empr0 set empr_veterinaria=1',$link_data);}

// if(mb_stristr('demo.taxi',$cfg_empr))
// {$_SESSION['taxi']=1; msql_query('update empr0 set empr_taxi="1"',$link_data);}



// if(!isset($scri)){$scri='';}


if($cfg_empr=='orel' and empty($scri)){$scri='ctlg_item3';}

if(mb_stristr($scri,'updt_data'))
{
//      $scrib='../_lib/'.$scri.'.php';    
//      include($scrib);
}








// $sql_empr='update empr0 set empr_color3=null ';
// $sql_empr='update empr0 set empr_color3="azure" ';
$sql_empr='update empr0 set empr_color3="snow" ';
$res_empr=msql_query($sql_empr,$link_data);


$empr0=data_maes('empr',$cfg_empr);
$user0=data_maes('user',$_SESSION['user_codigo']);


$_SESSION['empr_edificio']=0;
$_SESSION['empr_ciudadela']=0;
$empre0=data_maes('enti',$empr0['empr_ruc']);
if(mb_stristr($empre0['enti_descri'],'edificio')){$_SESSION['empr_edificio']=1;}
if(mb_stristr($empre0['enti_descri'],'ciudadela')){$_SESSION['empr_ciudadela']=1;}



if(1==2)
{
     $sql_blog='insert into blog0(blog_idate)value(now())';
     $res_blog=@msql_query($sql_blog,$link_data);
     
     $blog_id=@msql_insert_id($link_data);
     $sql_blog='update blog0 set ';
     $sql_blog.='blog_user="'.$_SESSION['user_codigo'].'", ';
     $sql_blog.='blog_remote="'.$remote_addr.'", ';
     $sql_blog.='blog_server="'.$server_name.'", ';
     $sql_blog.='blog_script="'.$script_name.'", ';
     $sql_blog.='blog_request="'.$request_uri.'", ';
     $sql_blog.='blog_document="'.$document_root.'", ';
     $sql_blog.='blog_status=blog_status ';
     $sql_blog.='where blog_codigo='.$blog_id.' ';
     $sql_blog.='limit 1';
     $res_blog=@msql_query($sql_blog,$link_data);
}


if(!empty($user0['user_codigo']) and empty($user0['user_referx']) and !empty($_COOKIE['referx']))
{
     $sql_user ='update user0 set user_referx="'.$_COOKIE['referx'].'" ';
     $sql_user.='where ifnull(user_referx,"")="" and user_codigo="'.$user0['user_codigo'].'"';
     $res_user=msql_query($sql_user,$link_data);
}

foreach($empr0 as $key=>$value){$_SESSION[$key]=$value;}

$enti_empr=data_maes('enti',$empr0['empr_ruc']);
$empr_descri=$empr0['empr_descri'];

///////
// $sql_updt ='alter table enti0 add column enti_ciiu varchar(13)';
// @msql_query($sql_updt,$link_vcrx);


if($cfg_empr=='jwib')
{
     $cong0=data_maes('cong',$cong_codigo);
     $cong_descri=$cong0['cong_descri'];
     if(empty($cong_descri)){$empr_descri='JWIB Anuncios';}
     if(!empty($cong_descri)){$empr_descri=$cong_descri;}
}

if(empty($empr_descri))
{
     $empr_descri=$enti_empr['enti_descri'];
     $empr_nomcom=$enti_empr['enti_nomcom'];
     $empr_descri2=$empr_descri;
     $maxlenlin=21;

     // PERSONA NATURAL
     if(substr($empr0['empr_ruc'],2,1)!='9' and mb_substr_count($empr_descri,' ')==3)
     {
        $empr_descri2 =' ';
        $empr_descri2.=$enti_empr['enti_ape1'];
        $empr_descri2.=' ';
        $empr_descri2.=$enti_empr['enti_ape2'];
        $empr_descri2.=' ';
     //    $empr_descri2.='<br class="btn-navbar">';
        $empr_descri2.=$enti_empr['enti_nom1'];
        $empr_descri2.=' ';
        $empr_descri2.=$enti_empr['enti_nom2'];

     }

     // PERSONA JURIDICA
     if(substr($empr0['empr_ruc'],2,1)=='9')
     {
        $empr_descri2=' ';
        $lenlin=0;
        $empr_descria=explode(' ',$empr_descri);
        for($idx=0;$idx<=count($empr_descria);$idx++)
        {
           $lenlin=$lenlin+strlen($empr_descria[$idx]);
           if($lenlin>=$maxlenlin)
           {
     //          $empr_descri2.='<br class="btn-navbar">';
              $lenlin=strlen($empr_descria[$idx]);
           }
           $empr_descri2.=' ';
           $empr_descri2.=$empr_descria[$idx];
        }
     }

     $empr_descri=$empr_descri2;
}

// if($empr0['empr_codigo']=='emdc'){$xfavicon='⚕️';}
// if($empr0['empr_codigo']=='taxi'){$xfavicon='🚕';}
if($cfg_empr=='emdc'){$xfavicon='⚕️';}
if($cfg_empr=='taxi'){$xfavicon='🚕';}
if($cfg_empr=='facx'){$xfavicon='🔢';}


?>
<!DOCTYPE html>
<html translate="no" id="html" >
<head>
    <title><?php echo ucfirst($cfg_descri); ?></title>
     
     <meta name="robots" content="index, nofollow">
     
<!--     <meta charset="iso-8859-1"> -->
<!--     <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">      -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=<?php if(!empty($prnt)){echo 'yes';}else{echo 'no';} ?>">
    <meta name="google" content="notranslate">
<!--      <meta http-equiv="refresh" content="30"> -->

     <link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='80' font-size='90'><?php echo $xfavicon; ?></text></svg>">
     <link rel="shortcut icon" href="//<?php echo $file_server; ?>/<?php echo $cfg_empr; ?>/favicon.ico">
     
     <!--   letra opaca  -->
     <!--   elimina input clearable  -->
<!--      quitar para imprimir documentos -->
     
    <link href="//<?php echo $file_server; ?>/css/bootstrap232.min.css" rel="stylesheet" media="screen">
<!--      <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/2.3.2/css/bootstrap.min.css"> -->
     
<!--     <link href="https://cdn.usebootstrap.com/bootstrap/2.3.2/css/bootstrap.min.css" rel="stylesheet" media="screen" > -->
<!--     <link href="https://cdn.usebootstrap.com/bootstrap/latest/css/bootstrap.min.css" rel="stylesheet" media="screen"> -->
     
    <link href="//<?php echo $file_server; ?>/css/bootstrap-responsive.min.css" rel="stylesheet" media="screen">
<!--     <link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.min.css" rel="stylesheet"> -->
    <link href="//<?php echo $file_server; ?>/css/slimmenu.min.css" rel="stylesheet" media="screen">
     
    <link href="//<?php echo $file_server; ?>/_lib/style1.css<?php echo $js_version;?>" rel="stylesheet" media="all">

     
     <style>
        <?php if(!empty($prnt)){ ?>
/*         [noprint]{display:none;} */
        <?php } ?>
     </style>
     
     
     <style>
     @font-face
     {
          font-family:'EanP36Tt';
          /*    src: url('https://www.vcrxol.com/_font/EAN13_36.ttf') format('truetype');  */
          src: url('../_lib/EAN13_36.ttf') format('truetype'); 
          font-weight: normal;
          font-style: normal;
     }

     [ean13cb]
     {
          font-family:'EanP36Tt';
          padding:0px; margin:0px;
          /*    font-weight:bold; */
     }

     </style>     
     
     <style>
      .container{background-color:<?php echo $empr0['empr_color1'];?>}
/*       .container{background-color:white;} */
      .brand{background-color:<?php echo $empr0['empr_color1'];?>}
      .nav{background-color:<?php echo $empr0['empr_color1'];?>}
      .navbar{background-color:<?php echo $empr0['empr_color1'];?>}
      .navbar-inner{background-color:<?php echo $empr0['empr_color1'];?>}
      .navbar-inverse{background-color:<?php echo $empr0['empr_color1'];?>}
      
      .menu-collapser{color:black;background-color:<?php echo $empr0['empr_color2'];?>;}
      .collapse-button{color:black;background-color:<?php echo $empr0['empr_color1'];?>;}
      .collapse-button:focus{color:<?php echo $empr0['empr_color1'];?>;background-color:yellow;}
      .collapse-button:hover{color:<?php echo $empr0['empr_color1'];?>;background-color:<?php echo $empr0['empr_color1'];?>;}
      .slimmenu {background-color:<?php echo $empr0['empr_color2'];?>}
      ul.slimmenu li{background-color:<?php echo $empr0['empr_color2'];?>}
/*       ul.slimmenu li ul{} */
      ul.slimmenu li ul li{background-color:<?php echo $empr0['empr_color3'];?>}
/*       ul.slimmenu li a:hover{background-color:#999} */
   </style>

     <style>
          a{color:<?php echo $empr0['empr_color1'];?>;}
          a:hover{color:<?php echo $empr0['empr_color1'];?>;}
     </style>
</head>

     
<?php
$empr0['empr_color3']='#E6E6E6'; 
$empr0['empr_color3']='#F2F2F2';      
$empr0['empr_color3']='#FAFAFA'; 
$empr0['empr_color3']='whitesmoke'; 
$empr0['empr_color3']='#'; 
$empr0['empr_color3']='#D8D8D8'; 
$empr0['empr_color3']='ghostwhite';
if($prnt>=1)
{$empr0['empr_color3']='';}     
?>     
     
<body id="main_body" 
     style="zoom:<?php echo $zoom_site; ?>%;background:<?php echo $empr0['empr_color3'];?>;
     <?php if($_SESSION['screeno']==1){echo 'margin-left:0.0em;'; };?>; 
     <?php if($_SESSION['screeno']==1 and $_SESSION['screenw']/$_SESSION['screenh']<0.5){echo 'margin-left:-1.5em;'; };?>
     <?php echo 'margin-right:0.0em;';?>;" 
     class="" 
      >
     
     <?php //if(empty($prnt)){ ?>       
     <div hide style='display:none;'>
     <div id="empr"><?php echo $cfg_empr;?></div>
     <div id="color1"><?php echo $empr0['empr_color1'];?></div>
     <div id="color2"><?php echo $empr0['empr_color2'];?></div>
     <div id="user_codigo"><?php echo $user0['user_codigo'];?></div>
     <div id="user_descri"><?php echo $user0['user_descri'];?></div>
     </div>
     <?php //} ?>
     
     <!--      redirecciona ssl      -->
     <script>var xhref=location.href; </script>
     <script>if(xhref.indexOf('https:')<0){window.location=xhref.replace('http:','https:');}</script>
     <script>if(xhref.indexOf('index3.php?prnt=1')>=0){window.location=xhref.replace('index3.php?prnt=1','index2.php?prnt=1');}</script>
     <script>if(xhref.indexOf('vcrxol.com/?prnt=1')>=0){window.location=xhref.replace('vcrxol.com/?prnt=1','vcrxol.com/index2.php?prnt=1');}</script>
     <?php if($rsubdom==1){ ?>
     <script> {window.location="https://<?php echo $subdom.'.'.$domain.str_replace('/'.$subdom,'',$request_uri);?>";}</script>     
     <?php } ?>
     <?php if($logout==3){ ?>
     <script> {window.location="?scri=user_reset0";}</script>     
     <?php } ?>
     
     <!-- ONLOAD -->
     <script>
     window.onload = function ()
     {
          console.log('*** ONLOAD ***');
          _urlinker='_cfg/_linker.php';
          
          if(xhref.indexOf('index3.php')>0)
          {window.location=xhref.replace('index3.php','');}
          

          // Detect whether device supports orientationchange event,otherwise fall back to the resize event.
          var supportsOrientationChange = "onorientationchange" in window,
          orientationEvent = supportsOrientationChange ? "orientationchange" : "resize";
          get_para();
 
          var screeno=0;
          if(screen.width<screen.height){screeno=1;}
          
          var data=new FormData();
          data.append('script','set_session1');
          data.append('screeno',screeno);
          data.append('screenw',screen.width);
          data.append('screenh',screen.height);
          exe_ajax(data);
        
          window.addEventListener(orientationEvent,function()
          {
               orient=0;
               if(screen.width<screen.height){orient=1;}
          //            alert('HOLY ROTATING SCREENS BATMAN:' + window.orientation + " " + screen.width + " " + screen.height);
          },false);  
          
          
// let elem = document.getElementById("miDiv");
// Agregar o modificar propiedades CSS
// elem.style.color = "red";        // texto rojo          

          if(document.getElementById('main1'))
          {
//                document.getElementById('main1').style. ='center';
          }
          
          
          
          if(document.getElementById('scrollhere'))
          {
               console.log('*** SCROLL ***');
               window.scrollTo({top: 0, left: 0});               
//                document.getElementById('scrollhere').scrollIntoView();
//                document.getElementById('scrollhere').scrollIntoView({behavior: "smooth", block: "start"});
//                document.getElementById('scrollhere').scrollIntoView({behavior: "smooth", block: "center"});
               document.getElementById('scrollhere').scrollIntoView({behavior: "auto", block: "center"});
               
//                window.scrollBy(0, -100);
          }
          else{console.log('--- SCROLL ---');}

          

          
          
          
          
     }   
     </script>   

     
     
     
     
<script>
</script>
     
     
     

     
     
     <div id="toppage"> </div>
     
     <?php if(empty($prnt)){ ?>  
     <div noprint class="container noprint" >
         <div id="navbar" class="navbar navbar-inverse navbar-fixed-top" style="position:fixed; z-index:9999999999;">
          <div class="navbar-inner">
            <div class="container" style="width:100%;">
               <?php
                    $menu1='menu_load1.php';
                    $menu1b='menu_'.$cfg_empr.'1.php';
                    if(file_exists($menu1b)){$menu1=$menu1b;}
                    include($menu1); 
               ?>
            </div>
          </div>
          <div class="container" style="width:100%;">
               <?php
                    $menu2='menu_load2.php';
                    $menu2b='../_lib/menu_'.$cfg_empr.'2.php';
                    if(file_exists($menu2b)){$menu2=$menu2b;}
                    include($menu2); 
               ?>
          </div>
         </div>

          <div id="login" class="modalDialog">
               <div  style="max-width:20em;">
                    <a href="#close" title="Close" class="close">×</a>
                    <?php //include ('user_login0.php'); ?>
               </div>
          </div>
     </div>
     <response hide id="response"></response>     
     <?php } ?>

     
     <?php
          if(file_exists('../_lib/'.$scri.'.js'))
          {
               $dom_js = new DOMDocument();
                    $dom_js->encoding = 'utf-8';
                    $dom_js->xmlVersion = '1.0';
                    $dom_js->formatOutput = true;
               $elem_js=$dom_js;
               
               $ele_script=$elem_js->appendChild($dom_js->createElement("script"," "));
                    $ele_script->setAttribute("src","//".$file_server."/_lib/".$scri.".js"."?version=".date('Hi'));
               
               echo $dom_js->saveHTML();
          }
     ?>
     
     
     
<!--       api para google maps      -->
<!--     <script src="https://maps.googleapis.com/maps/api/js?key=TU_CLAVE_API&callback=initMap&libraries=&v=weekly" async></script> -->
<!--     <div id="map" style="height:400px; width:100%;"></div> -->

<!--      leer codigos de barras -->
     <script src="https://cdnjs.cloudflare.com/ajax/libs/quagga/0.12.1/quagga.min.js"></script>
     
     
     <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
     <script src="https://cdnjs.cloudflare.com/ajax/libs/chosen/1.8.7/chosen.jquery.min.js"></script>

<!--      <script src="https://cdn.jsdelivr.net/npm/autonumeric@4.5.4"></script>      -->
     
<!--      <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/numeric/1.2.6/numeric.min.js"></script> -->
     <script src="//<?php echo $file_server; ?>/_js/jquery.numeric.js"></script>
     
	<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/bootswatch/2.3.2/js/bootstrap.min.js"></script>     
<!--      <script src="//<?php //echo $file_server; ?>/_js/bootstrap232.min.js"></script> -->
     
     <script src="//<?php echo $file_server; ?>/_js/jquery.slimmenu.min.js"></script>
<!--      <script type="text/javascript" src="https://github.com/adnantopal/slimmenu/blob/master/dist/js/jquery.slimmenu.min.js"></script> -->
     
<!--      <script src="//<?php //echo $file_server; ?>/_js/jquery.easing.min.js"></script> -->
     <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js"></script> 
     
<!-- <link rel="stylesheet" type="text/css" href="//vcrxol.com/_js/tableexport.min.css"> -->
     
<!--      <script src="//<?php //echo $file_server; ?>/_lib/sweetalert2@11.js"></script> -->
<!--      <script src="//cdn.jsdelivr.net/npm/sweetalert2@11"></script>      -->
<!--      update 2025-04-21 warning not show confirm button  -->
     <script src="//cdn.jsdelivr.net/npm/sweetalert2@11.1.9/dist/sweetalert2.all.min.js"></script>
     
     <script src="//<?php echo $file_server; ?>/_lib/lib_gene.js<?php echo $js_version;?>"></script>
     <script src="//<?php echo $file_server; ?>/_lib/lib_ajax.js<?php echo $js_version;?>"></script>
     <script src="//<?php echo $file_server; ?>/_lib/lib_espe.js<?php echo $js_version;?>"></script>

     <script>
          oscreen=0;
          if(screen.width<screen.height){oscreen=1;}
          set_cookie('oscreen',oscreen);
     </script>
     
     <!-- slimmenu -->
     <?php if(getPlatform()=='Android'){$xresizew=5000;}else{$xresizew=1000;} ?>
     <script> var xresizew=<?php echo $xresizew;?>;</script>
     
     <script>
     $(function(){
         $('.nav a,.brand,a[data-target]').click(function(){
             $('html,body').animate({scrollTop:$($(this).attr('data-target')).offset().top-50},500)
         })
     });

     $('ul.slimmenu').slimmenu(
     {
         resizeWidth:xresizew,
         collapserTitle:'Menu',
         easingEffect:'easeInOutQuint',
         animSpeed:'fast',
         indentChildren: true,
         childrenIndenter: '&raquo;',
         expandIcon:'&#9660',
         collapseIcon:'&#9650',
         initiallyVisible:false
     });

     $('body').on('keydown', 'input, select, textarea', function(e)
     {
       var self = $(this);
       var form = self.parents('body:eq(0)');
       var focusable,next,same;
       var key = (window.event) ? e.keyCode : e.which;

       if(key == 13)
       { 
           focusable = form.find('input,a,select,textarea').filter(':visible');
           same = focusable.eq(focusable.index(this));
           next = focusable.eq(focusable.index(this) + 1);
           if(next.length)
           {next.focus();}
           else
           {same.focus();}
//            else
//            {focusable.click();}
           return false;
       }
     });  

     </script>
     
     
     
     <script>
  document.addEventListener("DOMContentLoaded", function () 
   {
    const elementos = document.querySelectorAll("input, select");

    elementos.forEach(function(el) {
//          console.log(el);
      el.addEventListener("dblclick", function() {
        if (el.disabled) {
//            alert(1);
          el.disabled = false;
//           console.log("Elemento habilitado:", el);
          el.focus(); // Opcional: enfocar el elemento al habilitarlo
        }
      });
    });
  }
                           );
     </script>

     
     
     
     
</body>

     
<!--      $_SESSION['screenw'] -->
<!-- Image loader -->
<!-- <div id='loader' style='display:; position:absolute; top:120px; ' width="100%">
  <img src='http://vcrxol.com/_lib/reload.gif' width='320px' height='320px' align="center">
</div> -->
     
<div id='loader' style='display:none; top:120px; z-index:99999999999;'>
<table  width="100%" style="position:absolute; top:120px;">
     <tr>
     <td align="center">
<!--      <img src='http://vcrxol.com/_lib/reload.gif' width='320px' height='320px' align="center"> -->
     </td>
     </tr>
</table>
</div>     
     
<!-- Image loader -->     
     
     <!-- carga script php -->
     <?php if(empty($prnt)){ ?>
     <div id="brbr" noprint style="height:7em;"> </div> 
     <?php } ?>
     
     <?php
          $main_style='zoom:100%;';
     ?>
     
     <div id='main1' align="" style="zoom:100%;">
          <?php 
          if(!mb_stristr($scri,'.php')){$scri.='.php';}
          $scri='../_lib/'.$scri;
          if(!file_exists($scri)){$scri='_lib/'.$scri;}
          if(!file_exists($scri)){$scri='blank_'.$cfg_empr.'.php';}
          if(!file_exists($scri)){$scri='blank_defa.php';}
          $ttime1=date('H:i:s');
          include($scri);
          $ttime2=date('H:i:s');
          ?>
     </div>

     
          
     

     
     <div noprint unselect id="lastTime" style="position:fixed; bottom:0px; font-size:1.0em; color:<?php echo $empr0['empr_color1']; ?>;"><?php echo date('H:i:s'); ?></div>
     
     <?php if(substr($_SESSION['platform'],0,3)=='Win' and 1==2){ ?>
     <div noprint unselect id="btns_zoom" style="position:fixed; bottom:0px; left:40%; font-size:1.0em; zoom:100%; scale:0.80; z-index:99999999;" >
     <button onclick="{document.getElementById('main1').style.zoom=parseInt(document.getElementById('main1').style.zoom)-10 +'%'; document.getElementById('btn_zoom').innerHTML=document.getElementById('main1').style.zoom;}">➖</button>
     <button onclick="{document.getElementById('main1').style.zoom='100%'; document.getElementById('btn_zoom').innerHTML=document.getElementById('main1').style.zoom;}" id="btn_zoom">ZOOM</button>
     <button onclick="{document.getElementById('main1').style.zoom=parseInt(document.getElementById('main1').style.zoom)+10 +'%'; document.getElementById('btn_zoom').innerHTML=document.getElementById('main1').style.zoom;}">➕</button>
     </div>
     <?php } ?>
     
     <a noprint unselect id="myBtnTop" href="#toppage" style="position:fixed; bottom:25px; right:20px; font-size:1.5em; color:<?php echo $empr0['empr_color1']; ?>;display:none; z-index:9999999999;">▲</a>
     <a noprint unselect id="myBtnBot" href="#botpage" style="position:fixed; bottom:5px; right:20px; font-size:1.5em; color:<?php echo $empr0['empr_color1']; ?>;display:none;  z-index:9999999999;">▼</a>
     
     
     <hr noprint style="clear:both;">
     
     <script>
//      Return false only on Ctrl+A
//      function(el){el.addEventListener('keypress', function(e) {return e.keyCode != 65 || e.ctrlKey == false;});}
     </script>


     <!-- clearable -->
     <script>
//      Array.prototype.forEach.call
     [].forEach.call
     (
//           document.querySelectorAll('.clearable-input>[data-clear-input]'),
//           function(el){el.addEventListener('click', function(e) {e.target.nextElementSibling.value = '';});}
          document.querySelectorAll('.clearable-input>[data-clear-input]'),
          function(el){el.addEventListener('click', function(e) {e.target.nextElementSibling.value = ''; e.target.nextElementSibling.onchange();});}
     );
     </script>   

     <!-- data pass -->
     <script>
     [].forEach.call
     (
          document.querySelectorAll('.password-input>[password-input]'),
          function(el){el.addEventListener('click', function(e)
               {
                    if(e.target.previousElementSibling.type == 'text')
                    {e.target.previousElementSibling.type = 'password';}
                    else
                    {e.target.previousElementSibling.type = 'text';}
               });}
     );
     </script>   

     <!-- boton top -->
     <script>
     mybutton = document.getElementById("myBtnTop");
     mybuttonbott = document.getElementById("myBtnBot");
     // When the user scrolls down 20px from the top of the document, show the button
     // window.onafterprint = function() {scrollFunction()};
     window.onscroll = function() {scrollFunction()};
     function scrollFunction()
     {
       if(document.body.scrollTop > 600 || document.documentElement.scrollTop > 600){mybutton.style.display = "block";}
       else{mybutton.style.display = "none";}
       if(document.body.scrollTop > 600 || document.documentElement.scrollTop > 600){mybuttonbott.style.display = "block";}
       else{mybuttonbott.style.display = "none";}
     }
          
     window.onbeforeprint = function()
     {
          mybutton.style.display = "none";
          mybuttonbott.style.display = "none";
     };
          
     // When the user clicks on the button, scroll to the top of the document
     function topFunction()
     {
       document.body.scrollTop = 0; // For Safari
       document.documentElement.scrollTop = 0; // For Chrome, Firefox, IE and Opera
     }     
     </script>

     <!-- only numeric -->
     <!-- quitar type number -->
     <script type="text/javascript">
       $(document).ready(function(){ 
          $('.numeric-cod').numeric(false);
          $('.numeric-val').numeric(false);
          $('.numeric-int').numeric(false);
          $('.numeric-dec').numeric(".");
        });
     </script>   

     
     <script>
        $(document).ready(function(){$(".chosen").chosen();});
     </script>     

     
     
     
     <script>
//      var isCtrl = false; isShift=false;
//      window.addEventListener('load', function(){
//      document.getElementById('main1').addEventListener('keydown', function(e){
          
//           console.log(e.keyCode);
           
//           if (e.keyCode == 16){e.preventDefault(); isShift=true; return;}
          
//           if (e.keyCode == 17)
//           {
//                e.preventDefault();
//                isCtrl = true;
//           }

// //           if(isCtrl && !isShift)
//           if(isCtrl)
//           {
// //                var xletra,xboton;
// //                e.preventDefault();
               
// //                xletra='G'; xboton='btn_grabar';
// //                if (e.keyCode == xletra.charCodeAt() && document.getElementById(xboton))
// //                {document.getElementById(xboton).click();}
               
// //                xletra='I'; xboton='btn_print';
// //                if (e.keyCode == xletra.charCodeAt() && document.getElementById(xboton))
// //                {document.getElementById(xboton).click();}
               
// //                xletra='N'; xboton='btn_nuevo';
// //                if (e.keyCode == xletra.charCodeAt() && document.getElementById(xboton))
// //                {document.getElementById(xboton).click();}
               
// //                xletra='W'; xboton='btn_wsapp';
// //                if (e.keyCode == xletra.charCodeAt() && document.getElementById(xboton))
// //                {document.getElementById(xboton).click();}
//           }
          
          

//           });
//      });     
     </script>     
     
     
     <script>
     // var idleTime;
     // $(document).ready(function () {
     //          reloadPage();
     //         $('html').bind('mousemove click mouseup mousedown keydown keypress keyup submit change mouseenter scroll resize dblclick', function () {
     //             clearTimeout(idleTime);
     //             reloadPage();
     //         });
     // });
     // function reloadPage() {
     //     var xseconds=50;
     //     clearTimeout(idleTime);
     //     idleTime = setTimeout(function () {
     //         location.reload();
     //     }, xseconds*1000);
     // }          
     </script>
     
     
     <script>
     </script>     
     
     
     
     <script>
     // $(document).keypress(function(e) {return e.keyCode != 65 || e.ctrlKey == false; // Return false only on Ctrl+A}     
     </script>
     
     <script>
//           getHDDSerialNumber();
     </script>
     
     <script>
     // bloquea captura de pantalla          
     // getWindow (). SetFlags (WindowManager.LayoutParams.FLAG_SECURE, WindowManager.LayoutParams.FLAG_SECURE);          
     </script>
     
<!--      Cierra con ESC -->
     <script>
     // window.addEventListener("keyup", function(event){if (event.keyUp == 27){imgwindow.close();}}, false);
     </script>
     
<!--      <script>document.getElementById('main1').focus();</script>      -->
<!--      <script>document.getElementById('main1').click();</script>      -->

     
<!--      <script src="https://unpkg.com/html5-qrcode"></script>       -->
     
     <div id="botpage"> </div>
     
</html>



