コード例 #1
0
ファイル: face2face.php プロジェクト: jfanctil/lamoria
 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);
コード例 #2
0
ファイル: gestion-equipe.php プロジェクト: jfanctil/lamoria
 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);