本文整理匯總了PHP中interPool::getTeamAbbr方法的典型用法代碼示例。如果您正苦於以下問題:PHP interPool::getTeamAbbr方法的具體用法?PHP interPool::getTeamAbbr怎麽用?PHP interPool::getTeamAbbr使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類interPool
的用法示例。
在下文中一共展示了interPool::getTeamAbbr方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: explode
echo "<TD class=\"tableCellRidge1\" NOWRAP align='center'>{$pts_total}</TD>\n";
echo "<TD class=\"tableCellRidge1\" NOWRAP style=\"padding-left:5px;padding-right:5px;\">";
$adversairesA = explode(" ", $adversaires);
foreach ($adversairesA as $adversaire) {
$adversaireA = explode("-", $adversaire);
$adv_team = $adversaireA[0];
$year = $adversaireA[1];
$month = $adversaireA[2];
$day = $adversaireA[3];
if ($adv_team == "") {
continue;
}
$today = date("Y-m-d", time());
if ($adv_team[0] == "@") {
$adv_team = substr($adv_team, 1, strlen($adv_team) - 1);
$team_abbr = $pool->getTeamAbbr($adv_team);
$opponent2 = explode("-", $opponent);
$opponent2 = "Aujourd\\'hui - " . $opponent2[1];
if ($today == "{$year}-{$month}-{$day}") {
echo "<FONT style=\"color:blue;\" onmouseover=\"ddrivetip('{$opponent2}','200')\" onmouseout=\"hideddrivetip()\">";
echo "@{$team_abbr} ";
echo "</FONT>";
$total_adversaires_tonight_visiteur++;
} elseif ("{$year}-{$month}-{$day}" < $today) {
$gameResult = $pool->getMatchResult($adv_team, $team_id, $year, $month, $day, $id_saison);
$gameResultA = explode("-", $gameResult);
$visitorGoals = $gameResultA[0];
$homeGoalsA = explode(" ", trim($gameResultA[1]));
$homeGoals = $homeGoalsA[0];
$overtime = $homeGoalsA[2];
$team2_abbr = $pool->getTeamAbbr($team_id);
示例2: explode
if ($adversaires != "") {
$adversairesA = explode(" ", $adversaires);
if (count($adversairesA) > 0) {
foreach ($adversairesA as $adversaire) {
$adversaireA = explode("-", $adversaire);
$adv_team = $adversaireA[0];
$year = $adversaireA[1];
$month = $adversaireA[2];
$day = $adversaireA[3];
if ($adv_team == "") {
continue;
}
$today = date("Y-m-d", time());
if ($adv_team[0] == "@") {
$adv_team = substr($adv_team, 1, strlen($adv_team) - 1);
$team_abbr = $pool->getTeamAbbr($adv_team);
$opponent2 = explode("-", $opponent);
$opponent2 = "Aujourd\\'hui - " . $opponent2[1];
if ($today == "{$year}-{$month}-{$day}") {
if ($actif == "Y") {
echo "<FONT style=\"color:blue;\" onmouseover=\"ddrivetip('{$opponent2}','300');\" onmouseout=\"hideddrivetip();\" >";
$total_adversaires_tonight++;
$total_adversaires_tonight_actif++;
} else {
echo "<FONT style=\"color:red;\" onmouseover=\"ddrivetip('{$opponent2}','300');\" onmouseout=\"hideddrivetip();\" >";
$total_adversaires_tonight++;
}
echo "@{$team_abbr} ";
echo "</FONT>";
} elseif ("{$year}-{$month}-{$day}" < $today) {
$gameResult = $pool->getMatchResult($adv_team, $team_id, $year, $month, $day, $id_saison);