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