// $opdata
$color1 = strlen( $opdata['Color1'] ) ? $opdata['Color1'] : $top_bg;
$color2 = strlen( $opdata['Color2'] ) ? $opdata['Color2'] : "";
//echo IMG_DIR . $opdata['OpponentLogo'];
function _pr( $s ) { return strlen( $s ) ? $s : "-"; }
$oppLogo = is_file( IMG_DIR . $opdata['OpponentLogo'] )
? ""
: " ";
$oppGround = is_file( IMG_DIR . $opdata['OpponentGround'] )
? ""
: " ";
$templ = "%s";
$temp2 = "";
$oppWWW = strlen( $opdata['OpponentWWW'] ) ? sprintf($templ,$opdata['OpponentWWW'],$opdata['OpponentWWW']) : " ";
$oppMap = strlen( $opdata['OpponentMAP'] ) ? sprintf($temp2,$opdata['OpponentMAP'],'map') : " ";
$oppDirections = strlen( $opdata['OpponentDirections'] ) ? sprintf($temp2,$opdata['OpponentDirections'],'directions') : " ";
$opp5Day = strlen( $opdata['Opponent5day'] ) ? sprintf($temp2,$opdata['Opponent5day'],'weather') : " ";
$opdata['OpponentName'] = _pr( $opdata['OpponentName'] );
$opdata['OpponentInfo'] = _pr( $opdata['OpponentInfo'] );
$opdata['OpponentAddress'] = _pr( $opdata['OpponentAddress'] );
$opdata['OpponentPhone'] = _pr( $opdata['OpponentPhone'] );
$opdata['OpponentFax'] = _pr( $opdata['OpponentFax'] );
$opdata['OpponentNickname'] = _pr( $opdata['OpponentNickname'] );
?>
= $oppLogo ?> |
= $opdata['OpponentName'] ?> |
= $opdata['OpponentNickname'] ?> |
Address: |
= $oppGround ?> |
= $opdata['OpponentAddress'] ?> |
Telephone: |
= $opdata['OpponentPhone'] ?> |
Fax: |
= $opdata['OpponentFax'] ?> |
Website: |
= $oppWWW ?> |
|
Map of area |
Directions |
Five Day Weather |
= $oppMap ?> |
= $oppDirections ?> |
= $opp5Day ?> |
|
= $opdata['OpponentInfo'] ?> |
|
= $txt_players_played_for_this_team ?>:
|
$data[f_name] $data[l_name]";
if($i < mysqli_num_rows($query))
{
echo', ';
}
$i++;
}
}
?>
|
$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++;
}
?>
|
= $txt_matches ?>
|
= $txt_win_short ?>
|
= $txt_draw_short ?>
|
= $txt_lose_short ?>
|
= $txt_goals ?>
|
+ / -
|
= $txt_home_short ?>
|
|
|
|
|
|
= 0)
echo "+$diff";
else
echo $diff;
?>
|
= $txt_away_short ?>
|
|
|
|
|
|
= 0)
echo "+$diff";
else
echo $diff;
?>
|
= $txt_neutral_short ?>
|
|
|
|
|
|
= 0)
echo "+$diff";
else
echo $diff;
?>
|
= $txt_total ?>
|
|
|
|
|
|
= 0)
echo "+$diff";
else
echo $diff;
?>
|
0)
{
?>
= $txt_date ?>
|
= $txt_match_type ?>
|
|
= $txt_final_score ?>
|
= $txt_stadium ?>
|
= $txt_attendance ?>
|
$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]
|
";
$j++;
}
?>
|
|