$tor = $_GET['tor']; ?> include('getsex.php'); ?>
CALENDARIO echo $categoriatorneo; ?>
$get_season = mysql_query(" SELECT MAX(LeagueMatchFase) AS fase FROM $leaguematches WHERE LeagueMatchTorneo = '$tor' ",$connection) or die(mysql_error()); while($data = mysql_fetch_array($get_season)) { $fase = ($data[fase] + 1); } $i=1; while($i< $fase) { $get_matches1 = mysql_query(" SELECT DATE_FORMAT(LeagueMatchDate, '%w') AS giornoset, DATE_FORMAT(LeagueMatchDate, '%d') AS gg, DATE_FORMAT(LeagueMatchDate, '%m') AS mese, DATE_FORMAT(LeagueMatchDate, '%Y') AS anno, DATE_FORMAT(LeagueMatchDate, '%d-%m') AS date FROM $leaguematches WHERE LeagueMatchTorneo = '$tor' AND LeagueMatchFase = '$i' GROUP BY date ORDER BY LeagueMatchDate ASC ",$connection) or die(mysql_error()); while($data = mysql_fetch_array($get_matches1)) { $ladata = $data[date]; if ($data[giornoset] == 0) {$giornoset = "Domenica";} if ($data[giornoset] == 1) {$giornoset = "Lunedì";} if ($data[giornoset] == 2) {$giornoset = "Martedì";} if ($data[giornoset] == 3) {$giornoset = "Mercoledì";} if ($data[giornoset] == 4) {$giornoset = "Giovedì";} if ($data[giornoset] == 5) {$giornoset = "Venerdì";} if ($data[giornoset] == 6) {$giornoset = "Sabato";} $mese = "Giugno"; if ($data[mese] == 01) {$mese = "Gennaio";} if ($data[mese] == 02) {$mese = "Febbraio";} if ($data[mese] == 03) {$mese = "Marzo";} if ($data[mese] == 04) {$mese = "Aprile";} if ($data[mese] == 05) {$mese = "Maggio";} if ($data[mese] == 06) {$mese = "Giugno";} if ($data[mese] == 07) {$mese = "Luglio";} // if ($data[mese] == 08) {$mese = "Agosto";} // if ($data[mese] == 09) {$mese = "Settembre";} if ($data[mese] == 10) {$mese = "Ottobre";} if ($data[mese] == 11) {$mese = "Novembre";} if ($data[mese] == 12) {$mese = "Dicembre";} $giornoset = strtoupper ($giornoset); $mese = strtoupper ($mese); ?>
echo $giornoset." ".$data[gg]." ".$mese." ".$data[anno]; ?> |
ID | Data e ora | Squadre | Campo | Risultato | TAB | $get_matches2 = mysql_query(" SELECT LM.LeagueMatchID AS idenpartita, O.OpponentName AS hometeam, O.OpponentID AS homeID, OP.OpponentName AS awayteam, OP.OpponentID AS awayID, LM.LeagueMatchHomeGoals AS goals_home, LM.LeagueMatchAwayGoals AS goals_away, LM.LeagueMatchID AS idtab, LM.LeagueMatchFase AS fase, LM.LeagueMatchCampo AS campo, LM.LeagueMatchGiornata AS giornata, LM.LeagueMatchTab AS tabellino, LM.LeagueMatchFoto AS foto, DATE_FORMAT(LM.LeagueMatchDate, 'Ore %H:%i') AS orario FROM $leaguematches LM, $opponents O, $opponents OP WHERE LeagueMatchTorneo = '$tor' AND DATE_FORMAT(LM.LeagueMatchDate, '%d-%m') = '$ladata' AND LM.LeagueMatchFase = '$i' AND O.OpponentID = LM.LeagueMatchHomeID AND OP.OpponentID = LM.LeagueMatchAwayID ORDER BY LM.LeagueMatchDate ",$connection) or die(mysql_error()); while($data = mysql_fetch_array($get_matches2)) { alternate_color_statistiche(); $tabb = $data[idtab]; ?>|
---|---|---|---|---|---|---|---|
echo $data[idenpartita]; ?> | } else {echo ""; } ?> | echo $ladata." ".$data[orario]; ?> | echo $data[hometeam]; ?> vs. echo $data[awayteam]; ?> | echo "Campo ".$data[campo]; ?> | echo $data[goals_home]." - ".$data[goals_away]; ?> | $get_tabe = mysql_query(" SELECT * FROM tplls_tabellini WHERE tab_LeagueMatchID = '$tabb' AND tab_LeagueMatchTorneo = $tor LIMIT 1 ",$connection) or die(mysql_error()); if(mysql_num_rows($get_tabe) > 0) /*! Parametri da settare. URL del file da aprire: usando this.href, lo script andrà a usare come valore quello impostato per lattributo href (che sempre impostato per salvguardare laccessibilità!); nome della finestra popup: nel nostro caso il nome è popup, ma qualunque nome va bene; larghezza della finestra (600); altezza della finestra (500); presenza delle scrollbar (1 = sì, 0 = no); la finestra è ridimensionabile? (1 = sì, 0 = no); presenza della barra dei menu (1 = sì, 0 = no); presenza della barra degli strumenti (1 = sì, 0 = no); presenza della barra dellindirizzo (1 = sì, 0 = no); presenza della barra di stato (1 = sì, 0 = no); visualizzazione a tutto schermo (1 = sì, 0 = no). */ { ?>TAB | } else { ?>} ?> |