<?php include 'concha.php';?>
<?php include 'sesion.php';?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "//www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="//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'>   
    <!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">   
    
<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
    
<style type="text/css">

    *{
        border-radius: 0!important;
        
    }

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

    .navbar {
        position: relative;
    min-height: 50px;
    padding-bottom:  20px;
    /* border: 1px solid transparent; */
        
    }
    
   .btn-primary {
    color: #fff!important;
    background-color: #0066FF;
    border-color: #0066FF;
        }
    
    .page-header{
        margin: 0;
        padding: 1em;
        background-color: #0066FF;
        border: 0;
        text-align:center;
    }
    
    .page-header h2{
        
        color: #ffffff;
        font-weight: bold;
    }
    
    .bloqueAzul{
      /*  background-color: #0066FF;*/
        border: 1px solid #e4e4e4;
        padding: 1em;
        text-align: center;
    }
    
    ul{
        list-style: none;
        padding: 0;
    }
    
    .far{
        color:#0066FF;
    } 
     .faso {
        color:#0066FF;
    } 
    
    .colorAzul h3{
        color:#0066FF;
        
    }
    
</style>


                
</head>

<body>

    <div class="container" style="background-color:#F1F2ED;">
        
      
        
        <?php include 'menu.php';  ?>
     

    
    </div>
   
    <div style="background-color:#fff;" class="container pt-3 pb-3">
                  
            <div class="page-header" style="text-align:center;">
  
                <h2>RESULTADOS</h2>

            </div>
              
                 
              <div class="grid pt-3">
              
                                      <?php 
                  
$ID_disciplina2 = (int)$_POST["ID_disciplina2"];
$ID_categoria2 = (int)$_POST["ID_categoria2"];
                  


mysql_connect ("$host", "$usuario", "$contra");
mysql_select_db ("$basedatos");
$sql = "SELECT * FROM `resultados` WHERE ID_disciplina = '$ID_disciplina2' AND ID_disciplina_categoria = '$ID_categoria2' ORDER BY ID desc";
$consulta = mysql_query ($sql);
while ($row = mysql_fetch_array($consulta))
{

$ID = $row["ID"];
$ID_disciplina = $row["ID_disciplina"];
$ID_disciplina_categoria = $row["ID_disciplina_categoria"];
$fecha = $row["fecha"];
$resultado = $row["resultado"];
$equipo_local = $row["equipo_local"];
$equipo_visitante = $row["equipo_visitante"];
$goles_visitante = $row["goles_visitante"];
$goles_local = $row["goles_local"];
$estadio = $row["estadio"];
$arbitro = $row["arbitro"];
$tarjetas = $row["tarjetas"];
$expulsiones = $row["expulsiones"];




?>
              
              <div class="grid-item col-12 col-sm-12 col-md-12 col-lg-12 ">
                  
                  <div class="container-fluid">
                  
                      <div class="row">
                          
                          <div class="col-4">
                                           <?php  
       
$sql32 = "SELECT * FROM `equipos` WHERE ID = '$equipo_local' ";
$consulta32 = mysql_query ($sql32);
while ($row32 = mysql_fetch_array($consulta32))

{
$ID_equipo = $row32["ID"];
$nombre = $row32["nombre"];
$logo = $row32["logo"];

}
?>
                              
                         <div class="container-fluid">
                                  
                                  <div class="row">
                                      
                                      <div class="col-8">     
                        <h5><?php   echo $nombre  ;?></h5>
                                  </div>
                                      
                                      <div class="col-4">          
                                          
                       <img style="max-width:50px;" src="<?php   echo "$dom/$logo" ;?>" class="img-fluid" alt="<?php   echo $nombre  ;?>" title="<?php   echo $nombre  ;?>"> 
                                          
                                           </div>
                                                                        
                                  </div>
                                
                              
                              </div>
                              
                        
                              
                                                                   <?

mysql_free_result($consulta32);

?>
                          
                  </div>
                          
                          <div class="col-2 text-center">
                              
                              <p>VS<br><? echo $estadio?><br>
                                  
                                                                             <?php 
    

       
$sql32 = "SELECT * FROM `arbitros` WHERE ID_arbitros = '$arbitro' ";
$consulta32 = mysql_query ($sql32);
while ($row32 = mysql_fetch_array($consulta32))

{
$ID_arbitros = $row32["ID_arbitros"];
$nombre = $row32["nombre"];
$orden = $row32["orden"];

}
?>
                                  <? echo $nombre?>
                                                                                                 <?

mysql_free_result($consulta32);

?>
                              </p>
                              
                          
                          </div>
                          
                          <div class="col-4">
                              
                              
                                                              <?php  
        
  
        
$sql32 = "SELECT * FROM `equipos` WHERE ID = '$equipo_visitante' ";
$consulta32 = mysql_query ($sql32);
while ($row32 = mysql_fetch_array($consulta32))

{
$ID_equipo = $row32["ID"];
$nombre = $row32["nombre"];
$logo = $row32["logo"];
    


}
    
    ?>
                       
                              <div class="container-fluid">
                                  
                                  <div class="row">
                                      
                                       <div class="col-4">
                                          
                                            <img  style="max-width:50px;"  src="<?php   echo "$dom/$logo" ;?>" class="img-fluid" alt="<?php   echo $nombre  ;?>"> 
                                      
                                      </div>
                                                                                  
                                      <div class="col-8">
                                          
                                          <h5><?php   echo $nombre  ;?></h5>
                                      
                                      </div>
                                      
                                                                 
                                  </div>
                                
                              
                              </div>
                              
                        
                
                       
                                                                                         <?

mysql_free_result($consulta32);

?>
                             
                  </div>
                          
                          <div class="col-2">
                          
                              <a class="btn btn-primary" href="editar_resultado.php?ID=<?php echo $ID ?>">Editar Fecha</a>
                          
                          </div>
                      
                      </div>
                  
                  </div>
                  
                
              </div>
                      
              <?php 

 }
mysql_free_result($consulta);

?>   
                  
              
              </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>
    
<script type="text/javascript">
$(document).ready(function(){

    var max_chars = 0;

    $('#max').html(max_chars);

    $('#comment').keyup(function() {
        var chars = $(this).val().length;
        var diff = max_chars + chars;
        $('#contador').html(diff);   
    });
});

</script>

<script type="text/javascript">
$(document).ready(function(){

    var max_chars = 0;

    $('#max').html(max_chars);

    $('#titulo').keyup(function() {
        var chars = $(this).val().length;
        var diff = max_chars + chars;
        $('#contador1').html(diff);   
    });
});

</script>
    
    <script type="text/javascript" src="//recursos.radiosnethosting.com/ckeditor/ckeditor.js"></script>
 <script language=javascript>
function ventanaSecundaria (URL){
   window.open(URL,"ventana1","width=550,height=450,scrollbars=NO")
}
  </script>

    
</body>
</html>
