當前位置: 首頁>>代碼示例>>PHP>>正文


PHP interPool::getTeamAbbr方法代碼示例

本文整理匯總了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} &nbsp;";
             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);
開發者ID:jfanctil,項目名稱:lamoria,代碼行數:31,代碼來源:face2face.php

示例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} &nbsp;";
                     echo "</FONT>";
                 } elseif ("{$year}-{$month}-{$day}" < $today) {
                     $gameResult = $pool->getMatchResult($adv_team, $team_id, $year, $month, $day, $id_saison);
開發者ID:jfanctil,項目名稱:lamoria,代碼行數:31,代碼來源:gestion-equipe.php


注:本文中的interPool::getTeamAbbr方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。