本文整理汇总了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);