<?php require_once('../../Connections/odonto_connection1.php');
session_start();
$codigo=$_SESSION['codigo'];

$query_rs_todos = "SELECT negocio FROM `mesas` WHERE codigo LIKE '$codigo' LIMIT 1";
$rs_ingreso0 = mysqli_query($odonto_connection,$query_rs_todos) or die(mysqli_error());
$row_rs_ingreso0 = mysqli_fetch_assoc($rs_ingreso0);
$negocio=$row_rs_ingreso0['negocio'];

?>
  
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><title>PonderZone</title>

<?php require_once('../../inc/bootstrap.php');?>

<link rel="stylesheet" href="estilos_mgp.css" />
<link href='https://fonts.googleapis.com/css?family=Handlee' rel='stylesheet'>

<style>
<?php
$link_fondo_todas_pantallas = "fondos/".$negocio."/fondo_todas_pantallas.jpg";
	if(file_exists($link_fondo_todas_pantallas)) $url = $link_fondo_todas_pantallas;
	else $url = "fondos/bares-restaurantes-rosario.jpg";

?>	

:root {
  <?php echo "--main-bg-negocio: url(".$url.");";?>  
  --main-bg-opacidad: 0.8;
}

	  .btn-circle.btn-xl{
		  width:100%;
		  border-radius:25px;
		  padding: 5px 16px;
		  text-align: center;
	  }
</style>
<script>

function myFunction0() {
	var mensaje = document.getElementById("mensaje").value;	
	if(mensaje != ""){
	window.open("./index_suge1.php?suge="+mensaje,"_parent");
	}
	else document.getElementById("demo").innerHTML = "Ingresa Sugerencias!!";
}


function myFunction1() {
	window.open("./index0_rate.php","_parent");
}
	</script>
</head>
<body>

<div class="container">

<div class="row">
<div class="col-12">
<br>
<br>
</div>
</div>

<div class="row container text-center" style="color:white;font-size:1.5rem" >
	<div class="col"><b style='background-color:black'>Tus Sugerencias please</b></div>
</div>


<div class="row">
<div class="col-12">
<br>
<br>
</div>
</div>

<input type="text" class="form-control text-center" id="mensaje" name="mensaje" aria-label="Default" aria-describedby="inputGroup-sizing-default" style="height:6rem;font-size:1.5rem;border-radius:20px" placeholder="Tus sugerencias aquí" required="true"></input>

<h1 class"form-text text-center" style="color:white" id="demo"></h1>  
<br>

<div class="row">
<div class="col-12">
<br>
<br>
</div>
</div>
<button type="button" class="btn btn-outline-light btn-lg btn-circle btn-xl" style="height:5rem;font-size:2.0rem;color:white" name="sugerencias" onclick="myFunction0()" ><b>Enviar <i class='far fa-paper-plane'></i></b></button>


<div class="row">
<div class="col-12">
<br>
</div>
</div>

<button type="button" class="btn btn-outline-light btn-lg btn-circle btn-xl" style="height:5rem;font-size:2.3rem;color:white" name="volver" onclick="myFunction1()" ><b><i class='fas fa-chevron-circle-left'></i> Volver</font></b></button>

</div>


</body>
</html>