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


PHP interPool::getPartiesNHLJoueur方法代碼示例

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


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

示例1: elseif

 $pos = $valueA[4];
 $team_abbr = $valueA[5];
 $total_pts = $valueA[6];
 $pj_pool = $valueA[7];
 $trading_block = $valueA[8];
 $team_logo = $valueA[9];
 $team_logo2 = $valueA[10];
 $url_photo = $valueA[11];
 $id_forecaster = $valueA[12];
 $salaire_unformatted = $valueA[13];
 $birthday = $valueA[14];
 $salaire = number_format($salaire_unformatted, 0, ".", ",");
 $logo2show = "color";
 $style_color = "";
 // parties nhl et pts nhl du joueur (pas du rang...)
 $pj_nhl = $pool->getPartiesNHLJoueur($id_pool, $id_saison, $id_player);
 $pts_nhl = $pool->getPlayerPtsNHL($id_player, $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, $periode);
 }
 // âge du joueur
 if ($pos == "TM") {
     $age = "";
 } elseif ($birthday != "0000-00-00") {
     $_mydate = Datetime::createFromFormat('Y-m-d', $birthday, $pool->timeZone);
     $age = $_mydate->diff($pool->todayDate)->y;
 } else {
     $age = "???";
 }
 if ($gerant_logged == $gerant) {
開發者ID:jfanctil,項目名稱:lamoria,代碼行數:31,代碼來源:tradeCenter_showGerantPlayers.php

示例2: foreach

 // GC - Équipes
 if (count($playersPropGerant_TM) == count($playersPropAdv_TM) && count($playersPropGerant_TM) > 0) {
     foreach ($playersPropGerant_TM as $index => $dataPlayerGerant) {
         $id_player_gerant = $dataPlayerGerant['id_player'];
         $pos_gerant = $dataPlayerGerant['pos'];
         $pj_gerant = $dataPlayerGerant['pj'];
         $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}";
開發者ID:jfanctil,項目名稱:lamoria,代碼行數:31,代碼來源:tradeCenter_showProp.php


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