Motståndare

$txt_history: $k – $opdata[OpponentName]” ?>

$txt_opponent_stats_not_complete”;
}
?> ”;

if($opdata[’OpponentInfo’] != ”)
{
echo”$opdata[OpponentInfo]

”;
}

if($opdata[’OpponentWWW’] != ”)
{
echo”$opdata[OpponentWWW]

”;
}
?>

$data[f_name] $data[l_name]”;

if($i < mysql_num_rows($query)) { echo', '; } $i++; } } mysql_free_result($query); ?>

 

”;
$j++;
}

if($j==1)
{
echo”

”;
}

mysql_free_result($get_transfers);

?>

$data[club]”;
$club2 = TEAM_NAME;
}
else
{
$club2 = ”$data[club]”;
$club1 = TEAM_NAME;
}

echo”

$data[s_name] $data[p_name] $club1 $club2 $data[value]
$txt_no_transfers

”;

while($data = mysql_fetch_array($get_types))
{
if($data[’MatchTypeID’] == $defaultmatchtypeid)
echo ”\n”;
else
echo ”\n”;
}
mysql_free_result($get_types);

echo” ”;

//
//Haetaan kaikki vastustajat dropdownia varten
//
$query = mysql_query(”
SELECT OpponentName As opp_name,
OpponentID AS id
FROM tplss_opponents
WHERE OpponentID != ’1’
ORDER BY OpponentName
”, $connection)
or die(mysql_error());

echo”
$txt_change_opponent: ”;
mysql_free_result($query);

//
//ASETETAAN HAKUJA VARTEN OTTELUTYYPPI ’kaikki’ ARVOON %
//
if($defaultmatchtypeid == 0)
$defaultmatchtypeid = ’%’;

?>

$goals_against[$i])
{
//
//Puolueeton?
//
if($neutral[$i] == 1)
{
$neutral_matches++;
$neutral_wins++;
$neutral_goals = $neutral_goals + $goals[$i];
$neutral_goals_against = $neutral_goals_against + $goals_against[$i];
}
else
{
//
//Kotipeli?
//
if($place[$i] == 1)
{
$home_matches++;
$home_wins++;
$home_goals = $home_goals + $goals[$i];
$home_goals_against = $home_goals_against + $goals_against[$i];
}
//
//Vieraspeli
//
elseif($place[$i] == 2)
{
$away_matches++;
$away_wins++;
$away_goals = $away_goals + $goals[$i];
$away_goals_against = $away_goals_against + $goals_against[$i];
}
}
}
//
//Tappio
//
elseif($goals_against[$i] > $goals[$i])
{
//
//Puolueeton?
//
if($neutral[$i] == 1)
{
$neutral_matches++;
$neutral_loses++;
$neutral_goals = $neutral_goals + $goals[$i];
$neutral_goals_against = $neutral_goals_against + $goals_against[$i];
}
else
{
//
//Kotipeli?
//
if($place[$i] == 1)
{
$home_matches++;
$home_loses++;
$home_goals = $home_goals + $goals[$i];
$home_goals_against = $home_goals_against + $goals_against[$i];
}
//
//Vieraspeli
//
elseif($place[$i] == 2)
{
$away_matches++;
$away_loses++;
$away_goals = $away_goals + $goals[$i];
$away_goals_against = $away_goals_against + $goals_against[$i];
}
}
}
//
//Tasuri
//
elseif($goals[$i] == $goals_against[$i])
{
//
//Puolueeton?
//
if($neutral[$i] == 1)
{
$neutral_matches++;
$neutral_draws++;
$neutral_goals = $neutral_goals + $goals[$i];
$neutral_goals_against = $neutral_goals_against + $goals_against[$i];
}
else
{
//
//Kotipeli?
//
if($place[$i] == 1)
{
$home_matches++;
$home_draws++;
$home_goals = $home_goals + $goals[$i];
$home_goals_against = $home_goals_against + $goals_against[$i];
}
//
//Vieraspeli
//
elseif($place[$i] == 2)
{
$away_matches++;
$away_draws++;
$away_goals = $away_goals + $goals[$i];
$away_goals_against = $away_goals_against + $goals_against[$i];
}
}
}
$i++;
}
?>

”;
$j++;
}

?>

$date[$j] ”;

if($add_type[$j] == ”)
{
echo”$type[$j]”;
}
else
{
echo”$type[$j] / $add_type[$j]”;
}

echo”

$p ”;

//
//Tarkastetaan, onko peli julkaistu
//
if($publish[$j] == 1)
echo”$goals[$j] – $goals_against[$j]”;
else
echo”$goals[$j] – $goals_against[$j]”;

echo”

$stadium[$j] $attendance[$j]