	<?php
	error_reporting(0);
		if (isset($con))
		{
		
		$query=mysqli_query($con, "select * from tasa where id_tasa='1'");
	while ($row=mysqli_fetch_array($query)){
						$id_tasa=$row['id_tasa'];
						$tasa_actual=$row['tasa'];
						$ult_act=$row['fecha'];
		}
		
		}
		if (isset($con2))
		{
		$query=mysqli_query($con2, "select * from tasa where id_tasa='1'");
	while ($row=mysqli_fetch_array($query)){
						$id_tasa=$row['id_tasa'];
						$tasa_actual=$row['tasa'];
						$ult_act=$row['fecha'];
		}
		
		}
		
		
	?>
	<!-- Modal -->
	<div class="modal fade" id="tasa" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
	  <div class="modal-dialog" role="document">
		<div class="modal-content">
		  <div class="modal-header">
			<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
			<h4 class="modal-title" id="myModalLabel"><i class='glyphicon glyphicon-edit'></i> Modificar Tasa de Cambio</h4>
		  </div>
		  <div class="modal-body">
			<form class="form-horizontal" method="post" id="editar_tasa" name="editar_tasa" action="ajax/editar_tasa.php">
			<div id="resultados_ajax4"></div>
            
            <div class="form-group">
				<label for="mod_fecha" class="col-sm-3 control-label">Ultima Actualizacion</label>
				<div class="col-sm-8">
				  <input type="text" class="form-control" id="fecha" name="fecha" readonly="readonly" value="<?php echo $ult_act;?>" >
				</div>
			  </div>
			 
			   
               <div class="form-group">
				<label for="mod_actual" class="col-sm-3 control-label">Tasa Actual</label>
				<div class="col-sm-8">
				  <input type="text" class="form-control" id="actual" name="actual" value="<?php echo $tasa_actual;?>" readonly="readonly">
				</div>
			  </div>
              
              <div class="form-group">
				<label for="mod_tasa" class="col-sm-3 control-label">Ingrese Nueva Tasa</label>
				<div class="col-sm-8">
				  <input type="text" class="form-control" id="mod_tasa" name="mod_tasa" placeholder="Nueva tasa de cambio" required >
					<input type="hidden" name="mod_id" id="mod_id" value="<?php echo $id_tasa;?>">
				</div>
			  </div>
			  
              
		  <div class="modal-footer">
			<button type="button" class="btn btn-default" data-dismiss="modal">Cerrar</button>
			<button type="submit" class="btn btn-primary" id="actualizar_datos2">Procesar</button>
		  </div>
		  </form>
		</div>
	  </div>
	</div>
    </div>
	