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


PHP interPool::getPlayersTradeClubEcole方法代碼示例

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


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

示例1: split

        echo "<hr style=\"height:3px;color:black;background-color:black;width:90%;\"></hr>\n";
    }
}
echo "</div>\n";
// CLUB ÉCOLE
echo "<TABLE style=\"margin-left:3px;width:85%;margin-top:20px;\">\n";
echo "<TR class=\"tr_title\">\n";
echo "<TH CLASS=\"tableHeaderRoundCorner\" COLSPAN=50 style=\"font-size:16px;\">Club École</th>\n";
echo "</tr>\n";
echo "</table>\n";
if ($gerant_logged == $gerant_sel) {
    echo "<div id=\"equipeGerant_CE\" class=\"trade_prop_gerant_CE\" style=\"margin-left:10px;\">\n";
} else {
    echo "<div id=\"equipeAdv_CE\" class=\"trade_prop_adv_CE\" style=\"margin-left:10px;\">\n";
}
$playersCEgerant1 = $pool->getPlayersTradeClubEcole($id_pool, $gerant_sel, $periode, $id_saison);
foreach ($playersCEgerant1 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];
    $trading_block = $valueA[7];
    $team_logo = $valueA[8];
    $team_logo2 = $valueA[9];
    $url_photo = $valueA[10];
    $id_forecaster = $valueA[11];
    $logo2show = "color";
開發者ID:jfanctil,項目名稱:lamoria,代碼行數:31,代碼來源:trade.php

示例2: foreach

                         echo "<OPTION disabled VALUE=\"{$rank}-{$id_player}-{$pos}-GC\" style=\"padding-right:10px;padding-top:2px;{$style_color};background-color:lightgray;\">" . "{$first_name['0']}. {$last_name} ({$pos}) - {$team_abbr} - {$pj_pool} pjp - {$total_pts} pts</OPTION>\n";
                     }
                     break;
             }
         }
     }
     // Affichage d'une ligne séparatrice entre les positions des joueurs (TM, G, D et Avants).
     if ($pos_en_trait != "F") {
         echo "<option disabled=\"disabled\">----------------------------</option>\n";
     }
 }
 ?>
   		          </OPTGROUP>
   		          <OPTGROUP LABEL="Club École">
   		          <?php 
 $playersCE = $pool->getPlayersTradeClubEcole($id_pool, $gerant_sel, $periode, $id_saison, $ballotage_liste_IR);
 foreach ($playersCE 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];
     $trading_block = $valueA[7];
     if ($trading_block == 'Y') {
         continue;
     }
     if ($pool->isPlayerInjured($id_player, $pool->today, $id_saison)) {
         $style_color = "color:red;";
開發者ID:jfanctil,項目名稱:lamoria,代碼行數:31,代碼來源:trade.php


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