Seconda Categoria girone F
[source]
<!– Marcatori 2° categoria girone F–>
<?php
$param1=”ecce”;
$url = file_get_contents(‘http://www.campionandoalivorno.it/iwebkit/get_marcatorinew1.asp?camp=1048’);
$json = json_decode($url, true);
//print_r($json);
?>
<div class=”row”>
<div id=”no-more-tables”>
<table class=”col-md-12 table-bordered table-striped table-condensed cf”>
<thead class=”cf”>
<tr>
<th>N</th>
<!–<th></th>–>
<th>Reti</th>
<th>Giocatore</th>
<th colspan=”2″>Squadra</th>
</tr>
</thead>
<tbody>
<?php
for ($i = 0, $n = count($json[“classifica”]) ; $i < $n ; $i++)
{
//if($i+1 == 1){
//$class= “background: #0cc82d”
//}else {
//$class= “” }
//if($i+1 > 1 && $i+1 <= 3) {
// $class= “background: #07ff33”
//}else {
// $class= “” }
echo ‘<tr>’;
echo ‘<td>’, $i+1, ‘</td>’ ;
//echo ‘<td data-title=””>’, $json[“classifica”][$i] [“stemma”], ‘</td>’ ;
echo ‘<td data-title=”Reti”>’, $json[“classifica”][$i] [“gol”], ‘</td>’ ;
echo ‘<td data-title=”Giocatore”>’, $json[“classifica”][$i] [“nome”], ‘</td>’;
echo ‘<td data-title=”Squadra”>’, $json[“classifica”][$i] [“squadra”], ‘</td>’;
echo ‘<td data-title=”Logo”><img src=”‘, $json[“classifica”][$i] [“emblema”], ‘” alt=”Logo squadra” class=”img-responsive” style=”height: 40px; margin-left: auto; margin-right: auto;” /></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]