<?php //session_start(); ?>
<?php ob_start(); ?>
<?php include('../_cfg/config.php');?>
<?php include('php_gene1.php'); ?>
<?php include('php_session.php');?>

<?php //$titulo=$_POST['titulo'] ?>
<?php $menu=$_POST['menu']; ?>
<?php $mobile=$_POST['mobile']; ?>
<?php //$desktop=!$_POST['mobile'] ?>
<?php $widesc=$_POST['widesc']; ?>
<?php $orient=$_POST['orient']; ?>
<?php $version=$_POST['version']; ?>

<?php if($mobile=='true'){$desktop='false';}else{$desktop='true';} ?>
<?php $empr_tipo=$_SESSION['empr_tipo'] ; ?>
<?php $user_tipo=$_SESSION['user_tipo'] ; ?>
<?php if($mobile==''){$mobile=$_SESSION['user_mobile'] ;} ?>
<?php //if($menu==''){$menu=$_SESSION['empr_tipo'] ;} ?>




<?php

if($user_tipo==''){$menu='zero';}
if(mb_stristr('clie.exte',$user_tipo)){$menu=$user_tipo;}
if(mb_stristr('cont.come.pyme',$empr_tipo)){if($user_tipo=='invi'){$menu='invi';}}	
if(mb_stristr('tfe1',$empr_tipo)){if($user_tipo=='invi'){$menu='invi';}}	
// echo $menu;
if($menu=='undefined' || $menu==''){$menu=strtolower($empr_tipo);} 



//       echo '/*/*/*/*/*/*'.$menu; 
      
// if($empr_tipo=='cont' or $empr_tipo=='pyme')
{
     
  $cont_sql='update enti0 set enti_descri="CONSUMIDOR FINAL", enti_razsoc="CONSUMIDOR FINAL", enti_tipo="-" where enti_codigo like "999999999%" ';
  $cont_res=msql_query($cont_sql,$link_vcrx);
     
  $cont_sql='select * from empr0 ';
  $cont_res=msql_query($cont_sql,$link_vcrx);
	
	$empr_caja=msql_result($cont_res,0,'empr_caja');
	$empr_inve=msql_result($cont_res,0,'empr_inve');
	$empr_cont=msql_result($cont_res,0,'empr_cont');
	$empr_nomi=msql_result($cont_res,0,'empr_nomi');
	$empr_plan=msql_result($cont_res,0,'empr_plan');
	$empr_clie=msql_result($cont_res,0,'empr_clie');
	$empr_guia=msql_result($cont_res,0,'empr_guia');

}

vrsetcolu('empr0','empr_email','varchar(50)','','');

// aki validar token o algo mas
// $menu='zero';
// $menu='cont';
// $menu='jwib';

if(empty($menu) and $cfg_empr=='jwib'){$menu='jwib';}
if(empty($menu)){$menu='pyme';}


?>



<?php $fsize=15?>
<?php $trbreak='';?>
<?php $tipomenu='';?>
<?php $maxmenu=2 ;?>
<?php //if($mobile=='true' and $orient=='V'){$fsize=40; echo '<br>';}?>
<?php //if($mobile=='true' and $orient=='H'){$fsize=15; $trbreak='</tr><tr><td style="font-size:4px;"></br></td></tr><tr>';}?>
<?php if($mobile=='true'){$desktop='false';$maxmenu=2;}else{$desktop='true';} ?>

