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


PHP interPool::isEven方法代碼示例

本文整理匯總了PHP中interPool::isEven方法的典型用法代碼示例。如果您正苦於以下問題:PHP interPool::isEven方法的具體用法?PHP interPool::isEven怎麽用?PHP interPool::isEven使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在interPool的用法示例。


在下文中一共展示了interPool::isEven方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: elseif

 }
 if ($city == "Anaheim") {
     //$vertical_align = "vertical-align:0%;margin-top:7px;margin-bottom:7px;";
     $vertical_align = "";
 } else {
     $vertical_align = "";
 }
 // Si le joueur joue ce soir, on va chercher l'information de l'equipe adverse
 if ($play_tonight == "Y" && $periode == $periode_sel) {
     $opponent = $pool->getOpponentTeamInfo($id_pool, $team_id, $id_saison);
 }
 // Si le joueur jouait hier, on va chercher le nombre de buts de son équipe
 if ($played_yest == "Y" && $periode == $periode_sel) {
     $goals_scored_by_team = $pool->getGoalsScoredByTeam($id_pool, $team_id, $id_saison);
 }
 if ($pool->isEven($row_compteur)) {
     echo "<TR class=\"face2face_Even\">\n";
 } else {
     echo "<TR class=\"face2face_Odd\">\n";
 }
 if ($injured == "Y") {
     echo "<TD class=\"tableCellRidge1\" NOWRAP style=\"padding-left:5px;padding-right:5px;\"> " . "<a href=\"a\" class=\"player{$no_match}\" id=\"player{$id_player}\">" . "<font style=\"vertical-align:40%;\">{$first_name} {$last_name}</FONT></a>\n          \t\t               <img class=\"injury_icon\" id=\"injured_{$id_player}\" src=\"/interPool/images/red-cross.png\" border=0 width=20 height=20 />\n";
 } elseif ($force_injury == "Y") {
     echo "<TD class=\"tableCellRidge1\" NOWRAP style=\"padding-left:5px;padding-right:5px;\">" . "<a href=\"a\" class=\"player{$no_match}\" id=\"player{$id_player}\">" . "<font style=\"vertical-align:40%;\">{$first_name} {$last_name}</FONT></a>\n          \t\t               <img class=\"injury_icon\" id=\"injured_{$id_player}\" src=\"/interPool/images/red-cross.png\" border=0 width=20 height=20 />\n";
 } else {
     if ($pos != "TM") {
         echo "<TD class=\"tableCellRidge1\" NOWRAP style=\"padding-left:5px;padding-right:5px;\">" . "<a href=\"a\" class=\"player{$no_match}\" id=\"player{$id_player}\">" . "{$first_name} {$last_name}</a>";
     } else {
         echo "<TD class=\"tableCellRidge1\" NOWRAP style=\"padding-left:5px;padding-right:5px;\">{$last_name} {$first_name}";
     }
 }
開發者ID:jfanctil,項目名稱:lamoria,代碼行數:31,代碼來源:face2face.php

示例2: count

 }
 echo "</tr>\n";
 echo "<tr>\n";
 echo "<TH CLASS=\"tableHeader1\">Période</TH>\n";
 echo "<TH CLASS=\"tableHeader1\">&nbsp;</TH>\n";
 for ($i = 1; $i <= $nbreMatchs; $i++) {
     echo "<TH CLASS=\"tableHeader1\">Visiteur</TH>\n";
     echo "<TH CLASS=\"tableHeader1\">Local</TH>\n";
     echo "<TH CLASS=\"tableHeader1\">&nbsp;</TH>\n";
 }
 echo "</tr>";
 $dataSchedulePoolA = $pool->getSchedulePool($id_pool, $nhl_team_as_gerant_name, $id_saison);
 $nbreRows = count($dataSchedulePoolA);
 $row_compteur = 0;
 for ($i = 1; $i <= $nbreRows; $i++) {
     if ($pool->isEven($row_compteur) && $i != $periode_sel) {
         echo "<TR style=\"background-color:transparent;\" " . "onmouseover=\"setPointer3(this,'over','#266494','transparent','white');\" " . "onmouseout=\"setPointer3(this,'out','#266494','transparent','black');\">\n";
     } elseif ($i == $periode_sel) {
         echo "<TR style=\"background-color:#FFFF33;\" " . "onmouseover=\"setPointer3(this,'over','#266494','#FFFF33','white');\" " . "onmouseout=\"setPointer3(this,'out','#266494','#FFFF33','black');\">\n";
     } else {
         echo "<TR style=\"background-color:transparent;\" " . "onmouseover=\"setPointer3(this,'over','#266494','transparent','white');\" " . "onmouseout=\"setPointer3(this,'out','#266494','transparent','black');\">\n";
     }
     $item = $dataSchedulePoolA[$i];
     $item1A = explode("?", $item);
     $item2A = explode(";", $item1A[1]);
     $infoPeriodeA = explode(";", $item1A[0]);
     $_mydate = Datetime::createFromFormat('Y-m-d', $infoPeriodeA[0], $pool->timeZone);
     $dateBegin = $_mydate->format('j M Y');
     $dateBeginYear = $_mydate->format('Y');
     $dateBeginMonth = $_mydate->format('m');
     $dateBeginMonth = $pool->conv_mois_numeric_to_text($dateBeginMonth);
開發者ID:jfanctil,項目名稱:lamoria,代碼行數:31,代碼來源:calendrier.php


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