<?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($_SERVER['DOCUMENT_ROOT'] .'/warn/bootstrap/bootstrap_js_gral.php');
require_once($_SERVER['DOCUMENT_ROOT'] .'/warn/bootstrap/bootstrap_css_gral.php');
?>

<link rel="stylesheet" href="estilos_mgp.css" />

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

<style>

<?php require_once("../../inc/css_warn.php");?>

	  .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;	
	var puntaje = document.getElementById("sel1").value;	
	if(mensaje != ""){
	window.open("./index_comentarios1.php?comentarios="+mensaje+"&puntaje="+puntaje,"_parent");
	}
	else document.getElementById("demo").innerHTML = "<b>Ingresa Comentario!!! (enter something)</b>";
}

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

<div class="container text-center">

<div class="row" style="color:white;font-size:1.8rem" >
	<div class="col" ><b style='background-color:black'>Tu comentario: </b></div>
</div>

<div class="row">
	<div class="col">
		<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" placeholder="Tu comentario aqui" required="true"></input>
	</div>
</div>		

<h2 class"form-text text-muted text-center" style="color:orange;background-color:black" id="demo"></h2>  
<br>

<div class="row container-fluid text-center" style="color:white;font-size:1.8rem" >
	<div class="col"><b style='background-color:black'>Puntuar Atencion</b></div>
</div> 
<form>
    <div class="form-group" >
      <select class="form-control" style="font-size:1.7rem;height:3rem;background-color:white;color:#136A78;opacity:0.8;border:black;border-radius:20px" data-color="#A0522D" id="sel1">
        <option >1</option>
        <option>2</option>
        <option>3</option>
        <option>4</option>
        <option>5</option>
        <option>6</option>
        <option selected="selected">7</option>
        <option>8</option>
        <option>9</option>
        <option>10</option>
      </select>
    </div>
</form>
<br>  
<button type="button" class="btn btn-outline-light btn-lg btn-circle btn-xl" style="height:5rem;font-size:1.8rem;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</b></button>

</div>


</body>
</html>