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









//////// este script quedó obsoleto
















$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);
$mesa=$row_rs_ingreso0['mesa'];
$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>

<script src="https://code.iconify.design/1/1.0.4/iconify.min.js"></script>

<?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>

:root {
  --main-bg-negocio: url(fondos/bares-restaurantes-rosario.jpg);  
  --main-bg-opacidad: 0.9;
  background-size: cover;
	background-repeat: no-repeat;
	height: 100%;
}

  .btn-circle.btn-xl{
	  width:100%;
	  border-radius:25px;
	  padding: 12px 16px;
	  }
</style>

<script>

function myFunction1(value,sin_windows = 0) {
	
		var item = document.getElementById(value);
		var  child=document.createElement("div");
		child.id= value;
		child.innerHTML = "<div class='spinner-border' style='color:#fff;position:relative;left:50%;top:-1rem;font-size:1rem'></div>";
		item.appendChild(child);
		
		if(!sin_windows) window.open("./index0.php","_parent");
}
	</script>

</head>
<body>

<div class="container">

<br>
<form action="./index_mozo1.php" method="GET">
  <div class="form-group">
    <input type="form-group" maxlength="200" class="form-control" id="mensaje" placeholder="Decinos lo que quieras..." name="mensaje" style="height:6rem;font-size:1.3rem;border-radius:20px" required>
  </div>

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

  <button type="submit" class="btn btn-info degrade btn-circle btn-xl" onclick="myFunction1('enviar','sin_windows.location')" style="height:6rem;font-size:1.8rem;background-color:lightgrey;color:#000"><b> Enviar <i class='far fa-paper-plane'></i></b></button>
  <div id="enviar"></div>
</form>

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


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

<button type="button" class="btn btn-dark degrade2 btn-circle btn-xl" style="height:6rem;font-size:2.0rem;color:white;background-color:gray" name="volver" onclick="myFunction1('volver')" ><b><i class='fas fa-chevron-left'></i> Volver</b></button><div id="volver"></div>

</div>


</body>
</html>