echo "</div>\n";
    echo "<div class=\"jqmnContent\" id=\"contentDetailPlayer_adv\">\n";
    echo "Please wait... <img src=\"/images/ajax-loader2.gif\" alt=\"loading\" />\n";
    echo "</div>\n";
    echo "<img src=\"/images/close_icon.png\" alt=\"close\" class=\"jqmClose\" />\n";
    echo "</div>\n";
    $detail_player_jqm_className = "player_jqm_adv";
}
echo "<TABLE style=\"margin-left:3px;width:85%;\">\n";
echo "<TR class=\"tr_title\">\n";
echo "<TH CLASS=\"tableHeaderRoundCorner\" COLSPAN=50 style=\"font-size:16px;\">Grand Club</th>\n";
echo "</tr>\n";
echo "</table>\n";
$compteur = 0;
foreach (array('TM', 'G', 'D', 'F') as $pos_en_trait) {
    $playersGCgerant1 = $pool->getPlayersTradeGrandClub2($id_pool, $gerant_sel, $periode, $id_saison, $can_trade_teams, $trade_howto_switch_players, $pos_en_trait, $salary_cap_enabled, $sess_id, $gerant_logged, $id_gerant2);
    $last_pos = "";
    //print_r($playersGCgerant1);
    foreach ($playersGCgerant1 as $value) {
        $valueA = explode("^", $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];
        $pj_pool = $valueA[7];
        $trading_block = $valueA[8];
        $team_logo = $valueA[9];
        $team_logo2 = $valueA[10];