<?
include 'concha.php';

$titulo = "$nombresitio / Archivo";
include 'arriba_full.php'
?>


 <div class="news-summary <? if ($estiloweb == 4 || 61) { ?> col-lg-8 col-md-8<? } else { ?>col-lg-9 col-md-9 <? } ?> col-sm-12 col-12 p-0" >


<div>



                <div class="widget-head" style="">
                    <h3 <? if ($estiloweb <= 3){echo 'style="padding: 1px 5px 1px 5px; background-color:'; echo $d_color_fondo_menu; echo ';font-family:'; echo $style_titulo; echo ';font-size:25px;color:#ffffff;"'; } else {echo 'class="widget-title"';} ?>>
                        <span><? echo $lang_100075 ?></span>
                    </h3>
                </div>

        <div class="container-fluid">

              <div class="col-12"  style="margin-bottom:10px;">




                <h2>TABLAS CREADAS</h2>
                <HR>
                <div class="row" style="border: solid;border-width: 1px;">


                <div class='col-3'>

                    <B style='font-size: 23px;'> - CLUB </B>


                    </div>
                <div class='col-1' style='border: solid; border-width: 1px;'>
                pts
                </div>

                <div class='col-1' style='border: solid; border-width: 1px;'>
                pj
                </div>

                <div class='col-1' style='border: solid; border-width: 1px;'>
                pg
                </div>


                <div class='col-1' style='border: solid; border-width: 1px;'>
                pe
                </div>


                <div class='col-1' style='border: solid; border-width: 1px;'>
                pp
                </div>

                <div class='col-1' style='border: solid; border-width: 1px;'>
                gf
                </div>

                <div class='col-1' style='border: solid; border-width: 1px;'>
                gc
                </div>

                <div class='col-1' style='border: solid; border-width: 1px;'>
                dif
                </div>

                <div class='col-1' style='border: solid; border-width: 1px;'>

                </div>


                </div>
                <div class="row" style="border: solid;border-width: 1px;">




                <?

                $sql = "SELECT * FROM `club_5_tabla` ORDER BY `puesto` ASC ";
                $consulta = mysql_query ($sql);
                while ($row = mysql_fetch_array($consulta))
                {
                  $puesto = $row["puesto"];
                  $ID_campeonato = $row["ID_campeonato"];
                   $ID_club = $row["ID_club"];

                   $pts = $row["pts"];
                   $pj = $row["pj"];
                   $pg = $row["pg"];
                   $pe = $row["pe"];
                   $pp = $row["pp"];
                   $gf = $row["gf"];
                   $gc = $row["gc"];
                   $dif = $row["dif"];
                   $color = $row["color"];

                   $ID = $row["ID"];

                $puesto = $row["puesto"];

                   $sql3 = "SELECT * FROM `club_2_clubes`  WHERE ID = '$ID_club' LIMIT 1";

                  $consulta3 = mysql_query ($sql3);
                  while ($row3 = mysql_fetch_array($consulta3))
                  {
                    $nombre = $row3["nombre"];



                 }
                  mysql_free_result($consulta3);


                echo "

                <div class='col-3'  style='border: solid; border-width: 1px;'>

                <B style='font-size: 23px;'>$puesto º / $nombre </B>


                </div>
                <div class='col-1' style='border: solid; border-width: 1px;'>
                $pts
                </div>

                <div class='col-1' style='border: solid; border-width: 1px;'>
                $pj
                </div>

                <div class='col-1' style='border: solid; border-width: 1px;'>
                $pg
                </div>


                <div class='col-1' style='border: solid; border-width: 1px;'>
                $pe
                </div>


                <div class='col-1' style='border: solid; border-width: 1px;'>
                $pp
                </div>

                <div class='col-1' style='border: solid; border-width: 1px;'>
                $gf
                </div>

                <div class='col-1' style='border: solid; border-width: 1px;'>
                $gc
                </div>

                <div class='col-1' style='border: solid; border-width: 1px;'>
                $dif
                </div>

                <div class='col-1' style='border: solid; border-width: 1px;'>
                <a href='editar_lugar_tabla_posicones.php?ID=$ID'><button class='btn-success btn' style='font-size: 12px;'><i class='fa fa-marker'></i> EDITAR </button></a> <a href='eliminar_lugar_tabla_posicones.php?ID=$ID'><button class='btn-danger btn' style='font-size: 12px;'><i class='fa fa-trash'></i>  ELIMINAR </button></a><HR>
                </div>



                ";
                 }

                mysql_free_result($consulta);
                ?>
                </div>
                <HR>

                <H2><A Href="menu_tabla_deportiva.php">VOLVER</A></H2>









              </div>

                  </div>


        </div>

</div>



<?php include 'abajo_full.php'?>
