<?php //session_start();?>
<?php //include('../cfg/config.php');?>
<?php //$titulo=$_POST['titulo'] ?>
<?php //$widesc=$_POST['widesc'] ?>
<?php //echo $mobile;?>

<?php $mobile=$_POST['mobile'] ?>
<?php $email=$_POST['email']; ?>
<?php $confirm=$_POST['confirma']; ?>
<?php $recover=$_POST['recupera']; ?>

<!-- <script src='https://www.google.com/recaptcha/api.js'></script> -->

<?php // include('https://www.google.com/recaptcha/api.js'); ?>


<?php
$regis=1;
if ($email!='' and $confirm!=''){$regis=2;}
if ($email!='' and $recover!=''){$regis=6;}
// $regis=4;
?>

<?php // include('recaptchalib.php');?>

<?php if (loginOK()=='false' or 1==1) { ?>
<br/>
<?php // echo $mobile; ?>
<?php if($mobile=='false') { ?>
<table align="center" width="100%" border=0 >
   <tr>
      <?php if($regis==1){?>
      <td align="left" colspan=2>
      <?php $pidtxt='label1'; $pcaption='Nuevo Usuario'; $psize=14; include('vrbutton.php'); ?>
      </td>
      <?php } ?>  
      <?php if($regis==2){?>
      <td align="left" colspan=2>
      <?php $pidtxt='label1'; $pcaption='Confirma Usuario'; $psize=14; include('vrbutton.php'); ?>
      </td>
      <?php } ?>  
      <?php if($regis==6){?>
      <td align="left" colspan=2>
      <?php $pidtxt='label1'; $pcaption='Restaura Clave'; $psize=14; include('vrbutton.php'); ?>
      </td>
      <?php } ?>  
      <td></td>
    </tr>

    <tr>
      <?php $pidtxt='email'; $pcaption='e-mail'; $psize=14; $plong=20; $pobj=3; $pdefa=$email; include('vrgettxt.php'); ?>
      <td width="50%"></td>
    </tr>
  
     <tr>
      <?php if($regis==1){?>
      <?php $pidtxt='clave'; $pcaption='clave'; $psize=14; $plong=10; $pobj=3; $ppass=1; include('vrgettxt.php'); ?>
      <?php } ?>  
      <?php if($regis==2){?>
      <?php $pidtxt='codigo'; $pcaption='codigo'; $psize=14; $plong=6;  $pobj=3; $pdefa=$confirm;  include('vrgetnum.php'); ?>
      <?php } ?>  
      <?php if($regis==6){?>
      <?php $pidtxt='codigo'; $pcaption='codigo'; $psize=14; $plong=6;  $pobj=3; $pdefa=$recover;  include('vrgetnum.php'); ?>
      <?php } ?>  
      <td></td>
<!--       <td><?php echo '***'.$confirm.'---'.$recover.'////'.$regis ; ?></td> -->
    </tr>

    
    <tr style="<?php if($regis==2 or $regis==6){echo 'display:none;';} ?>">
      <td></td>
      <td>
        <div id='recaptcha' style="transform:scale(1);-webkit-transform:scale(1);">
      </td>
    </tr>
  
    <tr align="left">
      <td></td>
      <?php if($regis==1){ ?>
      <td align="left">
      <?php $pidtxt='regis'; $pcaption='Registrarse'; $psize=14; $ponclick='regis(1);'; include('vrbutton.php'); ?>
      </td>
      <td align="left">
      <?php $pidtxt='recov'; $pcaption='Restaura Clave'; $psize=14; $ponclick='regis(5);'; include('vrbutton.php'); ?>
      </td>
      <?php } ?>  
      
      <?php if($regis==2){ ?>
      <td align="left">
      <?php $pidtxt='confi'; $pcaption='Confirmar'; $psize=14; $ponclick='regis(2);'; include('vrbutton.php'); ?>
      </td>
      <?php } ?>  
        
        
      <?php if($regis==6){ ?>
      <td align="left">
      <?php $pidtxt='recov'; $pcaption='Restaurar'; $psize=14; $ponclick='regis(6);'; include('vrbutton.php'); ?>
      </td>
      <?php } ?>  

      <td></td>
    </tr>

</table> 
<?php } ?>


<?php if($mobile=='true') {?>
<table align="center" width="100%" border=1 id="regis1" style="<?php if($regis==1) { echo 'display:none;'; } ?>">
    <tr >
      <?php $pidtxt='email'; $pcaption='e-mail'; $psize=60; $plong="90%"; $pobj=2; $pdefa=$email; include('vrgettxt.php'); ?>
    </tr>

    <?php if($regis==1) {?>
    <tr>
      <?php $pidtxt='clave'; $pcaption='clave'; $psize=60; $plong="90%"; $pobj=2; $ppass=1; include('vrgettxt.php'); ?>
    </tr>
    <?php } ?>

    <tr>
    <?php if($regis==2) {?>
      <?php $pidtxt='codigo'; $pcaption='codigo'; $psize=60; $plong="90%";  $pobj=2; $pdefa=$confirm;  include('vrgetnum.php'); ?>
    </tr>
    <?php } ?>
 
    <tr style="<?php if($regis==2 or $regis==6){echo 'display:none;';} ?>">
      <td align="center" height="200px">
        <div id='recaptcha' align="center" style="transform:scale(2.5);-webkit-transform:scale(2.5);">
        </div>
      </td>
    </tr>

    <tr height="150px">
      <td align="center">
      <?php if($regis==1) {?>
      <?php $pidtxt='registro'; $pcaption='Registrarse'; $psize=60; $ponclick='regis(1);'; $pdefa=$email; include('vrbutton.php'); ?>
      <?php } ?>

      <?php if($regis==2) {?>
      <?php $pidtxt='confirm'; $pcaption='Confirmar'; $psize=60; $plong=6; $ponclick='regis(2);'; $pdefa=$confirm; include('vrbutton.php'); ?>
      <?php } ?>

      <?php if($regis==5) {?>
      <?php $pidtxt='recov'; $pcaption='Cambiar Clave'; $psize=60; $ponclick='regis(5);'; include('vrbutton.php'); ?>
      <?php } ?>


      </td>
    </tr>
  

  

</table> 
<?php } ?>

<?php } ?>


