<?php session_start();?>
<?php include('../_cfg/config.php');?>
<?php include('php_gene1.php'); ?>
<?php include('php_session.php');?>
<?php $orient=$_POST['orient']; ?>
<?php $pant=$_POST['pant']; ?>
<?php $email=$_POST['email']; ?>
<?php //die(); ?>


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

<?php


?>


<?php
if(empty($pant)){$pant='pant1';}
// if ($email!='' and $confirm!=''){$regis=2;}
// if ($email!='' and $recover!=''){$regis=6;}
$xfontsize=12;
if($mobile=='true' and $orient=='V'){$xfontsize=80;}


?>

<?php ob_start(); ?>
<resultado>
	
<?php if ($pant=='pant1'){?>	
<pant1>

<?php
	$sql_user='select * from user0 where user_codigo="'.$user_codigo.'"';
	$res_user=msql_query($sql_user,$link_vcrx);
?>	
	
<!-- <script src='https://www.google.com/recaptcha/api.js'></script> -->
<?php //if($datos='datos'){ ?>
<!-- <form> -->
        <div id="login1">
        <table id="top_table2"  style="width:100%;" border="1">
          
          <tr valign="middle" style="height:150;">
              <?php //$pidtxt='loguser'; $pcaption='Usuario'; $plong="90%"; $psize=80; $pobj=2; $pdefa=$usuario; include('vrgettxt.php'); ?>
              <?php $pidtxt='loguser'; $pcaption='Usuario'; $plong="90%"; $psize=$xfontsize; $pobj=2; $pdefa=$usuario; include('vrgettxt.php'); ?>
          </tr>
          <tr valign="middle" style="height:150;">
              <?php //$pidtxt='logpass'; $pcaption='Clave'; $plong="90%"; $psize=80; $pobj=2; $ppass=1; $ponclick="login()"; include('vrgettxt.php'); ?>
              <?php $pidtxt='logpass'; $pcaption='Clave'; $plong="90%"; $psize=$xfontsize; $pobj=2; $ppass=1; $ponclick="login1()"; include('vrgettxt.php'); ?>
          </tr>
          <tr valign="middle" style="height:150;" >
              <td align="center" colspan="2">
              <?php //$pidtxt='login'; $pcaption='Iniciar Sesión'; $psize=80; $ponclick="login();"; include('vrbutton.php'); ?>
              <?php $pidtxt='login'; $pcaption='Iniciar Sesión'; $psize=$xfontsize; $ponclick="login1();"; include('vrbutton.php'); ?>
              </td>
          </tr>
          <tr valign="middle" style="height:150;" >
              <td align="center" colspan="2">
              <?php // $pidtxt='nuevo'; $pcaption='Nuevo usuario'; $psize=80; ?>
              <?php  $pidtxt='nuevo'; $pcaption='Nuevo usuario'; $psize=$xfontsize; 
                  $ponclick="{if(document.getElementById('regis1').style.display=='none')
                              {
                                document.getElementById('login1').style.display='none';
                                document.getElementById('regis1').style.display='block';
                                document.getElementById('main_top').style.height='120px';
                                document.getElementById('nuevo').scrollIntoView();
                              }
                              else
                              {
                                document.getElementById('regis1').style.display='none';
                                document.getElementById('main1').scrollIntoView();
                              }
                              };";
//                   include('vrbutton.php'); 
                ?>
              </td>
          </tr>
          <?php if($empr_tipo=="cont" and 1==2) {?>
          <tr valign="middle" style="height:150;" >
              <td align="center" colspan="2">
              <?php  $pidtxt='catalogo'; $pcaption='Catalogo'; $psize=80; 
                  $ponclick="{login('invi');}{location.href='?ctlgi=1'};";
                  include('vrbutton.php');
                ?>
              </td>
          </tr>
          <?php } ?>
        </table>
          </div>

<!-- </form>	 -->
<?php //} ?>

</pant1>
<?php } ?>	

<?php if ($pant=='grabar'){?>	
<graba1>
<?php
	
	$sql_user='update user0 set user_descri="'.$nombre.'" where user_codigo="'.$user_codigo.'"';
	$res_user=msql_query($sql_user,$link_vcrx);

	$sql_user='update user0 set user_descri="'.$nombre.'" where user_codigo="'.$user_codigo.'"';
	$res_user=msql_query($sql_user,$link_vcrx);
	
	$sql_user='update user0 set user_cedula="'.$cedula.'" where user_codigo="'.$user_codigo.'"';
	$res_user=msql_query($sql_user,$link_vcrx);
	
	$sql_user='update user0 set user_telefono="'.$telefono.'" where user_codigo="'.$user_codigo.'"';
	$res_user=msql_query($sql_user,$link_vcrx);
	
	$sql_user='update user0 set user_celular="'.$celular.'" where user_codigo="'.$user_codigo.'"';
	$res_user=msql_query($sql_user,$link_vcrx);
	
	$sql_user='update user0 set user_postal="'.$postal.'" where user_codigo="'.$user_codigo.'"';
	$res_user=msql_query($sql_user,$link_vcrx);
	
	$sql_user='update user0 set user_calle1="'.$calle1.'" where user_codigo="'.$user_codigo.'"';
	$res_user=msql_query($sql_user,$link_vcrx);
	
	$sql_user='update user0 set user_calle2="'.$calle2.'" where user_codigo="'.$user_codigo.'"';
	$res_user=msql_query($sql_user,$link_vcrx);
	
	$sql_user='update user0 set user_calle3="'.$calle3.'" where user_codigo="'.$user_codigo.'"';
	$res_user=msql_query($sql_user,$link_vcrx);
	
	$sql_user='update user0 set user_callen="'.$callen.'" where user_codigo="'.$user_codigo.'"';
	$res_user=msql_query($sql_user,$link_vcrx);
	
	$sql_user='update user0 set user_pais="'.$pais.'" where user_codigo="'.$user_codigo.'"';
	$res_user=msql_query($sql_user,$link_vcrx);
	
	$sql_user='update user0 set user_ciudad="'.$ciudad.'" where user_codigo="'.$user_codigo.'"';
	$res_user=msql_query($sql_user,$link_vcrx);
	
	$sql_user='update user0 set user_descri="'.$nombre.'" where user_codigo="'.$user_codigo.'"';
	$res_user=msql_query($sql_user,$link_vcrx);
	
	$sql_user='update carr1 set enti="'.$cedula.'" where iuser="'.$user_codigo.'"';
	$res_user=msql_query($sql_user,$link_vcrx);
	
?>	
</graba1>	
<?php } ?>	
	
</resultado>
<?php $obstart = ob_get_clean(); ?>
<?php $obstart = alltrim($obstart) ?>
<?php echo $obstart;	?>

		