当前位置: 首页>>代码示例>>PHP>>正文


PHP interPool::isPlayerInjured方法代码示例

本文整理汇总了PHP中interPool::isPlayerInjured方法的典型用法代码示例。如果您正苦于以下问题:PHP interPool::isPlayerInjured方法的具体用法?PHP interPool::isPlayerInjured怎么用?PHP interPool::isPlayerInjured使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在interPool的用法示例。


在下文中一共展示了interPool::isPlayerInjured方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1:

 $contrat_fin = $item["contrat_fin"];
 $ufa_rfa = $item["ufa_rfa"];
 $jn = $item["jn"];
 $preference = $item["preference"];
 $actif = $item["actif"];
 $ajustement = $item["ajustement"];
 $prospect = $item["prospect"];
 $resultat2 = $item["prediction"];
 $tot_games = $item["games_j"];
 $tot_pts = $item["points_j"];
 $my_avg = $item["moy_pj_j"];
 $my_avg_saison = $item["moy_sai_j"];
 if ($actif == "N") {
     continue;
 }
 if ($pool->isPlayerInjured($id_player, $pool->today, $id_saison)) {
     $style_injury = "color:red;";
     $show_injury = "<img class=\"injury_icon\" id=\"injured_{$id_player}\" src=\"/interPool/images/red-cross.png\" border=0 width=20 height=20 /><font style=\"vertical-align:50%;\">";
     $show_injury_end = "</font>";
 } else {
     $style_injury = "";
     $show_injury = "";
     $show_injury_end = "";
 }
 if ($preference != "") {
     $show_comment = "<img class=\"note_icon\" id=\"noteIcon_{$id_player}\" src=\"/interPool/images/note_icon.png\" border=0 style=\"padding-left:5px;padding-right:5px;\" />";
     echo "<input type=\"hidden\" id=\"noteIconHidden_{$id_player}\" value=\"{$preference}\" />";
 } else {
     $show_comment = "";
 }
 // âge du joueur
开发者ID:jfanctil,项目名称:lamoria,代码行数:31,代码来源:draft_online_main.php

