当前位置: 首页>>代码示例>>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;未经允许,请勿转载。