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

<?php $fechadtr=get_fechadtr(); ?>

<?php foreach($_POST as $campo => $valor){${$campo}=$valor;} ?>
<?php //foreach($_POST as $campo => $valor){setcookie($campo,$valor);} ?>


<?php ob_start(); ?>
<resultado>
<?php	//val_usercodigo(); ?>

<?php $filelogo=$rutalogo.$logofile2;	?>
  
  
<?php $logo1='../../_logo/logo'.$cfg_empr.'1.png'; ?>  

<?php if(file_exists($logo1)){ ?>  
  
<?php $logo1='https://vcrxol.com/_logo/logo'.$cfg_empr.'1.png'; ?>  
<div align="center">
<img src="<?php echo $logo1;?>" alt=""
     title="<?php echo $cfg_descri; ?>" style=" width:99%">		
</div>
  
<?php }?>
  
<?php if($cfg_empr=='jwib' and $user_codigo==''){ ?>  
<?php
$xfontsize=20;
if($mobile=='true' and $orient=='V'){$xfontsize=60;}
if($mobile=='true' and $orient=='H'){$xfontsize=30;}
?>

<br/>

<?php if($mobile=='false') { ?>
<table align="center" width="100%" border=0 >
    <tr>
      <?php $pidtxt='cong'; $pcaption='Congregacion'; $psize=$xfontsize; $plong=6; $pobj=2; $pdefa=$getcong; $ponblur="login_cong(document.getElementById('cong').value);"; include('vrgetnum.php'); ?>
    </tr>
    <tr>
    </tr>
    <tr>
      <td align="center">
      <?php $pidtxt='visita'; $pcaption='ACEPTAR'; $psize=$xfontsize; $ponclick="login_cong(document.getElementById('cong').value);"; include('vrbutton.php'); ?>
      </td>
    </tr>
</table> 
<?php } ?>

<?php if($mobile=='true' and $orient=='V') { ?>
<br/><br/>
<br/><br/>
<table align="center" width="100%" border=1 >
    <tr>
      <?php $pidtxt='cong'; $pcaption='Congregacion'; $psize=$xfontsize; $plong=6; $pobj=2; $pdefa=$getcong; $ponclick="login_cong();"; include('vrgetnum.php'); ?>
    </tr>
    <tr  height="150px">
      <td align="center">
      <?php $pidtxt='visita'; $pcaption='ACEPTAR'; $psize=$xfontsize; $ponclick="login_cong(document.getElementById('cong').value);"; include('vrbutton.php'); ?>
      <?php //$pidtxt='visita'; $pcaption='Aceptar'; $psize=$xfontsize;  $ponclick="login_cong();"; include('vrbutton.php'); ?>
      </td>
    </tr>
</table> 
<?php } ?>


<?php if($mobile=='true' and $orient=='H') { ?>
<!-- <br/><br/> -->
<!-- <br/><br/> -->
<table align="center" width="100%" border=1 >
    <tr>
      <?php $pidtxt='cong'; $pcaption='Congregacion'; $psize=$xfontsize; $plong=6; $pobj=3; $pdefa=$getcong; include('vrgetnum.php'); ?>
<!--     </tr> -->
<!--     <tr  height="150px"> -->
      <td align="center">
      <?php $pidtxt='visita'; $pcaption='Aceptar'; $psize=$xfontsize;  $ponclick="login_cong();"; include('vrbutton.php'); ?>
      </td>
    </tr>
</table> 
<?php } ?>

  
<?php } ?>
  
  
  
</resultado>

<?php $obstart = ob_get_clean(); ?>
<?php $obstart = limpiahtml($obstart) ?>
<?php $obstart = str_replace('border="0"','',$obstart); ?>
<?php $obstart = str_replace('align="left"','',$obstart); ?>
<?php $obstart = str_replace('title=""','',$obstart); ?>
<?php $obstart = str_replace('position:;','',$obstart); ?>
<?php $obstart = str_replace('" "','""',$obstart); ?>
<?php $obstart = str_replace(';;',';',$obstart); ?>
<?php $obstart = str_replace('onclick=""','',$obstart); ?>
<?php echo $obstart;	?>

		