示例2: explode

     }
     echo "<TD class=\"tableCellRidge1\" NOWRAP align='center'>-</TD>\n";
     echo "<TD class=\"tableCellRidge2\" NOWRAP align='center'>-</TD>\n";
     echo "</TR>\n";
 }
 if ($pool->isEven($row_compteur)) {
     echo "<TR onmouseover=\"setPointer3(this,'over','#266494','transparent','white');\" " . "onmouseout=\"setPointer3(this,'out','#266494','transparent','black','');\">\n";
 } else {
     echo "<TR onmouseover=\"setPointer3(this,'over','#266494','transparent','white');\" " . "onmouseout=\"setPointer3(this,'out','#266494','transparent','black','');\">\n";
 }
 if ($nbre_fois_dans_boucle == 1) {
     echo "<TD class=\"tableCellRidge1\" NOWRAP align='center'>{$rank}</TD>\n";
 } else {
     echo "<TD class=\"tableCellRidge1\" NOWRAP align='center'>-</TD>\n";
 }
 if ($pool->isPlayerInjured($id_player, $date_injury, $id_saison)) {
     $data = $pool->getInjuredPlayerDetail($id_player, $date_injury, $id_saison);
     $str = explode(":", $data);
     $tip = "En date du " . $str[3] . "<br/><br/><B>Blessure</B>: " . $str[0] . "<br/><B>Status</B>: " . $str[1] . "<br/><B>Retour au jeu</B>: " . $str[2];
     $tip = str_replace("'", "\\'", $tip);
     echo "<TD class=\"tableCellRidge1\" NOWRAP style=\"padding-left:5px;padding-right:5px;color:red;\">" . "<a class=\"player\" id=\"{$id_player}\" >" . "<font style=\"vertical-align:40%;\">{$playerInfoA['first_name']} {$playerInfoA['last_name']}</font></a>" . "<img class=\"injury_icon\" id=\"{$id_player}\" src=\"/images/red-cross.png\" border=0 width=20 height=20 />";
     echo "</TD>\n";
 } else {
     $dataA = $pool->isPlayerInjuredForce($id_pool, $periode_sel, $periode, $gerant_sel, $rank, $id_saison, $id_player);
     $force_injury = $dataA["force_injury"];
     $force_injury_raison = $dataA["force_injury_raison"];
     if ($force_injury == "Y") {
         $tip = $force_injury_raison;
         echo "<TD class=\"tableCellRidge1\" NOWRAP style=\"padding-left:5px;padding-right:5px;color:red;\">" . "<a class=\"player\" id=\"{$id_player}\">" . "<font style=\"vertical-align:40%;\">{$playerInfoA['first_name']} {$playerInfoA['last_name']}</font></a>" . "<img class=\"injury_icon\" id=\"{$id_player}\" src=\"/images/red-cross.png\" border=0 width=20 height=20 />";
         echo "</TD>\n";
     } else {
开发者ID:jfanctil,项目名称:lamoria,代码行数:31,代码来源:stats-gerant.php

示例3: explode

 $liste_joueurs_gerant1A = explode(":", $liste_joueurs_gerant1);
 foreach ($liste_joueurs_gerant1A as $key => $value) {
     if ($value == "") {
         continue;
     }
     $playerInfoA = $pool->getPlayerInfoForTrade($value, $periode, $id_pool, $id_saison, $id_gerant1);
     $first_name = $playerInfoA["first_name"];
     $last_name = $playerInfoA["last_name"];
     $pos = $playerInfoA["pos"];
     $city = $playerInfoA["city"];
     $team_name = $playerInfoA["name"];
     $team_logo = $playerInfoA["image"];
     $team_link = $playerInfoA["team_link"];
     $points = $playerInfoA["points"];
     echo "<tr>\n";
     if ($pool->isPlayerInjured($value, $pool->today, $id_saison)) {
         $data = $pool->getInjuredPlayerDetail($value, $pool->today, $id_saison);
         $str = explode(":", $data);
         $tip = "En date du " . $str[3] . "<br/><br/><B>Blessure</B>: " . $str[0] . "<br/><B>Status</B>: " . $str[1] . "<br/><B>Retour au jeu</B>: " . $str[2];
         $tip = str_replace("'", "\\'", $tip);
         echo "<TD class=\"tableCellRidge1\" NOWRAP style=\"padding-left:5px;padding-right:5px;color:red;\">" . "<FONT onmouseover=\"ddrivetip('" . $tip . "','200','');\" onmouseout=\"hideddrivetip()\">" . "{$first_name} {$last_name}</FONT>";
     } else {
         echo "<TD class=\"tableCellRidge1\" NOWRAP style=\"padding-left:5px;padding-right:5px;\">" . "{$first_name} {$last_name}";
     }
     echo "</td>\n";
     echo "<td class=\"tableCellRidge1\" style=\"padding-left:5px;padding-right:5px;\">{$pos}</td>\n";
     echo "<TD class=\"tableCellRidge1\" align='center' width=65 height=35 NOWRAP>" . "<A href=\"{$team_link}\" TARGET=\"_BLANK\">" . "<IMG src=\"{$team_logo}\" BORDER=0 style=\"{$vertical_align}\"/></A></TD>\n";
     echo "<td class=\"tableCellRidge2\" align='center' style=\"padding-left:5px;padding-right:5px;\">{$points}</td>\n";
     echo "</tr>\n";
 }
 echo "<tr><td class=\"tableCellRidge7\" colspan=50>&nbsp;</td></tr>\n";
开发者ID:jfanctil,项目名称:lamoria,代码行数:31,代码来源:admin.php

示例4: elseif

 $pts_gerant = $dataPlayerGerant['pts'];
 $firstName_gerant = $dataPlayerGerant['first_name'];
 $lastName_gerant = $dataPlayerGerant['last_name'];
 $logo_gerant = $dataPlayerGerant['logo'];
 $id_forecaster_gerant = $dataPlayerGerant['id_forecaster'];
 $trading_block_gerant = $dataPlayerGerant['trading_block'];
 $salaire_unformatted = $dataPlayerGerant['salary_frozen'];
 $salaire_gerant = number_format($salaire_unformatted, 0, ".", ",");
 // parties nhl et pts nhl du joueur (pas du rang...)
 $pj_nhl = $pool->getPartiesNHLJoueur($id_pool, $id_saison, $id_player_gerant);
 $pts_nhl = $pool->getPlayerPtsNHL($id_player_gerant, $date_debut_saison, $id_saison, $id_pool);
 // get pj restantes pour le joueur si nécessaire
 if ($salary_cap_enabled == "Y") {
     $pj_restantes = $pool->getPlayerPJRestantes($id_pool, $id_saison, $id_player_gerant, $periode);
 }
 if ($pool->isPlayerInjured($id_player_gerant, $pool->today, $id_saison)) {
     $show_injury_gerant = "<img class=\"injury_icon\" id=\"{$id_player_gerant}\" src=\"/images/red-cross.png\" " . "border=0 width=20 height=20 style=\"padding-top:5px;padding-left:5px;\" /><br>";
 } else {
     $show_injury_gerant = "";
 }
 if ($id_forecaster_gerant > 0) {
     if ($id_forecaster_gerant < 10) {
         $id_forecaster_photo_gerant = "000{$id_forecaster_gerant}";
     } elseif ($id_forecaster_gerant < 100) {
         $id_forecaster_photo_gerant = "00{$id_forecaster_gerant}";
     } elseif ($id_forecaster_gerant < 1000) {
         $id_forecaster_photo_gerant = "0{$id_forecaster_gerant}";
     } else {
         $id_forecaster_photo_gerant = $id_forecaster_gerant;
     }
     $photo_gerant = "/images/players/forecaster/{$id_forecaster_photo_gerant}.gif";
开发者ID:jfanctil,项目名称:lamoria,代码行数:31,代码来源:tradeCenter_showProp.php

示例5: explode

 $player_IR = $itemA[0];
 $player_remplacant = $itemA[1];
 $player_IRA = explode(":", $player_IR);
 $player_remplacantA = explode(":", $player_remplacant);
 if ($pool->isEven($row_compteur)) {
     echo "<TR style=\"background-color:transparent;\" " . "onmouseover=\"setPointer3(this,'over','#266494','transparent','white');\" " . "onmouseout=\"setPointer3(this,'out','#266494','transparent','black');\">\n";
 } else {
     echo "<TR style=\"background-color:transparent;\" " . "onmouseover=\"setPointer3(this,'over','#266494','transparent','white');\" " . "onmouseout=\"setPointer3(this,'out','#266494','transparent','black');\">\n";
 }
 // Joueur blessé (sur la liste IR)
 // latest news du joueur
 unset($latestNewsA);
 if ($pos != "TM") {
     $latestNewsA = $pool->getPlayerLatestNews($id_pool, $id_saison, $gerant, $player_IRA[0]);
 }
 if ($pool->isPlayerInjured($player_IRA[0], $date_injury, $id_saison)) {
     echo "<TD class=\"tableCellRidge1\" NOWRAP style=\"padding-left:5px;padding-right:5px;\">\n\t\t\t\t\t       <a href=\"a\" class=\"playerIR\" id=\"player{$player_IRA['0']}\">\n\t\t\t\t\t\t  <font style=\"vertical-align:40%;\">{$player_IRA['1']} </FONT></a>\n\t\t\t\t\t\t  <img class=\"injury_icon\" id=\"injured_{$player_IRA[0]}\" src=\"/interPool/images/red-cross.png\" border=0 width=20 height=20 />";
 } else {
     $dataA = $pool->isPlayerInjuredForce($id_pool, $periode_sel, $periode, $gerant_sel, $player_IRA[7], $id_saison, $player_IRA[0]);
     $force_injury = $dataA[0];
     $force_injury_raison = $dataA[1];
     if ($force_injury == "Y") {
         echo "<TD class=\"tableCellRidge1\" NOWRAP style=\"padding-left:5px;padding-right:5px;\">\n\t\t\t\t\t\t       <a href=\"a\" class=\"playerIR\" id=\"player{$player_IRA['0']}\">\n\t\t\t\t\t\t       <font style=\"vertical-align:40%;\">{$player_IRA['1']}</FONT></a>\n\t\t\t\t\t\t       <img class=\"injury_icon\" id=\"injured_{$player_IRA[0]}\" src=\"/interPool/images/red-cross.png\" border=0 width=20 height=20 />";
     } else {
         echo "<TD class=\"tableCellRidge1\" NOWRAP style=\"padding-left:5px;padding-right:5px;\">\n\t\t\t\t\t\t       <a href=\"a\" class=\"playerIR\" id=\"player{$player_IRA['0']}\">\n\t\t\t\t\t\t       {$player_IRA['1']}</a>";
     }
 }
 if (count($latestNewsA) > 0) {
     $latest_news = $latestNewsA[0];
     $date_insert_news = $latest_news['date_insert'];
     $date_insert_newsA = split(" ", $date_insert_news);
开发者ID:jfanctil,项目名称:lamoria,代码行数:31,代码来源:gestion-equipe.php

示例6: foreach

 $last_pos = "";
 foreach ($playersGCgerant1 as $value) {
     $valueA = split(":", $value);
     $rank = $valueA[0];
     $id_player = $valueA[1];
     $first_name = $valueA[2];
     $last_name = $valueA[3];
     $pos = $valueA[4];
     $team_abbr = $valueA[5];
     $total_pts = $valueA[6];
     $pj_pool = $valueA[7];
     $trading_block = $valueA[8];
     if ($pj_pool == "") {
         $pj_pool = 0;
     }
     if ($pool->isPlayerInjured($id_player, $pool->today, $id_saison)) {
         $style_color = "color:red;";
     } else {
         $style_color = "";
     }
     if ($trading_block == 'Y') {
         if ($style_color == "") {
             $style_color = "color:magenta;";
         } else {
             $style_color = "color:orange;";
         }
     }
     // Affichage d'une ligne séparatrice entre les positions des joueurs (TM, G, D et Avants).
     /*
     if ($last_pos == "") $last_pos = $pos;
     if ($last_pos != $pos && ($last_pos == "TM" || $last_pos == "G" || $last_pos == "D")) {
开发者ID:jfanctil,项目名称:lamoria,代码行数:31,代码来源:trade.php


注:本文中的interPool::isPlayerInjured方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。