<?php
$sentencia="SELECT * FROM inmuebles WHERE in_id=".$_GET['in_id'];
?>
<form action="actualizado.php" method="post">
<table width="80%" align="center" bordercolor="#0000FF">
<tr>
<td class="textoinfo">Tipo de Inmueble</td>
<td><select name="mitipo">
<option value="casa"<?php if($fila['in_tipo']=='casa'){echo ' selected="selected"';} ?>>Casa</option>
<option value="apartamento"<?php if($fila['in_tipo']=='apartamento'){echo ' selected="selected"';} ?>>Apartamento</option>
<option value="apartaestudio"<?php if($fila['in_tipo']=='apartaestudio'){echo ' selected="selected"';} ?>>Apartaestudio</option>
<option value="duplex"<?php if($fila['in_tipo']=='duplex'){echo ' selected="selected"';} ?>>Duplex</option>
<option value="triplex"<?php if($fila['in_tipo']=='triplex'){echo ' selected="selected"';} ?>>Triplex</option>
<option value="local"<?php if($fila['in_tipo']=='local'){echo ' selected="selected"';} ?>>Local</option>
</select>
</td>
</tr>
<tr>
<td class="textoinfo">Tipo de Negocio</td>
<td><select name="minegocio">
<option value="venta"<?php if($fila['in_negocio']=='venta'){echo ' selected="selected"';} ?>>Venta</option>
<option value="arriendo"<?php if($fila['in_negocio']=='arriendo'){echo ' selected="selected"';} ?>>Arriendo</option>
<option value="permuta"<?php if($fila['in_negocio']=='permuta'){echo ' selected="selected"';} ?>>Permuta</option>
</select>
</td>
</tr>
<tr>
<td class="textoinfo">Ubicación</td>
<td>
<select name="miubicacion">
<option value="ANTONIO NARIÑO"<?php if($fila['in_ubicacion']=='antonio nariño'){echo ' selected="selected"';} ?>>ANTONIO NARIÑO</option>
<option value="BARRIOS UNIDOS"<?php if($fila['in_ubicacion']=='barrios unidos'){echo ' selected="selected"';} ?>>BARRIOS UNIDOS</option>
<option value="BOSA"<?php if($fila['in_ubicacion']=='bosa'){echo ' selected="selected"';} ?>>BOSA</option>
<option value="CHAPINERO"<?php if($fila['in_ubicacion']=='chapinero'){echo ' selected="selected"';} ?>>CHAPINERO</option>
<option value="CIUDAD BOLÍVAR"<?php if($fila['in_ubicacion']=='ciudad bolivar'){echo ' selected="selected"';} ?>>CIUDAD BOLÍVAR</option>
<option value="ENGATIVÁ"<?php if($fila['in_ubicacion']=='engativa'){echo ' selected="selected"';} ?>>ENGATIVÁ</option>
<option value="FONTIBÓN"<?php if($fila['in_ubicacion']=='fontibon'){echo ' selected="selected"';} ?>>FONTIBÓN</option>
<option value="KENNEDY"<?php if($fila['in_ubicacion']=='kennedy'){echo ' selected="selected"';} ?>>KENNEDY</option>
<option value="CANDELARIA"<?php if($fila['in_ubicacion']=='candelaria'){echo ' selected="selected"';} ?>>LA CANDELARIA</option>
<option value="LOS MÁRTIRES"<?php if($fila['in_ubicacion']=='los martires'){echo ' selected="selected"';} ?>>LOS MÁRTIRES</option>
<option value="PUENTE ARANDA"<?php if($fila['in_ubicacion']=='puente aranda'){echo ' selected="selected"';} ?>>PUENTE ARANDA</option>
<option value="RAFAEL URIBE"<?php if($fila['in_ubicacion']=='rafael uribe'){echo ' selected="selected"';} ?>>RAFAEL URIBE</option>
<option value="SAN CRISTOBAL"<?php if($fila['in_ubicacion']=='san cristobal'){echo ' selected="selected"';} ?>>SAN CRISTOBAL</option>
<option value="SANTA FE"<?php if($fila['in_ubicacion']=='santa fe'){echo ' selected="selected"';} ?>>SANTA FE</option>
<option value="SUBA"<?php if($fila['in_ubicacion']=='suba'){echo ' selected="selected"';} ?>>SUBA</option>
<option value="SUMAPAZ"<?php if($fila['in_ubicacion']=='sumapaz'){echo ' selected="selected"';} ?>>SUMAPAZ</option>
<option value="TEUSAQUILLO"<?php if($fila['in_ubicacion']=='teusaquillo'){echo ' selected="selected"';} ?>>TEUSAQUILLO</option>
<option value="TUNJUELITO"<?php if($fila['in_ubicacion']=='tunjuelito'){echo ' selected="selected"';} ?>>TUNJUELITO</option>
<option value="USAQUÉN"<?php if($fila['in_ubicacion']=='usaquen'){echo ' selected="selected"';} ?>>USAQUÉN</option>
<option value="USME"<?php if($fila['in_ubicacion']=='usme'){echo ' selected="selected"';} ?>>USME</option>
</select>
</td>
<tr>
<td class="textoinfo">
Precio
</td>
<TD>
<input type="text" name="miprecio" value="<?php echo $fila['in_precio']; ?>" />
</TD>
</tr>
</tr>
<tr>
<td class="textoinfo">Area (en metros cuadrados)</td>
<td>
<input type="text" name="miarea" value="<?php echo $fila['in_area']; ?>" />
</td>
</tr>
<tr>
<td class="textoinfo">Número de Baños</td>
<td>
<select name="mibano">
<option value="uno"<?php if($fila['in_banos']=='uno'){echo ' selected="selected"';} ?>>1</option>
<option value="dos"<?php if($fila['in_banos']=='dos'){echo ' selected="selected"';} ?>>2</option>
<option value="tres"<?php if($fila['in_banos']=='tres'){echo ' selected="selected"';} ?>>3</option>
<option value="cuatro"<?php if($fila['in_banos']=='cuatro'){echo ' selected="selected"';} ?>>4</option>
<option value="mas"<?php if($fila['in_banos']=='mas'){echo ' selected="selected"';} ?>>5 o más</option>
</select>
</td>
</tr>
<tr>
<td class="textoinfo">
Número de Habitaciones
</td>
<td>
<select name="mihabitacion">
<option value="cero"<?php if($fila['in_habitaciones']=='cero'){echo ' selected="selected"';} ?>>Sin habitación</option>
<option value="uno"<?php if($fila['in_habitaciones']=='uno'){echo ' selected="selected"';} ?>>1</option>
<option value="dos"<?php if($fila['in_habitaciones']=='dos'){echo ' selected="selected"';} ?>>2</option>
<option value="tres"<?php if($fila['in_habitaciones']=='tres'){echo ' selected="selected"';} ?>>3</option>
<option value="cuatro"<?php if($fila['in_habitaciones']=='cuatro'){echo ' selected="selected"';} ?>>4</option>
<option value="mas"<?php if($fila['in_habitaciones']=='mas'){echo ' selected="selected"';} ?>>5 o más</option>
</select>
</td>
</tr>
<tr>
<td class="textoinfo">Parqueadero</td>
<td>
<select name="miparqueadero">
<option value="si"<?php if($fila['in_parqueadero']=='si'){echo ' selected="selected"';} ?>>Si</option>
<option value="no"<?php if($fila['in_parqueadero']=='no'){echo ' selected="selected"';} ?>>No</option>
</select></td>
</tr>
<tr>
<td class="textoinfo">
Nombre del propietario
</td>
<td>
<input type="text" name="mipropietario" value="<?php echo $fila['in_propietario']; ?>" />
</td>
</tr>
<tr>
<td class="textoinfo">
Teléfono Fijo del propietario
</td>
<td><input type="text" name="mifijo" value="<?php echo $fila['in_fijo']; ?>" /></td>
</tr>
<tr>
<td class="textoinfo">Teléfono Celular del Propietario</td>
<td><input type="text" name="micelular" value="<?php echo $fila['in_celular']; ?>" /></td>
</tr>
<tr>
<td class="textoinfo">Estado del inmueble</td>
<td><select name="miestado">
<option value="disponible"<?php if($fila['in_estado']=='disponible'){echo ' selected="selected"';} ?>>Disponible</option>
<option value="comprado"<?php if($fila['in_estado']=='comprado'){echo ' selected="selected"';} ?>>Comprado</option>
</select>
</td>
</tr>
</table>
<table width="80%" align="center">
<tr>
<td><input type="submit" value="ACTUALIZAR" />
<input type="hidden" name="in_id" value="<?php echo $_GET['in_id'];?>" /></td>
</tr>
</table>
</form>
</body>
</html>