<?php include 'sesion.php';
$ID_disciplina = $_POST['ID_disciplina'];

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $nombresitio ?> - Panel de Administracion</title>
<link href='http://fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'>
<style type="text/css">
<!--


body {
	background-image: url(../fondeux.jpg);

}


-->
</style>


<?php include 'concha.php';?>



<link href="../estilo.css" rel="stylesheet" type="text/css" />
    
        <!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
    
    
    <script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
    

<style type="text/css">
<!--
.Estilo44 {
	font-family: 'Oswald', sans-serif;
	font-size: 50px;
	color: #FFFFFF;
}
.Estilo45 {color: #FFFFFF}
.Estilo47 {color: #FFFFFF; font-size: 18px; }
.Estilo49 {color: #FFFFFF; font-size: 24px; }
.Estilo52 {
	font-family: 'Oswald', sans-serif;
	font-size: 18px;
	color: #666666;
}
.Estilo55 {font-size: 10}
.Estilo56 {font-size: 10px}
-->
</style>
</head>

<body>



  <script language=javascript>
function ventanaSecundaria (URL){
   window.open(URL,"ventana1","width=550,height=450,scrollbars=NO")
}
  </script>


 
    <div class="container" style="background-color:#F1F2ED;max-width:960px;">
        
        <nav class="navbar navbar-default">
        
        <?php include 'menu.php';  ?>
          
        </nav>
    
    </div>
    
    <div style="background-color:#fff;max-width:960px;" class="container">
        
        <div class="page-header" style="text-align:center;">
  
                  <h2>AGREGAR UNA FECHA</h2>

              </div>
              
      
          
          <div class="row">
              
              <div class="col-12 col-lg-2"></div>
        
        <div class="col-12 col-lg-8 mb-3" >
             
            <form id="form1" name="form1" method="post" action="form_resultados_deportes2.php"> 
         
             <div class="form-group">
                  
                  <a href="equipos.php" class="btn btn-primary btn-lg btn-block" >Editar Equipos</a>
                
                </div>
            
            <div class="form-group" >
                
                
                <input class="form-control" type="hidden" name="ID_disciplina" value="<?php echo $ID_disciplina ;?>" id="ID_disciplina"  />
                
                
                
              <label for="select">Categoría</label>  
              <select class="form-control" name="ID_categoria" id="select">
       
<?php

$ID_disciplina = $_POST['ID_disciplina'];
$sql65 = "SELECT * FROM `disciplinas_categorias` WHERE `disciplina` = '$ID_disciplina'";
$consulta65 = mysql_query ($sql65);
while ($row65 = mysql_fetch_array($consulta65))
{
$ID = $row65["ID"];
$categoria = $row65["categoria"];


?>
<option value="<?php echo $ID ?>"><?php echo $categoria ?></option>


<?


 }
mysql_free_result($consulta65);

?>
              </select>
            
              
              </div>
          
          
            <div class="form-group">
                <label for="fecha">Fecha</label>
              <input class="form-control" type="text" name="fecha" id="fecha" placeholder="DD/MM/AAAA" />
            </div>
                   
            <div class="form-group">
                
                <label for="equipo_local">Equipo Local</label>
                
                <select class="form-control" name="equipo_local" id="ID_categoria">
              <?php





$sql65 = "SELECT * FROM `equipos`";




$consulta65 = mysql_query ($sql65);
while ($row65 = mysql_fetch_array($consulta65))
{

$ID = $row65["ID"];

$nombre = $row65["nombre"];




?>
              <option value="<?php echo $ID ?>"><?php echo $nombre ?></option>
              <?


 }
mysql_free_result($consulta65);

?>
            </select>
              
              </div>
                       
            <div class="form-group">
                
                <label for="equipo_visitante">Equipo Visitante</label>
                <select class="form-control" name="equipo_visitante" id="ID_equipo">
              <?php


$ID_disciplina = $_POST['ID_disciplina'];


$sql65 = "SELECT * FROM `equipos`";




$consulta65 = mysql_query ($sql65);
while ($row65 = mysql_fetch_array($consulta65))
{

$ID = $row65["ID"];

$nombre = $row65["nombre"];




?>
              <option value="<?php echo $ID ?>"><?php echo $nombre ?></option>
              <?


 }
mysql_free_result($consulta65);

?>
            </select>
              
              </div>
          
            <div class="form-group">
                
                <label for="estadio">Estadio o club</label>
                <input class="form-control" type="text" name="estadio" id="estadio" />
              
              </div>
                         
            <div class="form-group"> 
                
                <label for="arbitro">Árbitro</label>
                <select class="form-control" name="arbitro" id="ID_arbitros">
              <?php



$sql65 = "SELECT * FROM `arbitros`";




$consulta65 = mysql_query ($sql65);
while ($row65 = mysql_fetch_array($consulta65))
{

$ID_arbitros = $row65["ID_arbitros"];

$nombre = $row65["nombre"];

$orden = $row65["orden"];




?>
              <option value="<?php echo $ID_arbitros ?>"><?php echo $nombre ?></option>
              <?


 }
mysql_free_result($consulta65);

?>
            </select>
              
              </div>
          
            <div class="form-group">
                
              <input class="btn btn-primary btn-lg btn-block" type="submit" name="button" id="button" value="Cargar" />
            
              </div>
          
            </form>
            
        </div>
              
               <div class="col-12 col-lg-2"></div>
        
       
      </div>
  </div>
    
  
      
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js" integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js" integrity="sha384-h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1" crossorigin="anonymous"></script>
 <script defer src="https://use.fontawesome.com/releases/v5.8.1/js/all.js" integrity="sha384-g5uSoOSBd7KkhAMlnQILrecXvzst9TdC09/VM+pjDTCM+1il8RHz5fKANTFFb+gQ" crossorigin="anonymous"></script>
    <script src="https://unpkg.com/isotope-layout@3/dist/isotope.pkgd.js"></script>
<script type="text/javascript">
window.setInterval(function(){
  $('.grid').isotope({
  itemSelector: '.grid-item'
});
}, 2000);
</script>
</body>
</html>
