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


PHP interPool::getInjuredPlayerDetail方法代码示例

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


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

示例1: 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 {
         if ($playerInfoA['pos'] != "TM") {
开发者ID:jfanctil,项目名称:lamoria,代码行数:31,代码来源:stats-gerant.php

示例2: foreach

 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";
 echo "</TABLE>\n";
开发者ID:jfanctil,项目名称:lamoria,代码行数:31,代码来源:admin.php

示例3: count

 echo "<th nowrap class=\"face2face_2\"></th>\n";
 echo "<th nowrap class=\"face2face_2\">Tot.</th>\n";
 echo "<th nowrap class=\"face2face_2\"></th>\n";
 echo "<th nowrap class=\"face2face_2\">Pts</th>\n";
 echo "<th nowrap class=\"face2face_2\"></th>\n";
 echo "</tr>\n";
 $nbre_rows = count($dataGerant1);
 for ($index = 0; $index < $nbre_rows; $index++) {
     $my_data_gerant1 = $dataGerant1[$index];
     list($id_player_ger1, $first_name_ger1, $last_name_ger1, $pos_ger1, $logo_ger1, $team_url_ger1, $injured_ger1, $force_injury_ger1, $force_injury_raison_ger1, $play_tonight_ger1, $played_yest_ger1, $match_no_ger1, $pts_match1_ger1, $pts_match2_ger1, $pts_match3_ger1, $pts_match4_ger1, $pts_match5_ger1, $pts_match6_ger1, $pts_match7_ger1) = split(";", $my_data_gerant1);
     $str_live_pts = $pool->playoffs_getLivePts($id_player_ger1);
     list($id_team, $live_pts, $en_cours, $gm_finished, $team_goals, $adv_goals, $temps_ecoule) = split(";", $str_live_pts);
     echo "<tr class=\"face2face_Even\">\n";
     // Gérant 1
     if ($injured_ger1 == "Y") {
         $data = $pool->getInjuredPlayerDetail($id_player_ger1, $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];
         echo "<TD NOWRAP style=\"padding-left:5px;padding-right:5px;color:red;\">" . "<FONT onmouseover=\"ddrivetip('" . $tip . "','200','')\" onmouseout=\"hideddrivetip()\">" . "{$first_name_ger1} {$last_name_ger1}</FONT>";
     } else {
         if ($force_injury == "Y") {
             $tip = $force_injury_raison;
             echo "<TD NOWRAP style=\"padding-left:5px;padding-right:5px;color:red;\">" . "<FONT onmouseover=\"ddrivetip('" . $tip . "','200','')\" onmouseout=\"hideddrivetip()\">" . "{$first_name_ger1} {$last_name_ger1}</FONT>";
         } else {
             if ($pos_ger1 != "TM") {
                 echo "<TD NOWRAP style=\"padding-left:5px;padding-right:5px;{$style_color_play_tonight_ger1};\">{$first_name_ger1} {$last_name_ger1}";
             } else {
                 echo "<TD NOWRAP style=\"padding-left:5px;padding-right:5px;{$style_color_play_tonight_ger1};\">{$last_name_ger1} {$first_name_ger1}";
             }
         }
     }
开发者ID:jfanctil,项目名称:lamoria,代码行数:31,代码来源:face2face.php

示例4: interPool

<?php

require_once '../../class.interpool.php';
$pool = new interPool();
$pool->dbConnect();
$id_player = $_GET["id_player"];
// pour les accents français
//header("Content-Type:application/xhtml+xml; charset=ISO-8859-1");
$data = $pool->getInjuredPlayerDetail($id_player, $pool->today, 0);
$str = explode(":", $data);
echo "<table border=0 cellpadding=3 cellspacing=0>\n";
echo "<tr>\n";
echo "<td><img src=\"/interPool/images/red-cross.png\" border=0 width=75px height=75px /></td>\n";
echo "<td style=\"vertical-align:top;\">\n";
echo "<table border=0 cellpadding=3 cellspacing=0>\n";
echo "<tr>\n";
echo "<td align='left'><strong>Date</strong>: " . $str[3] . "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td><strong>Blessure</strong>: " . $str[0] . "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td><strong>Status</strong>: " . $str[1] . "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td><strong>Retour</strong>: " . $str[2] . "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td><strong>Commentaire</strong>: " . $str[4] . "</td>\n";
echo "</tr>\n";
echo "</table>\n";
开发者ID:jfanctil,项目名称:lamoria,代码行数:31,代码来源:getInjuryDetail.php

示例5: unset

 // je n'affiche pas l'alert box de la case à cocher 'réactiver'.
 if ($player_IRA[6] < $pool->today) {
     echo "<INPUT TYPE=\"checkbox\" id=\"reactiverBox\" NAME=\"reactiver[]\" value=\"" . $player_IRA[0] . "-" . $player_remplacantA[0] . "\" " . "{$disabled_reactiver} onClick=\"if (this.checked) {alert('{$str_message}');}\"/>";
 } else {
     echo "<INPUT TYPE=\"checkbox\" id=\"reactiverBox\" NAME=\"reactiver[]\" value=\"" . $player_IRA[0] . "-" . $player_remplacantA[0] . "\" " . "{$disabled_reactiver} />";
 }
 echo "</TD>\n";
 echo "<TD class=\"tableCellRidge1\" style=\"padding:0 0 0 0;\">&nbsp;</TD>\n";
 // Joueur remplaçant
 // latest news du joueur
 unset($latestNewsA);
 if ($pos != "TM") {
     $latestNewsA = $pool->getPlayerLatestNews($id_pool, $id_saison, $gerant, $player_remplacantA[0]);
 }
 if ($pool->isPlayerInjured($player_remplacantA[0], $date_injury, $id_saison)) {
     $data = $pool->getInjuredPlayerDetail($player_remplacantA[0], $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;\">\n\t\t\t\t\t       <a href=\"a\" class=\"playerIR\" id=\"player{$player_remplacantA['0']}\" style=\"color:red;\">\n\t\t\t\t\t       <FONT onmouseover=\"ddrivetip('" . $tip . "','200','');this.style.cursor='pointer';\"\n\t\t\t\t\t       onmouseout=\"hideddrivetip();\">\n\t\t\t\t\t\t  {$player_remplacantA['1']}</FONT></a>";
 } else {
     $dataA = $pool->isPlayerInjuredForce($id_pool, $periode_sel, $periode, $gerant_sel, $player_remplacantA[6], $id_saison, $player_remplacantA[0]);
     $force_injury = $dataA[0];
     $force_injury_raison = $dataA[1];
     if ($force_injury == "Y") {
         $tip = $force_injury_raison;
         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_remplacantA['0']}\" style=\"color:red;\">\n\t\t\t\t\t\t       <FONT onmouseover=\"ddrivetip('" . $tip . "','200','');this.style.cursor='pointer';\"\n\t\t\t\t\t\t       onmouseout=\"hideddrivetip();\">\n\t\t\t\t\t\t       {$player_remplacantA['1']}</FONT></a>";
     } 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_remplacantA['0']}\">\n\t\t\t\t\t\t       {$player_remplacantA['1']}</a>";
     }
 }
开发者ID:jfanctil,项目名称:lamoria,代码行数:31,代码来源:gestion-equipe.php


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