a
  • No products in the cart.

Seconda Categoria Girone I

[source]
<!– Calendario di 2° categoria girone I –>
<div class=”row”>
<div id=”no-more-tables”>
<table class=”col-md-12 table-bordered table-striped table-condensed cf”>

<tbody>
<?php
$c=”1051″;
for ($e = 0; $e < 30 ; $e++)
{
$d++;

require_once’lib/helper.php’;
$json = get_data(‘http://www.campionandoalivorno.it/iwebkit/get_giornata.asp?camp=’ . $c . ‘&id=’ . $d);

//$json = json_decode($url, true);

//print_r($json);

$g=0;
$h=$g+1;

echo ‘<tr>’;
echo ‘<td colspan=”7″ style=”text-align: center;”><h3>Giornata &nbsp;’, $json[“giornata”], ‘°&nbsp;&nbsp;’,$json[“data”], ‘&nbsp;&nbsp;ora&nbsp;’, $json[“partite”] [$h] [“orario”], ‘</h3></td>’ ;
echo ‘</tr>’;

echo ‘<tr>’;
echo ‘<td colspan=”2″ style=”width: 40%; text-align: center;”> Squadra ‘, ‘</td>’ ;
echo ‘<td style=”width: 5%; text-align: center;”> R ‘, $json[“partite”] [$i] [“risultato”], ‘</td>’ ;
echo ‘<td style=”width: 5%; text-align: center;”>’, ‘</td>’;
echo ‘<td style=”width: 5%; text-align: center;”> R ‘, ‘</td>’ ;
echo ‘<td colspan=”2″ style=”width: 40%; text-align: center;”> Squadra ‘, ‘</td>’ ;
echo ‘</tr>’;

for ($i = 0, $n = count($json[“partite”]) ; $i < $n ; $i++)
{
//echo $json[“partite”] [$i] [“casa”] [nome];
//echo $json[“partite”] [$i] [“casa”] [risultato];

echo ‘<tr>’;
echo ‘<td><img src=”‘, $json[“partite”] [$i] [“casa”] [emblema], ‘” alt=”Logo squadra” class=”img-responsive” style=”height: 40px; margin-left: auto; margin-right: auto;” /></td>’ ;
echo ‘<td>’, $json[“partite”] [$i] [“casa”] [nome], ‘</td>’ ;
echo ‘<td style=”text-align: center;”>’, $json[“partite”] [$i] [“casa”] [“risultato”], ‘</td>’ ;
echo ‘<td style=”text-align: center;”> – ‘, ‘</td>’;
echo ‘<td style=”text-align: center;”>’, $json[“partite”] [$i] [“trasferta”] [“risultato”], ‘</td>’ ;
echo ‘<td><img src=”‘, $json[“partite”] [$i] [“trasferta”] [emblema], ‘” alt=”Logo squadra” class=”img-responsive” style=”height: 40px; margin-left: auto; margin-right: auto;” /></td>’ ;
echo ‘<td>’, $json[“partite”] [$i] [“trasferta”] [nome], ‘</td>’ ;
echo ‘</tr>’;

}

//echo $i, $n;
//echo $json[$i]->cognome , ‘ ‘, $json[$i]->nome , $json[$i]->ruolo ,$json[$i]->squadra ,'<br>’;
}
?>

</tbody>
</table>
</div>
</div>
[/source]