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