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

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

            </div>
              
                 
              <div class="grid">
              
<?php 
                  
$ID = (int)$_GET["ID"];

mysql_connect ("$host", "$usuario", "$contra");
mysql_select_db ("$basedatos");
$sql = "SELECT * FROM `resultados` WHERE ID = '$ID' ";
$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">
                          
                          <form id="form2" name="form2" method="post" action="form_editar_resultados_deportes.php">
                              
                              <div class="form-group">
                
                <input class="form-control" type="hidden" name="ID" value="<?php echo $ID ;?>" id="ID" />
            
            </div> 
            
            <div class="form-group">
                
               <label for="select">Equipo Local</label> 
                
             
              
              
<?php
    
             
                
$sql65 = "SELECT * FROM `equipos` WHERE ID = '$equipo_local' ";
$consulta65 = mysql_query ($sql65);
while ($row65 = mysql_fetch_array($consulta65))
{

$ID = $row65["ID"];
$nombre = $row65["nombre"];
$logo = $row65["logo"];

 }
                ?>
<img  class="img-fluid" style="max-width:80px;"  src="<?php echo $dom ?>/<?php echo $logo ?>"><p><?php echo $nombre ?></p>


<?
                
                
mysql_free_result($consulta65);

?>
            
              
              
            
                
            </div>
                              
                              <div class="form-group">
                
                <input class="form-control" name="goles_local" value="<?php echo $goles_local ;?>" id="localidad" placeholder="Goles Local" required/>
                
            </div>
                              
              <div class="form-group">
                
               <label for="select">Equipo Visitante</label> 
                
            
              
<?php
                  
$sql65 = "SELECT * FROM `equipos` WHERE ID = '$equipo_visitante' ";
$consulta65 = mysql_query ($sql65);
while ($row65 = mysql_fetch_array($consulta65))
{

$ID = $row65["ID"];
$nombre = $row65["nombre"];
$logo = $row65["logo"];

 }
                  
                  
?>
<img class="img-fluid" style="max-width:80px;" src="<?php echo $dom ?>/<?php echo $logo ?>"/><?php echo $nombre ?>


<?
mysql_free_result($consulta65);

?>
            
              
            </div>
                              
                               <div class="form-group">
                
                <input class="form-control" name="goles_visitante" value="<?php echo $goles_visitante ;?>" id="localidad" placeholder="Goles Visitante" required/>
                
            </div>
             
                              
            <div class="form-group">
                
                <input class="form-control" name="fecha" value="<?php echo $fecha ;?>" id="fecha" placeholder="Fecha" required/>
                
            </div>
                              
           <div class="form-group">
                
             <input class="form-control" name="estadio" value="<?php echo $estadio ;?>" id="estadio" placeholder="Estadio o club" required/>
                
            </div>  
                              
              <div class="form-group">
                
             <input class="form-control" name="arbitro" value="<?php echo $arbitro ;?>" id="arbitro" placeholder="Arbitro" required/>
                
            </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>
                  
                
              </div>
                      
              <?php 
                  
mysql_free_result($consulta);

?>   
                  
              
              </div>
              
  </section>
           
  
<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>
