Just Idag



$data[time] $data[typename]”;

echo” Hammarby ”;

//
//Tarkistus, onko N/A vastus
//
if($data[’oppid’] == 1)
{
echo”$data[opponent]”;
}
else
{
echo”$data[opponent]”;
}

echo” ”;

if($data[’goals’] == NULL || $data[’goals_opponent’] == NULL)
{
//
//Onko ennakko kirjoitettu?
//
if($data[’prewtext’] == ”)
{
echo” ”;
}
else
{
echo”$txt_preview”;
}
}
else
{
//
//Tarkistetaan, onko peli julkaistu
//
if($data[’publish’] == 1)
{
//
//Ollaanko menty rankkareille?
//
if($data[’penalty_goals’] == NULL || $data[’penalty_goals_opponent’] == NULL)
{
echo”$data[goals] – $data[goals_opponent]”;

//
//Tarkastetaan vielä jatkoaika
//
if($data[’overtime’] == 1)
{
echo” $txt_overtime_short”;
}
}
else
{
echo”$data[goals] – $data[goals_opponent] ($data[penalty_goals] – $data[penalty_goals_opponent] $txt_penalty_shootout_short)”;
}
}
else
{
//
//Ollaanko menty rankkareille?
//
if($data[’penalty_goals’] == NULL || $data[’penalty_goals_opponent’] == NULL)
{
echo”$data[goals] – $data[goals_opponent]”;

//
//Tarkastetaan vielä jatkoaika
//
if($data[’overtime’] == 1)
{
echo” $txt_overtime_short”;
}
}
else
{
echo”$data[goals] – $data[goals_opponent] ($data[penalty_goals] – $data[penalty_goals_opponent] $txt_penalty_shootout_short)”;
}
}
}

echo’

’;
}
else
{
//
//VIERASOTTELU
//

echo”

$data[time] $data[typename]”;

echo” ”;

//
//Tarkistus, onko N/A vastus
//
if($data[’oppid’] == 1)
{
echo”$data[opponent]”;
}
else
{
echo”$data[opponent]”;
}

echo” Hammarby ”;

if($data[’goals’] == NULL || $data[’goals_opponent’] == NULL)
{
//
//Onko ennakko kirjoitettu?
//
if($data[’prewtext’] == ”)
{
echo” ”;
}
else
{
echo”$txt_preview”;
}
}
else
{
//
//Tarkistetaan, onko peli julkaistu
//
if($data[’publish’] == 1)
{
//
//Ollaanko menty rankkareille?
//
if($data[’penalty_goals’] == NULL || $data[’penalty_goals_opponent’] == NULL)
{
echo”$data[goals_opponent] – $data[goals]”;

//
//Tarkastetaan vielä jatkoaika
//
if($data[’overtime’] == 1)
{
echo” $txt_overtime_short”;
}
}
else
{
echo”$data[goals_opponent] – $data[goals] ($data[penalty_goals_opponent] – $data[penalty_goals] $txt_penalty_shootout_short)”;
}
}
else
{
//
//Ollaanko menty rankkareille?
//
if($data[’penalty_goals’] == NULL || $data[’penalty_goals_opponent’] == NULL)
{
echo”$data[goals_opponent] – $data[goals]”;

//
//Tarkastetaan vielä jatkoaika
//
if($data[’overtime’] == 1)
{
echo” $txt_overtime_short”;
}
}
else
{
echo”$data[goals_opponent] – $data[goals] ($data[penalty_goals_opponent] – $data[penalty_goals] $txt_penalty_shootout_short)”;
}
}
}

echo’

’;
}
$i++;

}

//
//jos ei yhtään osumaa
//
if(mysql_num_rows($get_matches) == 0)
{
?>