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


PHP interPool::isPlayerInjuredForce方法代码示例

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


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

示例1: explode

     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 {
         if ($playerInfoA['pos'] != "TM") {
             echo "<TD class=\"tableCellRidge1\" NOWRAP style=\"padding-left:5px;padding-right:5px;\">" . "<a class=\"player\" id=\"{$id_player}\">" . "{$playerInfoA['first_name']} {$playerInfoA['last_name']}</a>";
         } else {
             echo "<TD class=\"tableCellRidge1\" NOWRAP style=\"padding-left:5px;padding-right:5px;\">" . "{$playerInfoA['last_name']} {$playerInfoA['first_name']}";
         }
         echo "</TD>\n";
     }
 }
开发者ID:jfanctil,项目名称:lamoria,代码行数:31,代码来源:stats-gerant.php

示例2: explode

 $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);
     $date_insert_news = $date_insert_newsA[0];
     $time_insert_news = $date_insert_newsA[1];
     list($year, $month, $day) = split("-", $date_insert_news);
开发者ID:jfanctil,项目名称:lamoria,代码行数:31,代码来源:gestion-equipe.php


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