<resul>
<!-- <div id="menumain0"> -->
    <?php for($cmenu=1;$cmenu<=$maxmenu;$cmenu++){ ?>
    <?php if($cmenu==1){$tipomenu='_top';}else{$tipomenu='_left';}?>
    <?php if($mobile=='true' and $cmenu==1){$fsize=40;}?>
    <?php if($mobile=='true' and $cmenu==2){$fsize=15; $trbreak='</tr><tr><td style="font-size:4px;"></br></td></tr><tr>';}?>

     
     
    <menu<?php echo $tipomenu; ?> id="menumain">

			<?php $classtab='menu1'; ?>
			<?php $classcol=$classtab.'_coligua'; ?>
      
      <?php if($mobile=='true'){echo '<br>';}?>
      <table id="menu<?php echo $tipomenu; ?>" width ="99%" valign="middle" border=0 class="<?php echo $classtab?>" onclick="resizeTab('<?php echo $classtab?>','<?php echo $classcol; ?>');"  onmouseover="this.onclick();">
        <tr valign="middle" style="height:100%;">
            <?php //if(1==2){?>
            <?php if($mobile=='false' and !mb_stristr('cont.jwib.cong.zero',$menu) and 1==2){?>
            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_main'; $pcaption='Principal'; $psize=$fsize; $ponclick='menu_main();';  include('vrbutton.php'); ?>
            </td>
						<?php } ?>
             
            <?php if($menu=='zero'){?>
          
  						<?php if($empr_clie==1){?>
              <?php echo $trbreak; ?>
              <td class="<?php echo $classcol; ?>" align="left" valign="middle">
              <?php //$pidtxt='mnu1_ctlg'.$tipomenu; $pcaption='Catálogo'; $psize=$fsize; $ponclick='ctlg_item("'.$cfg_empr.'");'; include('vrbutton.php'); ?>
              <?php 
               $ponclick='location.href=\'?scri=shop_item\';';
               if(mb_stristr('gmny.gnya',$cfg_empr)){$ponclick='location.href=\'?scri=ctlg_gmny\';';}                                                   
               $pidtxt='mnu1_ctlg'.$tipomenu; $pcaption='Catálogo'; $psize=$fsize; 
               include('vrbutton.php'); ?>
              </td>
							<?php } ?>
          
							<?php echo $trbreak; ?>
							<?php if($cfg_tipo=='cong'){?>
							<?php $pobj=3; if($orient=='V'){$pobj=2;}?>
							<?php //$pobj=1; ?>
							<?php //$pidtxt='cong'; $pcaption='Congregacion'; $psize=$fsize; $plong=6; $pdefa=$getcong; $ponblur="login_cong();"; include('vrgetnum.php'); ?>
<!-- 							<td align="left"> -->
							<?php //$pidtxt='visita'; $pcaption='ACEPTAR'; $psize=$fsize; $ponclick="login_cong();"; include('vrbutton.php'); ?>
<!-- 							</td> -->
							<?php } ?>
					
              <?php echo $trbreak; ?>
              <td class="<?php echo $classcol; ?>" align="right" valign="middle">
              <?php //$pidtxt='mnu1_ingre'.$tipomenu; $pcaption='Ingresar'; $psize=$fsize; $ponclick='location.href=\'?scri=user_login\';'; $phref=""; include('vrbutton.php'); ?>
                
              <?php echo $trbreak; ?>
              <td class="<?php echo $classcol; ?>" align="right" valign="middle">
              <?php //$pidtxt='mnu1_regi'.$tipomenu; $pcaption='Nuevo Usuario'; $psize=$fsize; $ponclick='regi_user("registra")'; include('vrbutton.php'); ?>
              <?php $pidtxt='mnu1_regi'.$tipomenu; $pcaption='Registrarse'; $psize=$fsize; $ponclick='regi_user("registra")'; include('vrbutton.php'); ?>
                
              <?php echo $trbreak; ?>
              <td class="<?php echo $classcol; ?>" align="right" valign="middle">
              <?php $pidtxt='mnu1_regi'.$tipomenu; $pcaption='Recuperar'; $psize=$fsize; $ponclick='regi_user("restaura")'; include('vrbutton.php'); ?>
              </td>
            <?php } ?>

            <?php if($menu=='invi'){?>

						<?php if($cfg_empr=='tfe1'){?>
              <?php echo $trbreak; ?>
              <td class="<?php echo $classcol; ?>" align="left" valign="middle">
              <?php $pidtxt='mnu1_tfe1'.$tipomenu; $pcaption='CONSULTAS'; $psize=$fsize; $ponclick='info_tfe1("PANT0","PC");'; include('vrbutton.php'); ?>
              </td>
							<?php } ?>

						<?php if(mb_stristr('pyme.cont',$cfg_tipo)){?>
              <?php echo $trbreak; ?>
              <td class="<?php echo $classcol; ?>" align="left" valign="middle">
              <?php $pidtxt='mnu1_ctlg'.$tipomenu; $pcaption='Catalogo'; $psize=$fsize; $ponclick='ctlg_item("'.$cfg_empr.'");'; include('vrbutton.php'); ?>
              </td>

              <?php echo $trbreak; ?>
              <td class="<?php echo $classcol; ?>" valign="middle">
                <?php //$pidtxt='mnu1_hoja'; $pcaption='Hoja/Pedido'; $psize=$fsize; $ponclick='hoja_carr("PANT0")';  include('vrbutton.php'); ?>
              </td>

              <?php } ?>

          
              <?php echo $trbreak; ?>
              <td class="<?php echo $classcol; ?>" align="left" valign="middle">
              <?php $pidtxt='mnu1_mdat'.$tipomenu; $pcaption='Mis Datos'; $psize=$fsize; $ponclick='user_dato()'; include('vrbutton.php'); ?>
              </td>
          <?php } ?>
					
  	        <?php if($menu=='clie'){?>
							<?php if($cfg_tipo=='pyme'){?>
							<?php echo $trbreak; ?>
              <td class="<?php echo $classcol; ?>" align="left" valign="middle">
              <?php $pidtxt='mnu1_ctlg'.$tipomenu; $pcaption='Catalogo'; $psize=$fsize; $ponclick='ctlg_item("'.$cfg_empr.'");'; include('vrbutton.php'); ?>
              </td>
          

							<?php echo $trbreak; ?>
              <td class="<?php echo $classcol; ?>" align="left" valign="middle">
              <?php $pidtxt='mnu1_carr'.$tipomenu; $pcaption='Mi Carrito'; $psize=$fsize; $Xponclick='carr_clie();'; $ponclick='location.href=\'?scri=carr_clie\';'; include('vrbutton.php'); ?>
              </td>
          
							<?php echo $trbreak; ?>
              <td class="<?php echo $classcol; ?>" align="left" valign="middle">
              <?php $pidtxt='mnu1_hoja'; $pcaption='Hoja/Pedido'; $psize=$fsize; $ponclick='hoja_carr("PANT0")';  include('vrbutton.php'); ?>
              </td>
          
              <?php echo $trbreak; ?>
              <td class="<?php echo $classcol; ?>" align="left" valign="middle">
              <?php $pidtxt='mnu1_pedi'.$tipomenu; $pcaption='Mis Pedidos'; $psize=$fsize; $ponclick='info_docu("PANT0","PC");'; include('vrbutton.php'); ?>
              </td>
          		<?php } ?>
          
              <?php echo $trbreak; ?>
              <td class="<?php echo $classcol; ?>" align="left" valign="middle">
              <?php $pidtxt='mnu1_fact'.$tipomenu; $pcaption='Mis Facturas'; $psize=$fsize; $ponclick='info_docu("PANT0","FC");'; include('vrbutton.php'); ?>
              </td>
          
              <?php echo $trbreak; ?>
              <td class="<?php echo $classcol; ?>" align="left" valign="middle">
              <?php $pidtxt='mnu1_ncre'.$tipomenu; $pcaption='Mis N/Credito'; $psize=$fsize; $ponclick='info_docu("PANT0","NC");'; include('vrbutton.php'); ?>
              </td>
          
              <?php echo $trbreak; ?>
              <td class="<?php echo $classcol; ?>" align="left" valign="middle">
              <?php $pidtxt='mnu1_mdat'.$tipomenu; $pcaption='Mis Datos'; $psize=$fsize; $ponclick='user_dato()'; include('vrbutton.php'); ?>
              </td>
          
              <?php echo $trbreak; ?>
              <td class="<?php echo $classcol; ?>" align="left" valign="middle">
              <?php $pidtxt='mnu1_refe'.$tipomenu; $pcaption='Mis Referidos'; $psize=$fsize; $ponclick='info_refe("PANT0","user");'; include('vrbutton.php'); ?>
              </td>
          
              <?php echo $trbreak; ?>
              <td class="<?php echo $classcol; ?>" align="left" valign="middle">
              <?php $pidtxt='mnu1_bono'.$tipomenu; $pcaption='Mis Bonos'; $psize=$fsize; $ponclick='info_docu("PANT0","CM");'; include('vrbutton.php'); ?>
              </td>
          
          
            <?php } ?>
          
             <?php
//              echo '*/*/*/*/'.$menu;
             ?>
             
            <?php if($menu=='pyme'){?>
            <div style="display:none;" ><top1>Menu Principal</top1><top2>Principal</top2></div>
          
            <?php if(mb_stristr('tfle.demo',$cfg_empr)){?>
          
            <?php 
              $cargo=get_nomi($user_cedula,'cargo');                                 
            ?>
          

            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_ratv'; $pcaption='Reg.Activ'; $ptitle="Registro de Actividades"; $psize=$fsize; $ponclick='{window.open("?scri=regi_atvd","_self")}';  include('vrbutton.php'); ?>
            </td>

            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_iatv'; $pcaption='Info.Activ'; $ptitle="Informe de Actividades"; $psize=$fsize; $ponclick='{window.open("?scri=tfle_repo","_self")}';  include('vrbutton.php'); ?>
            </td>

            <?php if(mb_stristr('SUPERVISOR 1',$cargo) or $user_tipo=='sist' ){ ?>
              <?php echo $trbreak; ?>
              <td class="<?php echo $classcol; ?>" valign="middle">
            <?php //$pidtxt='mnu1_susa'; $pcaption='Sueldos'; $ptitle="Sueldos"; $psize=$fsize; $ponclick='location.href="?scri=regi_susa";';  include('vrbutton.php'); ?>
              </td>
            <?php } ?>

            <?php } ?>
          
            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php //$pidtxt='mnu1_regi'; $pcaption='Registros'; $ptitle="Registro de Transacciones	"; $psize=$fsize; $ponclick='regi_docu("PANT1");';  include('vrbutton.php'); ?>
						<?php $pidtxt='mnu1_regi'; $pcaption='Registros'; $psize=$fsize; $ponclick='menu_main("regi");';  include('vrbutton.php'); ?>
            </td>

						<?php echo $trbreak; ?>
						<td class="<?php echo $classcol; ?>" valign="middle">
						<?php $pidtxt='mnu1_cons'; $pcaption='Consultas'; $psize=$fsize; $ponclick='location.href=\'?scri=info_docu\';'; $phref="?scri=info_docu"; include('vrbutton.php'); ?>
						</td>
					          
						<?php echo $trbreak; ?>
						<td class="<?php echo $classcol; ?>" valign="middle">
						<?php $pidtxt='mnu1_info'; $pcaption='Informes'; $psize=$fsize; $ponclick='location.href=\'?scri=info_modu\';'; $phref="?scri=info_modu"; include('vrbutton.php'); ?>
						</td>
					
						<?php echo $trbreak; ?>
						<td class="<?php echo $classcol; ?>" valign="middle">
						<?php $pidtxt='mnu1_maes'; $pcaption='Maestros'; $psize=$fsize; $ponclick='location.href=\'?scri=info_maes\';'; $phref="?scri=info_maes"; include('vrbutton.php'); ?>
						</td>
          
						<?php echo $trbreak; ?>
						<td class="<?php echo $classcol; ?>" valign="middle">
						<?php $pidtxt='mnu1_files'; $pcaption='Procesos'; $psize=$fsize; $ponclick='location.href=\'?scri=proc_eve1\';'; $phref="?scri=proc_eve1"; include('vrbutton.php'); ?>
						</td>
          
						<?php echo $trbreak; ?>
						<td class="<?php echo $classcol; ?>" valign="middle">
						<?php $pidtxt='mnu1_files'; $pcaption='Archivos'; $psize=$fsize; $ponclick='location.href=\'?scri=upld_file\';'; $phref="?scri=upld_file"; include('vrbutton.php'); ?>
						</td>
          
            <?php if(1==2){?>
					          
                <?php echo $trbreak; ?>
                <td class="<?php echo $classcol; ?>" valign="middle">
                <?php $pidtxt='mnu1_vtas'; $pcaption='Ventas'; $psize=$fsize; $ponclick='menu_main("vtas");';  include('vrbutton.php'); ?>
                </td>


                <?php echo $trbreak; ?>
                <td class="<?php echo $classcol; ?>" valign="middle">
                <?php $pidtxt='mnu1_comp'; $pcaption='Compras'; $psize=$fsize; $ponclick='menu_main("comp");';  include('vrbutton.php'); ?>
                </td>

                <?php if($empr_caja==1){?>
                <?php echo $trbreak; ?>
                <td class="<?php echo $classcol; ?>" valign="middle">
                <?php $pidtxt='mnu1_caja'; $pcaption='Caja/Bancos'; $psize=$fsize; $ponclick='menu_main("caja");';  include('vrbutton.php'); ?>
                </td>
                <?php } ?>

                <?php if($empr_caja==1){?>
                <?php echo $trbreak; ?>
                <td class="<?php echo $classcol; ?>" valign="middle">
                <?php $pidtxt='mnu1_rete'; $pcaption='Retenciones'; $psize=$fsize; $ponclick='menu_main("rete");';  include('vrbutton.php'); ?>
                </td>
                <?php } ?>

                <?php if($empr_cont==1){?>
                <?php echo $trbreak; ?>
                <td class="<?php echo $classcol; ?>" valign="middle">
                <?php $pidtxt='mnu1_cont'; $pcaption='Contabilidad'; $psize=$fsize; $ponclick='menu_main("cont");';  include('vrbutton.php'); ?>
                </td>
                <?php } ?>

                <?php if($empr_nomi==1){?>
                <?php echo $trbreak; ?>
                <td class="<?php echo $classcol; ?>" valign="middle">
                <?php $pidtxt='mnu1_nomi'; $pcaption='Nomina'; $psize=$fsize; $ponclick='menu_main("nomi");';  include('vrbutton.php'); ?>
                </td>
                <?php } ?>

                <?php if($empr_prod==1){?>
                <?php echo $trbreak; ?>
                <td class="<?php echo $classcol; ?>" valign="middle">
                <?php $pidtxt='mnu1_prod'; $pcaption='Producción'; $psize=$fsize; $ponclick='menu_main("nomi");';  include('vrbutton.php'); ?>
                </td>
                <?php } ?>

            <?php } ?>
          
						<?php if($empr_inve==1){?>
						<?php echo $trbreak; ?>
						<td class="<?php echo $classcol; ?>" valign="middle">
						<?php $pidtxt='mnu1_inve'; $pcaption='Inventarios'; $psize=$fsize; $ponclick='menu_main("inve");';  include('vrbutton.php'); ?>

                                   
						</td>
						<?php } ?>

						<?php if($empr_clie==1 and 1==2){?>
						<?php echo $trbreak; ?>
						<td class="<?php echo $classcol; ?>" valign="middle">
						<?php $pidtxt='mnu1_hoja'; $pcaption='Hoja/Pedido '; $psize=$fsize; $ponclick='hoja_carr("PANT0");';  include('vrbutton.php'); ?>
						</td>
						<?php } ?>

          
          <?php if(mb_stristr('sist.admi',$_SESSION['user_tipo'])){ ?>
                <?php echo $trbreak; ?>
                <td class="<?php echo $classcol; ?>" valign="middle">
                <?php $pidtxt='mnu1_mant'; $pcaption='Mantenimiento'; $psize=$fsize; $ponclick='menu_main("mant");';  include('vrbutton.php'); ?>
                </td>
            <?php } ?>
          
          <?php if(mb_stristr('demo.hfre.gmna.tfle.pcs1.anml.maxc.omaq.hg01',$cfg_empr) or 1==1){ ?>
                <?php echo $trbreak; ?>
                <td class="<?php echo $classcol; ?>" valign="middle">
                <?php $pidtxt='mnu1_mant'; $pcaption='Menu 3'; $psize=$fsize; 
                     $ponclick='location.href="index3.php?";';  include('vrbutton.php'); ?>
                </td>
            <?php } ?>
          
          <?php if(mb_stristr('demo.imcp.orel.gmny.gnya',$cfg_empr)){ ?>
                <?php echo $trbreak; ?>
                <td class="<?php echo $classcol; ?>" valign="middle">
                <?php $pidtxt='mnu1_mant'; $pcaption='Catalogo 2'; $psize=$fsize; 
                     $ponclick='location.href="index3.php?scri=ctlg_item3&format=3";';  include('vrbutton.php'); ?>
                </td>
            <?php } ?>
          
          
            <?php if($cfg_empr=='demo'){ ?>
              <?php echo $trbreak; ?>
                  <td class="<?php echo $classcol; ?>" valign="middle">
                  <?php //$pidtxt='mnu1_fuel'.$tipomenu; $pcaption='Combustible'; $psize=$fsize; $ponclick='nptc_fuel("FUEL0");'; include('vrbutton.php'); ?>
                  </td>
            <?php } ?>
          

            <?php } ?>

	          <?php if($menu=='regi'){?>
            <div style="display:none;"><top1>Registros</top1><top2>Registros</top2></div>

            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php //$pidtxt='mnu1_docu'; $pcaption='Documentos'; $ptitle="Registro de Transacciones	"; $psize=$fsize; $ponclick='regi_docu("PANT1");';  include('vrbutton.php'); ?>
            <?php $pidtxt='mnu1_docu'; $pcaption='Documentos'; $ptitle="Registro de Transacciones	"; $psize=$fsize; $ponclick='location.href="?scri=regi_docu";';  include('vrbutton.php'); ?>
            </td>

            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php //$pidtxt='mnu1_fact'; $pcaption='Ventas'; $ptitle="Ventas"; $psize=$fsize; $ponclick='location.href="?scri=regi_vtas";'; include('vrbutton.php'); ?>
                 <?php //if(mb_stristr('hfre',$cfg_empr)){ ?>
                <?php $pidtxt='mnu1_vtas'; $pcaption='Ventas'; $psize=$fsize; $ptitle="Ventas";
                     $ponclick='location.href="index3.php?scri=regi_vtas3";';  include('vrbutton.php'); ?>
                                                     <?php //}else{ ?>
            <?php //$pidtxt='mnu1_inve'; $pcaption='Inventarios'; $ptitle="Inventarios"; $psize=$fsize; $ponclick='location.href="?scri=regi_inve";';   include('vrbutton.php'); ?>
                 <?php //} ?>
            </td>

            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
                 <?php if(mb_stristr('hfre',$cfg_empr)){ ?>
                <?php $pidtxt='mnu1_inve'; $pcaption='Inventarios'; $psize=$fsize; $ptitle="Inventarios";
                     $ponclick='location.href="index3.php?scri=regi_inve3";';  include('vrbutton.php'); ?>
                                                     <?php }else{ ?>
            <?php $pidtxt='mnu1_inve'; $pcaption='Inventarios'; $ptitle="Inventarios"; $psize=$fsize; $ponclick='location.href="?scri=regi_inve";';   include('vrbutton.php'); ?>
                 <?php } ?>
            </td>

            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_rpro'; $pcaption='Retenciones'; $ptitle="Retenciones"; $psize=$fsize; $ponclick='location.href="?scri=regi_rpro";';  include('vrbutton.php'); ?>
            </td>
          
            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_hoja'; $pcaption='Hoja/Pedido'; $ptitle="Hoja Pedido"; $psize=$fsize; $ponclick='location.href="?scri=hoja_carr";';  include('vrbutton.php'); ?>
            </td>
           
            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_susa'; $pcaption='Sueldos'; $ptitle="Sueldos"; $psize=$fsize; $ponclick='location.href="?scri=regi_susa";';  include('vrbutton.php'); ?>
            </td>
          
            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_nomi'; $pcaption='Nomina'; $ptitle="Nomina"; $psize=$fsize; $ponclick='location.href="?scri=regi_nomi";'; include('vrbutton.php'); ?>
            </td>

           
            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php //$pidtxt='mnu1_rpla'; $pcaption='Reg.Plan'; $ptitle="Registro de Planificación	"; $psize=$fsize; $ponclick='regi_docu("PANT1");';  include('vrbutton.php'); ?>
            <?php $pidtxt='mnu1_rpla'; $pcaption='Planific.'; $ptitle="Planificación"; $psize=$fsize; $ponclick='{window.open("?scri=info_docu&docu=PLA1","_self")}';  include('vrbutton.php'); ?>
            </td>
           
            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_doc1'; $pcaption='DOCU1'; $ptitle="Version Anterior"; $psize=$fsize; $ponclick='location.href="https://tfle.vcrxol.com/lib/vrnewreg1.php";';  include('vrbutton.php'); ?>
            </td>

           
           
            <?php } ?>
          
	          <?php if($menu=='cont'){?>
            <div style="display:none;"><top1>Contabilidad</top1><top2>Contabilidad</top2></div>

            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_diar'; $pcaption='Diarios Cont.'; $psize=$fsize; $ponclick='info_docu("PANT0","DD");';  include('vrbutton.php'); ?>
            </td>

            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_diam'; $pcaption='Diarios Modu.'; $psize=$fsize; $ponclick='info_docu("PANT0","DDMM");';  include('vrbutton.php'); ?>
            </td>

            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_info'; $pcaption='Info.Cont.'; $psize=$fsize; $ponclick='info_cont("");';  include('vrbutton.php'); ?>
            </td>

            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_vtas'; $pcaption='Info.Vtas.'; $psize=$fsize; $ponclick='';  include('vrbutton.php'); ?>
            </td>

            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_comp'; $pcaption='Info.Comp.'; $psize=$fsize; $ponclick='';  include('vrbutton.php'); ?>
            </td>

            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_caja'; $pcaption='Info.Caja'; $psize=$fsize; $ponclick='';  include('vrbutton.php'); ?>
            </td>

            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_bcos'; $pcaption='Info.Bcos'; $psize=$fsize; $ponclick='';  include('vrbutton.php'); ?>
            </td>

            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_inve'; $pcaption='Info.Inve'; $psize=$fsize; $ponclick='';  include('vrbutton.php'); ?>
            </td>

            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_rete'; $pcaption='Info.Rete.'; $psize=$fsize; $ponclick='';  include('vrbutton.php'); ?>
            </td>

            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_nomi'; $pcaption='Info.Nomi.'; $psize=$fsize; $ponclick='';  include('vrbutton.php'); ?>
            </td>

					<?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_ats1'; $pcaption='A.T.S.'; $psize=$fsize; $ponclick='info_ats1("");';  include('vrbutton.php'); ?>
            </td>

					
					
					
            <?php } ?>

            <?php if($menu=='vtas'){?>
            <div style="display:none;"><top1>Ventas</top1><top2>Ventas</top2></div>

            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_item'; $pcaption='Items'; $psize=$fsize; $ponclick='';  include('vrbutton.php'); ?>
            </td>
					
            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_prof'; $pcaption='Proformas'; $psize=$fsize; $ponclick='info_docu("PANT0","PF");';  include('vrbutton.php'); ?>
            </td>

            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_pedi'; $pcaption='Pedidos'; $psize=$fsize; $ponclick='info_docu("PANT0","PC");';  include('vrbutton.php'); ?>
            </td>

            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_fact'; $pcaption='Facturas'; $psize=$fsize; $ponclick='info_docu("PANT0","FC");';  include('vrbutton.php'); ?>
            </td>

            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_ncre'; $pcaption='Notas /Crédito'; $psize=$fsize; $ponclick='info_docu("PANT0","NC");';  include('vrbutton.php'); ?>
            </td>

            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_guia'; $pcaption='Guia Remision'; $psize=$fsize; $ponclick='info_docu("PANT0","GR");';  include('vrbutton.php'); ?>
            </td>

            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_info'; $pcaption='Informes'; $psize=$fsize; $ponclick='info_vtas("");';  include('vrbutton.php'); ?>
            </td>

            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_carr'; $pcaption='Carritos'; $psize=$fsize; $ponclick='info_docu("PANT0","CA");';  include('vrbutton.php'); ?>
            </td>

            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_coti'; $pcaption='Cotizar'; $psize=$fsize; $ponclick='edit_carr("PANT0");';  include('vrbutton.php'); ?>
            </td>

					
					
					
            <?php } ?>

            <?php if($menu=='comp'){?>
            <div style="display:none;"><top1>Compras</top1><top2>Compras</top2></div>


            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_ppro'; $pcaption='Orden /Compra'; $psize=$fsize; $ponclick='info_docu("PANT0","PP");';  include('vrbutton.php'); ?>
            </td>

            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_fact'; $pcaption='Fact.Prov.'; $psize=$fsize; $ponclick='info_docu("PANT0","FP");';  include('vrbutton.php'); ?>
            </td>

            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_ncre'; $pcaption='Notas /Crédito'; $psize=$fsize; $ponclick='info_docu("PANT0","NP");';  include('vrbutton.php'); ?>
            </td>

            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_info'; $pcaption='Info.Compras'; $psize=$fsize; $ponclick='info_comp("");';  include('vrbutton.php'); ?>
            </td>

					
					
					
            <?php } ?>

            <?php if($menu=='caja'){?>
            <div style="display:none;"><top1>Caja/Bancos</top1><top2>Caja /Bancos</top2></div>

            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_iefe'; $pcaption='Ing.Efect.'; $psize=$fsize; $ponclick='info_docu("PANT0","IE");';  include('vrbutton.php'); ?>
            </td>

            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_iche'; $pcaption='Ing.Cheque'; $psize=$fsize; $ponclick='info_docu("PANT0","IC");';  include('vrbutton.php'); ?>
            </td>

            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_eefe'; $pcaption='Egr.Efect.'; $psize=$fsize; $ponclick='info_docu("PANT0","EE");';  include('vrbutton.php'); ?>
            </td>

            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_eche'; $pcaption='Egr.Cheque'; $psize=$fsize; $ponclick='info_docu("PANT0","CH");';  include('vrbutton.php'); ?>
            </td>

            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_depc'; $pcaption='Dep.Clie.'; $psize=$fsize; $ponclick='info_docu("PANT0","DC");';  include('vrbutton.php'); ?>
            </td>

            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_depo'; $pcaption='Dep.Gene.'; $psize=$fsize; $ponclick='info_docu("PANT0","DC");';  include('vrbutton.php'); ?>
            </td>

            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_debp'; $pcaption='Deb.Prov.'; $psize=$fsize; $ponclick='info_docu("PANT0","DP");';  include('vrbutton.php'); ?>
            </td>

            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_debi'; $pcaption='Deb.Gene.'; $psize=$fsize; $ponclick='info_docu("PANT0","ND");';  include('vrbutton.php'); ?>
            </td>

            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_caja'; $pcaption='Info.Caja'; $psize=$fsize; $ponclick='';  include('vrbutton.php'); ?>
            </td>

            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_ctab'; $pcaption='Info.Bancos'; $psize=$fsize; $ponclick='';  include('vrbutton.php'); ?>
            </td>

					
            <?php } ?>

            <?php if($menu=='rete'){?>
            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_rcli'; $pcaption='Ret.Clie.'; $psize=$fsize; $ponclick='info_docu("PANT0","RC");';  include('vrbutton.php'); ?>
            </td>

            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_rpro'; $pcaption='Ret.Prov.'; $psize=$fsize; $ponclick='info_docu("PANT0","RP");';  include('vrbutton.php'); ?>
            </td>

            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_rbco'; $pcaption='Ret.Bancos.'; $psize=$fsize; $ponclick='info_docu("PANT0","RB");';  include('vrbutton.php'); ?>
            </td>

            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_rete'; $pcaption='Info.Rete'; $psize=$fsize; $ponclick='';  include('vrbutton.php'); ?>
            </td>

            <?php } ?>

	  				<?php if($menu=='inve'){?>
            <div style="display:none;"><top1>Inventarios</top1><top2>Inventarios</top2></div>

            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php //$pidtxt='mnu1_item'; $pcaption='Items'; $psize=$fsize; $ponclick='';  include('vrbutton.php'); ?>
            </td>

            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php //$pidtxt='mnu1_info'; $pcaption='Saldos'; $psize=$fsize; $ponclick='info_comp("");';  include('vrbutton.php'); ?>
            </td>

            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php //$pidtxt='mnu1_toma'; $pcaption='Inv. Físico'; $psize=$fsize; $ponclick='';  include('vrbutton.php'); ?>
            </td>

            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php //$pidtxt='mnu1_ppro'; $pcaption='Orden /Compra'; $psize=$fsize; $ponclick='info_docu("PANT0","PP");';  include('vrbutton.php'); ?>
            </td>

            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php //$pidtxt='mnu1_fact'; $pcaption='Fact.Prov.'; $psize=$fsize; $ponclick='info_docu("PANT0","FP");';  include('vrbutton.php'); ?>
            </td>

  					<?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_ctlg'; $pcaption='Mant. Catalg.'; $psize=$fsize;
//                $ponclick='mant_ctlg("PANT0","","");';  
               $ponclick='location.href="?scri=mant_ctlg"';                                              
               include('vrbutton.php'); ?>
            </td>
					
						<?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_ctlv'; $pcaption='Ver Catalg.'; $psize=$fsize;
                $ponclick='ctlg_item("'.$cfg_empr.'");'; 
                    $ponclick='location.href=\'?scri=shop_item\';';
               if(mb_stristr('gmny.gnya',$cfg_empr)){$ponclick='location.href=\'?scri=ctlg_gmny\';';}                                                   
                                              
                if($cfg_empr=='orel')
                {$ponclick='location.href="?scri=ctlg_orel"';}
                include('vrbutton.php'); ?>
            </td>

						<?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_upim'; $pcaption='FOTOS'; $psize=$fsize;
//                 $ponclick='ctlg_item("'.$cfg_empr.'");'; 
//                 if($cfg_empr=='orel')
//                 {$ponclick='location.href="?scri=upld_imgi&"';}
                {$ponclick='location.href="index3.php?scri=ctlg_item3&format=5";';}
                include('vrbutton.php'); ?>
            </td>

            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_lite'; $pcaption='Carga Item'; $psize=$fsize; $ponclick='php_func("load_item()");';  include('vrbutton.php'); ?>
            </td>

	  				<?php } ?>

            <?php if($menu=='nomi'){?>
            <div style="display:none;"><top1>Ventas</top1><top2>Ventas</top2></div>

            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_nove'; $pcaption='Novedades'; $psize=$fsize; $ponclick='';  include('vrbutton.php'); ?>
            </td>
					
            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_empl'; $pcaption='Empleados'; $psize=$fsize; $ponclick='info_docu("PANT0","PF");';  include('vrbutton.php'); ?>
            </td>

            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_role'; $pcaption='Roles'; $psize=$fsize; $ponclick='info_docu("PANT0","RO");';  include('vrbutton.php'); ?>
            </td>

            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_relo'; $pcaption='Reloj'; $psize=$fsize; $ponclick='info_docu("PANT0","CL");';  include('vrbutton.php'); ?>
            </td>

            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_info'; $pcaption='Informes'; $psize=$fsize; $ponclick='info_vtas("");';  include('vrbutton.php'); ?>
            </td>
					
					
            <?php } ?>
          

            <?php if($menu=='info'){?>
            <div style="display:none;"><top1>Informes</top1><top2>Informes</top2></div>

            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_cont'; $pcaption='Contabilidad'; $psize=$fsize; $ponclick='cont_info("cont");';  include('vrbutton.php'); ?>
            </td>

            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_ats1'; $pcaption='SRI ATS'; $psize=$fsize; $ponclick='cont_info("ats1");';  include('vrbutton.php'); ?>
            </td>
            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_clie'; $pcaption='Pedidos'; $psize=$fsize; $ponclick='cont_info("vtas");';  include('vrbutton.php'); ?>
            </td>
            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_vtas'; $pcaption='Ventas'; $psize=$fsize; $ponclick='cont_info("vtas");';  include('vrbutton.php'); ?>
            </td>
            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_comp'; $pcaption='Compras'; $psize=$fsize; $ponclick='cont_info("comp");';  include('vrbutton.php'); ?>
            </td>
            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_caja'; $pcaption='Caja'; $psize=$fsize; $ponclick='cont_info("caja");';  include('vrbutton.php'); ?>
            </td>
            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_bcos'; $pcaption='Bancos'; $psize=$fsize; $ponclick='cont_info("bcos");';  include('vrbutton.php'); ?>
            </td>
            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_cxco'; $pcaption='C X Cob'; $psize=$fsize; $ponclick='cont_info("cxco");';  include('vrbutton.php'); ?>
            </td>
            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_cxpa'; $pcaption='C X Pag'; $psize=$fsize; $ponclick='cont_info("cxpa");';  include('vrbutton.php'); ?>
            </td>

						<?php if($empr_inve==1){?>
						<?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_inve'; $pcaption='Invent.'; $psize=$fsize; $ponclick='cont_info("inve");';  include('vrbutton.php'); ?>
            </td>
						<?php } ?>

						<?php if($empr_prod==1){?>
            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_prod'; $pcaption='Produccion'; $psize=$fsize; $ponclick='cont_info("prod");';  include('vrbutton.php'); ?>
            </td>
						<?php } ?>
					
						<?php if($empr_nomi==1){?>
            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_nomi'; $pcaption='Nomina'; $psize=$fsize; $ponclick='cont_info("nomi");';  include('vrbutton.php'); ?>
            </td>
						<?php } ?>
					
					
					
            <?php } ?>

            <?php if($menu=='even'){?>
            <div style="display:none;"><top1>Eventuales</top1><top2>Eventuales</top2></div>

            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_ctlu'; $pcaption='CatalogoU'; $psize=$fsize; $ponclick='ctlg_item("'.$cfg_empr.'");';  include('vrbutton.php'); ?>
            </td>
					
            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_ctlg'; $pcaption='Catalogo'; $psize=$fsize; $ponclick='mant_ctlg("PANT0","","");';  include('vrbutton.php'); ?>
            </td>
					
            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_intf'; $pcaption='Inv.Fisico'; $psize=$fsize; $ponclick='cont_info("intf");';  include('vrbutton.php'); ?>
            </td>
					
						<?php } ?>	

						<?php if($menu=='mant'){?>
          
            <div style="display:none;"><top1>Mantenimiento</top1><top2>Mantenimiento</top2></div>
          
          
						<?php echo $trbreak; ?>
						<td class="<?php echo $classcol; ?>" valign="middle">
						<?php $pidtxt='mnu1_maes'; $pcaption='Maestros'; $psize=$fsize; $ponclick='info_maes("PANT0");';  include('vrbutton.php'); ?>
						</td>
          
            <?php if(mb_stristr('sist.admi',$_SESSION['user_tipo'])){ ?>
            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_empr'; $pcaption='Empresa'; $psize=$fsize; $ponclick='mant_empr();';  include('vrbutton.php'); ?>
            </td>
            <?php } ?>
            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_user'; $pcaption='Usuarios'; $psize=$fsize; $ponclick='mant_user("PANT0");';  include('vrbutton.php'); ?>
            </td>
            
            
        
            
            <?php if(mb_stristr('sist.admi',$_SESSION['user_tipo'])){ ?>
            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_acce'; $pcaption='Accesos'; $psize=$fsize; $ponclick='mant_acce();';  include('vrbutton.php'); ?>
            </td>
            <?php } ?>
          
            <?php if(mb_stristr('sist',$_SESSION['user_tipo'])){ ?>
            <?php echo $trbreak; ?>
                <td class="<?php echo $classcol; ?>" valign="middle">
                <?php $pidtxt='mnu1_mysq2'; $pcaption='MySQL'; $psize=$fsize; $ponclick='mant_mysql();';  include('vrbutton.php'); ?>
                </td>
            <?php } ?>
            
            

            <?php echo $trbreak; ?>
                <td class="<?php echo $classcol; ?>" valign="middle">
                <?php $pidtxt='mnu1_ceall'; $pcaption='CELEC'; $psize=$fsize; $ponclick='cele_all();';  include('vrbutton.php'); ?>
                </td>
					
            <?php echo $trbreak; ?>
                <td class="<?php echo $classcol; ?>" valign="middle">
                <?php $pidtxt='mnu1_m3u'; $pcaption='.M3U'; $psize=$fsize; $ponclick='upld_iptv();';  include('vrbutton.php'); ?>
                </td>
					
					
          
            <?php } ?>

            <?php if($menu=='data'){?>
            <div style="display:none;" ><top1>MySQL</top1><top2>MySQL</top2></div>
            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_maes'; $pcaption='Tab.Master'; $psize=$fsize; $ponclick='set_data(0);';  include('vrbutton.php'); ?>
            </td>
            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_tran'; $pcaption='Tab.Transac.'; $psize=$fsize; $ponclick='set_data(1);';  include('vrbutton.php'); ?>
            </td>
            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_idx0'; $pcaption='Ind.Master'; $psize=$fsize; $ponclick='set_data(2);';  include('vrbutton.php'); ?>
            </td>
            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_idx1'; $pcaption='Ind.Transac'; $psize=$fsize; $ponclick='set_data(3);';  include('vrbutton.php'); ?>
            </td>
            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_view'; $pcaption='Vistas'; $psize=$fsize; $ponclick='set_data(4);';  include('vrbutton.php'); ?>
            </td>
            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_fill'; $pcaption='Listas'; $psize=$fsize; $ponclick='set_data(6);';  include('vrbutton.php'); ?>
            </td>
            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_defa'; $pcaption='Default'; $psize=$fsize; $ponclick='set_data(7);';  include('vrbutton.php'); ?>
            </td>
            <?php } ?>
 
 	          <?php if($menu=='cele'){?>
            <div style="display:none;" ><top1>Menu CELEC</top1><top2>CELEC</top2></div>

		          <?php if(mb_stristr('sist.admi',$_SESSION['user_tipo'])){ ?>
							<?php echo $trbreak; ?>
							<td class="<?php echo $classcol; ?>" valign="middle">
							<?php $pidtxt='mnu1_regi'; $pcaption='Registros'; $ptitle="Registro de Transacciones	"; $psize=$fsize; $ponclick='regi_docu("PANT0");';  include('vrbutton.php'); ?>
							</td>
							<?php } ?>

              <?php echo $trbreak; ?>
              <td class="<?php echo $classcol; ?>" valign="middle">
              <?php $pidtxt='mnu1_fact'.$tipomenu; $pcaption='Facturas'; $psize=$fsize; $ponclick='info_docu("PANT0","FC");'; include('vrbutton.php'); ?>
              </td>
          
              <?php echo $trbreak; ?>
              <td class="<?php echo $classcol; ?>" valign="middle">
              <?php $pidtxt='mnu1_ncre'.$tipomenu; $pcaption='N.Credito'; $psize=$fsize; $ponclick='info_docu("PANT0","NC");'; include('vrbutton.php'); ?>
              </td>
          
              <?php echo $trbreak; ?>
              <td class="<?php echo $classcol; ?>" valign="middle">
              <?php $pidtxt='mnu1_guia'.$tipomenu; $pcaption='Guias'; $psize=$fsize; $ponclick='info_docu("PANT0","GR");'; include('vrbutton.php'); ?>
              </td>
          
              <?php echo $trbreak; ?>
              <td class="<?php echo $classcol; ?>" valign="middle">
              <?php $pidtxt='mnu1_comp'.$tipomenu; $pcaption='Compras'; $psize=$fsize; $ponclick='info_docu("PANT0","FP");'; include('vrbutton.php'); ?>
              </td>
					
              <?php echo $trbreak; ?>
              <td class="<?php echo $classcol; ?>" valign="middle">
              <?php $pidtxt='mnu1_rpro'.$tipomenu; $pcaption='Retenciones'; $psize=$fsize; $ponclick='info_docu("PANT0","RP");'; include('vrbutton.php'); ?>
              </td>
					
		          <?php if(mb_stristr('sist.admi',$_SESSION['user_tipo'])){ ?>
              <?php echo $trbreak; ?>
              <td class="<?php echo $classcol; ?>" valign="middle">
              <?php $pidtxt='mnu1_enti'.$tipomenu; $pcaption='Clie/Prov'; $psize=$fsize; $ponclick='cele_enti("0");'; include('vrbutton.php'); ?>
              </td>
          
              <?php echo $trbreak; ?>
              <td class="<?php echo $classcol; ?>" valign="middle">
              <?php $pidtxt='mnu1_item'.$tipomenu; $pcaption='Prod/Serv'; $psize=$fsize; $ponclick='cele_item("0");'; include('vrbutton.php'); ?>
              </td>
							<?php } ?>
          
              <?php echo $trbreak; ?>
<!--               <td class="<?php echo $classcol; ?>" valign="middle"> -->
              <?php //$pidtxt='mnu1_empr'.$tipomenu; $pcaption='Mi Ruc'; $psize=$fsize; $ponclick='cele_empr("0");'; include('vrbutton.php'); ?>
<!--               </td> -->

		          <?php if(mb_stristr('sist.',$_SESSION['user_tipo'])){ ?>
                <?php echo $trbreak; ?>
                <td class="<?php echo $classcol; ?>" valign="middle">
                <?php $pidtxt='mnu1_mant'; $pcaption='Mantenimiento'; $psize=$fsize; $ponclick='menu_main("mant");';  include('vrbutton.php'); ?>
                </td>
    	        <?php } ?>
					
            <?php } ?>
 					
            <?php if($menu=='jwib' || $menu=='cong'){?>
            <div style="display:none;" ><top1>Menu Principal</top1><top2>Principal</top2></div>
          
          
            <?php if($cfg_empr=='jw19'){?>
            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php $pidtxt='mnu1_asam'; $pcaption='Asamblea'; $ptitle="Asamblea"; $psize=$fsize; $ponclick='info_maes("PANT0","PPTO");';  include('vrbutton.php'); ?>
            </td>

            <?php echo $trbreak; ?>
            <td class="<?php echo $classcol; ?>" valign="middle">
            <?php //$pidtxt='mnu1_ratv'; $pcaption='Reg.Activ'; $ptitle="Registro de Actividades	"; $psize=$fsize; $ponclick='regi_atvd("PANT1");';  include('vrbutton.php'); ?>
            </td>

            <?php } ?>
          
          
              <?php echo $trbreak; ?>
              <td class="<?php echo $classcol; ?>" valign="middle">
              <?php $pidtxt='mnu1_asem'.$tipomenu; $pcaption='Asig.Seman.'; $psize=$fsize; $ponclick='location.href=\'?scri=jwib_asig1&docu=ASEM\';'; $phref="?scri=jwib_asig1&docu=ASEM"; include('vrbutton.php'); ?>
              </td>
              <?php echo $trbreak; ?>
              <td class="<?php echo $classcol; ?>" valign="middle">
              <?php $pidtxt='mnu1_maes'.$tipomenu; $pcaption='Mej.Maestros'; $psize=$fsize; $ponclick='location.href=\'?scri=jwib_asig1&docu=MMAE\';'; $phref="?scri=jwib_asig1&docu=MMAE"; include('vrbutton.php'); ?>
              </td>
              <?php echo $trbreak; ?>
              <td class="<?php echo $classcol; ?>" valign="middle">
              <?php $pidtxt='mnu1_vida'.$tipomenu; $pcaption='Vida & Ministerio'; $psize=$fsize; $ponclick='location.href=\'?scri=jwib_asig1&docu=VIDA\';'; $phref="?scri=jwib_asig1&docu=VIDA"; include('vrbutton.php'); ?>
              </td>
              <?php echo $trbreak; ?>
               <td class="<?php echo $classcol; ?>" valign="middle">
               <?php $pidtxt='mnu1_asis'.$tipomenu; $pcaption='Asistencia'; $psize=$fsize;  $ponclick='location.href=\'?scri=jwib_asig1&docu=REUN\';'; $phref="?scri=jwib_asig1&docu=REUN"; include('vrbutton.php'); ?>
               </td>
              <?php echo $trbreak; ?>
              <td class="<?php echo $classcol; ?>" valign="middle">
              <?php $pidtxt='mnu1_estu'.$tipomenu; $pcaption='Estudios'; $psize=$fsize; $ponclick='location.href=\'?scri=jwib_asig1&docu=ESTU\';'; $phref="?scri=jwib_asig1&docu=ESTU"; include('vrbutton.php'); ?>
              </td>
              <?php echo $trbreak; ?>
              <td class="<?php echo $classcol; ?>" valign="middle">
              <?php $pidtxt='mnu1_rpu1'.$tipomenu; $pcaption='Reunion Publica'; $psize=$fsize; $ponclick='location.href=\'?scri=jwib_asig1&docu=DPU1\';'; $phref="?scri=jwib_asig1&docu=DPU1"; include('vrbutton.php'); ?>
              </td>
              <?php echo $trbreak; ?>
              <td class="<?php echo $classcol; ?>" valign="middle">
              <?php $pidtxt='mnu1_rpu2'.$tipomenu; $pcaption='Discursantes'; $psize=$fsize; $ponclick='location.href=\'?scri=jwib_asig1&docu=DPU2\';'; $phref="?scri=jwib_asig1&docu=DPU2"; include('vrbutton.php'); ?>
              </td>
              <?php echo $trbreak; ?>
              <td class="<?php echo $classcol; ?>" valign="middle">
              <?php $pidtxt='mnu1_vari'.$tipomenu; $pcaption='Anuncios'; $psize=$fsize; $ponclick='location.href=\'?scri=jwib_asig1&docu=VARI\';'; $phref="?scri=jwib_asig1&docu=VARI"; include('vrbutton.php'); ?>
              </td>
              <?php echo $trbreak; ?>
              <td class="<?php echo $classcol; ?>" valign="middle">
              <?php $pidtxt='mnu1_tlf'; $pcaption='Telefonos'; $ptitle="Directorio Telefonico"; $psize=$fsize; $ponclick='{window.open("?scri=info_maes&docu=TLFN","_self")}';  include('vrbutton.php'); ?>
              </td>
          
          
          
          
              <?php if(!mb_stristr('invi',$_SESSION['user_tipo'])){ ?>
              <?php echo $trbreak; ?>
                  <td class="<?php echo $classcol; ?>" valign="middle">
                  <?php $pidtxt='mnu1_prog'.$tipomenu; $pcaption='Carga.JW'; $psize=$fsize; $ponclick='jwib_prog1();'; include('vrbutton.php'); ?>
                  </td>
              <?php } ?>
              <?php if(mb_stristr('sist.admi',$_SESSION['user_tipo'])){ ?>
              <?php echo $trbreak; ?>
                  <td class="<?php echo $classcol; ?>" valign="middle">
                  <?php $pidtxt='mnu1_hora'.$tipomenu; $pcaption='Horario'; $psize=$fsize; $ponclick='jwib_asig1("HORA");'; include('vrbutton.php'); ?>
                  </td>
              <?php echo $trbreak; ?>
                  <td class="<?php echo $classcol; ?>" valign="middle">
                  <?php $pidtxt='mnu1_user'.$tipomenu; $pcaption='Usuarios'; $psize=$fsize; $ponclick='jwib_user("USER0");'; include('vrbutton.php'); ?>
                  </td>
              <?php echo $trbreak; ?>
                  <td class="<?php echo $classcol; ?>" valign="middle">
                  <?php $pidtxt='mnu1_info'.$tipomenu; $pcaption='Informes'; $psize=$fsize; $ponclick='jwib_rpc1("RPC0");'; include('vrbutton.php'); ?>
                  </td>
              <?php echo $trbreak; ?>
                  <td class="<?php echo $classcol; ?>" valign="middle">
                  <?php $pidtxt='mnu1_jwtv'.$tipomenu; $pcaption='JW_TV'; $psize=$fsize; $ponclick='jwib_jwtv();'; include('vrbutton.php'); ?>
                  </td>
                <?php echo $trbreak; ?>
                <td class="<?php echo $classcol; ?>" valign="middle">
                <?php $pidtxt='mnu1_mant'; $pcaption='Mantenimiento'; $psize=$fsize; $ponclick='menu_main("mant");';  include('vrbutton.php'); ?>
                </td>
          
              <?php } ?>
          
            <?php } ?>
          
          
            <?php if($menu=='tfe1'){ ?>
          
          
              <?php if(mb_stristr('sist.admi',$_SESSION['user_tipo'])){ ?>
                    <?php echo $trbreak; ?>
                    <td class="<?php echo $classcol; ?>" align="left" valign="middle">
                    <?php $pidtxt='mnu1_pedi'.$tipomenu; $pcaption='Pedidos'; $psize=$fsize; $ponclick='info_docu("PANT0","PC");'; include('vrbutton.php'); ?>
                    </td>
                    <?php echo $trbreak; ?>
                    <td class="<?php echo $classcol; ?>" valign="middle">
                    <?php $pidtxt='mnu1_mant'; $pcaption='Mantenimiento'; $psize=$fsize; $ponclick='menu_main("mant");';  include('vrbutton.php'); ?>
                    </td>
                <?php } ?>
          
						<?php } ?>
          
           <?php if(mb_stristr('gnya.gmny',$cfg_empr)){ ?>
                <?php echo $trbreak; ?>
                <td class="<?php echo $classcol; ?>" valign="middle">
                <a href="https://payp.page.link/Pfxb">
                <a href="?scri=payphone1.php">
                <img src="https://vcrxol.com/_logo/payphone2.png" alt="Aceptamos PayPhone" width="82" height="20">
                </a>
                </td>
           <?php } ?>
           
           
        </tr>
      </table>
<hr>
    </menu<?php echo $tipomenu; ?>>
    <?php } ?>
	
<!-- </div>	 -->
</resul>

<?php $obstart = ob_get_clean(); ?>
<?php //$obstart=alltrim($obstart); ?>
<?php $obstart = limpiahtml($obstart) ?>
<?php echo $obstart; ?>



