
	<?php 
	$consulta=ConsultarProducto($_GET['idregistro']);

  function ConsultarProducto($idregistro)
  {
    include 'conexion.php';
    $sentencia="SELECT U.*, R.rut, R.imagen, R.statusregistro FROM registroRemate R, usuarios U WHERE R.rut=U.usuario and idregistro='".$idregistro."' ";
    $resultado=$conexion->query($sentencia) or die ("Error consultar auto".mysqli_error($conexion));
    $filas=$resultado->fetch_assoc();
    return [
      $filas['rut'],
      $filas['banco'],
      $filas['tipocuenta'],
      $filas['numcuenta'],
      $filas['correo'],
      $filas['tlf'],
      $filas['imagen'],
      $filas['acepto'],
      $filas['statusregistro'],
      $filas['nombre'],

    ];

  }
	
	include ('menuadm.php') ?>
    <!-- Our About -->
	<section class="ulockd-about-one">
		<div class="container">
		    
			            <form id="booking_form" class="booking_form text-center" name="booking_form"  action="usuario2.php" method="POST" enctype= "multipart/form-data" novalidate="novalidate">
			              <input type="hidden" name="idregistro" value="<?php echo $_GET['idregistro']?>" >
			<div class="row">
				<div class="col-sm-12 col-md-12 ">
					<div class="booking_form_style1 text-center">
		                <!-- Booking Form Sart-->
		                <div class="messages"></div>
							<div class="row">
				                <div class="col-sm-12">
				                	<h3>USUARIO.</h3>
				                </div>
				                 
				                 <div class="form-group col-md-6">
                  <h2><b>Detalles:</b></h2>
                  <br>
                  <h4><b>Rut: </b><?php echo $consulta[0] ?>.</h4>
                  <h4><b>Nombre: </b><?php echo $consulta[9] ?>.</h4>
                  <h4><b>Banco:  </b><?php echo $consulta[1] ?>.</h4>
                  <h4><b>Tipo de Cuenta: </b><?php echo   $consulta[3] ?>.</h4>
                  <h4><b>Num. de cuenta: </b><?php echo  $consulta[2] ?>.</h4>
                  <h4><b>Correo:</b> <?php echo  $consulta[4] ?>.</h4>
                  <h4><b>Telefono: </b><?php echo $consulta[5] ?>.</h4>
                  <h4><b>Aceptación Bases del Remate: </b><?php if ($consulta[7]==1){ echo "<h3>SI</h3>"; } else{ echo "<h4>NO</h4>";}  ?>.</h4>
                 <div  class="col-md-offset-3 col-md-6">
				                    <div class="form-group">
    				                    <div class="form-check">
                                             <label class="form-check-label col-md-4" for="status">HABILITAR
                                            <input class="form-check-input" type="radio" name="statusregistro" id="statusregistro" value="1"  <?php if ($consulta[8]=="1") echo "checked" ?>  ></label>
                                           
                                          </div>
                                          <div class="form-check">
                                            <label class="form-check-label col-md-4" for="status">DESHABILITAR
                                            <input class="form-check-input" type="radio" name="statusregistro" id="statusregistro"  value="0"  <?php if ($consulta[8]=="0") echo "checked" ?>  ></label>
                                            
                                         </div>
				                    </div>
				                </div>
				                <div class="form-group">
                    				<div class="col-md-offset-3 col-md-6">
                                          <button type="submit" class="btn btn-info">GUARDAR</button>
                                          <a href='inic_adm.php'class="btn btn-danger ">CANCELAR</a>
                                    </div>
				                </div>
                  
               </div>
               
               <div class="form-group col-md-6">
                  <!-- <iframe width="500" height="315" src="https://www.youtube.com/embed/9T0mp5k8XFo" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
                   
                -->

              <div class="form-group col-md-9">
                  <img src="<?php echo $consulta[6] ?>" width='300' >
              </div>
             
                </div>
				                
				                
				                
				               
				                    
			                </div>
					</div>
				</div>
			</div>
			 </form>
		</div>
	</section>

	<?php include ('pieadm.php') ?>


	
